-
Notifications
You must be signed in to change notification settings - Fork 1
/
logs.php
65 lines (64 loc) · 1.97 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
57
58
59
60
61
62
63
64
65
<?php
include('header.php');
?>
<div class="container">
<div class="row">
<form id="mainsearch" class="col s12" action="">
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">search</i>
<input id="icon_prefix" type="text" class="validate" name="aname">
<input type="hidden" name="action" value="search">
<label for="icon_prefix">Nume serie</label>
</div>
</div>
</form>
</div>
<div class="row">
<div class="col s12">
<table class="highlight responsive-table centered">
<thead>
<tr>
<th>ID</th>
<th>Serie - ep</th>
<th>Data</th>
</tr>
</thead>
<tbody id="tabledata">
<?php echo $db->showlogs();?>
</tbody>
</table>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/underscore.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script defer>
jQuery(document).ready(function(){
$(".dropdown-trigger").dropdown();
$('.sidenav').sidenav();
$('.modal').modal({'dismissible': false});
$('.modal').modal('open');
$("#mainsearch").keyup(_.debounce(function (e) {
e.preventDefault();
var formData = $(this).serialize();
$.ajax({
type:'post',
url:'controller.php',
data:formData,
beforeSend:function() {
$( "#tabledata" ).slideUp( "slow");
},
success:function(result)
{
$( "#tabledata" ).slideDown( "slow", function() {
$("#tabledata").html(result);
});
}
});
}, 650));
});
</script>
</body>
</html>