-
Notifications
You must be signed in to change notification settings - Fork 0
/
logs.php
56 lines (50 loc) · 1.14 KB
/
logs.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
55
56
<h1 class="page-header">History Logs</h1>
<div class="col-md-12">
<div class="row">
<table id="log">
<thead>
<tr style="border-bottom:1px solid black">
<td width="20%"><center>Date/Time</center></td>
<td width="50%"></td>
</tr>
</thead>
<tbody style="line-height:10mm" id="log_table">
<?php include 'all_logs.php' ?>
</tbody>
</table>
</div>
</div>
<script>
function search_log(){
var st = $('#search').val();
if(st == ''){
$.ajax({
url:'all_logs.php',
success:function(html){
$('#log_table').html(html);
}
});
}else{
$.ajax({
url:'search_log.php?st='+st,
success:function(html){
if(st == ''){
$('#log_table').html('');
}
if(html == ''){
$('#log_table').html('No Result!');
}else{
$('#log_table').html(html);
}
}
});
}
}
</script>
<script type="text/javascript">
$(function() {
$("#log").dataTable(
{ "aaSorting": [[ 0, "asc" ]] }
);
});
</script>