Fix checkRpItemsPosition
[ryzomcore.git] / web / public_php / admin / templates / default / index.tpl
blob6f7dea40fef9fcf4b4e7cdb25d272044100362b3
1 {include file="page_header.tpl"}
3 {literal}
4 <script language="Javascript" type="text/javascript">
5 <!--
6         function CheckAll()
7         {
8                 for (var i=0; i<document.qlist.elements.length; i++)
9                 {
10                         var e = document.qlist.elements[i];
11                         if (e.type == 'checkbox' && e.name != 'allbox')
12                                 e.checked = document.qlist.allbox.checked;
13                 }
14         }
16         function CheckToggle(checkname)
17         {
18                 checkname.checked = !checkname.checked;
19         }
21         var total_secs;
23         function TimerDown(secs)
24         {
25                 total_secs = secs;
26                 CountDown();
27         }
29         function TimerDisplay(secs)
30         {
31                 timer_min = Math.floor(secs / 60);
32                 timer_sec = secs % 60;
34                 if (timer_min < 10) timer_min = '0'+ timer_min;
35                 if (timer_sec < 10) timer_sec = '0'+ timer_sec;
37                 return timer_min+':'+timer_sec;
38         }
40         function CountDown()
41         {
42                 total_secs--;
43                 if (total_secs >= 0)
44                 {
45                         document.fcounter.counter.value = TimerDisplay(total_secs);
46                         down=setTimeout("CountDown()",1000);
47                 }
48         }
50         function toggleBox(mybox1, mybox2)
51         {
52                 if (document.all)
53                 {
54                         if (document.all.item(mybox1).style.display == "none")
55                         {
56                                 document.all.item(mybox1).style.display = "";
57                                 document.all.item(mybox2).style.display = "none";
58                         }
59                         else
60                         {
61                                 document.all.item(mybox2).style.display = "";
62                                 document.all.item(mybox1).style.display = "none";
63                         }
64                 }
65                 else
66                 {
67                         if (document.getElementById(mybox1).style.display == "none")
68                         {
69                                 document.getElementById(mybox1).style.display = "";
70                                 document.getElementById(mybox2).style.display = "none";
71                         }
72                         else
73                         {
74                                 document.getElementById(mybox2).style.display = "";
75                                 document.getElementById(mybox1).style.display = "none";
76                         }
77                 }
78         }
80         function openWindow(w_uri, w_title)
81         {
82                 window.open(w_uri, w_title, 'width=800,height=600,directories=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no');
83         }
85 //-->
86 </script>
87 {/literal}
89 <br>
91 <table width="100%" border="0" cellpadding="0" cellspacing="10">
92 <tr>
93         <td align="left" valign="top" width="150px">
95 {if $tool_domain_selected && $tool_shard_selected}
96                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
97                 <tr>
98                         <th colspan="10">Refresh</th>
99                 </tr>
100                 <form action="index.php?domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter">
101                 <tr>
102                         <td>
103                                 <select name="services_refresh" style="width:100%;" onchange="this.form.submit();">
104 {section name=refresh loop=$tool_refresh_list}
105                                         <option value="{$tool_refresh_list[refresh].secs}" {if $tool_refresh_rate == $tool_refresh_list[refresh].secs}selected{/if}>{$tool_refresh_list[refresh].desc}</option>
106 {/section}
107                                 </select>
108                         </td>
109                 </tr>
110 {if $tool_refresh_rate > 0}
111                 <tr>
112                         <td>
113                                 <input type="text" name="counter" value="" readonly class="refresh_counter">
114                                 <script language="Javascript" type="text/javascript">
115                                         <!--
116                                         TimerDown({$tool_refresh_rate});
117                                         -->
118                                 </script>
119                         </td>
120                 </tr>
121 {/if}
122                 </form>
123                 </table>
124                 <br>
125 {/if}
127                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
128                 <tr>
129                         <th colspan="10">Domains</th>
130                 </tr>
131 {section name=domain loop=$tool_domain_list}
132                 <tr>
133                         <td align="center" class="{if $tool_domain_selected == $tool_domain_list[domain].domain_id}domainlistselected{else}domainlist{/if}"><a href="index.php?domain={$tool_domain_list[domain].domain_id}">{$tool_domain_list[domain].domain_name}</a></td>
134                 </tr>
135 {/section}
136                 </table>
138 {if $tool_domain_selected}
139                 <br>
140                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
141                 <tr>
142                         <th colspan="10">Shards</th>
143                 </tr>
144 {section name=shard loop=$tool_shard_list}
145 {if $tool_domain_selected == $tool_shard_list[shard].shard_domain_id}
146                 <tr>
147                         <td align="center" class="{if $tool_shard_selected == $tool_shard_list[shard].shard_id}shardlistselected{else}shardlist{/if}"><a href="index.php?domain={$tool_domain_selected}&shard={$tool_shard_list[shard].shard_id}">{$tool_shard_list[shard].shard_name}</a></td>
148                 </tr>
149 {/if}
150 {/section}
151                 </table>
152 {/if}
154 {if $restriction_tool_notes && $tool_note_list}
155                 <br>
156                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
157                 <tr>
158                         <th colspan="10">Notes</th>
159                 </tr>
160 {section name=note loop=$tool_note_list}
161                 <tr>
162 {if $tool_note_list[note].note_mode == 0}
163                         <td align="center"><a href="javascript:void(0);" onclick="return overlib('{$tool_note_list[note].note_data}', WIDTH, 250, STICKY, DRAGGABLE, CAPTION, '{$tool_note_list[note].note_title2}', CENTER, CLOSECLICK, ANCHOR, 'ol_anchor_right', ANCHORALIGN, 'LL', 'UR');" onmouseout="nd();">{$tool_note_list[note].note_title}</a></td>
164 {elseif $tool_note_list[note].note_mode == 1}
165                         <td align="center"><a href="javascript:openWindow('{$tool_note_list[note].note_popup_uri}','{$tool_note_list[note].note_title}');">{$tool_note_list[note].note_title}</a></td>
166 {/if}
167                 </tr>
168 {/section}
169                 </table>
170 {/if}
172 {if $tool_hd_list}
173                 <br>
174                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
175                 <tr>
176                         <th colspan="10">HardDrives</th>
177                 </tr>
178 {section name=hd loop=$tool_hd_list}
179 {if $tool_hd_list[hd].hd_percent >= 85}{assign var="hdtrclass" value="row_red"}
180 {elseif $tool_hd_list[hd].hd_percent >= 75}{assign var="hdtrclass" value="row_orange_light"}
181 {else}{assign var="hdtrclass" value="row0"}{/if}
182                 <tr class="{$hdtrclass}">
183                         <td align="left" ><a href="javascript:void(0);" onmouseover="return overlib('{$tool_hd_list[hd].summary}', OFFSETX, 40, OFFSETY, 10);" onmouseout="return nd();">{$tool_hd_list[hd].hd_server}</a></td>
184                         <td align="right">{$tool_hd_list[hd].hd_percent}%</td>
185                 </tr>
186 {/section}
187                 <tr>
188                         <th colspan="10"><small>{$tool_hd_time|date_format:"%Y/%m/%d %H:%M:%S"}</small></th>
189                 </tr>
190                 </table>
191 {/if}
193         </td>
195         <td width="10px">&nbsp;</td>
197         <td align="right" valign="top">
198 {if $tool_domain_selected && $tool_shard_selected}
199                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
200                 <form action="index.php" method="post">
201 {if $tool_annotation_info || $tool_has_lock}
202                 <tr>
203                         <th width="10%">Annotation</th>
204                         <td><input type="text" name="annotation" value="{$tool_annotation_info.annotation_data}" maxlength="255" size="80" {if !$tool_has_lock}readonly{/if}> {if $tool_has_lock}<input type="submit" name="lock" value="update annotation">{/if}
205 {if $tool_annotation_info}
206                         ({$tool_annotation_info.annotation_user_name} @ {$tool_annotation_info.annotation_date|date_format:"%Y/%m/%d %H:%M:%S"})
207 {/if}
208                         </td>
209                 </tr>
210 {/if}
211                 <tr>
212                         <th width="10%">Lock</th>
213                         <td>
214 {if $tool_no_lock}
215 {* if (!$tool_lock_info || $tool_lock_info.lock_shard_id) && !$tool_cant_lock && ($tool_shard_restart_status == 0) && !$tool_no_domain_lock *}
216 {if (!$tool_lock_info || $tool_lock_info.lock_shard_id) && !$tool_cant_lock && !$tool_no_domain_lock}
217                                 {if $restriction_tool_main_lock_shard}<input type="submit" name="lock" value="lock shard">{/if}
218 {else}
219                                 Lock unavailable, a restart sequence is active !
220 {/if}
221 {if ($tool_shard_restart_status == 0) && ($tool_domain_has_shard_restart == 0)}
222                                 {if $restriction_tool_main_lock_domain}<input type="submit" name="lock" value="lock domain">{/if}
223 {/if}
224 {elseif $tool_has_shard_lock}
225 {if $tool_shard_restart_status == 0}
226                                 <input type="submit" name="lock" value="unlock shard">
227 {/if}
228 {if ($tool_shard_restart_status == 0) && ($tool_domain_has_shard_restart == 0)}
229                                 {if $restriction_tool_main_lock_domain}<input type="submit" name="lock" value="lock domain">{/if}
230 {elseif $tool_shard_restart_status > 0}
231                                 Restart Sequence is active !
232 {/if}
234 {if $restriction_tool_main_easy_restart && ($tool_shard_restart_status == 0)}
235                                 <input type="submit" name="lock" value="restart sequence" class="restart" onclick="if (confirm('Are you sure you want to engage the RESTART SEQUENCE for this shard ?')) return true; return false;">
236                                 <input type="hidden" name="restart_ws_state" value="{$tool_restart_ws_state}">
237 {/if}
239 {elseif $tool_has_domain_lock}
240                                 <input type="submit" name="lock" value="unlock domain">
241 {/if}
242 {if $tool_lock_info}
243 {if $tool_lock_info.lock_domain_id} Domain{elseif $tool_lock_info.lock_shard_id} Shard{/if}
244                                 Locked by <b>{$tool_lock_info.lock_user_name}</b> @ {$tool_lock_info.lock_date|date_format:"%Y/%m/%d %H:%M:%S"}
245 {else}
246                                 Unlocked.
247 {/if}
248                         </td>
249                 </tr>
251                 </form>
252                 </table>
253                 <br>
254 {/if}
256 {if !$tool_domain_selected}
257                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
258                 <tr>
259                         <td class="row0">You need to select a domain.</td>
260                 </tr>
261                 </table>
262 {elseif !$tool_shard_selected}
263                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
264                 <tr>
265                         <td class="row0">You need to select a shard.</td>
266                 </tr>
267                 </table>
268 {elseif $tool_domain_error}
269                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
270                 <tr>
271                         <td class="row0"><span class="alert">{$tool_domain_error}</span></td>
272                 </tr>
273                 </table>
274 {else}
275 {if $tool_as_error}
276                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
277                 <tr>
278                         <td class="row0"><span class="alert">{$tool_as_error}</span></td>
279                 </tr>
280                 </table>
281                 <br>
282 {/if}
283                 <form action="index.php" method="post" name="qlist">
284                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
285                 <tr>
286                         <td class="heads"><input class="check" type="checkbox" name="allbox" value="1" onclick="CheckAll();"></td>
287                         <td class="heads">AliasName</td>
288 {if !$iPhone}
289                         <td class="heads">Shard</td>
290 {*<td class="heads">LongName</td>*}
291                         <td class="heads">ShortName</td>
292 {*<td class="heads">ServiceAlias</td>*}
293                         <td class="heads">Hostname</td>
294                         <td class="heads">Running State</td>
295                         <td class="heads">Running Orders</td>
296                         <td class="heads">Running Tags</td>
297 {/if}
298                         <td class="heads">State</td>
299                         <td class="heads">Rep</td>
300                         <td class="heads">Start Cntrs</td>
301 {if !$iPhone}
302                         <td class="heads">User SL</td>
303 {/if}
304                         <td class="heads">Tick SL</td>
305                         <td class="heads">Mem</td>
306                         <td class="heads">Nb Play</td>
307                         <td class="heads">UpTime</td>
308                 </tr>
309 {section name=service loop=$tool_services_list}
310 {assign var="service_shard_id" value=$tool_services_list[service].ShardName}
311 {if $tool_shard_filters.$service_shard_id || $tool_shard_filters._all_ || ($tool_shard_filters._unknown_ && !$tool_services_list[service].ShardName)}
312 {cycle assign="trclass" values="row0,row1"}
313 {assign var="tdclass1" value=""}
314 {assign var="tdclass2" value=""}
315 {if $tool_services_list[service]._flags_.rs_stopped}{assign var="tdclass1" value="class=\"cell_inactive1\""}{assign var="tdclass2" value="class=\"cell_inactive2\""}{assign var="trclass" value="row_stopped"}{/if}
316 {if $tool_services_list[service]._flags_.rs_starting}{* assign var="tdclass1" value="class=\"cell_inactive1\"" *}{assign var="tdclass2" value="class=\"cell_inactive2\""}{assign var="trclass" value="row_starting"}{/if}
317 {if $tool_services_list[service]._flags_.alert_red && ($tool_services_list[service]._flags_.rs_starting || $tool_services_list[service]._flags_.rs_online)}{assign var="trclass" value="row_red"}
318 {elseif $tool_services_list[service]._flags_.alert_orange_dark && ($tool_services_list[service]._flags_.rs_starting || $tool_services_list[service]._flags_.rs_online)}{assign var="trclass" value="row_orange_dark"}
319 {elseif $tool_services_list[service]._flags_.alert_orange_light && ($tool_services_list[service]._flags_.rs_starting || $tool_services_list[service]._flags_.rs_online)}{assign var="trclass" value="row_orange_light"}{/if}
320 {assign var="check_name" value=$tool_services_list[service].AliasName}
321                 <tr class="{$trclass}">
322                         <td><input class="check" type="checkbox" name="service_{$tool_services_list[service].AliasName}" value="{$tool_services_list[service].AliasName}" {if $tool_service_select_list.$check_name}checked{/if}></td>
323                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass1}>{$tool_services_list[service].AliasName}</td>
324 {if !$iPhone}
325                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass1}>{if $tool_services_list[service].ShardName != ""}{$tool_services_list[service].ShardName}{else}?{/if}{if $tool_services_list[service].ShardId != ""}/{$tool_services_list[service].ShardId}{/if}</td>
326 {*<td>{$tool_services_list[service].LongName}</td>*}
327                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass1}>{$tool_services_list[service].ShortName}</td>
328 {*<td>{$tool_services_list[service].ServiceAlias}</td>*}
329                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass1}>{$tool_services_list[service].Hostname}</td>
330                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass1}>{$tool_services_list[service].RunningState}</td>
331                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass1}>{$tool_services_list[service].RunningOrders}</td>
332                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass1}>{$tool_services_list[service].RunningTags}</td>
333 {/if}
334                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass2}>{$tool_services_list[service].State}</td>
335                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass2}>{$tool_services_list[service].NoReportSince}</td>
336                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass2}>{$tool_services_list[service].StartCounter}</td>
337 {if !$iPhone}
338                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass2}>{$tool_services_list[service].UserSpeedLoop}</td>
339 {/if}
340                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass2}>{$tool_services_list[service].TickSpeedLoop}</td>
341                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass2}>{$tool_services_list[service].ProcessUsedMemory}</td>
342                         <td onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass2}>{$tool_services_list[service].NbPlayers}</td>
343                         <td nowrap onclick="CheckToggle(document.qlist.service_{$tool_services_list[service].AliasName})" {$tdclass2}>{$tool_services_list[service].UpTime}</td>
344                 </tr>
345 {/if}
346 {/section}
347                 </table>
349                 <!-- ugly trick to block the first submit button being triggered when hitting ENTER to send the form -->
350                 <div style="display: none;"><input type="submit" name="fake" value="fake" onclick="alert('PLEASE DO NOT USE THE &lt;ENTER&gt; KEY !'); return false;"></div>
351                 <!-- end ugly trick :) -->
353 {if $restriction_tool_main_easy_restart && ($tool_shard_restart_status > 0)}
355 {include file="index_restart_sequence.tpl"}
357 {else}
359 {* if $restriction_tool_main_ws *}
360                 <br>
361                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
362                 <tr>
363                         <td align="right" width="100px"><b>WS : </b>{if $restriction_tool_main_ws_old && $restriction_tool_main_ws}<br><small><a href="javascript:toggleBox('ws_old','ws_new');">new/old</a></small>{/if}</td>
364                         <td>
365 {if $restriction_tool_main_ws_old && $restriction_tool_main_ws}
366 <div id="ws_old" style="display: none;">
367                                 &nbsp;
368                                 <input type="submit" name="services_update" value="open ws"      onclick="if (confirm('Are you sure you want to OPEN the selected WS services ?')) return true; return false;">&nbsp;
369                                 <input type="submit" name="services_update" value="lock ws"      onclick="if (confirm('Are you sure you want to LOCK the selected WS services ?')) return true; return false;">&nbsp;
370                                 <input type="submit" name="services_update" value="close ws" onclick="if (confirm('Are you sure you want to CLOSE the selected WS services ?')) return true; return false;">&nbsp;
371 </div>
372 {/if}
373 <div id="ws_new">
374                                 <table width="100%" border="0" cellpadding="1">
375 {if $restriction_tool_main_ws}
376                                         <input type="hidden" name="ws_su" value="{$tool_shard_su_name}">
377                                         <input type="hidden" name="ws_shard_name" value="">
378                                         <input type="hidden" name="ws_shard_id" value="">
379 {/if}
380 {section name=shard loop=$tool_shard_run_list}
381 {assign var="sname" value=$tool_shard_run_list[shard]}
382 {if $tool_shard_infos[$sname] && $tool_shard_su_name}
383                                         <tr>
384                                                 <td width="10%">&nbsp;<b>{$tool_shard_run_list[shard]}</b></td>
385                                                 <td width="10%">
386                                                         <select name="ws_state_{$sname}" {if !$restriction_tool_main_ws}disabled{/if}>
387 {section name=state loop=$tool_shard_ws_states}
388                                                                 <option class="ws_{$tool_shard_ws_states[state]}" value="{$tool_shard_ws_states[state]}" {if $tool_shard_infos[$sname].state == $tool_shard_ws_states[state]}selected{/if}>{$tool_shard_ws_states[state]}</option>
389 {/section}
390                                                         </select></td>
391                                                 <td width="20%"><input type="text" name="ws_motd_{$sname}" value="{$tool_shard_infos[$sname].motd}" maxlength="255" size="40" {if !$restriction_tool_main_ws}disabled{/if}></td>
392                                                 <td width="20%">
393 {if $restriction_tool_main_ws}
394                                                         <input type="submit" name="ws_update" value="update WS" onclick="if (confirm('Are you sure you want to change the WS State for shard &lt;{$sname}&gt; ?')) {ldelim} this.form.ws_shard_name.value='{$sname}'; this.form.ws_shard_id.value='{$tool_shard_infos[$sname].shard_id}'; return true; {rdelim} else {ldelim} return false; {rdelim}">
395 {/if}
396                                                 &nbsp;</td>
397                                                 <td>&nbsp;</td>
398                                         </tr>
399 {/if}
400 {/section}
401                                 </table>
402 </div>
403                         </td>
404                 </tr>
405                 </table>
406 {* /if *}
408 {if $restriction_tool_main_start || $restriction_tool_main_stop || $restriction_tool_main_restart || $restriction_tool_main_kill || $restriction_tool_main_abort || $restriction_tool_main_reset_counters || $restriction_tool_main_service_autostart}
409                 <br>
410                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
411                 <tr>
412                         <td align="right" width="100px"><b>Services : </b></td>
413                         <td>&nbsp;
414 {if $restriction_tool_main_start}
415                                 <input type="submit" name="services_update" value="start"       onclick="if (confirm('Are you sure you want to START the selected services ?')) return true; return false;">&nbsp;
416 {/if}
417 {if $restriction_tool_main_stop}
418                                 <input type="submit" name="services_update" value="stop"        onclick="if (confirm('Are you sure you want to STOP the selected services ?')) return true; return false;">&nbsp;
419 {/if}
420 {if $restriction_tool_main_restart}
421                                 <input type="submit" name="services_update" value="restart"     onclick="if (confirm('Are you sure you want to RESTART the selected services ?')) return true; return false;">&nbsp;
422 {/if}
423 {if $restriction_tool_main_kill}
424                                 <input type="submit" name="services_update" value="kill"        onclick="if (confirm('Are you sure you want to KILL the selected services ?')) return true; return false;">&nbsp;
425 {/if}
426 {if $restriction_tool_main_abort}
427                                 <input type="submit" name="services_update" value="abort"       onclick="if (confirm('Are you sure you want to ABORT the selected services ?')) return true; return false;">&nbsp;
428 {/if}
429 {if $restriction_tool_main_service_autostart}
430                                 <input type="submit" name="services_update" value="activate"    onclick="if (confirm('Are you sure you want to ACTIVATE the selected services ?')) return true; return false;">&nbsp;
431                                 <input type="submit" name="services_update" value="deactivate"  onclick="if (confirm('Are you sure you want to DEACTIVATE the selected services ?')) return true; return false;">&nbsp;
432 {/if}
433 {if $restriction_tool_main_reset_counters}
434                                 <input type="submit" name="services_update" value="reset counters"      onclick="if (confirm('Are you sure you want to RESET START COUNTERS on the selected services (AES only) ?')) return true; return false;">&nbsp;
435 {/if}
436                         </td>
437                 </tr>
438                 </table>
439 {/if}
441 {if $restriction_tool_main_shard_autostart && $tool_shard_run_list}
442                 <br>
443                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
444                 <tr>
445                         <td align="right" width="100px"><b>Shards : </b></td>
446                         <td><table width="100%" border="0" cellpadding="1">
447                                 <input type="hidden" name="shards_update_name" value="">
448 {section name=shard loop=$tool_shard_run_list}
449 {assign var="sname" value=$tool_shard_run_list[shard]}
450                                 <tr>
451                                         <td width="10%">&nbsp;<b>{$tool_shard_run_list[shard]}</b></td>
452                                         <td width="10%">{if $sname != ""}<span class="{$tool_shard_orders[$sname]}">{$tool_shard_orders[$sname]|replace:'_':'&nbsp;'}</span>{/if}&nbsp;</td>
453                                         <td width="80%">
454                                                 <input type="submit" name="shards_update" value="auto restart on"  onclick="if (confirm('Are you sure you want to set AUTO RESTART ON for shard &lt;{$tool_shard_run_list[shard]}&gt; ?')) {ldelim} this.form.shards_update_name.value='{$tool_shard_run_list[shard]}'; return true; {rdelim} else {ldelim} return false; {rdelim}">&nbsp;
455                                                 <input type="submit" name="shards_update" value="auto restart off" onclick="if (confirm('Are you sure you want to set AUTO RESTART OFF for shard &lt;{$tool_shard_run_list[shard]}&gt; ?')) {ldelim} this.form.shards_update_name.value='{$tool_shard_run_list[shard]}'; return true; {rdelim} else {ldelim} return false; {rdelim}">&nbsp;
456                                         </td>
457                                 </tr>
458 {/section}
459                         </table></td>
460                 </tr>
461                 </table>
462 {/if}
464 {if $restriction_tool_main_execute}
465                 <br>
466                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
467                 <tr>
468                         <td align="right" width="100px"><b>Command : </b></td>
469                         <td>&nbsp;<input type="text" name="service_command" value="{$tool_execute_command}" size="50">&nbsp;
470                                 <input type="submit" name="services_update" value="execute"     {* onclick="if (confirm('Are you sure you want to EXECUTE this command on the selected services ?')) return true; return false;" *}>&nbsp;
471                         </td>
472                 </tr>
473                 </table>
475 {if $tool_execute_command}
476                 <br>
477                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
478                 <tr>
479                         <th>Command Results for '{$tool_execute_command}' :</th>
480                 </tr>
481                 <tr>
482                         <td><textarea width="100%" rows="50" class="command" readonly >{section name=exe loop=$tool_execute_result}{$tool_execute_result[exe]}{/section}</textarea></td>
483                 </tr>
484                 </table>
485 {/if}
486 {/if}
488 {* end of: if $restriction_tool_main_easy_restart && ($tool_shard_restart_status > 0) *}
489 {/if}
490                 </form>
491 {/if}
493         </td>
494 </tr>
495 </table>
498 {include file="page_footer.tpl"}