-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogs.php
More file actions
63 lines (57 loc) · 1.19 KB
/
Copy pathlogs.php
File metadata and controls
63 lines (57 loc) · 1.19 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
include_once('components/config.php');
if(!($_SESSION['role'] == 'admin')) {
header('Location: logout.php');
}
include('components/sidebar.php');
$result = $user->getLog();
?>
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>View logs</h3>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Logs</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<table id="datatable" class="table table-striped table-bordered">
<thead>
<tr>
<th>Time</th>
<th>User</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
foreach($result as $row) {
echo '<tr>';
echo "<td>{$row['time']}</td>";
echo "<td>{$row['user']}</td>";
echo "<td>{$row['log']}</td>";
echo '</tr>';
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
<?php
include 'components/footer.php';
include 'components/datatables.php';
include 'components/closing.php';
?>