-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathno_config.php
53 lines (51 loc) · 2 KB
/
no_config.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Zabbix Dashboard</title>
<!-- Let's reset the default style properties -->
<link rel="stylesheet" type="text/css" href="style/jquery.mobile-1.4.5.css" />
<link rel="stylesheet" type="text/css" href="style/reset.css" />
<link rel="stylesheet" type="text/css" href="style/theme-alt.css" />
<!-- added the jQuery library for reloading the page and future features -->
<script src="lib/js/jquery-2.1.1.min.js"></script>
<!-- added jquery-mobile for forms and other features -->
<script src="lib/js/jquery.mobile-1.4.5.min.js"></script>
</head>
<!-- Second piece of js to gracefully reload the page (value in ms) -->
<?php if ($reload_enabled == true) { ?>
<script>
function ReloadPage() {
location.reload();
};
$(document).ready(function() {
setTimeout("ReloadPage()", <?php print $reload_time; ?>);
});
</script>
<?php } ?>
<body id="bg-one">
<!-- START GET RENDER DATE - Which will show date and time of generating this file -->
<div data-role="header">
<div id="timestamp">
<div id="date"><?php echo date("d F Y", time()); ?></div>
<div id="time"><?php echo date("H:i", time()); ?></div>
</div>
<!-- END GET RENDER DATE -->
<!-- We could use the Zabbix HostGroup name here, but would not work in a nice way when using a dozen of hostgroups, yet! So we hardcoded it here. -->
<div id="sheetname"><?php print "Configuration"; ?></div>
</div>
<div data-role="page" data-theme="a">
<div class="groupbox">
<div class="group-title">Please Configure!</div>
<div data-role="content" data-theme="a">
<center>You have not configured your installation yet.
<br>Please copy the config.php.template to config.php.
<br>Then edit to match your installation of Zabbix.</center>
</div>
<div data-role="footer" data-position="fixed" data-theme="b">
<h1>Zabbix-Dash2 - <a href="https://github.com/tdp4/Zabbix-Dash2">https://github.com/tdp4/Zabbix-Dash2</a></h1>
</div>
</div>
</div>
</body>
</html>