-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathgrapher.php
50 lines (39 loc) · 1.57 KB
/
grapher.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
<?php
require_once dirname(__FILE__).'/include/config.inc.php';
require_once dirname(__FILE__).'/include/hosts.inc.php';
require_once dirname(__FILE__).'/include/graphs.inc.php';
$page['title'] = _('Grapher');
$page['hist_arg'] = array('hostid', 'groupid', 'graphid');
$page['scripts'] = array('class.calendar.js', 'gtlc.js', 'flickerfreescreen.js');
$page['type'] = detect_page_type(PAGE_TYPE_HTML);
define('ZBX_PAGE_DO_JS_REFRESH', 1);
ob_start();
require_once dirname(__FILE__).'/include/page_header.php';
ob_end_flush();
?>
<script src="grapher/chosen.jquery.js" type="text/javascript"></script>
<script src="grapher/grapher.js" type="text/javascript"></script>
<link rel="stylesheet" href="grapher/chosen.css">
<link rel="stylesheet" href="grapher/grapher.css">
<div class="header-title">
<h1>Grapher</h1>
<ul>
<li>Host <select data-placeholder="Select Host(s)..." style="width:350px;" multiple id="hosts"></select></li>
<li>Graph
<select data-placeholder="Select Graph(s)..." style="width:350px;" multiple id="graphs"></select>
<span class="link-action" id="graphs-all">Select All</span>
</li>
<li>Item
<select data-placeholder="Select Item(s)..." style="width:350px;" multiple id="items"></select>
<span class="link-action itemgraph" data-type="0">+Normal</span> |
<span class="link-action itemgraph" data-type="1">+Stacked</span>
</li>
</ul>
</div>
<div class="filter-container" id="filter-space">
<div id="scrollbar_cntr"></div>
</div>
<br>
<div id="pics"></div>
<?
require_once dirname(__FILE__).'/include/page_footer.php';