-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem_fill_overview.php
136 lines (126 loc) · 3.79 KB
/
system_fill_overview.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
require_once ("config.php");
require_once ("functions.php");
$page_name = "System Fill Overview";
require_once ("assets.php");
?>
<style>
.has-details {
position: relative;
cursor: pointer;
}
.details {
position: absolute;
top: -110px;
transform: translateY(70%) scale(0);
transition: transform 0.1s ease-in;
transform-origin: left;
display: inline;
background: white;
z-index: 20;
min-width: 100%;
padding: 0.2rem;
border: 1px solid black;
color: #0a0a0a;
}
.has-details:hover span {
transform: translateY(70%) scale(1);
}
</style>
<body class="hold-transition sidebar-collapse layout-top-nav" onload="startTime()">
<div class="wrapper">
<?php include("header.php"); ?>
<?php include("menu.php"); ?>
<div class="content-wrapper">
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-12">
<h1 class="m-0" style="display: inline"><?php echo $page_name; ?></h1>
</div>
</div>
</div>
</div>
<div class="content">
<div class="container-fluid" id="overview_screen">
</div>
</div>
</div>
<!-- /.content-wrapper -->
<?php include ("footer.php"); ?>
</div>
<div class="modal fade" id="help_modal">
<div class="modal-dialog">
<div class="modal-content bg-danger">
<div class="modal-header">
<h4 class="modal-title">ANDON HELP</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
</div>
<div class="modal-footer justify-content-center">
<button type="button" class="btn btn-success" id="confirm_help" data-dismiss="modal" style="width: 160px;">OK</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- REQUIRED SCRIPTS -->
<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="assets/js/adminlte.min.js"></script>
<script src="assets/js/custom.js"></script>
<script>
$(document).ready(function() {
setInterval(function () {
$.ajax({
url: "actions.php",
method: "post",
data: {
action:"get_help_alarm"
},
dataType:'HTML',
}).done(function (html) {
if(html != 'NO HELP') {
$("#help_modal").find('.modal-body').html(html);
$("#help_modal").modal();
}
});
}, 2000)
overview_screen();
setInterval(function () {
overview_screen();
}, 20000);
function overview_screen()
{
$.ajax({
url: "actions.php",
method: "post",
data: {
action:"get_overview_screen"
},
dataType:'HTML',
}).done(function (html) {
$("#overview_screen").html(html);
});
}
$("#confirm_help").on('click', function () {
$.ajax({
url: "actions.php",
method: "post",
data: {
action:"confirm_help_alarm"
},
}).done(function (result) {
});
});
});
</script>
</body>
</html>