source: branches/0.4/web/addons/job_monarch/dwoo/compiled/compiled/templates/default/decompose_graph.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: 2.6 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<script>
10  function refreshDecomposeGraph() {
11    $("#decompose-graphs img").each(function (index) {
12        var src = $(this).attr("src");
13        if (src.indexOf("graph.php") == 0) {
14          var l = src.indexOf("&_=");
15          if (l != -1)
16            src = src.substring(0, l);
17          var d = new Date();
18          $(this).attr("src", src + "&_=" + d.getTime());
19        }   
20    });
21  }
22
23  $(function() {
24    $( "#popup-dialog" ).dialog({ autoOpen: false, minWidth: 850 });
25    $("#create_view_button")
26      .button()
27      .click(function() {
28        $( "#create-new-view-dialog" ).dialog( "open" );
29    });;
30  });
31</script>
32<div id="metric-actions-dialog" title="Metric Actions">
33<div id="metric-actions-dialog-content">
34        Available Metric actions.
35</div>
36</div>
37<div id="popup-dialog" title="Inspect Graph">
38  <div id="popup-dialog-content">
39  </div>
40</div>
41<div id="decompose-graph-content">
42  <div id=decompose-graphs>
43    <?php if ((isset($this->scope["number_of_items"]) ? $this->scope["number_of_items"] : null) == 0) {
44?>
45    <div class="ui-widget">
46      <div class="ui-state-default ui-corner-all" style="padding: 0 .7em;">
47        <p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
48          No graphs decomposed
49      </div>
50    </div>
51    <?php 
52}
53else {
54?>
55      <?php 
56$_fh0_data = (isset($this->scope["items"]) ? $this->scope["items"] : null);
57if ($this->isTraversable($_fh0_data) == true)
58{
59        foreach ($_fh0_data as $this->scope['item'])
60        {
61/* -- foreach start output */
62?>
63      <div class="img_view">
64        <button title="Export to CSV" class="cupid-green" onClick="javascript:location.href='graph.php?<?php echo $this->scope["item"]["url_args"];?>&amp;csv=1';return false;">CSV</button>
65        <button title="Export to JSON" class="cupid-green" onClick="javascript:location.href='graph.php?<?php echo $this->scope["item"]["url_args"];?>&amp;json=1';return false;">JSON</button>
66        <button title="Inspect Graph" onClick="inspectGraph('<?php echo $this->scope["item"]["url_args"];?>'); return false;" class="shiny-blue">Inspect</button>
67        <br /><a href="graph_all_periods.php?<?php echo $this->scope["item"]["url_args"];?>"><img class="noborder <?php echo $this->scope["additional_host_img_css_classes"];?>" style="margin-top:5px;" src="graph.php?<?php echo $this->scope["item"]["url_args"];?>" /></a>
68      </div>
69      <?php 
70/* -- foreach end output */
71        }
72}?>
73
74    <?php 
75}?>
76
77  </div>
78</div>
79<div style="clear: left"></div>
80<?php  /* end template body */
81return $this->buffer . ob_get_clean();
82?>
Note: See TracBrowser for help on using the repository browser.