2 {include file="page_header.tpl"}
5 <script language="Javascript" type="text/javascript">
9 for (var i=0; i<document.qlist.elements.length; i++)
11 var e = document.qlist.elements[i];
12 if (e.type == 'checkbox' && e.name != 'allbox')
13 e.checked = document.qlist.allbox.checked;
17 function CheckToggle(checkname)
19 checkname.checked = !checkname.checked;
24 for (var i=0; i<document.qlist.elements.length; i++)
26 var e = document.qlist.elements[i];
27 if (e.type == 'checkbox' && e.name != 'allbox')
28 e.checked = document.qlist.allbox.checked;
32 function CheckToggle(checkname)
34 checkname.checked = !checkname.checked;
39 function TimerDown(secs)
45 function TimerDisplay(secs)
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;
61 document.fcounter.counter.value = TimerDisplay(total_secs);
62 down=setTimeout("CountDown()",1000);
66 function toggleBox(mybox1, mybox2)
70 if (document.all.item(mybox1).style.display == "none")
72 document.all.item(mybox1).style.display = "";
73 document.all.item(mybox2).style.display = "none";
77 document.all.item(mybox2).style.display = "";
78 document.all.item(mybox1).style.display = "none";
83 if (document.getElementById(mybox1).style.display == "none")
85 document.getElementById(mybox1).style.display = "";
86 document.getElementById(mybox2).style.display = "none";
90 document.getElementById(mybox2).style.display = "";
91 document.getElementById(mybox1).style.display = "none";
100 <table width="100%" cellpadding="2" cellspacing="0" border="0">
103 <table cellpadding="1" cellspacing="5" border="0">
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>
116 <table width="100%" border="0" cellpadding="0" cellspacing="10">
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">
123 <th colspan="10">Refresh</th>
125 <form action="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter">
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>
135 {if $tool_refresh_rate > 0}
138 <input type="text" name="counter" value="" readonly class="refresh_counter">
139 <script language="Javascript" type="text/javascript">
141 TimerDown({$tool_refresh_rate});
152 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
154 <th colspan="10">Domains</th>
156 {section name=domain loop=$tool_domain_list}
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>
163 {if $tool_domain_selected}
165 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
167 <th colspan="10">Shards</th>
169 {section name=shard loop=$tool_shard_list}
170 {if $tool_domain_selected == $tool_shard_list[shard].shard_domain_id}
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>
178 {if $tool_frame_list}
180 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
182 <th colspan="10">Time Frame</th>
184 {section name=frame loop=$tool_frame_list}
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>
192 {if $tool_graph_list}
194 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
196 <th colspan="10">Graphs</th>
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>
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>
220 <td width="10px"> </td>
222 <td align="right" valign="top">
224 {if $tool_domain_error}
225 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
227 <td class="row0"><span class="alert">{$tool_domain_error}</span></td>
230 {elseif !$tool_domain_selected}
231 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
233 <td class="row0">You need to select a domain.</td>
238 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
240 <td class="row0"><span class="alert">{$tool_as_error}</span></td>
245 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
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>
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>
274 {include file="page_footer.tpl"}