-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.php
75 lines (59 loc) · 2.07 KB
/
dashboard.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
66
67
68
69
70
71
72
73
74
75
<?php
include('rms.php');
$object = new rms();
if(!$object->is_login())
{
header("location:".$object->base_url."");
}
include('header.php');
?>
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Welcome to Ghar</h1>
<!-- Content Row -->
<div class="row">
<?php
if($object->is_master_user())
{
?>
<?php
}
?>
<div class="col-md-12">
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col">
<h6 class="m-0 font-weight-bold text-primary">Live Table Status</h6>
</div>
<div class="col" align="right">
</div>
</div>
</div>
<div class="card-body">
<div id="table_status"></div>
</div>
</div>
</div>
</div>
<?php
include('footer.php');
?>
<script>
$(document).ready(function(){
reset_table_status();
setInterval(function(){
reset_table_status();
}, 5000);
function reset_table_status()
{
$.ajax({
url:"order_action.php",
method:"POST",
data:{action:'dashboard_reset'},
success:function(data){
$('#table_status').html(data);
}
});
}
});
</script>