Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / admin / templates / default / tool_graphs.tpl
blob9dcd896a5f480ddb9edc098a381a8de62e0cad8c
2 {include file="page_header.tpl"}
4 {literal}
5 <script language="Javascript" type="text/javascript">
6 <!--
7         function CheckAll()
8         {
9                 for (var i=0; i<document.qlist.elements.length; i++)
10                 {
11                         var e = document.qlist.elements[i];
12                         if (e.type == 'checkbox' && e.name != 'allbox')
13                                 e.checked = document.qlist.allbox.checked;
14                 }
15         }
17         function CheckToggle(checkname)
18         {
19                 checkname.checked = !checkname.checked;
20         }
22         function CheckAll()
23         {
24                 for (var i=0; i<document.qlist.elements.length; i++)
25                 {
26                         var e = document.qlist.elements[i];
27                         if (e.type == 'checkbox' && e.name != 'allbox')
28                                 e.checked = document.qlist.allbox.checked;
29                 }
30         }
32         function CheckToggle(checkname)
33         {
34                 checkname.checked = !checkname.checked;
35         }
37         var total_secs;
39         function TimerDown(secs)
40         {
41                 total_secs = secs;
42                 CountDown();
43         }
45         function TimerDisplay(secs)
46         {
47                 timer_min = Math.floor(secs / 60);
48                 timer_sec = secs % 60;
50                 if (timer_min < 10) timer_min = '0'+ timer_min;
51                 if (timer_sec < 10) timer_sec = '0'+ timer_sec;
53                 return timer_min+':'+timer_sec;
54         }
56         function CountDown()
57         {
58                 total_secs--;
59                 if (total_secs >= 0)
60                 {
61                         document.fcounter.counter.value = TimerDisplay(total_secs);
62                         down=setTimeout("CountDown()",1000);
63                 }
64         }
66         function toggleBox(mybox1, mybox2)
67         {
68                 if (document.all)
69                 {
70                         if (document.all.item(mybox1).style.display == "none")
71                         {
72                                 document.all.item(mybox1).style.display = "";
73                                 document.all.item(mybox2).style.display = "none";
74                         }
75                         else
76                         {
77                                 document.all.item(mybox2).style.display = "";
78                                 document.all.item(mybox1).style.display = "none";
79                         }
80                 }
81                 else
82                 {
83                         if (document.getElementById(mybox1).style.display == "none")
84                         {
85                                 document.getElementById(mybox1).style.display = "";
86                                 document.getElementById(mybox2).style.display = "none";
87                         }
88                         else
89                         {
90                                 document.getElementById(mybox2).style.display = "";
91                                 document.getElementById(mybox1).style.display = "none";
92                         }
93                 }
94         }
96 //-->
97 </script>
98 {/literal}
100 <table width="100%" cellpadding="2" cellspacing="0" border="0">
101         <tr>
102                 <td align="right">
103                         <table cellpadding="1" cellspacing="5" border="0">
104                                 <tr>
105                                         {section name=onemenu loop=$tool_menu}
106                                         <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
107                                         {/section}
108                                 </tr>
109                         </table>
110                 </td>
111         </tr>
112 </table>
114 <br>
116 <table width="100%" border="0" cellpadding="0" cellspacing="10">
117 <tr>
118         <td align="left" valign="top" width="150px">
120 {if $tool_domain_selected && $tool_shard_selected}
121                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
122                 <tr>
123                         <th colspan="10">Refresh</th>
124                 </tr>
125                 <form action="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter">
126                 <tr>
127                         <td>
128                                 <select name="services_refresh" style="width:100%;" onchange="this.form.submit();">
129 {section name=refresh loop=$tool_refresh_list}
130                                         <option value="{$tool_refresh_list[refresh].secs}" {if $tool_refresh_rate == $tool_refresh_list[refresh].secs}selected{/if}>{$tool_refresh_list[refresh].desc}</option>
131 {/section}
132                                 </select>
133                         </td>
134                 </tr>
135 {if $tool_refresh_rate > 0}
136                 <tr>
137                         <td>
138                                 <input type="text" name="counter" value="" readonly class="refresh_counter">
139                                 <script language="Javascript" type="text/javascript">
140                                         <!--
141                                         TimerDown({$tool_refresh_rate});
142                                         -->
143                                 </script>
144                         </td>
145                 </tr>
146 {/if}
147                 </form>
148                 </table>
149                 <br>
150 {/if}
152                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
153                 <tr>
154                         <th colspan="10">Domains</th>
155                 </tr>
156 {section name=domain loop=$tool_domain_list}
157                 <tr>
158                         <td align="center" class="{if $tool_domain_selected == $tool_domain_list[domain].domain_id}domainlistselected{else}domainlist{/if}"><a href="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_list[domain].domain_id}">{$tool_domain_list[domain].domain_name}</a></td>
159                 </tr>
160 {/section}
161                 </table>
163 {if $tool_domain_selected}
164                 <br>
165                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
166                 <tr>
167                         <th colspan="10">Shards</th>
168                 </tr>
169 {section name=shard loop=$tool_shard_list}
170 {if $tool_domain_selected == $tool_shard_list[shard].shard_domain_id}
171                 <tr>
172                         <td align="center" class="{if $tool_shard_selected == $tool_shard_list[shard].shard_id}shardlistselected{else}shardlist{/if}"><a href="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_list[shard].shard_id}">{$tool_shard_list[shard].shard_name}</a></td>
173                 </tr>
174 {/if}
175 {/section}
176                 </table>
178 {if $tool_frame_list}
179 <!--            <br>
180                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
181                 <tr>
182                         <th colspan="10">Time Frame</th>
183                 </tr>
184 {section name=frame loop=$tool_frame_list}
185                 <tr>
186                         <td align="center" class="{if $tool_frame_selected == $tool_frame_list[frame].value}shardlistselected{else}shardlist{/if}"><a href="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}&frame={$tool_frame_list[frame].value}">{$tool_frame_list[frame].title}</a></td>
187                 </tr>
188 {/section}
189                 </table>-->
190 {/if}
192 {if $tool_graph_list}
193                 <br>
194                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
195                 <tr>
196                         <th colspan="10">Graphs</th>
197                 </tr>
198 {section name=gvar loop=$tool_graph_variables}
199                 <tr class="row1_static" style="border: 1px solid #000000;">
200                         <td align="left"><b>{$tool_graph_variables[gvar]}</b></td>
201                         <!--<td align="center"><small>Low</small></td>-->
202                         <td align="center"><small>High</small></td>
203                 </tr>
204 {assign var="var_name" value=$tool_graph_variables[gvar]}
205 {section name=gdata loop=$tool_graph_datas.$var_name}
206                 <tr class="{if ($tool_graph_variable_selected == $var_name) && ($tool_graph_service_selected == $tool_graph_datas.$var_name[gdata].service)}varlistselected{else}varlist{/if}">
207                         <td align="left"><a href="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}&variable={$var_name}&service={$tool_graph_datas.$var_name[gdata].service}">{$tool_graph_datas.$var_name[gdata].service}</a></td>
208                         <!--<td align="center"><small>{if $tool_graph_datas.$var_name[gdata].low_file != ''}Yes{else}No{/if}</small></td>-->
209                         <td align="center"><small>{if $tool_graph_datas.$var_name[gdata].high_file != ''}Yes{else}No{/if}</small></td>
210                 </tr>
211 {/section}
212 {/section}
213                 </table>
214 {/if}
216 {/if}
218         </td>
220         <td width="10px">&nbsp;</td>
222         <td align="right" valign="top">
224 {if $tool_domain_error}
225                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
226                 <tr>
227                         <td class="row0"><span class="alert">{$tool_domain_error}</span></td>
228                 </tr>
229                 </table>
230 {elseif !$tool_domain_selected}
231                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
232                 <tr>
233                         <td class="row0">You need to select a domain.</td>
234                 </tr>
235                 </table>
236 {else}
237 {if $tool_as_error}
238                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
239                 <tr>
240                         <td class="row0"><span class="alert">{$tool_as_error}</span></td>
241                 </tr>
242                 </table>
243                 <br>
244 {/if}
245                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
246                 <tr>
247                         <td class="row0" width="50%" valign="top">
248 {if $tool_rrd_output}
249 {section name=rrd loop=$tool_rrd_output}
250                                 {$tool_rrd_output[rrd].desc}<br>
251                                 <img src="{$tool_rrd_output[rrd].img}" border="0"><br>
252 {/section}
253 {/if}
254                         </td>
255                         <td class="row0" width="50%" valign="top">
256 {if $tool_rrd_high_output}
257 {section name=rrd loop=$tool_rrd_high_output}
258                                 <b>{$tool_rrd_high_output[rrd].desc}</b><br>
259 {if $tool_rrd_high_output[rrd].img != ''}
260                                 <img src="{$tool_rrd_high_output[rrd].img}" border="0"><br>
261 {/if}
262 {/section}
263 {/if}
264                         </td>
265                 </tr>
266                 </table>
267 {/if}
269         </td>
270 </tr>
271 </table>
274 {include file="page_footer.tpl"}