-
Notifications
You must be signed in to change notification settings - Fork 4
/
log.php
54 lines (39 loc) · 931 Bytes
/
log.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
47
48
49
50
51
52
53
54
<?php include("auth.php"); ?>
<?php
include 'include/global.php';
include 'include/function.php';
if (isset($_GET['action']) && $_GET['action'] == 'index') {
?>
<script type="text/javascript">
$('title').html('Log');
</script>
<?php
$log = getLog();
$user = getUser();
if (count($log) > 0) {
echo "<div class='row'>"
."<div class='col-md-12'>"
."<table class='table table-bordered table-hover'>"
."<thead>"
."<tr>"
."<th class='col-md-6'>Arrival Time</th>"
."<th class='col-md-6'>Username</th>"
."</tr>"
."</thead>"
."<tbody>";
foreach ($log as $row) {
echo "<tr>"
."<td>".$row['log_time']."</td>"
."<td>".$row['user_name']."</td>"
."</tr>";
}
echo
"</tbody>"
."</table>"
."</div>"
."</div>";
} else {
echo 'Log Empty';
}
}
?>