1 | <?php |
---|
2 | /* template head */ |
---|
3 | /* end template head */ ob_start(); /* template body */ ?><table><tr> |
---|
4 | <?php $this->scope["i"]=0?> |
---|
5 | |
---|
6 | <?php |
---|
7 | $_fh0_data = (isset($this->scope["g_metrics"]["metrics"]) ? $this->scope["g_metrics"]["metrics"]:null); |
---|
8 | if ($this->isTraversable($_fh0_data) == true) |
---|
9 | { |
---|
10 | foreach ($_fh0_data as $this->scope['g_metric']) |
---|
11 | { |
---|
12 | /* -- foreach start output */ |
---|
13 | ?> |
---|
14 | <td> |
---|
15 | <font style="font-size: 8px"><?php echo $this->scope["g_metric"]["metric_name"];?> <?php if ((isset($this->scope["g_metric"]["title"]) ? $this->scope["g_metric"]["title"]:null) != '' && (isset($this->scope["g_metric"]["title"]) ? $this->scope["g_metric"]["title"]:null) != (isset($this->scope["g_metric"]["metric_name"]) ? $this->scope["g_metric"]["metric_name"]:null)) { |
---|
16 | ?>- <?php echo $this->scope["g_metric"]["title"]; |
---|
17 | |
---|
18 | }?></font><br> |
---|
19 | <?php if ((isset($this->scope["may_edit_views"]) ? $this->scope["may_edit_views"] : null)) { |
---|
20 | ?> |
---|
21 | <?php $this->scope["graph_args"]="&"; |
---|
22 | $this->scope["graph_args"].=(isset($this->scope["g_metric"]["graphargs"]) ? $this->scope["g_metric"]["graphargs"]:null)?> |
---|
23 | |
---|
24 | <button class="cupid-green" title="Metric Actions - Add to View, etc" onclick="metricActions('<?php echo $this->scope["g_metric"]["host_name"];?>','<?php echo $this->scope["g_metric"]["metric_name"];?>', 'metric', '<?php echo $this->scope["graph_args"];?>'); return false;">+</button> |
---|
25 | <?php |
---|
26 | }?> |
---|
27 | |
---|
28 | <button title="Export to CSV" class="cupid-green" onClick="javascript:location.href='./graph.php?<?php echo $this->scope["g_metric"]["graphargs"];?>&csv=1';return false;">CSV</button> |
---|
29 | <button title="Export to JSON" class="cupid-green" onClick="javascript:location.href='./graph.php?<?php echo $this->scope["g_metric"]["graphargs"];?>&json=1';return false;">JSON</button> |
---|
30 | <button title="Inspect Graph" onClick="inspectGraph('<?php echo $this->scope["g_metric"]["graphargs"];?>'); return false;" class="shiny-blue">Inspect</button> |
---|
31 | <button title="6 month trend" onClick="drawTrendGraph('./graph.php?<?php echo $this->scope["g_metric"]["graphargs"];?>&trend=1&z=xlarge'); return false;" class="shiny-blue">Trend</button> |
---|
32 | |
---|
33 | <?php if ((isset($this->scope["graph_engine"]) ? $this->scope["graph_engine"] : null) == "flot") { |
---|
34 | ?> |
---|
35 | <br> |
---|
36 | <div id="placeholder_<?php echo $this->scope["g_metric"]["graphargs"];?>" class="flotgraph2 img_view"></div> |
---|
37 | <div id="placeholder_<?php echo $this->scope["g_metric"]["graphargs"];?>_legend" class="flotlegend"></div> |
---|
38 | <?php |
---|
39 | } |
---|
40 | else { |
---|
41 | ?> |
---|
42 | <?php $this->scope["graphId"]=((isset($this->scope["GRAPH_BASE_ID"]) ? $this->scope["GRAPH_BASE_ID"] : null)).((isset($this->scope["mgId"]) ? $this->scope["mgId"] : null)).((isset($this->scope["i"]) ? $this->scope["i"] : null))?> |
---|
43 | |
---|
44 | <?php $this->scope["showEventsId"]=((isset($this->scope["SHOW_EVENTS_BASE_ID"]) ? $this->scope["SHOW_EVENTS_BASE_ID"] : null)).((isset($this->scope["mgId"]) ? $this->scope["mgId"] : null)).((isset($this->scope["i"]) ? $this->scope["i"] : null))?> |
---|
45 | |
---|
46 | <input title="Hide/Show Events" type="checkbox" id="<?php echo $this->scope["showEventsId"];?>" onclick="showEvents('<?php echo $this->scope["graphId"];?>', this.checked)"/><label class="show_event_text" for="<?php echo $this->scope["showEventsId"];?>">Hide/Show Events</label> |
---|
47 | <?php $this->scope["timeShiftId"]=((isset($this->scope["TIME_SHIFT_BASE_ID"]) ? $this->scope["TIME_SHIFT_BASE_ID"] : null)).((isset($this->scope["mgId"]) ? $this->scope["mgId"] : null)).((isset($this->scope["i"]) ? $this->scope["i"] : null))?> |
---|
48 | |
---|
49 | <input title="Timeshift Overlay" type="checkbox" id="<?php echo $this->scope["timeShiftId"];?>" onclick="showTimeShift('<?php echo $this->scope["graphId"];?>', this.checked)"/><label class="show_timeshift_text" for="<?php echo $this->scope["timeShiftId"];?>">Timeshift</label> |
---|
50 | <br> |
---|
51 | <a href="./graph_all_periods.php?<?php echo $this->scope["g_metric"]["graphargs"];?>&z=large"> |
---|
52 | <img id="<?php echo $this->scope["graphId"];?>" class="noborder <?php echo $this->scope["additional_host_img_css_classes"];?>" style="margin:5px;" alt="<?php echo $this->scope["g_metric"]["alt"];?>" src="./graph.php?<?php echo $this->scope["g_metric"]["graphargs"];?>" title="<?php echo $this->scope["g_metric"]["desc"];?>" /> |
---|
53 | </A> |
---|
54 | <?php |
---|
55 | }?> |
---|
56 | |
---|
57 | </td> |
---|
58 | <?php echo $this->scope["g_metric"]["new_row"];?> |
---|
59 | |
---|
60 | <?php echo ($this->assignInScope((isset($this->scope["i"]) ? $this->scope["i"] : null) + 1, 'i'));?> |
---|
61 | |
---|
62 | <?php |
---|
63 | /* -- foreach end output */ |
---|
64 | } |
---|
65 | }?> |
---|
66 | |
---|
67 | </tr> |
---|
68 | </table> |
---|
69 | <?php /* end template body */ |
---|
70 | return $this->buffer . ob_get_clean(); |
---|
71 | ?> |
---|