source: branches/0.4/web/addons/job_monarch/dwoo/compiled/compiled/templates/default/compare_hosts.tpl.d17.php @ 755

Last change on this file since 755 was 755, checked in by ramonb, 11 years ago
  • add Dwoo
  • Property svn:executable set to *
File size: 3.7 KB
Line 
1<?php
2/* template head */
3/* end template head */ ob_start(); /* template body */ ?><style>
4.img_view {
5  float: left;
6  margin: 0 0 10px 10px;
7}
8</style>
9<div id="metric-actions-dialog" title="Metric Actions">
10<div id="metric-actions-dialog-content">
11        Available Metric actions.
12</div>
13</div>
14<div id="inspect-graph-dialog" title="Inspect Graph">
15  <div id="inspect-graph-dialog-content">
16  </div>
17</div>
18<div>
19  Enter host regular expression:
20  <input type="text" name="hreg[]" value="<?php echo $this->scope["hreg_arg"];?>">
21  <button>Go</button>
22</div>
23<div id="compare-hosts-content">
24  <div id=compare-hosts>
25    <?php if ((isset($this->scope["hreg_arg"]) ? $this->scope["hreg_arg"] : null) != '') {
26?>
27    <?php if ((isset($this->scope["number_of_metrics"]) ? $this->scope["number_of_metrics"] : null) == 0) {
28?>
29    <div class="ui-widget">
30      <div class="ui-state-default ui-corner-all" style="padding: 0 .7em;">
31        <p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
32          No matching metrics
33      </div>
34    </div>
35    <?php 
36}
37else {
38?>
39      <?php $this->scope["i"]=0?>
40
41      <?php 
42$_fh0_data = (isset($this->scope["host_metrics"]) ? $this->scope["host_metrics"] : null);
43if ($this->isTraversable($_fh0_data) == true)
44{
45        foreach ($_fh0_data as $this->scope['metric'])
46        {
47/* -- foreach start output */
48?>
49      <?php $this->scope["graphId"]=((isset($this->scope["GRAPH_BASE_ID"]) ? $this->scope["GRAPH_BASE_ID"] : null)).("dg_").((isset($this->scope["i"]) ? $this->scope["i"] : null))?>
50
51      <?php $this->scope["showEventsId"]=((isset($this->scope["SHOW_EVENTS_BASE_ID"]) ? $this->scope["SHOW_EVENTS_BASE_ID"] : null)).("dg_").((isset($this->scope["i"]) ? $this->scope["i"] : null))?>
52
53      <div class="img_view"><font style="font-size: 9px"><?php echo $this->scope["metric"];?></font>
54        <button title="Export to CSV" class="cupid-green" onClick="javascript:location.href='graph.php?<?php echo $this->scope["metric"];
55echo $this->scope["hreg"];
56echo $this->scope["graphargs"];?>&amp;csv=1';return false;">CSV</button>
57        <button title="Export to JSON" class="cupid-green" onClick="javascript:location.href='graph.php?<?php echo $this->scope["metric"];
58echo $this->scope["hreg"];
59echo $this->scope["graphargs"];?>&amp;json=1';return false;">JSON</button>
60        <button title="Decompose aggregate graph" class="shiny-blue" onClick="javascript:location.href='?mreg[]=%5E<?php echo $this->scope["metric"];?>%24<?php echo $this->scope["hreg"];?>&amp;dg=1';return false;">Decompose</button>
61        <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>
62        <br /><a href="graph_all_periods.php?title=<?php echo $this->scope["metric"];?>&mreg[]=%5E<?php echo $this->scope["metric"];?>%24<?php echo $this->scope["hreg"];?>&aggregate=1&hl=<?php echo $this->scope["host_list"];?>"><img id="<?php echo $this->scope["graphId"];?>" style="margin-top:5px;" class="noborder <?php echo $this->scope["additional_host_img_css_classes"];?>" src="graph.php?title=<?php echo $this->scope["metric"];?>&mreg[]=%5E<?php echo $this->scope["metric"];?>%24$<?php echo $this->scope["hreg"];
63echo $this->scope["graphargs"];?>&aggregate=1&hl=<?php echo $this->scope["host_list"];?>" /></a>
64      </div>
65      <?php echo ($this->assignInScope((isset($this->scope["i"]) ? $this->scope["i"] : null) + 1, 'i'));?>
66
67      <?php 
68/* -- foreach end output */
69        }
70}?>
71
72    <?php 
73}?>
74
75    <?php 
76}?>
77
78  </div>
79</div>
80<div style="clear: left"></div>
81<?php  /* end template body */
82return $this->buffer . ob_get_clean();
83?>
Note: See TracBrowser for help on using the repository browser.