-
Notifications
You must be signed in to change notification settings - Fork 4
/
reports.php
46 lines (42 loc) · 932 Bytes
/
reports.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
$path=$_SERVER['DOCUMENT_ROOT'];
$pageTitle = "Bug Reports";
// session_start();
include_once $path."/common/base.php";
include_once $path."/inc/class.users.inc.php";
$users = new admin_portal($db);
include_once $path.'/common/header.php';?>
<?php
if(!empty($_SESSION['LoggedIn']) && !empty($_SESSION['Username']) && ($_SESSION['Admin']=='yes')):
include_once $path.'/common/admin_navbar.php';?>
<style>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
th {
background-color: #30aed6;
color: white;
}
</style>
<div id="main">
<table>
<tr>
<th>Token ID</th>
<th>Name</th>
<th>Email</th>
<th>Bug</th>
</tr>
<?php echo $users->bug(); ?>
</table>
</div>
<?php
else:
echo "<meta http-equiv='refresh' content='0; url=/main.php'>";
endif;
include_once $path.'/common/footer_admin.php';?>