This commit is contained in:
kaetemi 2015-03-06 23:56:49 +01:00
parent 8d854e3e8d
commit 9363bdc478
21 changed files with 3532 additions and 3532 deletions

View file

@ -1,161 +1,161 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="{$second_menu_bg_color}" valign="middle"> <tr bgcolor="{$second_menu_bg_color}" valign="middle">
<td> <td>
<table> <table>
<tr> <tr>
<td> <td>
<table cellspacing="0" cellpadding="4"> <table cellspacing="0" cellpadding="4">
<tr> <tr>
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_user&id={$target_id}"><h7>Browse User</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_user&id={$target_id}"><h7>Browse User</h7></a></td>
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$target_id}"><h7>Send Ticket</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$target_id}"><h7>Send Ticket</h7></a></td>
{if isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1} {if isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1}
{if $userPermission eq 1} {if $userPermission eq 1}
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Make Moderator</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Make Moderator</h7></a></td>
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
{else if $userPermission eq 2 } {else if $userPermission eq 2 }
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
{else if $userPermission eq 3 } {else if $userPermission eq 3 }
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</h7></a></td>
{/if} {/if}
{/if} {/if}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="3" bgcolor="#000000"></td> <td height="3" bgcolor="#000000"></td>
</tr> </tr>
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
<td width="100%" height="12" valign="middle"><h1>Change Settings of {$target_username}</h1></td> <td width="100%" height="12" valign="middle"><h1>Change Settings of {$target_username}</h1></td>
</tr> </tr>
<tr> <tr>
<td height="5"></td><td></td> <td height="5"></td><td></td>
</tr> </tr>
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="#000000" valign="middle"> <tr bgcolor="#000000" valign="middle">
<td> <td>
<table> <table>
<tr><td height="8"></td></tr> <tr><td height="8"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr><td height="2"></td></tr> <tr><td height="2"></td></tr>
<tr><td height="1" bgcolor="#000000"></td></tr> <tr><td height="1" bgcolor="#000000"></td></tr>
<tr><td height="10"></td></tr> <tr><td height="10"></td></tr>
<tr valign="middle"> <tr valign="middle">
<td> <td>
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
<tr><td> <tr><td>
<table width="100%" bgcolor="{$main_tbl_color}" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Change Password</h3></p> <p><h3>Change Password</h3></p>
<form id="changePassword" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}"> <form id="changePassword" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
<table cellpadding="1"> <table cellpadding="1">
{if !isset($changesOther) or $changesOther eq "FALSE"} {if !isset($changesOther) or $changesOther eq "FALSE"}
<tr> <tr>
<td valign="middle"> <td valign="middle">
Current Password: Current Password:
</td> </td>
<td> <td>
<input type="text" id="CurrentPass" name="CurrentPass" {if isset($prevCurrentPass)}value="{$prevCurrentPass}"{/if}> <input type="text" id="CurrentPass" name="CurrentPass" {if isset($prevCurrentPass)}value="{$prevCurrentPass}"{/if}>
{if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}<font color="red">The password is incorrect</font>{/if} {if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}<font color="red">The password is incorrect</font>{/if}
</td> </td>
</p> </p>
</tr> </tr>
{/if} {/if}
<tr><td valign="middle"> <tr><td valign="middle">
New Password: New Password:
</td><td> </td><td>
<input type="text" class="input-xlarge" id="NewPass" name="NewPass" placeholder="Your new password" {if isset($prevNewPass)}value="{$prevNewPass}"{/if}> <input type="text" class="input-xlarge" id="NewPass" name="NewPass" placeholder="Your new password" {if isset($prevNewPass)}value="{$prevNewPass}"{/if}>
{if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$newpass_error_message}</font>{/if} {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$newpass_error_message}</font>{/if}
</td></tr> </td></tr>
<tr><td valign="middle"> <tr><td valign="middle">
Confirm New Password: Confirm New Password:
</td><td> </td><td>
<input type="text" class="input-xlarge" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password" {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}> <input type="text" class="input-xlarge" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password" {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}>
{if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$confirmnewpass_error_message}</font>{/if} {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$confirmnewpass_error_message}</font>{/if}
</td></tr> </td></tr>
</table> </table>
{if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"} {if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"}
<p><font color="green"> <p><font color="green">
The password has been changed! The password has been changed!
</font></p> </font></p>
{/if} {/if}
<input type="hidden" name="function" value="change_password"> <input type="hidden" name="function" value="change_password">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<p><input type="submit" value="Change Password"/></p> <p><input type="submit" value="Change Password"/></p>
</form> </form>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="{$main_tbl_color}" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Change Email</h3></p> <p><h3>Change Email</h3></p>
<form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}"> <form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
<table> <table>
<tr><td valign="middle"> <tr><td valign="middle">
New Email: New Email:
</td><td> </td><td>
<input type="text" class="input-xlarge" id="NewEmail" size="200" name="NewEmail" placeholder="Your new email" {if isset($prevNewEmail)}value="{$prevNewEmail}"{else if isset($current_mail)}value="{$current_mail}"{/if}> <input type="text" class="input-xlarge" id="NewEmail" size="200" name="NewEmail" placeholder="Your new email" {if isset($prevNewEmail)}value="{$prevNewEmail}"{else if isset($current_mail)}value="{$current_mail}"{/if}>
{if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}<font color="red">{$EMAIL}</font>{/if} {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}<font color="red">{$EMAIL}</font>{/if}
</td></tr> </td></tr>
</table> </table>
{if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "OK"} {if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "OK"}
<p> <p>
<font color="green">The email has been changed!</green> <font color="green">The email has been changed!</green>
</p> </p>
{/if} {/if}
<input type="hidden" name="function" value="change_mail"> <input type="hidden" name="function" value="change_mail">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<p> <p>
<input type="submit" value="Change Email"/> <input type="submit" value="Change Email"/>
</p> </p>
</form> </form>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</td></tr> </td></tr>
{/block} {/block}

View file

@ -1,118 +1,118 @@
{config_load file="ams_lib.conf" section="setup"} {config_load file="ams_lib.conf" section="setup"}
<div class="title"> <div class="title">
{$title} {$title}
</div> </div>
<div> <div>
{$welcome_message} {$welcome_message}
</div> </div>
{if $userRegistration == '0'|| $userRegistration == '1'} {if $userRegistration == '0'|| $userRegistration == '1'}
<form name="Page1" <form name="Page1"
method="post" method="post"
> >
<table> <table>
<tr> <tr>
<td width="33%" {if isset($USERNAME_ERROR) && $USERNAME_ERROR eq "TRUE"}class="error"{/if} id="caption-Username">{$username_tag} </td> <td width="33%" {if isset($USERNAME_ERROR) && $USERNAME_ERROR eq "TRUE"}class="error"{/if} id="caption-Username">{$username_tag} </td>
<td width="25%"> <td width="25%">
<input type="text" <input type="text"
name="Username" name="Username"
value="{if isset($Username)}{$Username}{/if}" value="{if isset($Username)}{$Username}{/if}"
maxlength="12" maxlength="12"
onfocus= onfocus=
"javascript:showTooltip('{$username_tooltip}', this);" /> "javascript:showTooltip('{$username_tooltip}', this);" />
</td> </td>
<td id="comment-Username" {if isset($USERNAME_ERROR) && $USERNAME_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($USERNAME_ERROR) && $USERNAME_ERROR eq "TRUE"}{$USERNAME}{/if}</td> <td id="comment-Username" {if isset($USERNAME_ERROR) && $USERNAME_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($USERNAME_ERROR) && $USERNAME_ERROR eq "TRUE"}{$USERNAME}{/if}</td>
</tr> </tr>
<tr> <tr>
<td width="33%" {if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}class="error"{/if} id="caption-Password">{$password_tag}</td> <td width="33%" {if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}class="error"{/if} id="caption-Password">{$password_tag}</td>
<td width="25%"> <td width="25%">
<input type="password" <input type="password"
name="Password" name="Password"
value="" value=""
maxlength="20" maxlength="20"
onkeyup= onkeyup=
"testPassword(document.Page1.Password.value, 'comment-Password')" "testPassword(document.Page1.Password.value, 'comment-Password')"
onfocus="javascript:showTooltip('{$password_message}', this);" /> onfocus="javascript:showTooltip('{$password_message}', this);" />
</td> </td>
<td id="comment-Password" {if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}{$PASSWORD}{/if}</td> <td id="comment-Password" {if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}{$PASSWORD}{/if}</td>
</tr> </tr>
<tr> <tr>
<td width="33%" {if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}class="error"{/if} id="caption-ConfirmPass">{$cpassword_tag}</td> <td width="33%" {if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}class="error"{/if} id="caption-ConfirmPass">{$cpassword_tag}</td>
<td width="25%"><input type="password" <td width="25%"><input type="password"
name="ConfirmPass" name="ConfirmPass"
value="" value=""
maxlength="20" maxlength="20"
onfocus="javascript:showTooltip('{$cpassword_message}', this);" /> onfocus="javascript:showTooltip('{$cpassword_message}', this);" />
</td> </td>
<td id="comment-ConfirmPass" {if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}{$CPASSWORD}{/if}</td> <td id="comment-ConfirmPass" {if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}{$CPASSWORD}{/if}</td>
</tr> </tr>
<tr> <tr>
<td width="33%" {if isset($EMAIL_ERROR) && $EMAIL_ERROR eq "TRUE"}class="error"{/if} id="caption-Email">{$email_tag}</td> <td width="33%" {if isset($EMAIL_ERROR) && $EMAIL_ERROR eq "TRUE"}class="error"{/if} id="caption-Email">{$email_tag}</td>
<td width="25%"> <td width="25%">
<input type="text" <input type="text"
name="Email" name="Email"
value="" value=""
maxlength="255" maxlength="255"
onfocus= onfocus=
"javascript:showTooltip('{$email_message}', this);" /> "javascript:showTooltip('{$email_message}', this);" />
</td> </td>
<td id="comment-Email" {if isset($EMAIL_ERROR) && $EMAIL_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($EMAIL_ERROR) && $EMAIL_ERROR eq "TRUE"}{$EMAIL}{/if}</td> <td id="comment-Email" {if isset($EMAIL_ERROR) && $EMAIL_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($EMAIL_ERROR) && $EMAIL_ERROR eq "TRUE"}{$EMAIL}{/if}</td>
</tr> </tr>
<tr> <tr>
<td width= <td width=
"33%" {if isset($TAC_ERROR) && $TAC_ERROR eq "TRUE"}class="error"{/if} "33%" {if isset($TAC_ERROR) && $TAC_ERROR eq "TRUE"}class="error"{/if}
colspan="2"><input type="checkbox" colspan="2"><input type="checkbox"
name="TaC" name="TaC"
value="1" value="1"
onfocus="javascript:showTooltip('', this);" /><span id= onfocus="javascript:showTooltip('', this);" /><span id=
"caption-TaC">{$tac_tag}</span></td> "caption-TaC">{$tac_tag}</span></td>
{if isset($TAC_ERROR) && $TAC_ERROR eq "TRUE"}<td id="comment-TaC" class="error" width="42%">{$tac_message}</td>{/if} {if isset($TAC_ERROR) && $TAC_ERROR eq "TRUE"}<td id="comment-TaC" class="error" width="42%">{$tac_message}</td>{/if}
</tr> </tr>
</table> </table>
<div class="c1"> <div class="c1">
<input type="submit" <input type="submit"
name="Submit" name="Submit"
value="Continue" /> value="Continue" />
</div> </div>
</form> </form>
{/if} {/if}
<div id="signupTooltip" <div id="signupTooltip"
class="c2" class="c2"
inset=""></div> inset=""></div>
<div id="tooltip-Username"> <div id="tooltip-Username">
{$username_tooltip} {$username_tooltip}
</div> </div>
<div id="tooltip-Password"> <div id="tooltip-Password">
{$password_message} {$password_message}
</div> </div>
<div id="tooltip-ConfirmPass"> <div id="tooltip-ConfirmPass">
{$cpassword_message} {$cpassword_message}
</div> </div>
<div id="tooltip-Email"> <div id="tooltip-Email">
{$email_message} {$email_message}
</div> </div>
<div id="tooltip-TaC"></div> <div id="tooltip-TaC"></div>

View file

@ -1,247 +1,247 @@
{block name=content} {block name=content}
<tr><td> <tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="{$second_menu_bg_color}" valign="middle"> <tr bgcolor="{$second_menu_bg_color}" valign="middle">
<td> <td>
<table> <table>
<tr> <tr>
<td> <td>
<table cellspacing="0" cellpadding="4"> <table cellspacing="0" cellpadding="4">
<tr> <tr>
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_user&id={$target_id}"><h7>Browse User</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_user&id={$target_id}"><h7>Browse User</h7></a></td>
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$target_id}"><h7>Send Ticket</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$target_id}"><h7>Send Ticket</h7></a></td>
{if isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1} {if isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1}
{if $userPermission eq 1} {if $userPermission eq 1}
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Make Moderator</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Make Moderator</h7></a></td>
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
{else if $userPermission eq 2 } {else if $userPermission eq 2 }
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
{else if $userPermission eq 3 } {else if $userPermission eq 3 }
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</h7></a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</h7></a></td>
{/if} {/if}
{/if} {/if}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="3" bgcolor="#000000"></td> <td height="3" bgcolor="#000000"></td>
</tr> </tr>
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2"> <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
<td width="100%" height="12" valign="middle"><h1>Change Settings of {$target_username}</h1></td> <td width="100%" height="12" valign="middle"><h1>Change Settings of {$target_username}</h1></td>
</tr> </tr>
<tr> <tr>
<td height="5"></td><td></td> <td height="5"></td><td></td>
</tr> </tr>
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="#000000" valign="middle"> <tr bgcolor="#000000" valign="middle">
<td> <td>
<table> <table>
<tr><td height="8"></td></tr> <tr><td height="8"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr><td height="2"></td></tr> <tr><td height="2"></td></tr>
<tr><td height="1" bgcolor="#000000"></td></tr> <tr><td height="1" bgcolor="#000000"></td></tr>
<tr><td height="10"></td></tr> <tr><td height="10"></td></tr>
<tr valign="middle"> <tr valign="middle">
<td> <td>
<table width="100%" height="100%" cellpadding="10"> <table width="100%" height="100%" cellpadding="10">
<tr><td> <tr><td>
<table width="100%" bgcolor="{$main_tbl_color}" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Change Password</h3></p> <p><h3>Change Password</h3></p>
<form id="changePassword" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}"> <form id="changePassword" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
<table cellpadding="1"> <table cellpadding="1">
{if !isset($changesOther) or $changesOther eq "FALSE"} {if !isset($changesOther) or $changesOther eq "FALSE"}
<tr> <tr>
<td valign="middle"> <td valign="middle">
Current Password: Current Password:
</td> </td>
<td> <td>
<input type="text" id="CurrentPass" name="CurrentPass" {if isset($prevCurrentPass)}value="{$prevCurrentPass}"{/if}> <input type="text" id="CurrentPass" name="CurrentPass" {if isset($prevCurrentPass)}value="{$prevCurrentPass}"{/if}>
{if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}<font color="red">The password is incorrect</font>{/if} {if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}<font color="red">The password is incorrect</font>{/if}
</td> </td>
</p> </p>
</tr> </tr>
{/if} {/if}
<tr><td valign="middle"> <tr><td valign="middle">
New Password: New Password:
</td><td> </td><td>
<input type="text" class="input-xlarge" id="NewPass" name="NewPass" placeholder="Your new password" {if isset($prevNewPass)}value="{$prevNewPass}"{/if}> <input type="text" class="input-xlarge" id="NewPass" name="NewPass" placeholder="Your new password" {if isset($prevNewPass)}value="{$prevNewPass}"{/if}>
{if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$newpass_error_message}</font>{/if} {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$newpass_error_message}</font>{/if}
</td></tr> </td></tr>
<tr><td valign="middle"> <tr><td valign="middle">
Confirm New Password: Confirm New Password:
</td><td> </td><td>
<input type="text" class="input-xlarge" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password" {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}> <input type="text" class="input-xlarge" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password" {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}>
{if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$confirmnewpass_error_message}</font>{/if} {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$confirmnewpass_error_message}</font>{/if}
</td></tr> </td></tr>
</table> </table>
{if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"} {if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"}
<p><font color="green"> <p><font color="green">
The password has been changed! The password has been changed!
</font></p> </font></p>
{/if} {/if}
<input type="hidden" name="function" value="change_password"> <input type="hidden" name="function" value="change_password">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<p><input type="submit" value="Change Password"/></p> <p><input type="submit" value="Change Password"/></p>
</form> </form>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="{$main_tbl_color}" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Change Email</h3></p> <p><h3>Change Email</h3></p>
<form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}"> <form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
<table> <table>
<tr><td valign="middle"> <tr><td valign="middle">
New Email: New Email:
</td><td> </td><td>
<input type="text" class="input-xlarge" id="NewEmail" size="200" name="NewEmail" placeholder="Your new email" {if isset($prevNewEmail)}value="{$prevNewEmail}"{else if isset($current_mail)}value="{$current_mail}"{/if}> <input type="text" class="input-xlarge" id="NewEmail" size="200" name="NewEmail" placeholder="Your new email" {if isset($prevNewEmail)}value="{$prevNewEmail}"{else if isset($current_mail)}value="{$current_mail}"{/if}>
{if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}<font color="red">{$EMAIL}</font>{/if} {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}<font color="red">{$EMAIL}</font>{/if}
</td></tr> </td></tr>
</table> </table>
{if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "OK"} {if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "OK"}
<p> <p>
<font color="green">The email has been changed!</green> <font color="green">The email has been changed!</green>
</p> </p>
{/if} {/if}
<input type="hidden" name="function" value="change_mail"> <input type="hidden" name="function" value="change_mail">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<p> <p>
<input type="submit" value="Change Email"/> <input type="submit" value="Change Email"/>
</p> </p>
</form> </form>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="{$main_tbl_color}" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Change Info</h3></p> <p><h3>Change Info</h3></p>
<form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}"> <form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
<table> <table>
<tr> <tr>
<td valign="middle">Firstname: </td> <td valign="middle">Firstname: </td>
<td><input type="text" id="FirstName" name="FirstName" placeholder="Your firstname" {if isset($FirstName) and $FirstName neq ""}value="{$FirstName}"{/if}></td> <td><input type="text" id="FirstName" name="FirstName" placeholder="Your firstname" {if isset($FirstName) and $FirstName neq ""}value="{$FirstName}"{/if}></td>
</tr> </tr>
<tr> <tr>
<td valign="middle">Lastname: </td> <td valign="middle">Lastname: </td>
<td><input type="text" id="LastName" name="LastName" placeholder="Your lastname" {if isset($LastName) and $LastName neq ""}value="{$LastName}"{/if}></td> <td><input type="text" id="LastName" name="LastName" placeholder="Your lastname" {if isset($LastName) and $LastName neq ""}value="{$LastName}"{/if}></td>
</tr> </tr>
<tr> <tr>
<td valign="middle">Country: </td> <td valign="middle">Country: </td>
<td><select name="Country"> <td><select name="Country">
{foreach from=$country_array key=k item=v} {foreach from=$country_array key=k item=v}
<option value="{$k}" {if isset($Country) and $Country eq $k}selected="selected"{/if}>{$v}</option> <option value="{$k}" {if isset($Country) and $Country eq $k}selected="selected"{/if}>{$v}</option>
{/foreach} {/foreach}
</select></td> </select></td>
</tr> </tr>
<tr> <tr>
<td valign="middle">Gender</td> <td valign="middle">Gender</td>
<td> <td>
<select name="Gender"> <select name="Gender">
<option value="0"{if isset($Gender) and $Gender eq 0}selected="selected"{/if}>Secret</option> <option value="0"{if isset($Gender) and $Gender eq 0}selected="selected"{/if}>Secret</option>
<option value="1"{if isset($Gender) and $Gender eq 1}selected="selected"{/if}>Male</option> <option value="1"{if isset($Gender) and $Gender eq 1}selected="selected"{/if}>Male</option>
<option value="2"{if isset($Gender) and $Gender eq 2}selected="selected"{/if}>Female</option> <option value="2"{if isset($Gender) and $Gender eq 2}selected="selected"{/if}>Female</option>
</select></td> </select></td>
</td> </td>
</tr> </tr>
</table> </table>
{if isset($info_updated) and $info_updated eq "OK"} {if isset($info_updated) and $info_updated eq "OK"}
<p> <p>
<font color="green">The Info has been updated!</font> <font color="green">The Info has been updated!</font>
</p> </p>
{/if} {/if}
<input type="hidden" name="function" value="change_info"> <input type="hidden" name="function" value="change_info">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<p> <p>
<input type="submit" value="Change Info"/> <input type="submit" value="Change Info"/>
</p> </p>
</form> </form>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
<tr><td> <tr><td>
<table width="100%" bgcolor="{$main_tbl_color}" border="2"> <table width="100%" bgcolor="{$main_tbl_color}" border="2">
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Ticket-Update Mail Settings</h3></p> <p><h3>Ticket-Update Mail Settings</h3></p>
<form id="changeReceiveMail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}"> <form id="changeReceiveMail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
<table> <table>
<tr><td valign="middle"> <tr><td valign="middle">
Receive ticket updates Receive ticket updates
</td><td> </td><td>
<select name="ReceiveMail"> <select name="ReceiveMail">
<option value="1" {if isset($ReceiveMail) and $ReceiveMail eq 1}selected="selected"{/if}>Yes</option> <option value="1" {if isset($ReceiveMail) and $ReceiveMail eq 1}selected="selected"{/if}>Yes</option>
<option value="0" {if isset($ReceiveMail) and $ReceiveMail eq 0}selected="selected"{/if}>No</option> <option value="0" {if isset($ReceiveMail) and $ReceiveMail eq 0}selected="selected"{/if}>No</option>
</select> </select>
</td></tr> </td></tr>
</table> </table>
<input type="hidden" name="function" value="change_receivemail"> <input type="hidden" name="function" value="change_receivemail">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<p> <p>
<input type="submit" value="Change Updates"/> <input type="submit" value="Change Updates"/>
</p> </p>
</form> </form>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
</table> </table>
</td></tr> </td></tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</td></tr> </td></tr>
{/block} {/block}

View file

@ -1,25 +1,25 @@
{include file="page_header_light.tpl"} {include file="page_header_light.tpl"}
<h2>Shard Administration Website</h2> <h2>Shard Administration Website</h2>
<p>Use login: <b>guest</b> and password: <b>guest</b> to login.</p> <p>Use login: <b>guest</b> and password: <b>guest</b> to login.</p>
<table width="30%" border="0"> <table width="30%" border="0">
<form action="index.php" method="post"> <form action="index.php" method="post">
<tr> <tr>
<td>Login:</td> <td>Login:</td>
<td><input type="text" name="nel_login" value="guest"></td> <td><input type="text" name="nel_login" value="guest"></td>
</tr> </tr>
<tr> <tr>
<td>Password:</td> <td>Password:</td>
<td><input type="password" name="nel_passwd" value="guest"></td> <td><input type="password" name="nel_passwd" value="guest"></td>
</tr> </tr>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td><input type="submit" name="action" value="login"> <td><input type="submit" name="action" value="login">
</tr> </tr>
</form> </form>
</table> </table>
{include file="page_footer_light.tpl"} {include file="page_footer_light.tpl"}

View file

@ -1,6 +1,6 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,115 +1,115 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td> <td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0"> <table width="100%" border="0" cellpadding="0">
<tr> <tr>
<td align="left" valign="top" width="70%"> <td align="left" valign="top" width="70%">
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Applications</th> <th colspan="10">Applications</th>
</tr> </tr>
<tr> <tr>
<td><b>ID</b></td> <td><b>ID</b></td>
<td><b>Name</b></td> <td><b>Name</b></td>
<td><b>URI</b></td> <td><b>URI</b></td>
<td><b>Restriction</b></td> <td><b>Restriction</b></td>
<td><b>Icon</b></td> <td><b>Icon</b></td>
<td><b>Order</b></td> <td><b>Order</b></td>
<td><b>Visible</b></td> <td><b>Visible</b></td>
</tr> </tr>
{section name=application loop=$tool_application_list} {section name=application loop=$tool_application_list}
{cycle assign="trclass" values="row1,row0"} {cycle assign="trclass" values="row1,row0"}
<tr class="{$trclass}"> <tr class="{$trclass}">
<td>{$tool_application_list[application].application_id}</td> <td>{$tool_application_list[application].application_id}</td>
<td><a href="tool_administration.php?toolmode=applications&toolaction=edit&application_id={$tool_application_list[application].application_id}">{$tool_application_list[application].application_name}</a></td> <td><a href="tool_administration.php?toolmode=applications&toolaction=edit&application_id={$tool_application_list[application].application_id}">{$tool_application_list[application].application_name}</a></td>
<td>{$tool_application_list[application].application_uri}</td> <td>{$tool_application_list[application].application_uri}</td>
<td>{$tool_application_list[application].application_restriction}</td> <td>{$tool_application_list[application].application_restriction}</td>
<td>{$tool_application_list[application].application_icon}</td> <td>{$tool_application_list[application].application_icon}</td>
<td>{$tool_application_list[application].application_order}</td> <td>{$tool_application_list[application].application_order}</td>
<td>{if $tool_application_list[application].application_visible == 1}Yes{else}No{/if}</td> <td>{if $tool_application_list[application].application_visible == 1}Yes{else}No{/if}</td>
</tr> </tr>
{/section} {/section}
</table> </table>
</td> </td>
<td align="right" valign="top" width="30%"> <td align="right" valign="top" width="30%">
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=applications" method="post"> <form action="tool_administration.php?toolmode=applications" method="post">
<tr> <tr>
<th colspan="10">Applications Details</th> <th colspan="10">Applications Details</th>
</tr> </tr>
{if $tool_application_edit_data.application_id} {if $tool_application_edit_data.application_id}
<tr> <tr>
<td align="right">Id :</td> <td align="right">Id :</td>
<td><input type="text" name="tool_form_application_id" value="{$tool_application_edit_data.application_id}" size="10" readonly></td> <td><input type="text" name="tool_form_application_id" value="{$tool_application_edit_data.application_id}" size="10" readonly></td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td align="right">Name :</td> <td align="right">Name :</td>
<td><input type="text" name="tool_form_application_name" value="{$tool_application_edit_data.application_name}" maxlength="64" size="30"></td> <td><input type="text" name="tool_form_application_name" value="{$tool_application_edit_data.application_name}" maxlength="64" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">URI :</td> <td align="right">URI :</td>
<td><input type="text" name="tool_form_application_uri" value="{$tool_application_edit_data.application_uri}" maxlength="255" size="30"></td> <td><input type="text" name="tool_form_application_uri" value="{$tool_application_edit_data.application_uri}" maxlength="255" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Restriction :</td> <td align="right">Restriction :</td>
<td><input type="text" name="tool_form_application_restriction" value="{$tool_application_edit_data.application_restriction}" maxlength="64" size="30"></td> <td><input type="text" name="tool_form_application_restriction" value="{$tool_application_edit_data.application_restriction}" maxlength="64" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Icon :</td> <td align="right">Icon :</td>
<td><input type="text" name="tool_form_application_icon" value="{$tool_application_edit_data.application_icon}" maxlength="128" size="30"></td> <td><input type="text" name="tool_form_application_icon" value="{$tool_application_edit_data.application_icon}" maxlength="128" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Order :</td> <td align="right">Order :</td>
<td><input type="text" name="tool_form_application_order" value="{$tool_application_edit_data.application_order}" maxlength="6" size="30"></td> <td><input type="text" name="tool_form_application_order" value="{$tool_application_edit_data.application_order}" maxlength="6" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Visible :</td> <td align="right">Visible :</td>
<td> <td>
<select name="tool_form_application_visible"> <select name="tool_form_application_visible">
<option value="1" {if $tool_application_edit_data.application_visible == 1}selected{/if}>Yes</option> <option value="1" {if $tool_application_edit_data.application_visible == 1}selected{/if}>Yes</option>
<option value="0" {if $tool_application_edit_data.application_visible == 0}selected{/if}>No</option> <option value="0" {if $tool_application_edit_data.application_visible == 0}selected{/if}>No</option>
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td> <td>
{if $tool_application_edit_data.application_id} {if $tool_application_edit_data.application_id}
<input type="submit" name="toolaction" value="update"> <input type="submit" name="toolaction" value="update">
<input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the application &lt; {$tool_application_edit_data.application_name} &gt; ?')) return true; return false;"> <input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the application &lt; {$tool_application_edit_data.application_name} &gt; ?')) return true; return false;">
{else} {else}
<input type="submit" name="toolaction" value="create"> <input type="submit" name="toolaction" value="create">
{/if} {/if}
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,185 +1,185 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td> <td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0"> <table width="100%" border="0" cellpadding="0">
<tr> <tr>
<td align="left" valign="top" width="70%"> <td align="left" valign="top" width="70%">
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="12">Domains</th> <th colspan="12">Domains</th>
</tr> </tr>
<tr> <tr>
<td><b>ID</b></td> <td><b>ID</b></td>
<td><b>Name</b></td> <td><b>Name</b></td>
<td><b>Application</b></td> <td><b>Application</b></td>
<td><b>AS Host</b></td> <td><b>AS Host</b></td>
<td><b>AS Port</b></td> <td><b>AS Port</b></td>
<td><b>MFS Web</b></td> <td><b>MFS Web</b></td>
<td><b>RRD Path</b></td> <td><b>RRD Path</b></td>
<td><b>LAS Admin Path</b></td> <td><b>LAS Admin Path</b></td>
<td><b>LAS Local Path</b></td> <td><b>LAS Local Path</b></td>
<td><b>Ring DB</b></td> <td><b>Ring DB</b></td>
<td><b>CS DB</b></td> <td><b>CS DB</b></td>
<td><b>HD Check</b></td> <td><b>HD Check</b></td>
</tr> </tr>
{section name=domain loop=$tool_domain_list} {section name=domain loop=$tool_domain_list}
{cycle assign="trclass" values="row1,row0"} {cycle assign="trclass" values="row1,row0"}
<tr class="{$trclass}"> <tr class="{$trclass}">
<td>{$tool_domain_list[domain].domain_id}</td> <td>{$tool_domain_list[domain].domain_id}</td>
<td><a href="tool_administration.php?toolmode=domains&toolaction=edit&domain_id={$tool_domain_list[domain].domain_id}">{$tool_domain_list[domain].domain_name}</a></td> <td><a href="tool_administration.php?toolmode=domains&toolaction=edit&domain_id={$tool_domain_list[domain].domain_id}">{$tool_domain_list[domain].domain_name}</a></td>
<td>{$tool_domain_list[domain].domain_application}</td> <td>{$tool_domain_list[domain].domain_application}</td>
<td>{$tool_domain_list[domain].domain_as_host}</td> <td>{$tool_domain_list[domain].domain_as_host}</td>
<td>{$tool_domain_list[domain].domain_as_port}</td> <td>{$tool_domain_list[domain].domain_as_port}</td>
<td>{$tool_domain_list[domain].domain_mfs_web}</td> <td>{$tool_domain_list[domain].domain_mfs_web}</td>
<td>{$tool_domain_list[domain].domain_rrd_path}</td> <td>{$tool_domain_list[domain].domain_rrd_path}</td>
<td>{$tool_domain_list[domain].domain_las_admin_path}</td> <td>{$tool_domain_list[domain].domain_las_admin_path}</td>
<td>{$tool_domain_list[domain].domain_las_local_path}</td> <td>{$tool_domain_list[domain].domain_las_local_path}</td>
<td>{if $tool_domain_list[domain].domain_sql_string != ''}True{else}False{/if}</td> <td>{if $tool_domain_list[domain].domain_sql_string != ''}True{else}False{/if}</td>
<td>{if $tool_domain_list[domain].domain_cs_sql_string != ''}True{else}False{/if}</td> <td>{if $tool_domain_list[domain].domain_cs_sql_string != ''}True{else}False{/if}</td>
<td>{if $tool_domain_list[domain].domain_hd_check == 1}Yes{else}No{/if}</td> <td>{if $tool_domain_list[domain].domain_hd_check == 1}Yes{else}No{/if}</td>
</tr> </tr>
{/section} {/section}
</table> </table>
</td> </td>
<td align="right" valign="top" width="30%"> <td align="right" valign="top" width="30%">
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=domains" method="post"> <form action="tool_administration.php?toolmode=domains" method="post">
<tr> <tr>
<th colspan="10">Domain Details</th> <th colspan="10">Domain Details</th>
</tr> </tr>
{if $tool_domain_edit_data.domain_id} {if $tool_domain_edit_data.domain_id}
<tr> <tr>
<td align="right">Id :</td> <td align="right">Id :</td>
<td><input type="text" name="tool_form_domain_id" value="{$tool_domain_edit_data.domain_id}" size="10" readonly></td> <td><input type="text" name="tool_form_domain_id" value="{$tool_domain_edit_data.domain_id}" size="10" readonly></td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td align="right">Name :</td> <td align="right">Name :</td>
<td><input type="text" name="tool_form_domain_name" value="{$tool_domain_edit_data.domain_name}" maxlength="128" size="30"></td> <td><input type="text" name="tool_form_domain_name" value="{$tool_domain_edit_data.domain_name}" maxlength="128" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Application :</td> <td align="right">Application :</td>
<td><input type="text" name="tool_form_domain_application" value="{$tool_domain_edit_data.domain_application}" maxlength="128" size="30"></td> <td><input type="text" name="tool_form_domain_application" value="{$tool_domain_edit_data.domain_application}" maxlength="128" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">AS Host :</td> <td align="right">AS Host :</td>
<td><input type="text" name="tool_form_domain_as_host" value="{$tool_domain_edit_data.domain_as_host}" maxlength="128" size="30"></td> <td><input type="text" name="tool_form_domain_as_host" value="{$tool_domain_edit_data.domain_as_host}" maxlength="128" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">AS Port :</td> <td align="right">AS Port :</td>
<td><input type="text" name="tool_form_domain_as_port" value="{$tool_domain_edit_data.domain_as_port}" maxlength="5" size="30"></td> <td><input type="text" name="tool_form_domain_as_port" value="{$tool_domain_edit_data.domain_as_port}" maxlength="5" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">MFS Web :</td> <td align="right">MFS Web :</td>
<td><input type="text" name="tool_form_domain_mfs_web" value="{$tool_domain_edit_data.domain_mfs_web}" maxlength="128" size="30"></td> <td><input type="text" name="tool_form_domain_mfs_web" value="{$tool_domain_edit_data.domain_mfs_web}" maxlength="128" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">RRD Path :</td> <td align="right">RRD Path :</td>
<td><input type="text" name="tool_form_domain_rrd_path" value="{$tool_domain_edit_data.domain_rrd_path}" maxlength="255" size="30"></td> <td><input type="text" name="tool_form_domain_rrd_path" value="{$tool_domain_edit_data.domain_rrd_path}" maxlength="255" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">LAS Admin Path :</td> <td align="right">LAS Admin Path :</td>
<td><input type="text" name="tool_form_domain_las_admin_path" value="{$tool_domain_edit_data.domain_las_admin_path}" maxlength="255" size="30"></td> <td><input type="text" name="tool_form_domain_las_admin_path" value="{$tool_domain_edit_data.domain_las_admin_path}" maxlength="255" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">LAS Local Path :</td> <td align="right">LAS Local Path :</td>
<td><input type="text" name="tool_form_domain_las_local_path" value="{$tool_domain_edit_data.domain_las_local_path}" maxlength="255" size="30"></td> <td><input type="text" name="tool_form_domain_las_local_path" value="{$tool_domain_edit_data.domain_las_local_path}" maxlength="255" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Ring DB String :</td> <td align="right">Ring DB String :</td>
<td><input type="text" name="tool_form_domain_sql_string" value="{$tool_domain_edit_data.domain_sql_string}" maxlength="128" size="30"></td> <td><input type="text" name="tool_form_domain_sql_string" value="{$tool_domain_edit_data.domain_sql_string}" maxlength="128" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">CS DB String :</td> <td align="right">CS DB String :</td>
<td><input type="text" name="tool_form_domain_cs_sql_string" value="{$tool_domain_edit_data.domain_cs_sql_string}" maxlength="128" size="30"></td> <td><input type="text" name="tool_form_domain_cs_sql_string" value="{$tool_domain_edit_data.domain_cs_sql_string}" maxlength="128" size="30"></td>
</tr> </tr>
<tr> <tr>
<td width="40%" align="right">HD Check :</td> <td width="40%" align="right">HD Check :</td>
<td> <td>
<select name="tool_form_domain_hd_check"> <select name="tool_form_domain_hd_check">
<option value="1" {if $tool_domain_edit_data.domain_hd_check == 1}selected{/if}>Yes</option> <option value="1" {if $tool_domain_edit_data.domain_hd_check == 1}selected{/if}>Yes</option>
<option value="0" {if $tool_domain_edit_data.domain_hd_check == 0}selected{/if}>No</option> <option value="0" {if $tool_domain_edit_data.domain_hd_check == 0}selected{/if}>No</option>
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td> <td>
{if $tool_domain_edit_data.domain_id} {if $tool_domain_edit_data.domain_id}
<input type="submit" name="toolaction" value="update"> <input type="submit" name="toolaction" value="update">
<input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the domain &lt; {$tool_domain_edit_data.domain_name} &gt; ?')) return true; return false;"> <input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the domain &lt; {$tool_domain_edit_data.domain_name} &gt; ?')) return true; return false;">
{else} {else}
<input type="submit" name="toolaction" value="create"> <input type="submit" name="toolaction" value="create">
{/if} {/if}
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
{if $tool_domain_nel_data} {if $tool_domain_nel_data}
<br> <br>
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=domains" method="post"> <form action="tool_administration.php?toolmode=domains" method="post">
<tr> <tr>
<th colspan="10">Domain Data</th> <th colspan="10">Domain Data</th>
</tr> </tr>
<tr> <tr>
<td align="right">ID :</td> <td align="right">ID :</td>
<td><input type="text" name="tool_form_domain_nel_id" value="{$tool_domain_nel_data.domain_id}" maxlength="128" size="30" readonly ></td> <td><input type="text" name="tool_form_domain_nel_id" value="{$tool_domain_nel_data.domain_id}" maxlength="128" size="30" readonly ></td>
</tr> </tr>
<tr> <tr>
<td align="right">Name :</td> <td align="right">Name :</td>
<td><input type="text" name="tool_form_domain_nel_name" value="{$tool_domain_nel_data.domain_name}" maxlength="128" size="30" readonly ></td> <td><input type="text" name="tool_form_domain_nel_name" value="{$tool_domain_nel_data.domain_name}" maxlength="128" size="30" readonly ></td>
</tr> </tr>
<!--<tr> <!--<tr>
<td align="right">Version :</td> <td align="right">Version :</td>
<td><input type="text" name="tool_form_domain_nel_version" value="{$tool_domain_nel_data.patch_version}" maxlength="128" size="30"></td> <td><input type="text" name="tool_form_domain_nel_version" value="{$tool_domain_nel_data.patch_version}" maxlength="128" size="30"></td>
</tr>--> </tr>-->
<tr> <tr>
<td align="right">Status :</td> <td align="right">Status :</td>
<td><select name="tool_form_domain_nel_status" style="width:150px;"> <td><select name="tool_form_domain_nel_status" style="width:150px;">
{section name=status loop=$tool_domain_nel_status} {section name=status loop=$tool_domain_nel_status}
<option value="{$tool_domain_nel_status[status]}" {if $tool_domain_nel_data.status == $tool_domain_nel_status[status]}selected{/if}>{$tool_domain_nel_status[status]}</option> <option value="{$tool_domain_nel_status[status]}" {if $tool_domain_nel_data.status == $tool_domain_nel_status[status]}selected{/if}>{$tool_domain_nel_status[status]}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td> <td>
<input type="submit" name="toolaction" value="update_nel"> <input type="submit" name="toolaction" value="update_nel">
<input type="hidden" name="tool_form_domain_id" value="{$tool_domain_edit_data.domain_id}"> <input type="hidden" name="tool_form_domain_id" value="{$tool_domain_edit_data.domain_id}">
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,334 +1,334 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td> <td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0"> <table width="100%" border="0" cellpadding="0">
<tr> <tr>
<td align="left" valign="top" width="70%"> <td align="left" valign="top" width="70%">
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Groups</th> <th colspan="10">Groups</th>
</tr> </tr>
<tr> <tr>
<td><b>ID</b></td> <td><b>ID</b></td>
<td><b>Name</b></td> <td><b>Name</b></td>
<td><b>Level</b></td> <td><b>Level</b></td>
<td><b>Default</b></td> <td><b>Default</b></td>
<td><b>Active</b></td> <td><b>Active</b></td>
</tr> </tr>
{section name=group loop=$tool_group_list} {section name=group loop=$tool_group_list}
{cycle assign="trclass" values="row1,row0"} {cycle assign="trclass" values="row1,row0"}
<tr class="{$trclass}"> <tr class="{$trclass}">
<td>{$tool_group_list[group].group_id}</td> <td>{$tool_group_list[group].group_id}</td>
<td><a href="tool_administration.php?toolmode=groups&toolaction=edit&group_id={$tool_group_list[group].group_id}">{$tool_group_list[group].group_name}</a></td> <td><a href="tool_administration.php?toolmode=groups&toolaction=edit&group_id={$tool_group_list[group].group_id}">{$tool_group_list[group].group_name}</a></td>
<td>{$tool_group_list[group].group_level_name}</td> <td>{$tool_group_list[group].group_level_name}</td>
<td>{if $tool_group_list[group].group_default == 1}Yes{else}No{/if}</td> <td>{if $tool_group_list[group].group_default == 1}Yes{else}No{/if}</td>
<td>{if $tool_group_list[group].group_active == 1}Yes{else}No{/if}</td> <td>{if $tool_group_list[group].group_active == 1}Yes{else}No{/if}</td>
</tr> </tr>
{/section} {/section}
</table> </table>
{if $tool_group_user_list} {if $tool_group_user_list}
<br> <br>
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Accounts</th> <th colspan="10">Accounts</th>
</tr> </tr>
<tr> <tr>
<td><b>ID</b></td> <td><b>ID</b></td>
<td><b>Login</b></td> <td><b>Login</b></td>
<td><b>Created</b></td> <td><b>Created</b></td>
<td><b>Last&nbsp;Logged</b></td> <td><b>Last&nbsp;Logged</b></td>
<td><b>Num&nbsp;Logs</b></td> <td><b>Num&nbsp;Logs</b></td>
<td><b>Active</b></td> <td><b>Active</b></td>
</tr> </tr>
{section name=user loop=$tool_group_user_list} {section name=user loop=$tool_group_user_list}
{cycle assign="trclass2" values="row1,row0"} {cycle assign="trclass2" values="row1,row0"}
<tr class="{$trclass2}"> <tr class="{$trclass2}">
<td>{$tool_group_user_list[user].user_id}</td> <td>{$tool_group_user_list[user].user_id}</td>
<td><a href="tool_administration.php?toolmode=users&toolaction=edit&user_id={$tool_group_user_list[user].user_id}">{$tool_group_user_list[user].user_name}</a></td> <td><a href="tool_administration.php?toolmode=users&toolaction=edit&user_id={$tool_group_user_list[user].user_id}">{$tool_group_user_list[user].user_name}</a></td>
<td>{$tool_group_user_list[user].user_created|date_format:"%Y/%m/%d %H:%M:%S"}</td> <td>{$tool_group_user_list[user].user_created|date_format:"%Y/%m/%d %H:%M:%S"}</td>
{if $tool_group_user_list[user].user_logged_last > 0} {if $tool_group_user_list[user].user_logged_last > 0}
<td>{$tool_group_user_list[user].user_logged_last|date_format:"%Y/%m/%d %H:%M:%S"}</td> <td>{$tool_group_user_list[user].user_logged_last|date_format:"%Y/%m/%d %H:%M:%S"}</td>
{else} {else}
<td>never</td> <td>never</td>
{/if} {/if}
<td>{$tool_group_user_list[user].user_logged_count}</td> <td>{$tool_group_user_list[user].user_logged_count}</td>
<td>{if $tool_group_user_list[user].user_active == 1}Yes{else}No{/if}</td> <td>{if $tool_group_user_list[user].user_active == 1}Yes{else}No{/if}</td>
</tr> </tr>
{/section} {/section}
</table> </table>
{/if} {/if}
</td> </td>
<td align="right" valign="top" width="30%"> <td align="right" valign="top" width="30%">
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=groups" method="post"> <form action="tool_administration.php?toolmode=groups" method="post">
<tr> <tr>
<th colspan="10">Group Details</th> <th colspan="10">Group Details</th>
</tr> </tr>
{if $tool_group_edit_data.group_id} {if $tool_group_edit_data.group_id}
<tr> <tr>
<td width="40%" align="right">Id :</td> <td width="40%" align="right">Id :</td>
<td><input type="text" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}" size="10" readonly></td> <td><input type="text" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}" size="10" readonly></td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td width="40%" align="right">Name :</td> <td width="40%" align="right">Name :</td>
<td><input type="text" name="tool_form_group_name" value="{$tool_group_edit_data.group_name}" maxlength="32" size="30" {* if $tool_group_edit_data.group_id}readonly{/if *}></td> <td><input type="text" name="tool_form_group_name" value="{$tool_group_edit_data.group_name}" maxlength="32" size="30" {* if $tool_group_edit_data.group_id}readonly{/if *}></td>
</tr> </tr>
<tr> <tr>
<td width="40%" align="right">Level :</td> <td width="40%" align="right">Level :</td>
<td> <td>
<select name="tool_form_group_level"> <select name="tool_form_group_level">
{section name=level loop=$tool_group_level_list} {section name=level loop=$tool_group_level_list}
<option value="{$tool_group_level_list[level].level_id}" {if $tool_group_edit_data.group_level == $tool_group_level_list[level].level_id}selected{/if}>{$tool_group_level_list[level].level_name}</option> <option value="{$tool_group_level_list[level].level_id}" {if $tool_group_edit_data.group_level == $tool_group_level_list[level].level_id}selected{/if}>{$tool_group_level_list[level].level_name}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%" align="right">Default :</td> <td width="40%" align="right">Default :</td>
<td> <td>
<select name="tool_form_group_default"> <select name="tool_form_group_default">
<option value="1" {if $tool_group_edit_data.group_default == 1}selected{/if}>Yes</option> <option value="1" {if $tool_group_edit_data.group_default == 1}selected{/if}>Yes</option>
<option value="0" {if $tool_group_edit_data.group_default == 0}selected{/if}>No</option> <option value="0" {if $tool_group_edit_data.group_default == 0}selected{/if}>No</option>
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%" align="right">Active :</td> <td width="40%" align="right">Active :</td>
<td> <td>
<select name="tool_form_group_active"> <select name="tool_form_group_active">
<option value="1" {if $tool_group_edit_data.group_active == 1}selected{/if}>Yes</option> <option value="1" {if $tool_group_edit_data.group_active == 1}selected{/if}>Yes</option>
<option value="0" {if $tool_group_edit_data.group_active == 0}selected{/if}>No</option> <option value="0" {if $tool_group_edit_data.group_active == 0}selected{/if}>No</option>
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
{if $tool_group_edit_data.group_id} {if $tool_group_edit_data.group_id}
<input type="submit" name="toolaction" value="update"> <input type="submit" name="toolaction" value="update">
<input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the group &lt; {$tool_group_edit_data.group_name} &gt; ?')) return true; return false;"> <input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the group &lt; {$tool_group_edit_data.group_name} &gt; ?')) return true; return false;">
{else} {else}
<input type="submit" name="toolaction" value="create"> <input type="submit" name="toolaction" value="create">
{/if} {/if}
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
{if $tool_group_edit_data.group_id} {if $tool_group_edit_data.group_id}
<br> <br>
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=groups" method="post"> <form action="tool_administration.php?toolmode=groups" method="post">
<tr> <tr>
<th colspan="10">Default Domain</th> <th colspan="10">Default Domain</th>
</tr> </tr>
<tr> <tr>
<td align="right" width="40%">Domains :</td> <td align="right" width="40%">Domains :</td>
<td> <td>
<select name="tool_form_domain_default" style="width:150px;"> <select name="tool_form_domain_default" style="width:150px;">
<option value="0">-- none --</option> <option value="0">-- none --</option>
{section name=domain loop=$tool_domain_list} {section name=domain loop=$tool_domain_list}
{if $tool_domain_list[domain].domain_selected} {if $tool_domain_list[domain].domain_selected}
<option value="{$tool_domain_list[domain].domain_id}" {if $tool_group_edit_data.group_default_domain_id == $tool_domain_list[domain].domain_id}selected{/if}>{$tool_domain_list[domain].domain_name}</option> <option value="{$tool_domain_list[domain].domain_id}" {if $tool_group_edit_data.group_default_domain_id == $tool_domain_list[domain].domain_id}selected{/if}>{$tool_domain_list[domain].domain_name}</option>
{/if} {/if}
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
<input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}"> <input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}">
<input type="submit" name="toolaction" value="update default domain"> <input type="submit" name="toolaction" value="update default domain">
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
{if $tool_group_edit_data.group_default_domain_id > 0} {if $tool_group_edit_data.group_default_domain_id > 0}
<br> <br>
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=groups" method="post"> <form action="tool_administration.php?toolmode=groups" method="post">
<tr> <tr>
<th colspan="10">Default Shard</th> <th colspan="10">Default Shard</th>
</tr> </tr>
<tr> <tr>
<td align="right" width="40%">Shards :</td> <td align="right" width="40%">Shards :</td>
<td> <td>
<select name="tool_form_shard_default" style="width:150px;"> <select name="tool_form_shard_default" style="width:150px;">
<option value="0">-- none --</option> <option value="0">-- none --</option>
{section name=domain loop=$tool_shard_list} {section name=domain loop=$tool_shard_list}
{if $tool_shard_list[domain].domain_id == $tool_group_edit_data.group_default_domain_id} {if $tool_shard_list[domain].domain_id == $tool_group_edit_data.group_default_domain_id}
{if $tool_shard_list[domain].domain_visible} {if $tool_shard_list[domain].domain_visible}
{section name=shard loop=$tool_shard_list[domain].shard_list} {section name=shard loop=$tool_shard_list[domain].shard_list}
{if $tool_shard_list[domain].shard_list[shard].shard_selected} {if $tool_shard_list[domain].shard_list[shard].shard_selected}
<option value="{$tool_shard_list[domain].shard_list[shard].shard_id}" {if $tool_group_edit_data.group_default_shard_id == $tool_shard_list[domain].shard_list[shard].shard_id}selected{/if}>{$tool_shard_list[domain].shard_list[shard].shard_name}</option> <option value="{$tool_shard_list[domain].shard_list[shard].shard_id}" {if $tool_group_edit_data.group_default_shard_id == $tool_shard_list[domain].shard_list[shard].shard_id}selected{/if}>{$tool_shard_list[domain].shard_list[shard].shard_name}</option>
{/if} {/if}
{/section} {/section}
{/if} {/if}
{/if} {/if}
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
<input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}"> <input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}">
<input type="submit" name="toolaction" value="update default shard"> <input type="submit" name="toolaction" value="update default shard">
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
{/if} {/if}
<br> <br>
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=groups" method="post"> <form action="tool_administration.php?toolmode=groups" method="post">
<tr> <tr>
<th colspan="10">Default Application</th> <th colspan="10">Default Application</th>
</tr> </tr>
<tr> <tr>
<td align="right" width="40%">Application :</td> <td align="right" width="40%">Application :</td>
<td> <td>
<select name="tool_form_application_default" style="width:150px;"> <select name="tool_form_application_default" style="width:150px;">
<!--<option value="0">-- none --</option>--> <!--<option value="0">-- none --</option>-->
{section name=menu loop=$nel_menu} {section name=menu loop=$nel_menu}
{if $nel_menu[menu].application_order != 999999} {if $nel_menu[menu].application_order != 999999}
<option value="{$nel_menu[menu].application_id}" {if $tool_group_edit_data.group_default_application_id == $nel_menu[menu].application_id}selected{/if}>{$nel_menu[menu].application_name}</option> <option value="{$nel_menu[menu].application_id}" {if $tool_group_edit_data.group_default_application_id == $nel_menu[menu].application_id}selected{/if}>{$nel_menu[menu].application_name}</option>
{/if} {/if}
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
<input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}"> <input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}">
<input type="submit" name="toolaction" value="update default application"> <input type="submit" name="toolaction" value="update default application">
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
<br> <br>
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=groups" method="post"> <form action="tool_administration.php?toolmode=groups" method="post">
<tr> <tr>
<th colspan="10">Application Access</th> <th colspan="10">Application Access</th>
</tr> </tr>
<tr> <tr>
<td align="right" width="40%">Applications :</td> <td align="right" width="40%">Applications :</td>
<td> <td>
<select name="tool_form_application_ids[]" multiple size="10" style="width:150px;"> <select name="tool_form_application_ids[]" multiple size="10" style="width:150px;">
{section name=appl loop=$tool_application_list} {section name=appl loop=$tool_application_list}
<option value="{$tool_application_list[appl].application_id}" {if $tool_application_list[appl].application_restriction == ""}disabled{elseif $tool_application_list[appl].application_selected}selected{/if}>{$tool_application_list[appl].application_name}</option> <option value="{$tool_application_list[appl].application_id}" {if $tool_application_list[appl].application_restriction == ""}disabled{elseif $tool_application_list[appl].application_selected}selected{/if}>{$tool_application_list[appl].application_name}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
<input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}"> <input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}">
<input type="submit" name="toolaction" value="update applications"> <input type="submit" name="toolaction" value="update applications">
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
<br> <br>
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=groups" method="post"> <form action="tool_administration.php?toolmode=groups" method="post">
<tr> <tr>
<th colspan="10">Domain Access</th> <th colspan="10">Domain Access</th>
</tr> </tr>
<tr> <tr>
<td align="right" width="40%">Domains :</td> <td align="right" width="40%">Domains :</td>
<td> <td>
<select name="tool_form_domain_ids[]" multiple size="5" style="width:150px;"> <select name="tool_form_domain_ids[]" multiple size="5" style="width:150px;">
{section name=domain loop=$tool_domain_list} {section name=domain loop=$tool_domain_list}
<option value="{$tool_domain_list[domain].domain_id}" {if $tool_domain_list[domain].domain_selected}selected{/if}>{$tool_domain_list[domain].domain_name}</option> <option value="{$tool_domain_list[domain].domain_id}" {if $tool_domain_list[domain].domain_selected}selected{/if}>{$tool_domain_list[domain].domain_name}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
<input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}"> <input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}">
<input type="submit" name="toolaction" value="update domains"> <input type="submit" name="toolaction" value="update domains">
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
<br> <br>
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=groups" method="post"> <form action="tool_administration.php?toolmode=groups" method="post">
<tr> <tr>
<th colspan="10">Shard Access</th> <th colspan="10">Shard Access</th>
</tr> </tr>
<tr> <tr>
<td align="right" width="40%">Shards :</td> <td align="right" width="40%">Shards :</td>
<td> <td>
<select name="tool_form_shard_ids[]" multiple size="20" style="width:150px;"> <select name="tool_form_shard_ids[]" multiple size="20" style="width:150px;">
{section name=domain loop=$tool_shard_list} {section name=domain loop=$tool_shard_list}
{if $tool_shard_list[domain].domain_visible} {if $tool_shard_list[domain].domain_visible}
<option disabled >Domain : {$tool_shard_list[domain].domain_name}</option> <option disabled >Domain : {$tool_shard_list[domain].domain_name}</option>
{section name=shard loop=$tool_shard_list[domain].shard_list} {section name=shard loop=$tool_shard_list[domain].shard_list}
<option value="{$tool_shard_list[domain].domain_id}_{$tool_shard_list[domain].shard_list[shard].shard_id}" {if $tool_shard_list[domain].shard_list[shard].shard_disabled}disabled{elseif $tool_shard_list[domain].shard_list[shard].shard_selected}selected{/if}> +-- {$tool_shard_list[domain].shard_list[shard].shard_name}</option> <option value="{$tool_shard_list[domain].domain_id}_{$tool_shard_list[domain].shard_list[shard].shard_id}" {if $tool_shard_list[domain].shard_list[shard].shard_disabled}disabled{elseif $tool_shard_list[domain].shard_list[shard].shard_selected}selected{/if}> +-- {$tool_shard_list[domain].shard_list[shard].shard_name}</option>
{/section} {/section}
<option disabled></option> <option disabled></option>
{/if} {/if}
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
<input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}"> <input type="hidden" name="tool_form_group_id" value="{$tool_group_edit_data.group_id}">
<input type="submit" name="toolaction" value="update shards"> <input type="submit" name="toolaction" value="update shards">
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,56 +1,56 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td> <td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0"> <table width="100%" border="0" cellpadding="0">
<tr> <tr>
<td align="left" valign="top" width="70%"> <td align="left" valign="top" width="70%">
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Logs</th> <th colspan="10">Logs</th>
</tr> </tr>
<tr> <tr>
<td><b>ID</b></td> <td><b>ID</b></td>
<td><b>User</b></td> <td><b>User</b></td>
<td><b>Date</b></td> <td><b>Date</b></td>
<td><b>Action</b></td> <td><b>Action</b></td>
</tr> </tr>
{section name=log loop=$tool_log_list} {section name=log loop=$tool_log_list}
<tr class="{cycle values="row1,row0"}"> <tr class="{cycle values="row1,row0"}">
<td>{$tool_log_list[log].logs_id}</td> <td>{$tool_log_list[log].logs_id}</td>
<td>{$tool_log_list[log].logs_user_name}</td> <td>{$tool_log_list[log].logs_user_name}</td>
<td>{$tool_log_list[log].logs_date|date_format:"%Y/%m/%d %H:%M:%S"}</td> <td>{$tool_log_list[log].logs_date|date_format:"%Y/%m/%d %H:%M:%S"}</td>
<td>{$tool_log_list[log].logs_data}</td> <td>{$tool_log_list[log].logs_data}</td>
</tr> </tr>
{/section} {/section}
<tr> <tr>
<th colspan="4" align="center"> <th colspan="4" align="center">
<a href="tool_administration.php?toolmode=logs&page={$tool_log_page_first}">|&lt;</a>&nbsp;&nbsp;&nbsp; <a href="tool_administration.php?toolmode=logs&page={$tool_log_page_first}">|&lt;</a>&nbsp;&nbsp;&nbsp;
<a href="tool_administration.php?toolmode=logs&page={$tool_log_page_previous}">&lt;</a>&nbsp;&nbsp;&nbsp; <a href="tool_administration.php?toolmode=logs&page={$tool_log_page_previous}">&lt;</a>&nbsp;&nbsp;&nbsp;
Page {$tool_log_page_current} / {$tool_log_page_total}&nbsp;&nbsp;&nbsp; Page {$tool_log_page_current} / {$tool_log_page_total}&nbsp;&nbsp;&nbsp;
<a href="tool_administration.php?toolmode=logs&page={$tool_log_page_next}">&gt;</a>&nbsp;&nbsp;&nbsp; <a href="tool_administration.php?toolmode=logs&page={$tool_log_page_next}">&gt;</a>&nbsp;&nbsp;&nbsp;
<a href="tool_administration.php?toolmode=logs&page={$tool_log_page_last}">&gt;|</a> <a href="tool_administration.php?toolmode=logs&page={$tool_log_page_last}">&gt;|</a>
</th> </th>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,172 +1,172 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td> <td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0"> <table width="100%" border="0" cellpadding="0">
<tr> <tr>
<td align="left" valign="top" width="70%"> <td align="left" valign="top" width="70%">
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Restart Groups</th> <th colspan="10">Restart Groups</th>
</tr> </tr>
<tr> <tr>
<td><b>ID</b></td> <td><b>ID</b></td>
<td><b>Name</b></td> <td><b>Name</b></td>
<td><b>List</b></td> <td><b>List</b></td>
<td><b>Order</b></td> <td><b>Order</b></td>
</tr> </tr>
{section name=restart loop=$tool_restart_list} {section name=restart loop=$tool_restart_list}
{cycle assign="trclass" values="row1,row0"} {cycle assign="trclass" values="row1,row0"}
<tr class="{$trclass}"> <tr class="{$trclass}">
<td>{$tool_restart_list[restart].restart_group_id}</td> <td>{$tool_restart_list[restart].restart_group_id}</td>
<td><a href="tool_administration.php?toolmode=restarts&toolaction=edit&restart_id={$tool_restart_list[restart].restart_group_id}">{$tool_restart_list[restart].restart_group_name}</a></td> <td><a href="tool_administration.php?toolmode=restarts&toolaction=edit&restart_id={$tool_restart_list[restart].restart_group_id}">{$tool_restart_list[restart].restart_group_name}</a></td>
<td>{$tool_restart_list[restart].restart_group_list}</td> <td>{$tool_restart_list[restart].restart_group_list}</td>
<td>{$tool_restart_list[restart].restart_group_order}</td> <td>{$tool_restart_list[restart].restart_group_order}</td>
</tr> </tr>
{/section} {/section}
</table> </table>
</td> </td>
<td align="right" valign="top" width="30%"> <td align="right" valign="top" width="30%">
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=restarts" method="post"> <form action="tool_administration.php?toolmode=restarts" method="post">
<tr> <tr>
<th colspan="10">Restart Group Details</th> <th colspan="10">Restart Group Details</th>
</tr> </tr>
{if $tool_restart_edit_data.restart_group_id} {if $tool_restart_edit_data.restart_group_id}
<tr> <tr>
<td align="right">Id :</td> <td align="right">Id :</td>
<td><input type="text" name="tool_form_restart_id" value="{$tool_restart_edit_data.restart_group_id}" size="10" readonly></td> <td><input type="text" name="tool_form_restart_id" value="{$tool_restart_edit_data.restart_group_id}" size="10" readonly></td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td align="right">Name :</td> <td align="right">Name :</td>
<td><input type="text" name="tool_form_restart_name" value="{$tool_restart_edit_data.restart_group_name}" maxlength="128" size="40"></td> <td><input type="text" name="tool_form_restart_name" value="{$tool_restart_edit_data.restart_group_name}" maxlength="128" size="40"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Services :</td> <td align="right">Services :</td>
<td><input type="text" name="tool_form_restart_services" value="{$tool_restart_edit_data.restart_group_list}" maxlength="255" size="40"></td> <td><input type="text" name="tool_form_restart_services" value="{$tool_restart_edit_data.restart_group_list}" maxlength="255" size="40"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Order :</td> <td align="right">Order :</td>
<td><input type="text" name="tool_form_restart_order" value="{$tool_restart_edit_data.restart_group_order}" maxlength="3" size="10"></td> <td><input type="text" name="tool_form_restart_order" value="{$tool_restart_edit_data.restart_group_order}" maxlength="3" size="10"></td>
</tr> </tr>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td> <td>
{if $tool_restart_edit_data.restart_group_id} {if $tool_restart_edit_data.restart_group_id}
<input type="submit" name="toolaction" value="update"> <input type="submit" name="toolaction" value="update">
<input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the restart group &lt; {$tool_restart_edit_data.restart_group_name} &gt; ?')) return true; return false;"> <input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the restart group &lt; {$tool_restart_edit_data.restart_group_name} &gt; ?')) return true; return false;">
{else} {else}
<input type="submit" name="toolaction" value="create"> <input type="submit" name="toolaction" value="create">
{/if} {/if}
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0"> <table width="100%" border="0" cellpadding="0">
<tr> <tr>
<td align="left" valign="top" width="70%"> <td align="left" valign="top" width="70%">
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Restart Messages</th> <th colspan="10">Restart Messages</th>
</tr> </tr>
<tr> <tr>
<td><b>ID</b></td> <td><b>ID</b></td>
<td><b>Language</b></td> <td><b>Language</b></td>
<td><b>Name</b></td> <td><b>Name</b></td>
<td><b>Value</b></td> <td><b>Value</b></td>
</tr> </tr>
{section name=msg loop=$tool_message_list} {section name=msg loop=$tool_message_list}
{cycle assign="trclass" values="row1,row0"} {cycle assign="trclass" values="row1,row0"}
<tr class="{$trclass}"> <tr class="{$trclass}">
<td>{$tool_message_list[msg].restart_message_id}</td> <td>{$tool_message_list[msg].restart_message_id}</td>
<td>{$tool_message_list[msg].restart_message_lang}</td> <td>{$tool_message_list[msg].restart_message_lang}</td>
<td><a href="tool_administration.php?toolmode=restarts&toolaction=editmsg&msg_id={$tool_message_list[msg].restart_message_id}">{$tool_message_list[msg].restart_message_name}</a></td> <td><a href="tool_administration.php?toolmode=restarts&toolaction=editmsg&msg_id={$tool_message_list[msg].restart_message_id}">{$tool_message_list[msg].restart_message_name}</a></td>
<td>{$tool_message_list[msg].restart_message_value}</td> <td>{$tool_message_list[msg].restart_message_value}</td>
</tr> </tr>
{/section} {/section}
</table> </table>
</td> </td>
<td align="right" valign="top" width="30%"> <td align="right" valign="top" width="30%">
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=restarts" method="post"> <form action="tool_administration.php?toolmode=restarts" method="post">
<tr> <tr>
<th colspan="10">Restart Message Details</th> <th colspan="10">Restart Message Details</th>
</tr> </tr>
{if $tool_message_edit_data.restart_message_id} {if $tool_message_edit_data.restart_message_id}
<tr> <tr>
<td align="right">Id :</td> <td align="right">Id :</td>
<td><input type="text" name="tool_form_message_id" value="{$tool_message_edit_data.restart_message_id}" size="10" readonly></td> <td><input type="text" name="tool_form_message_id" value="{$tool_message_edit_data.restart_message_id}" size="10" readonly></td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td align="right">Name :</td> <td align="right">Name :</td>
<td><input type="text" name="tool_form_message_name" value="{$tool_message_edit_data.restart_message_name}" maxlength="32" size="40"></td> <td><input type="text" name="tool_form_message_name" value="{$tool_message_edit_data.restart_message_name}" maxlength="32" size="40"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Value :</td> <td align="right">Value :</td>
<td><input type="text" name="tool_form_message_value" value="{$tool_message_edit_data.restart_message_value}" maxlength="255" size="40"></td> <td><input type="text" name="tool_form_message_value" value="{$tool_message_edit_data.restart_message_value}" maxlength="255" size="40"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Language :</td> <td align="right">Language :</td>
<td> <td>
<select name="tool_form_message_lang"> <select name="tool_form_message_lang">
{section name=lang loop=$tool_language_list} {section name=lang loop=$tool_language_list}
<option value="{$tool_language_list[lang].lang_id}" {if $tool_message_edit_data.restart_message_lang == $tool_language_list[lang].lang_id}selected{/if}>{$tool_language_list[lang].lang_name}</option> <option value="{$tool_language_list[lang].lang_id}" {if $tool_message_edit_data.restart_message_lang == $tool_language_list[lang].lang_id}selected{/if}>{$tool_language_list[lang].lang_name}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td> <td>
{if $tool_message_edit_data.restart_message_id } {if $tool_message_edit_data.restart_message_id }
<input type="submit" name="toolaction" value="update message"> <input type="submit" name="toolaction" value="update message">
<input type="submit" name="toolaction" value="delete message" onclick="if (confirm('Are you sure you want to DELETE the restart message &lt; {$tool_message_edit_data.restart_message_name} &gt; ?')) return true; return false;"> <input type="submit" name="toolaction" value="delete message" onclick="if (confirm('Are you sure you want to DELETE the restart message &lt; {$tool_message_edit_data.restart_message_name} &gt; ?')) return true; return false;">
{else} {else}
<input type="submit" name="toolaction" value="create message"> <input type="submit" name="toolaction" value="create message">
{/if} {/if}
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,110 +1,110 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td> <td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0"> <table width="100%" border="0" cellpadding="0">
<tr> <tr>
<td align="left" valign="top" width="70%"> <td align="left" valign="top" width="70%">
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Shards</th> <th colspan="10">Shards</th>
</tr> </tr>
<tr> <tr>
<td><b>ID</b></td> <td><b>ID</b></td>
<td><b>Name</b></td> <td><b>Name</b></td>
<td><b>Shard ID</b></td> <td><b>Shard ID</b></td>
<td><b>Domain</b></td> <td><b>Domain</b></td>
<td><b>Language</b></td> <td><b>Language</b></td>
</tr> </tr>
{section name=shard loop=$tool_shard_list} {section name=shard loop=$tool_shard_list}
{cycle assign="trclass" values="row1,row0"} {cycle assign="trclass" values="row1,row0"}
<tr class="{$trclass}"> <tr class="{$trclass}">
<td>{$tool_shard_list[shard].shard_id}</td> <td>{$tool_shard_list[shard].shard_id}</td>
<td><a href="tool_administration.php?toolmode=shards&toolaction=edit&shard_id={$tool_shard_list[shard].shard_id}">{$tool_shard_list[shard].shard_name}</a></td> <td><a href="tool_administration.php?toolmode=shards&toolaction=edit&shard_id={$tool_shard_list[shard].shard_id}">{$tool_shard_list[shard].shard_name}</a></td>
<td>{$tool_shard_list[shard].shard_as_id}</td> <td>{$tool_shard_list[shard].shard_as_id}</td>
<td>{$tool_shard_list[shard].domain_name}</td> <td>{$tool_shard_list[shard].domain_name}</td>
<td>{$tool_shard_list[shard].shard_lang}</td> <td>{$tool_shard_list[shard].shard_lang}</td>
</tr> </tr>
{/section} {/section}
</table> </table>
</td> </td>
<td align="right" valign="top" width="30%"> <td align="right" valign="top" width="30%">
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=shards" method="post"> <form action="tool_administration.php?toolmode=shards" method="post">
<tr> <tr>
<th colspan="10">Shard Details</th> <th colspan="10">Shard Details</th>
</tr> </tr>
{if $tool_shard_edit_data.shard_id} {if $tool_shard_edit_data.shard_id}
<tr> <tr>
<td align="right">Id :</td> <td align="right">Id :</td>
<td><input type="text" name="tool_form_shard_id" value="{$tool_shard_edit_data.shard_id}" size="10" readonly></td> <td><input type="text" name="tool_form_shard_id" value="{$tool_shard_edit_data.shard_id}" size="10" readonly></td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td align="right">Name :</td> <td align="right">Name :</td>
<td><input type="text" name="tool_form_shard_name" value="{$tool_shard_edit_data.shard_name}" maxlength="128" size="30"></td> <td><input type="text" name="tool_form_shard_name" value="{$tool_shard_edit_data.shard_name}" maxlength="128" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Shard ID :</td> <td align="right">Shard ID :</td>
<td><input type="text" name="tool_form_shard_as_id" value="{$tool_shard_edit_data.shard_as_id}" maxlength="255" size="30"></td> <td><input type="text" name="tool_form_shard_as_id" value="{$tool_shard_edit_data.shard_as_id}" maxlength="255" size="30"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Domain :</td> <td align="right">Domain :</td>
<td> <td>
<select name="tool_form_shard_domain_id"> <select name="tool_form_shard_domain_id">
{section name=domain loop=$tool_domain_list} {section name=domain loop=$tool_domain_list}
<option value="{$tool_domain_list[domain].domain_id}" {if $tool_shard_edit_data.shard_domain_id == $tool_domain_list[domain].domain_id}selected{/if}>{$tool_domain_list[domain].domain_name}</option> <option value="{$tool_domain_list[domain].domain_id}" {if $tool_shard_edit_data.shard_domain_id == $tool_domain_list[domain].domain_id}selected{/if}>{$tool_domain_list[domain].domain_name}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="right">Language :</td> <td align="right">Language :</td>
<td> <td>
<select name="tool_form_shard_language"> <select name="tool_form_shard_language">
{section name=lang loop=$tool_language_list} {section name=lang loop=$tool_language_list}
<option value="{$tool_language_list[lang].lang_id}" {if $tool_shard_edit_data.shard_lang == $tool_language_list[lang].lang_id}selected{/if}>{$tool_language_list[lang].lang_name}</option> <option value="{$tool_language_list[lang].lang_id}" {if $tool_shard_edit_data.shard_lang == $tool_language_list[lang].lang_id}selected{/if}>{$tool_language_list[lang].lang_name}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td> <td>
{if $tool_shard_edit_data.shard_id} {if $tool_shard_edit_data.shard_id}
<input type="submit" name="toolaction" value="update"> <input type="submit" name="toolaction" value="update">
<input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the shard &lt; {$tool_shard_edit_data.shard_name} &gt; ?')) return true; return false;"> <input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the shard &lt; {$tool_shard_edit_data.shard_name} &gt; ?')) return true; return false;">
{else} {else}
<input type="submit" name="toolaction" value="create"> <input type="submit" name="toolaction" value="create">
{/if} {/if}
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,207 +1,207 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td> <td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0"> <table width="100%" border="0" cellpadding="0">
<tr> <tr>
<td align="left" valign="top" width="70%"> <td align="left" valign="top" width="70%">
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Accounts</th> <th colspan="10">Accounts</th>
</tr> </tr>
<tr> <tr>
<td><b>ID</b></td> <td><b>ID</b></td>
<td><b>Login</b></td> <td><b>Login</b></td>
<td><b>Group</b></td> <td><b>Group</b></td>
<td><b>Created</b></td> <td><b>Created</b></td>
<td><b>Last&nbsp;Logged</b></td> <td><b>Last&nbsp;Logged</b></td>
<td><b>Num&nbsp;Logs</b></td> <td><b>Num&nbsp;Logs</b></td>
<td><b>Active</b></td> <td><b>Active</b></td>
</tr> </tr>
{section name=user loop=$tool_user_list} {section name=user loop=$tool_user_list}
{cycle assign="trclass" values="row1,row0"} {cycle assign="trclass" values="row1,row0"}
<tr class="{$trclass}"> <tr class="{$trclass}">
<td>{$tool_user_list[user].user_id}</td> <td>{$tool_user_list[user].user_id}</td>
<td><a href="tool_administration.php?toolmode=users&toolaction=edit&user_id={$tool_user_list[user].user_id}">{$tool_user_list[user].user_name}</a></td> <td><a href="tool_administration.php?toolmode=users&toolaction=edit&user_id={$tool_user_list[user].user_id}">{$tool_user_list[user].user_name}</a></td>
<td><a href="tool_administration.php?toolmode=groups&toolaction=edit&group_id={$tool_user_list[user].user_group_id}">{$tool_user_list[user].user_group_name}</a></td> <td><a href="tool_administration.php?toolmode=groups&toolaction=edit&group_id={$tool_user_list[user].user_group_id}">{$tool_user_list[user].user_group_name}</a></td>
<td>{$tool_user_list[user].user_created|date_format:"%Y/%m/%d %H:%M:%S"}</td> <td>{$tool_user_list[user].user_created|date_format:"%Y/%m/%d %H:%M:%S"}</td>
{if $tool_user_list[user].user_logged_last > 0} {if $tool_user_list[user].user_logged_last > 0}
<td>{$tool_user_list[user].user_logged_last|date_format:"%Y/%m/%d %H:%M:%S"}</td> <td>{$tool_user_list[user].user_logged_last|date_format:"%Y/%m/%d %H:%M:%S"}</td>
{else} {else}
<td>never</td> <td>never</td>
{/if} {/if}
<td>{$tool_user_list[user].user_logged_count}</td> <td>{$tool_user_list[user].user_logged_count}</td>
<td>{if $tool_user_list[user].user_active == 1}Yes{else}No{/if}</td> <td>{if $tool_user_list[user].user_active == 1}Yes{else}No{/if}</td>
</tr> </tr>
{/section} {/section}
</table> </table>
</td> </td>
<td align="right" valign="top" width="30%"> <td align="right" valign="top" width="30%">
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=users" method="post"> <form action="tool_administration.php?toolmode=users" method="post">
<tr> <tr>
<th colspan="10">Account Details</th> <th colspan="10">Account Details</th>
</tr> </tr>
{if $tool_user_edit_data.user_id} {if $tool_user_edit_data.user_id}
<tr> <tr>
<td width="40%" align="right">Id :</td> <td width="40%" align="right">Id :</td>
<td><input type="text" name="tool_form_user_id" value="{$tool_user_edit_data.user_id}" size="10" readonly></td> <td><input type="text" name="tool_form_user_id" value="{$tool_user_edit_data.user_id}" size="10" readonly></td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td width="40%" align="right">Name :</td> <td width="40%" align="right">Name :</td>
<td><input type="text" name="tool_form_user_name" value="{$tool_user_edit_data.user_name}" maxlength="32" size="30"></td> <td><input type="text" name="tool_form_user_name" value="{$tool_user_edit_data.user_name}" maxlength="32" size="30"></td>
</tr> </tr>
<tr> <tr>
<td width="40%" align="right">Password :</td> <td width="40%" align="right">Password :</td>
<td><input type="password" name="tool_form_user_password" value="" maxlength="16" size="30"></td> <td><input type="password" name="tool_form_user_password" value="" maxlength="16" size="30"></td>
</tr> </tr>
<tr> <tr>
<td width="40%" align="right">Group :</td> <td width="40%" align="right">Group :</td>
<td> <td>
<select name="tool_form_user_group"> <select name="tool_form_user_group">
{section name=group loop=$tool_group_list} {section name=group loop=$tool_group_list}
<option value="{$tool_group_list[group].group_id}" {if $tool_user_edit_data.user_group_id == $tool_group_list[group].group_id}selected{/if}>{$tool_group_list[group].group_name}</option> <option value="{$tool_group_list[group].group_id}" {if $tool_user_edit_data.user_group_id == $tool_group_list[group].group_id}selected{/if}>{$tool_group_list[group].group_name}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%" align="right">Active :</td> <td width="40%" align="right">Active :</td>
<td> <td>
<select name="tool_form_user_active"> <select name="tool_form_user_active">
<option value="1" {if $tool_user_edit_data.user_active == 1}selected{/if}>Yes</option> <option value="1" {if $tool_user_edit_data.user_active == 1}selected{/if}>Yes</option>
<option value="0" {if $tool_user_edit_data.user_active == 0}selected{/if}>No</option> <option value="0" {if $tool_user_edit_data.user_active == 0}selected{/if}>No</option>
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
{if $tool_user_edit_data.user_id} {if $tool_user_edit_data.user_id}
<input type="submit" name="toolaction" value="update"> <input type="submit" name="toolaction" value="update">
<input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the user &lt; {$tool_user_edit_data.user_name} &gt; ?')) return true; return false;"> <input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE the user &lt; {$tool_user_edit_data.user_name} &gt; ?')) return true; return false;">
{else} {else}
<input type="submit" name="toolaction" value="create"> <input type="submit" name="toolaction" value="create">
{/if} {/if}
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
{if $tool_user_edit_data.user_id} {if $tool_user_edit_data.user_id}
<br> <br>
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=users" method="post"> <form action="tool_administration.php?toolmode=users" method="post">
<tr> <tr>
<th colspan="10">Application Access</th> <th colspan="10">Application Access</th>
</tr> </tr>
<tr> <tr>
<td align="right" width="40%">Applications :</td> <td align="right" width="40%">Applications :</td>
<td> <td>
<select name="tool_form_application_ids[]" multiple size="10" style="width:150px;"> <select name="tool_form_application_ids[]" multiple size="10" style="width:150px;">
{section name=appl loop=$tool_application_list} {section name=appl loop=$tool_application_list}
<option value="{$tool_application_list[appl].application_id}" {if $tool_application_list[appl].application_restriction == "" || $tool_application_list[appl].application_disabled}disabled{elseif $tool_application_list[appl].application_selected}selected{/if}>{$tool_application_list[appl].application_name}</option> <option value="{$tool_application_list[appl].application_id}" {if $tool_application_list[appl].application_restriction == "" || $tool_application_list[appl].application_disabled}disabled{elseif $tool_application_list[appl].application_selected}selected{/if}>{$tool_application_list[appl].application_name}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
<input type="hidden" name="tool_form_user_id" value="{$tool_user_edit_data.user_id}"> <input type="hidden" name="tool_form_user_id" value="{$tool_user_edit_data.user_id}">
<input type="submit" name="toolaction" value="update applications"> <input type="submit" name="toolaction" value="update applications">
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
<br> <br>
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=users" method="post"> <form action="tool_administration.php?toolmode=users" method="post">
<tr> <tr>
<th colspan="10">Domain Access</th> <th colspan="10">Domain Access</th>
</tr> </tr>
<tr> <tr>
<td width="40%" align="right">Domains :</td> <td width="40%" align="right">Domains :</td>
<td> <td>
<select name="tool_form_domain_ids[]" multiple size="5" style="width:150px;"> <select name="tool_form_domain_ids[]" multiple size="5" style="width:150px;">
{section name=domain loop=$tool_domain_list} {section name=domain loop=$tool_domain_list}
<option value="{$tool_domain_list[domain].domain_id}" {if $tool_domain_list[domain].domain_disabled}disabled{elseif $tool_domain_list[domain].domain_selected}selected{/if}>{$tool_domain_list[domain].domain_name}</option> <option value="{$tool_domain_list[domain].domain_id}" {if $tool_domain_list[domain].domain_disabled}disabled{elseif $tool_domain_list[domain].domain_selected}selected{/if}>{$tool_domain_list[domain].domain_name}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
<input type="hidden" name="tool_form_user_id" value="{$tool_user_edit_data.user_id}"> <input type="hidden" name="tool_form_user_id" value="{$tool_user_edit_data.user_id}">
<input type="submit" name="toolaction" value="update domains"> <input type="submit" name="toolaction" value="update domains">
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
<br> <br>
<table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="90%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_administration.php?toolmode=users" method="post"> <form action="tool_administration.php?toolmode=users" method="post">
<tr> <tr>
<th colspan="10">Shard Access {if $tool_domain_list[domain].domain_disabled}(group){/if}</th> <th colspan="10">Shard Access {if $tool_domain_list[domain].domain_disabled}(group){/if}</th>
</tr> </tr>
<tr> <tr>
<td width="40%" align="right">Shards :</td> <td width="40%" align="right">Shards :</td>
<td> <td>
<select name="tool_form_shard_ids[]" multiple size="20" style="width:150px;"> <select name="tool_form_shard_ids[]" multiple size="20" style="width:150px;">
{section name=domain loop=$tool_shard_list} {section name=domain loop=$tool_shard_list}
{if $tool_shard_list[domain].domain_visible} {if $tool_shard_list[domain].domain_visible}
<option value="" disabled >Domain : {$tool_shard_list[domain].domain_name}</option> <option value="" disabled >Domain : {$tool_shard_list[domain].domain_name}</option>
{section name=shard loop=$tool_shard_list[domain].shard_list} {section name=shard loop=$tool_shard_list[domain].shard_list}
<option value="{$tool_shard_list[domain].domain_id}_{$tool_shard_list[domain].shard_list[shard].shard_id}" {if $tool_shard_list[domain].shard_list[shard].shard_disabled}disabled{elseif $tool_shard_list[domain].shard_list[shard].shard_selected}selected{/if}> +-- {$tool_shard_list[domain].shard_list[shard].shard_name}</option> <option value="{$tool_shard_list[domain].domain_id}_{$tool_shard_list[domain].shard_list[shard].shard_id}" {if $tool_shard_list[domain].shard_list[shard].shard_disabled}disabled{elseif $tool_shard_list[domain].shard_list[shard].shard_selected}selected{/if}> +-- {$tool_shard_list[domain].shard_list[shard].shard_name}</option>
{/section} {/section}
<option disabled></option> <option disabled></option>
{/if} {/if}
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="40%">&nbsp;</td> <td width="40%">&nbsp;</td>
<td> <td>
<input type="hidden" name="tool_form_user_id" value="{$tool_user_edit_data.user_id}"> <input type="hidden" name="tool_form_user_id" value="{$tool_user_edit_data.user_id}">
{* <input type="hidden" name="tool_form_domain_id" value="{$tool_shard_list[domain].domain_id}"> *} {* <input type="hidden" name="tool_form_domain_id" value="{$tool_shard_list[domain].domain_id}"> *}
<input type="submit" name="toolaction" value="update shards"> <input type="submit" name="toolaction" value="update shards">
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,274 +1,274 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
{literal} {literal}
<script language="Javascript" type="text/javascript"> <script language="Javascript" type="text/javascript">
<!-- <!--
function CheckAll() function CheckAll()
{ {
for (var i=0; i<document.qlist.elements.length; i++) for (var i=0; i<document.qlist.elements.length; i++)
{ {
var e = document.qlist.elements[i]; var e = document.qlist.elements[i];
if (e.type == 'checkbox' && e.name != 'allbox') if (e.type == 'checkbox' && e.name != 'allbox')
e.checked = document.qlist.allbox.checked; e.checked = document.qlist.allbox.checked;
} }
} }
function CheckToggle(checkname) function CheckToggle(checkname)
{ {
checkname.checked = !checkname.checked; checkname.checked = !checkname.checked;
} }
function CheckAll() function CheckAll()
{ {
for (var i=0; i<document.qlist.elements.length; i++) for (var i=0; i<document.qlist.elements.length; i++)
{ {
var e = document.qlist.elements[i]; var e = document.qlist.elements[i];
if (e.type == 'checkbox' && e.name != 'allbox') if (e.type == 'checkbox' && e.name != 'allbox')
e.checked = document.qlist.allbox.checked; e.checked = document.qlist.allbox.checked;
} }
} }
function CheckToggle(checkname) function CheckToggle(checkname)
{ {
checkname.checked = !checkname.checked; checkname.checked = !checkname.checked;
} }
var total_secs; var total_secs;
function TimerDown(secs) function TimerDown(secs)
{ {
total_secs = secs; total_secs = secs;
CountDown(); CountDown();
} }
function TimerDisplay(secs) function TimerDisplay(secs)
{ {
timer_min = Math.floor(secs / 60); timer_min = Math.floor(secs / 60);
timer_sec = secs % 60; timer_sec = secs % 60;
if (timer_min < 10) timer_min = '0'+ timer_min; if (timer_min < 10) timer_min = '0'+ timer_min;
if (timer_sec < 10) timer_sec = '0'+ timer_sec; if (timer_sec < 10) timer_sec = '0'+ timer_sec;
return timer_min+':'+timer_sec; return timer_min+':'+timer_sec;
} }
function CountDown() function CountDown()
{ {
total_secs--; total_secs--;
if (total_secs >= 0) if (total_secs >= 0)
{ {
document.fcounter.counter.value = TimerDisplay(total_secs); document.fcounter.counter.value = TimerDisplay(total_secs);
down=setTimeout("CountDown()",1000); down=setTimeout("CountDown()",1000);
} }
} }
function toggleBox(mybox1, mybox2) function toggleBox(mybox1, mybox2)
{ {
if (document.all) if (document.all)
{ {
if (document.all.item(mybox1).style.display == "none") if (document.all.item(mybox1).style.display == "none")
{ {
document.all.item(mybox1).style.display = ""; document.all.item(mybox1).style.display = "";
document.all.item(mybox2).style.display = "none"; document.all.item(mybox2).style.display = "none";
} }
else else
{ {
document.all.item(mybox2).style.display = ""; document.all.item(mybox2).style.display = "";
document.all.item(mybox1).style.display = "none"; document.all.item(mybox1).style.display = "none";
} }
} }
else else
{ {
if (document.getElementById(mybox1).style.display == "none") if (document.getElementById(mybox1).style.display == "none")
{ {
document.getElementById(mybox1).style.display = ""; document.getElementById(mybox1).style.display = "";
document.getElementById(mybox2).style.display = "none"; document.getElementById(mybox2).style.display = "none";
} }
else else
{ {
document.getElementById(mybox2).style.display = ""; document.getElementById(mybox2).style.display = "";
document.getElementById(mybox1).style.display = "none"; document.getElementById(mybox1).style.display = "none";
} }
} }
} }
//--> //-->
</script> </script>
{/literal} {/literal}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0" cellspacing="10"> <table width="100%" border="0" cellpadding="0" cellspacing="10">
<tr> <tr>
<td align="left" valign="top" width="150px"> <td align="left" valign="top" width="150px">
{if $tool_domain_selected && $tool_shard_selected} {if $tool_domain_selected && $tool_shard_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Refresh</th> <th colspan="10">Refresh</th>
</tr> </tr>
<form action="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter"> <form action="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter">
<tr> <tr>
<td> <td>
<select name="services_refresh" style="width:100%;" onchange="this.form.submit();"> <select name="services_refresh" style="width:100%;" onchange="this.form.submit();">
{section name=refresh loop=$tool_refresh_list} {section name=refresh loop=$tool_refresh_list}
<option value="{$tool_refresh_list[refresh].secs}" {if $tool_refresh_rate == $tool_refresh_list[refresh].secs}selected{/if}>{$tool_refresh_list[refresh].desc}</option> <option value="{$tool_refresh_list[refresh].secs}" {if $tool_refresh_rate == $tool_refresh_list[refresh].secs}selected{/if}>{$tool_refresh_list[refresh].desc}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
{if $tool_refresh_rate > 0} {if $tool_refresh_rate > 0}
<tr> <tr>
<td> <td>
<input type="text" name="counter" value="" readonly class="refresh_counter"> <input type="text" name="counter" value="" readonly class="refresh_counter">
<script language="Javascript" type="text/javascript"> <script language="Javascript" type="text/javascript">
<!-- <!--
TimerDown({$tool_refresh_rate}); TimerDown({$tool_refresh_rate});
--> -->
</script> </script>
</td> </td>
</tr> </tr>
{/if} {/if}
</form> </form>
</table> </table>
<br> <br>
{/if} {/if}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Domains</th> <th colspan="10">Domains</th>
</tr> </tr>
{section name=domain loop=$tool_domain_list} {section name=domain loop=$tool_domain_list}
<tr> <tr>
<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> <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>
</tr> </tr>
{/section} {/section}
</table> </table>
{if $tool_domain_selected} {if $tool_domain_selected}
<br> <br>
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Shards</th> <th colspan="10">Shards</th>
</tr> </tr>
{section name=shard loop=$tool_shard_list} {section name=shard loop=$tool_shard_list}
{if $tool_domain_selected == $tool_shard_list[shard].shard_domain_id} {if $tool_domain_selected == $tool_shard_list[shard].shard_domain_id}
<tr> <tr>
<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> <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>
</tr> </tr>
{/if} {/if}
{/section} {/section}
</table> </table>
{if $tool_frame_list} {if $tool_frame_list}
<!-- <br> <!-- <br>
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Time Frame</th> <th colspan="10">Time Frame</th>
</tr> </tr>
{section name=frame loop=$tool_frame_list} {section name=frame loop=$tool_frame_list}
<tr> <tr>
<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> <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>
</tr> </tr>
{/section} {/section}
</table>--> </table>-->
{/if} {/if}
{if $tool_graph_list} {if $tool_graph_list}
<br> <br>
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Graphs</th> <th colspan="10">Graphs</th>
</tr> </tr>
{section name=gvar loop=$tool_graph_variables} {section name=gvar loop=$tool_graph_variables}
<tr class="row1_static" style="border: 1px solid #000000;"> <tr class="row1_static" style="border: 1px solid #000000;">
<td align="left"><b>{$tool_graph_variables[gvar]}</b></td> <td align="left"><b>{$tool_graph_variables[gvar]}</b></td>
<!--<td align="center"><small>Low</small></td>--> <!--<td align="center"><small>Low</small></td>-->
<td align="center"><small>High</small></td> <td align="center"><small>High</small></td>
</tr> </tr>
{assign var="var_name" value=$tool_graph_variables[gvar]} {assign var="var_name" value=$tool_graph_variables[gvar]}
{section name=gdata loop=$tool_graph_datas.$var_name} {section name=gdata loop=$tool_graph_datas.$var_name}
<tr class="{if ($tool_graph_variable_selected == $var_name) && ($tool_graph_service_selected == $tool_graph_datas.$var_name[gdata].service)}varlistselected{else}varlist{/if}"> <tr class="{if ($tool_graph_variable_selected == $var_name) && ($tool_graph_service_selected == $tool_graph_datas.$var_name[gdata].service)}varlistselected{else}varlist{/if}">
<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> <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>
<!--<td align="center"><small>{if $tool_graph_datas.$var_name[gdata].low_file != ''}Yes{else}No{/if}</small></td>--> <!--<td align="center"><small>{if $tool_graph_datas.$var_name[gdata].low_file != ''}Yes{else}No{/if}</small></td>-->
<td align="center"><small>{if $tool_graph_datas.$var_name[gdata].high_file != ''}Yes{else}No{/if}</small></td> <td align="center"><small>{if $tool_graph_datas.$var_name[gdata].high_file != ''}Yes{else}No{/if}</small></td>
</tr> </tr>
{/section} {/section}
{/section} {/section}
</table> </table>
{/if} {/if}
{/if} {/if}
</td> </td>
<td width="10px">&nbsp;</td> <td width="10px">&nbsp;</td>
<td align="right" valign="top"> <td align="right" valign="top">
{if $tool_domain_error} {if $tool_domain_error}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0"><span class="alert">{$tool_domain_error}</span></td> <td class="row0"><span class="alert">{$tool_domain_error}</span></td>
</tr> </tr>
</table> </table>
{elseif !$tool_domain_selected} {elseif !$tool_domain_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0">You need to select a domain.</td> <td class="row0">You need to select a domain.</td>
</tr> </tr>
</table> </table>
{else} {else}
{if $tool_as_error} {if $tool_as_error}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0"><span class="alert">{$tool_as_error}</span></td> <td class="row0"><span class="alert">{$tool_as_error}</span></td>
</tr> </tr>
</table> </table>
<br> <br>
{/if} {/if}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0" width="50%" valign="top"> <td class="row0" width="50%" valign="top">
{if $tool_rrd_output} {if $tool_rrd_output}
{section name=rrd loop=$tool_rrd_output} {section name=rrd loop=$tool_rrd_output}
{$tool_rrd_output[rrd].desc}<br> {$tool_rrd_output[rrd].desc}<br>
<img src="{$tool_rrd_output[rrd].img}" border="0"><br> <img src="{$tool_rrd_output[rrd].img}" border="0"><br>
{/section} {/section}
{/if} {/if}
</td> </td>
<td class="row0" width="50%" valign="top"> <td class="row0" width="50%" valign="top">
{if $tool_rrd_high_output} {if $tool_rrd_high_output}
{section name=rrd loop=$tool_rrd_high_output} {section name=rrd loop=$tool_rrd_high_output}
<b>{$tool_rrd_high_output[rrd].desc}</b><br> <b>{$tool_rrd_high_output[rrd].desc}</b><br>
{if $tool_rrd_high_output[rrd].img != ''} {if $tool_rrd_high_output[rrd].img != ''}
<img src="{$tool_rrd_high_output[rrd].img}" border="0"><br> <img src="{$tool_rrd_high_output[rrd].img}" border="0"><br>
{/if} {/if}
{/section} {/section}
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,230 +1,230 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
{literal} {literal}
<script language="Javascript" type="text/javascript"> <script language="Javascript" type="text/javascript">
<!-- <!--
function CheckAll() function CheckAll()
{ {
for (var i=0; i<document.qlist.elements.length; i++) for (var i=0; i<document.qlist.elements.length; i++)
{ {
var e = document.qlist.elements[i]; var e = document.qlist.elements[i];
if (e.type == 'checkbox' && e.name != 'allbox') if (e.type == 'checkbox' && e.name != 'allbox')
e.checked = document.qlist.allbox.checked; e.checked = document.qlist.allbox.checked;
} }
} }
function CheckToggle(checkname) function CheckToggle(checkname)
{ {
checkname.checked = !checkname.checked; checkname.checked = !checkname.checked;
} }
function CheckAll() function CheckAll()
{ {
for (var i=0; i<document.qlist.elements.length; i++) for (var i=0; i<document.qlist.elements.length; i++)
{ {
var e = document.qlist.elements[i]; var e = document.qlist.elements[i];
if (e.type == 'checkbox' && e.name != 'allbox') if (e.type == 'checkbox' && e.name != 'allbox')
e.checked = document.qlist.allbox.checked; e.checked = document.qlist.allbox.checked;
} }
} }
function CheckToggle(checkname) function CheckToggle(checkname)
{ {
checkname.checked = !checkname.checked; checkname.checked = !checkname.checked;
} }
var total_secs; var total_secs;
function TimerDown(secs) function TimerDown(secs)
{ {
total_secs = secs; total_secs = secs;
CountDown(); CountDown();
} }
function TimerDisplay(secs) function TimerDisplay(secs)
{ {
timer_min = Math.floor(secs / 60); timer_min = Math.floor(secs / 60);
timer_sec = secs % 60; timer_sec = secs % 60;
if (timer_min < 10) timer_min = '0'+ timer_min; if (timer_min < 10) timer_min = '0'+ timer_min;
if (timer_sec < 10) timer_sec = '0'+ timer_sec; if (timer_sec < 10) timer_sec = '0'+ timer_sec;
return timer_min+':'+timer_sec; return timer_min+':'+timer_sec;
} }
function CountDown() function CountDown()
{ {
total_secs--; total_secs--;
if (total_secs >= 0) if (total_secs >= 0)
{ {
document.fcounter.counter.value = TimerDisplay(total_secs); document.fcounter.counter.value = TimerDisplay(total_secs);
down=setTimeout("CountDown()",1000); down=setTimeout("CountDown()",1000);
} }
} }
function toggleBox(mybox1, mybox2) function toggleBox(mybox1, mybox2)
{ {
if (document.all) if (document.all)
{ {
if (document.all.item(mybox1).style.display == "none") if (document.all.item(mybox1).style.display == "none")
{ {
document.all.item(mybox1).style.display = ""; document.all.item(mybox1).style.display = "";
document.all.item(mybox2).style.display = "none"; document.all.item(mybox2).style.display = "none";
} }
else else
{ {
document.all.item(mybox2).style.display = ""; document.all.item(mybox2).style.display = "";
document.all.item(mybox1).style.display = "none"; document.all.item(mybox1).style.display = "none";
} }
} }
else else
{ {
if (document.getElementById(mybox1).style.display == "none") if (document.getElementById(mybox1).style.display == "none")
{ {
document.getElementById(mybox1).style.display = ""; document.getElementById(mybox1).style.display = "";
document.getElementById(mybox2).style.display = "none"; document.getElementById(mybox2).style.display = "none";
} }
else else
{ {
document.getElementById(mybox2).style.display = ""; document.getElementById(mybox2).style.display = "";
document.getElementById(mybox1).style.display = "none"; document.getElementById(mybox1).style.display = "none";
} }
} }
} }
//--> //-->
</script> </script>
{/literal} {/literal}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0" cellspacing="10"> <table width="100%" border="0" cellpadding="0" cellspacing="10">
<tr> <tr>
<td align="left" valign="top" width="150px"> <td align="left" valign="top" width="150px">
{if $tool_domain_selected && $tool_frame_selected} {if $tool_domain_selected && $tool_frame_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Refresh</th> <th colspan="10">Refresh</th>
</tr> </tr>
<form action="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter"> <form action="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter">
<tr> <tr>
<td> <td>
<select name="services_refresh" style="width:100%;" onchange="this.form.submit();"> <select name="services_refresh" style="width:100%;" onchange="this.form.submit();">
{section name=refresh loop=$tool_refresh_list} {section name=refresh loop=$tool_refresh_list}
<option value="{$tool_refresh_list[refresh].secs}" {if $tool_refresh_rate == $tool_refresh_list[refresh].secs}selected{/if}>{$tool_refresh_list[refresh].desc}</option> <option value="{$tool_refresh_list[refresh].secs}" {if $tool_refresh_rate == $tool_refresh_list[refresh].secs}selected{/if}>{$tool_refresh_list[refresh].desc}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
{if $tool_refresh_rate > 0} {if $tool_refresh_rate > 0}
<tr> <tr>
<td> <td>
<input type="text" name="counter" value="" readonly class="refresh_counter"> <input type="text" name="counter" value="" readonly class="refresh_counter">
<script language="Javascript" type="text/javascript"> <script language="Javascript" type="text/javascript">
<!-- <!--
TimerDown({$tool_refresh_rate}); TimerDown({$tool_refresh_rate});
--> -->
</script> </script>
</td> </td>
</tr> </tr>
{/if} {/if}
</form> </form>
</table> </table>
<br> <br>
{/if} {/if}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Domains</th> <th colspan="10">Domains</th>
</tr> </tr>
{section name=domain loop=$tool_domain_list} {section name=domain loop=$tool_domain_list}
<tr> <tr>
<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> <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>
</tr> </tr>
{/section} {/section}
</table> </table>
{if $tool_domain_selected} {if $tool_domain_selected}
<br> <br>
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Time Frame</th> <th colspan="10">Time Frame</th>
</tr> </tr>
{section name=frame loop=$tool_frame_list} {section name=frame loop=$tool_frame_list}
<tr> <tr>
<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}&lowframe={$tool_frame_list[frame].value}">{$tool_frame_list[frame].title}</a></td> <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}&lowframe={$tool_frame_list[frame].value}">{$tool_frame_list[frame].title}</a></td>
</tr> </tr>
{/section} {/section}
</table> </table>
{/if} {/if}
</td> </td>
<td width="10px">&nbsp;</td> <td width="10px">&nbsp;</td>
<td align="right" valign="top"> <td align="right" valign="top">
{if $tool_domain_error} {if $tool_domain_error}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0"><span class="alert">{$tool_domain_error}</span></td> <td class="row0"><span class="alert">{$tool_domain_error}</span></td>
</tr> </tr>
</table> </table>
{elseif !$tool_domain_selected} {elseif !$tool_domain_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0">You need to select a domain.</td> <td class="row0">You need to select a domain.</td>
</tr> </tr>
</table> </table>
{elseif !$tool_frame_selected} {elseif !$tool_frame_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0">You need to select a time frame.</td> <td class="row0">You need to select a time frame.</td>
</tr> </tr>
</table> </table>
{else} {else}
{if $tool_as_error} {if $tool_as_error}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0"><span class="alert">{$tool_as_error}</span></td> <td class="row0"><span class="alert">{$tool_as_error}</span></td>
</tr> </tr>
</table> </table>
<br> <br>
{/if} {/if}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0" width="100%" valign="top"> <td class="row0" width="100%" valign="top">
{if $tool_rrd_output} {if $tool_rrd_output}
{section name=rrd loop=$tool_rrd_output} {section name=rrd loop=$tool_rrd_output}
<b>{$tool_rrd_output[rrd].desc}</b><br> <b>{$tool_rrd_output[rrd].desc}</b><br>
<img src="{$tool_rrd_output[rrd].img}" border="0"><br> <img src="{$tool_rrd_output[rrd].img}" border="0"><br>
{/section} {/section}
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,252 +1,252 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
{literal} {literal}
<script language="Javascript" type="text/javascript"> <script language="Javascript" type="text/javascript">
<!-- <!--
function CheckAll() function CheckAll()
{ {
for (var i=0; i<document.qlist.elements.length; i++) for (var i=0; i<document.qlist.elements.length; i++)
{ {
var e = document.qlist.elements[i]; var e = document.qlist.elements[i];
if (e.type == 'checkbox' && e.name != 'allbox') if (e.type == 'checkbox' && e.name != 'allbox')
e.checked = document.qlist.allbox.checked; e.checked = document.qlist.allbox.checked;
} }
} }
function CheckToggle(checkname) function CheckToggle(checkname)
{ {
checkname.checked = !checkname.checked; checkname.checked = !checkname.checked;
} }
function CheckAll() function CheckAll()
{ {
for (var i=0; i<document.qlist.elements.length; i++) for (var i=0; i<document.qlist.elements.length; i++)
{ {
var e = document.qlist.elements[i]; var e = document.qlist.elements[i];
if (e.type == 'checkbox' && e.name != 'allbox') if (e.type == 'checkbox' && e.name != 'allbox')
e.checked = document.qlist.allbox.checked; e.checked = document.qlist.allbox.checked;
} }
} }
function CheckToggle(checkname) function CheckToggle(checkname)
{ {
checkname.checked = !checkname.checked; checkname.checked = !checkname.checked;
} }
var total_secs; var total_secs;
function TimerDown(secs) function TimerDown(secs)
{ {
total_secs = secs; total_secs = secs;
CountDown(); CountDown();
} }
function TimerDisplay(secs) function TimerDisplay(secs)
{ {
timer_min = Math.floor(secs / 60); timer_min = Math.floor(secs / 60);
timer_sec = secs % 60; timer_sec = secs % 60;
if (timer_min < 10) timer_min = '0'+ timer_min; if (timer_min < 10) timer_min = '0'+ timer_min;
if (timer_sec < 10) timer_sec = '0'+ timer_sec; if (timer_sec < 10) timer_sec = '0'+ timer_sec;
return timer_min+':'+timer_sec; return timer_min+':'+timer_sec;
} }
function CountDown() function CountDown()
{ {
total_secs--; total_secs--;
if (total_secs >= 0) if (total_secs >= 0)
{ {
document.fcounter.counter.value = TimerDisplay(total_secs); document.fcounter.counter.value = TimerDisplay(total_secs);
down=setTimeout("CountDown()",1000); down=setTimeout("CountDown()",1000);
} }
} }
function toggleBox(mybox1, mybox2) function toggleBox(mybox1, mybox2)
{ {
if (document.all) if (document.all)
{ {
if (document.all.item(mybox1).style.display == "none") if (document.all.item(mybox1).style.display == "none")
{ {
document.all.item(mybox1).style.display = ""; document.all.item(mybox1).style.display = "";
document.all.item(mybox2).style.display = "none"; document.all.item(mybox2).style.display = "none";
} }
else else
{ {
document.all.item(mybox2).style.display = ""; document.all.item(mybox2).style.display = "";
document.all.item(mybox1).style.display = "none"; document.all.item(mybox1).style.display = "none";
} }
} }
else else
{ {
if (document.getElementById(mybox1).style.display == "none") if (document.getElementById(mybox1).style.display == "none")
{ {
document.getElementById(mybox1).style.display = ""; document.getElementById(mybox1).style.display = "";
document.getElementById(mybox2).style.display = "none"; document.getElementById(mybox2).style.display = "none";
} }
else else
{ {
document.getElementById(mybox2).style.display = ""; document.getElementById(mybox2).style.display = "";
document.getElementById(mybox1).style.display = "none"; document.getElementById(mybox1).style.display = "none";
} }
} }
} }
//--> //-->
</script> </script>
{/literal} {/literal}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0" cellspacing="10"> <table width="100%" border="0" cellpadding="0" cellspacing="10">
<tr> <tr>
<td align="left" valign="top" width="150px"> <td align="left" valign="top" width="150px">
{if $tool_domain_selected && $tool_shard_selected && $tool_frame_selected} {if $tool_domain_selected && $tool_shard_selected && $tool_frame_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Refresh</th> <th colspan="10">Refresh</th>
</tr> </tr>
<form action="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter"> <form action="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter">
<tr> <tr>
<td> <td>
<select name="services_refresh" style="width:100%;" onchange="this.form.submit();"> <select name="services_refresh" style="width:100%;" onchange="this.form.submit();">
{section name=refresh loop=$tool_refresh_list} {section name=refresh loop=$tool_refresh_list}
<option value="{$tool_refresh_list[refresh].secs}" {if $tool_refresh_rate == $tool_refresh_list[refresh].secs}selected{/if}>{$tool_refresh_list[refresh].desc}</option> <option value="{$tool_refresh_list[refresh].secs}" {if $tool_refresh_rate == $tool_refresh_list[refresh].secs}selected{/if}>{$tool_refresh_list[refresh].desc}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
{if $tool_refresh_rate > 0} {if $tool_refresh_rate > 0}
<tr> <tr>
<td> <td>
<input type="text" name="counter" value="" readonly class="refresh_counter"> <input type="text" name="counter" value="" readonly class="refresh_counter">
<script language="Javascript" type="text/javascript"> <script language="Javascript" type="text/javascript">
<!-- <!--
TimerDown({$tool_refresh_rate}); TimerDown({$tool_refresh_rate});
--> -->
</script> </script>
</td> </td>
</tr> </tr>
{/if} {/if}
</form> </form>
</table> </table>
<br> <br>
{/if} {/if}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Domains</th> <th colspan="10">Domains</th>
</tr> </tr>
{section name=domain loop=$tool_domain_list} {section name=domain loop=$tool_domain_list}
<tr> <tr>
<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> <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>
</tr> </tr>
{/section} {/section}
</table> </table>
{if $tool_domain_selected} {if $tool_domain_selected}
<br> <br>
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Shards</th> <th colspan="10">Shards</th>
</tr> </tr>
{section name=shard loop=$tool_shard_list} {section name=shard loop=$tool_shard_list}
{if $tool_domain_selected == $tool_shard_list[shard].shard_domain_id} {if $tool_domain_selected == $tool_shard_list[shard].shard_domain_id}
<tr> <tr>
<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> <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>
</tr> </tr>
{/if} {/if}
{/section} {/section}
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Time Frame</th> <th colspan="10">Time Frame</th>
</tr> </tr>
{section name=frame loop=$tool_frame_list} {section name=frame loop=$tool_frame_list}
<tr> <tr>
<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}&highframe={$tool_frame_list[frame].value}">{$tool_frame_list[frame].title}</a></td> <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}&highframe={$tool_frame_list[frame].value}">{$tool_frame_list[frame].title}</a></td>
</tr> </tr>
{/section} {/section}
</table> </table>
{/if} {/if}
</td> </td>
<td width="10px">&nbsp;</td> <td width="10px">&nbsp;</td>
<td align="right" valign="top"> <td align="right" valign="top">
{if $tool_domain_error} {if $tool_domain_error}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0"><span class="alert">{$tool_domain_error}</span></td> <td class="row0"><span class="alert">{$tool_domain_error}</span></td>
</tr> </tr>
</table> </table>
{elseif !$tool_domain_selected} {elseif !$tool_domain_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0">You need to select a domain.</td> <td class="row0">You need to select a domain.</td>
</tr> </tr>
</table> </table>
{elseif !$tool_shard_selected} {elseif !$tool_shard_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0">You need to select a shard.</td> <td class="row0">You need to select a shard.</td>
</tr> </tr>
</table> </table>
{elseif !$tool_frame_selected} {elseif !$tool_frame_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0">You need to select a time frame.</td> <td class="row0">You need to select a time frame.</td>
</tr> </tr>
</table> </table>
{else} {else}
{if $tool_as_error} {if $tool_as_error}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0"><span class="alert">{$tool_as_error}</span></td> <td class="row0"><span class="alert">{$tool_as_error}</span></td>
</tr> </tr>
</table> </table>
<br> <br>
{/if} {/if}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0" width="100%" valign="top"> <td class="row0" width="100%" valign="top">
{if $tool_rrd_high_output} {if $tool_rrd_high_output}
{section name=rrd loop=$tool_rrd_high_output} {section name=rrd loop=$tool_rrd_high_output}
<b>{$tool_rrd_high_output[rrd].desc}</b><br> <b>{$tool_rrd_high_output[rrd].desc}</b><br>
{if $tool_rrd_high_output[rrd].img != ''} {if $tool_rrd_high_output[rrd].img != ''}
<img src="{$tool_rrd_high_output[rrd].img}" border="0"><br> <img src="{$tool_rrd_high_output[rrd].img}" border="0"><br>
{/if} {/if}
{/section} {/section}
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,250 +1,250 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
{literal} {literal}
<script language="Javascript" type="text/javascript"> <script language="Javascript" type="text/javascript">
<!-- <!--
function CheckAll() function CheckAll()
{ {
for (var i=0; i<document.qlist.elements.length; i++) for (var i=0; i<document.qlist.elements.length; i++)
{ {
var e = document.qlist.elements[i]; var e = document.qlist.elements[i];
if (e.type == 'checkbox' && e.name != 'allbox') if (e.type == 'checkbox' && e.name != 'allbox')
e.checked = document.qlist.allbox.checked; e.checked = document.qlist.allbox.checked;
} }
} }
function CheckToggle(checkname) function CheckToggle(checkname)
{ {
checkname.checked = !checkname.checked; checkname.checked = !checkname.checked;
} }
function CheckAll() function CheckAll()
{ {
for (var i=0; i<document.qlist.elements.length; i++) for (var i=0; i<document.qlist.elements.length; i++)
{ {
var e = document.qlist.elements[i]; var e = document.qlist.elements[i];
if (e.type == 'checkbox' && e.name != 'allbox') if (e.type == 'checkbox' && e.name != 'allbox')
e.checked = document.qlist.allbox.checked; e.checked = document.qlist.allbox.checked;
} }
} }
function CheckToggle(checkname) function CheckToggle(checkname)
{ {
checkname.checked = !checkname.checked; checkname.checked = !checkname.checked;
} }
var total_secs; var total_secs;
function TimerDown(secs) function TimerDown(secs)
{ {
total_secs = secs; total_secs = secs;
CountDown(); CountDown();
} }
function TimerDisplay(secs) function TimerDisplay(secs)
{ {
timer_min = Math.floor(secs / 60); timer_min = Math.floor(secs / 60);
timer_sec = secs % 60; timer_sec = secs % 60;
if (timer_min < 10) timer_min = '0'+ timer_min; if (timer_min < 10) timer_min = '0'+ timer_min;
if (timer_sec < 10) timer_sec = '0'+ timer_sec; if (timer_sec < 10) timer_sec = '0'+ timer_sec;
return timer_min+':'+timer_sec; return timer_min+':'+timer_sec;
} }
function CountDown() function CountDown()
{ {
total_secs--; total_secs--;
if (total_secs >= 0) if (total_secs >= 0)
{ {
document.fcounter.counter.value = TimerDisplay(total_secs); document.fcounter.counter.value = TimerDisplay(total_secs);
down=setTimeout("CountDown()",1000); down=setTimeout("CountDown()",1000);
} }
} }
function toggleBox(mybox1, mybox2) function toggleBox(mybox1, mybox2)
{ {
if (document.all) if (document.all)
{ {
if (document.all.item(mybox1).style.display == "none") if (document.all.item(mybox1).style.display == "none")
{ {
document.all.item(mybox1).style.display = ""; document.all.item(mybox1).style.display = "";
document.all.item(mybox2).style.display = "none"; document.all.item(mybox2).style.display = "none";
} }
else else
{ {
document.all.item(mybox2).style.display = ""; document.all.item(mybox2).style.display = "";
document.all.item(mybox1).style.display = "none"; document.all.item(mybox1).style.display = "none";
} }
} }
else else
{ {
if (document.getElementById(mybox1).style.display == "none") if (document.getElementById(mybox1).style.display == "none")
{ {
document.getElementById(mybox1).style.display = ""; document.getElementById(mybox1).style.display = "";
document.getElementById(mybox2).style.display = "none"; document.getElementById(mybox2).style.display = "none";
} }
else else
{ {
document.getElementById(mybox2).style.display = ""; document.getElementById(mybox2).style.display = "";
document.getElementById(mybox1).style.display = "none"; document.getElementById(mybox1).style.display = "none";
} }
} }
} }
//--> //-->
</script> </script>
{/literal} {/literal}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="right"> <td align="right">
<table cellpadding="1" cellspacing="5" border="0"> <table cellpadding="1" cellspacing="5" border="0">
<tr> <tr>
{section name=onemenu loop=$tool_menu} {section name=onemenu loop=$tool_menu}
<td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td> <td height="22" class="boxed"><a href="{$tool_menu[onemenu].uri}">{$tool_menu[onemenu].title}</a></td>
{/section} {/section}
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0" cellspacing="10"> <table width="100%" border="0" cellpadding="0" cellspacing="10">
<tr> <tr>
<td align="left" valign="top" width="150px"> <td align="left" valign="top" width="150px">
{if $tool_domain_selected && $tool_shard_selected && $tool_frame_selected} {if $tool_domain_selected && $tool_shard_selected && $tool_frame_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Refresh</th> <th colspan="10">Refresh</th>
</tr> </tr>
<form action="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter"> <form action="tool_graphs.php?toolmode={$toolmode}&domain={$tool_domain_selected}&shard={$tool_shard_selected}" method="post" name="fcounter">
<tr> <tr>
<td> <td>
<select name="services_refresh" style="width:100%;" onchange="this.form.submit();"> <select name="services_refresh" style="width:100%;" onchange="this.form.submit();">
{section name=refresh loop=$tool_refresh_list} {section name=refresh loop=$tool_refresh_list}
<option value="{$tool_refresh_list[refresh].secs}" {if $tool_refresh_rate == $tool_refresh_list[refresh].secs}selected{/if}>{$tool_refresh_list[refresh].desc}</option> <option value="{$tool_refresh_list[refresh].secs}" {if $tool_refresh_rate == $tool_refresh_list[refresh].secs}selected{/if}>{$tool_refresh_list[refresh].desc}</option>
{/section} {/section}
</select> </select>
</td> </td>
</tr> </tr>
{if $tool_refresh_rate > 0} {if $tool_refresh_rate > 0}
<tr> <tr>
<td> <td>
<input type="text" name="counter" value="" readonly class="refresh_counter"> <input type="text" name="counter" value="" readonly class="refresh_counter">
<script language="Javascript" type="text/javascript"> <script language="Javascript" type="text/javascript">
<!-- <!--
TimerDown({$tool_refresh_rate}); TimerDown({$tool_refresh_rate});
--> -->
</script> </script>
</td> </td>
</tr> </tr>
{/if} {/if}
</form> </form>
</table> </table>
<br> <br>
{/if} {/if}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Domains</th> <th colspan="10">Domains</th>
</tr> </tr>
{section name=domain loop=$tool_domain_list} {section name=domain loop=$tool_domain_list}
<tr> <tr>
<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> <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>
</tr> </tr>
{/section} {/section}
</table> </table>
{if $tool_domain_selected} {if $tool_domain_selected}
<br> <br>
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Shards</th> <th colspan="10">Shards</th>
</tr> </tr>
{section name=shard loop=$tool_shard_list} {section name=shard loop=$tool_shard_list}
{if $tool_domain_selected == $tool_shard_list[shard].shard_domain_id} {if $tool_domain_selected == $tool_shard_list[shard].shard_domain_id}
<tr> <tr>
<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> <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>
</tr> </tr>
{/if} {/if}
{/section} {/section}
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Time Frame</th> <th colspan="10">Time Frame</th>
</tr> </tr>
{section name=frame loop=$tool_frame_list} {section name=frame loop=$tool_frame_list}
<tr> <tr>
<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}&lowframe={$tool_frame_list[frame].value}">{$tool_frame_list[frame].title}</a></td> <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}&lowframe={$tool_frame_list[frame].value}">{$tool_frame_list[frame].title}</a></td>
</tr> </tr>
{/section} {/section}
</table> </table>
{/if} {/if}
</td> </td>
<td width="10px">&nbsp;</td> <td width="10px">&nbsp;</td>
<td align="right" valign="top"> <td align="right" valign="top">
{if $tool_domain_error} {if $tool_domain_error}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0"><span class="alert">{$tool_domain_error}</span></td> <td class="row0"><span class="alert">{$tool_domain_error}</span></td>
</tr> </tr>
</table> </table>
{elseif !$tool_domain_selected} {elseif !$tool_domain_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0">You need to select a domain.</td> <td class="row0">You need to select a domain.</td>
</tr> </tr>
</table> </table>
{elseif !$tool_shard_selected} {elseif !$tool_shard_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0">You need to select a shard.</td> <td class="row0">You need to select a shard.</td>
</tr> </tr>
</table> </table>
{elseif !$tool_frame_selected} {elseif !$tool_frame_selected}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0">You need to select a time frame.</td> <td class="row0">You need to select a time frame.</td>
</tr> </tr>
</table> </table>
{else} {else}
{if $tool_as_error} {if $tool_as_error}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0"><span class="alert">{$tool_as_error}</span></td> <td class="row0"><span class="alert">{$tool_as_error}</span></td>
</tr> </tr>
</table> </table>
<br> <br>
{/if} {/if}
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<td class="row0" width="100%" valign="top"> <td class="row0" width="100%" valign="top">
{if $tool_rrd_output} {if $tool_rrd_output}
{section name=rrd loop=$tool_rrd_output} {section name=rrd loop=$tool_rrd_output}
<b>{$tool_rrd_output[rrd].desc}</b><br> <b>{$tool_rrd_output[rrd].desc}</b><br>
<img src="{$tool_rrd_output[rrd].img}" border="0"><br> <img src="{$tool_rrd_output[rrd].img}" border="0"><br>
{/section} {/section}
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{/if} {/if}
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,164 +1,164 @@
{include file="page_header.tpl"} {include file="page_header.tpl"}
{literal} {literal}
<script language="Javascript" type="text/javascript"> <script language="Javascript" type="text/javascript">
<!-- <!--
function toggleLine(myline) function toggleLine(myline)
{ {
if (document.all) if (document.all)
{ {
if (document.all.item(myline).style.display == "none") if (document.all.item(myline).style.display == "none")
{ {
document.all.item(myline).style.display = ""; document.all.item(myline).style.display = "";
} }
else else
{ {
document.all.item(myline).style.display = "none"; document.all.item(myline).style.display = "none";
} }
} }
else else
{ {
if (document.getElementById(myline).style.display == "none") if (document.getElementById(myline).style.display == "none")
{ {
document.getElementById(myline).style.display = ""; document.getElementById(myline).style.display = "";
} }
else else
{ {
document.getElementById(myline).style.display = "none"; document.getElementById(myline).style.display = "none";
} }
} }
} }
//--> //-->
</script> </script>
{/literal} {/literal}
<table width="100%" cellpadding="2" cellspacing="0" border="0"> <table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr> <tr>
<td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td> <td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td>
</tr> </tr>
</table> </table>
<br> <br>
<table width="100%" border="0" cellpadding="0"> <table width="100%" border="0" cellpadding="0">
<tr> <tr>
<td align="left" valign="top" width="50%"> <td align="left" valign="top" width="50%">
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<tr> <tr>
<th colspan="10">Notes</th> <th colspan="10">Notes</th>
</tr> </tr>
<tr> <tr>
<td><b>ID</b></td> <td><b>ID</b></td>
<td><b>Title</b></td> <td><b>Title</b></td>
<td><b>Mode</b></td> <td><b>Mode</b></td>
<td><b>Last Update</b></td> <td><b>Last Update</b></td>
<td><b>Active</b></td> <td><b>Active</b></td>
{if $restriction_tool_notes_global} {if $restriction_tool_notes_global}
<td><b>Global</b></td> <td><b>Global</b></td>
{/if} {/if}
</tr> </tr>
{section name=note loop=$tool_note_list} {section name=note loop=$tool_note_list}
<tr class="{cycle values="row1,row0"}"> <tr class="{cycle values="row1,row0"}">
<td>{$tool_note_list[note].note_id}</td> <td>{$tool_note_list[note].note_id}</td>
<td><a href="tool_notes.php?note_id={$tool_note_list[note].note_id}">{$tool_note_list[note].note_title}</a></td> <td><a href="tool_notes.php?note_id={$tool_note_list[note].note_id}">{$tool_note_list[note].note_title}</a></td>
<td>{if $tool_note_list[note].note_mode == 0}Text{else}Popup{/if}</td> <td>{if $tool_note_list[note].note_mode == 0}Text{else}Popup{/if}</td>
<td>{$tool_note_list[note].note_date|date_format:"%Y/%m/%d %H:%M:%S"}</td> <td>{$tool_note_list[note].note_date|date_format:"%Y/%m/%d %H:%M:%S"}</td>
<td>{if $tool_note_list[note].note_active == 1}Yes{else}No{/if}</td> <td>{if $tool_note_list[note].note_active == 1}Yes{else}No{/if}</td>
{if $restriction_tool_notes_global} {if $restriction_tool_notes_global}
<td>{if $tool_note_list[note].note_global == 1}Yes{else}No{/if}</td> <td>{if $tool_note_list[note].note_global == 1}Yes{else}No{/if}</td>
{/if} {/if}
</tr> </tr>
{/section} {/section}
</table> </table>
</td> </td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td align="right" valign="top" width="50%"> <td align="right" valign="top" width="50%">
<table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view"> <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
<form action="tool_notes.php" method="post"> <form action="tool_notes.php" method="post">
<tr> <tr>
<th colspan="10">Notes Details</th> <th colspan="10">Notes Details</th>
</tr> </tr>
{if $tool_note_edit_data.note_id} {if $tool_note_edit_data.note_id}
<tr> <tr>
<td align="right">Id :</td> <td align="right">Id :</td>
<td><input type="text" name="tool_form_note_id" value="{$tool_note_edit_data.note_id}" size="10" readonly></td> <td><input type="text" name="tool_form_note_id" value="{$tool_note_edit_data.note_id}" size="10" readonly></td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td align="right">Title :</td> <td align="right">Title :</td>
<td><input type="text" name="tool_form_note_title" value="{$tool_note_edit_data.note_title}" maxlength="64" size="100%"></td> <td><input type="text" name="tool_form_note_title" value="{$tool_note_edit_data.note_title}" maxlength="64" size="100%"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Mode : </td> <td align="right">Mode : </td>
<td><select name="tool_form_note_mode" onchange="toggleLine('note_mode_text'); toggleLine('note_mode_popup_uri'); toggleLine('note_mode_popup_restriction');"> <td><select name="tool_form_note_mode" onchange="toggleLine('note_mode_text'); toggleLine('note_mode_popup_uri'); toggleLine('note_mode_popup_restriction');">
<option value="text" {if $tool_note_edit_data.note_mode == 0}selected{/if}>Text</option> <option value="text" {if $tool_note_edit_data.note_mode == 0}selected{/if}>Text</option>
<option value="popup" {if $tool_note_edit_data.note_mode == 1}selected{/if}>Popup</option> <option value="popup" {if $tool_note_edit_data.note_mode == 1}selected{/if}>Popup</option>
</select></td> </select></td>
</tr> </tr>
<tr id="note_mode_text" name="note_mode_text" {if $tool_note_edit_data.note_mode == 1}style="display: none;"{/if}> <tr id="note_mode_text" name="note_mode_text" {if $tool_note_edit_data.note_mode == 1}style="display: none;"{/if}>
<td align="right">Text :</td> <td align="right">Text :</td>
<td><textarea name="tool_form_note_data" rows="15">{$tool_note_edit_data.note_data}</textarea></td> <td><textarea name="tool_form_note_data" rows="15">{$tool_note_edit_data.note_data}</textarea></td>
</tr> </tr>
<tr id="note_mode_popup_uri" name="note_mode_popup_uri" {if $tool_note_edit_data.note_mode == 0}style="display: none;"{/if}> <tr id="note_mode_popup_uri" name="note_mode_popup_uri" {if $tool_note_edit_data.note_mode == 0}style="display: none;"{/if}>
<td align="right">URI :</td> <td align="right">URI :</td>
<td><input type="text" name="tool_form_note_popup_uri" value="{$tool_note_edit_data.note_popup_uri}" maxlength="255" size="100%"></td> <td><input type="text" name="tool_form_note_popup_uri" value="{$tool_note_edit_data.note_popup_uri}" maxlength="255" size="100%"></td>
</tr> </tr>
<tr id="note_mode_popup_restriction" name="note_mode_popup_restriction" {if $tool_note_edit_data.note_mode == 0}style="display: none;"{/if}> <tr id="note_mode_popup_restriction" name="note_mode_popup_restriction" {if $tool_note_edit_data.note_mode == 0}style="display: none;"{/if}>
<td align="right">Restriction :</td> <td align="right">Restriction :</td>
<td><input type="text" name="tool_form_note_popup_restriction" value="{$tool_note_edit_data.note_popup_restriction}" maxlength="64" size="100%"></td> <td><input type="text" name="tool_form_note_popup_restriction" value="{$tool_note_edit_data.note_popup_restriction}" maxlength="64" size="100%"></td>
</tr> </tr>
<tr> <tr>
<td align="right">Active :</td> <td align="right">Active :</td>
<td> <td>
<select name="tool_form_note_active"> <select name="tool_form_note_active">
<option value="1" {if $tool_note_edit_data.note_active == 1}selected{/if}>Yes</option> <option value="1" {if $tool_note_edit_data.note_active == 1}selected{/if}>Yes</option>
<option value="0" {if $tool_note_edit_data.note_active == 0}selected{/if}>No</option> <option value="0" {if $tool_note_edit_data.note_active == 0}selected{/if}>No</option>
</select> </select>
</td> </td>
</tr> </tr>
{if $restriction_tool_notes_global} {if $restriction_tool_notes_global}
<tr> <tr>
<td align="right">Global :</td> <td align="right">Global :</td>
<td> <td>
<select name="tool_form_note_global"> <select name="tool_form_note_global">
<option value="1" {if $tool_note_edit_data.note_global == 1}selected{/if}>Yes</option> <option value="1" {if $tool_note_edit_data.note_global == 1}selected{/if}>Yes</option>
<option value="0" {if $tool_note_edit_data.note_global == 0}selected{/if}>No</option> <option value="0" {if $tool_note_edit_data.note_global == 0}selected{/if}>No</option>
</select> </select>
</td> </td>
</tr> </tr>
{/if} {/if}
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td> <td>
{if $tool_note_edit_data.note_id} {if $tool_note_edit_data.note_id}
<input type="submit" name="toolaction" value="update"> <input type="submit" name="toolaction" value="update">
<input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE this note ?')) return true; return false;"> <input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE this note ?')) return true; return false;">
{else} {else}
<input type="submit" name="toolaction" value="create"> <input type="submit" name="toolaction" value="create">
{/if} {/if}
</td> </td>
</tr> </tr>
</form> </form>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
{include file="page_footer.tpl"} {include file="page_footer.tpl"}

View file

@ -1,54 +1,54 @@
{extends file="layout.tpl"} {extends file="layout.tpl"}
{block name=content} {block name=content}
<div class="row-fluid"> <div class="row-fluid">
<div class="span12 center login-header"> <div class="span12 center login-header">
<a href="?"><img src="img/mainlogo.png"/></a> <a href="?"><img src="img/mainlogo.png"/></a>
</div><!--/span--> </div><!--/span-->
</div><!--/row--> </div><!--/row-->
<div class="row-fluid"> <div class="row-fluid">
<div class="well span5 center login-box"> <div class="well span5 center login-box">
<div class="alert alert-info"> <div class="alert alert-info">
{$forgot_password_message} {$forgot_password_message}
</div> </div>
<form id="signup" class="form-vertical" method="post" action="index.php"> <form id="signup" class="form-vertical" method="post" action="index.php">
<legend>{$title}</legend> <legend>{$title}</legend>
<div class="control-group {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}error{/if}"> <div class="control-group {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}error{/if}">
<label class="control-label">{$email_tag}</label> <label class="control-label">{$email_tag}</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on"><span class="icon-envelope"></span></span> <span class="add-on"><span class="icon-envelope"></span></span>
<input type="text" class="input-xlarge" id="Email" name="Email" placeholder="{$email_default}" {if isset($prevEmail)}value="{$prevEmail}"{/if} rel="popover" data-content="{$email_tooltip}" data-original-title="{$email_default}"> <input type="text" class="input-xlarge" id="Email" name="Email" placeholder="{$email_default}" {if isset($prevEmail)}value="{$prevEmail}"{/if} rel="popover" data-content="{$email_tooltip}" data-original-title="{$email_default}">
</div> </div>
</div> </div>
</div> </div>
{if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"} {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}
<div class="alert alert-error"> <div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">×</button> <button type="button" class="close" data-dismiss="alert">×</button>
{$email_doesnt_exist} {$email_doesnt_exist}
</div> </div>
{/if} {/if}
{if isset($EMAIL_SUCCESS) and $EMAIL_SUCCESS eq "TRUE"} {if isset($EMAIL_SUCCESS) and $EMAIL_SUCCESS eq "TRUE"}
<div class="alert alert-success"> <div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">×</button> <button type="button" class="close" data-dismiss="alert">×</button>
{$email_sent} {$email_sent}
</div> </div>
{/if} {/if}
<input type="hidden" name="function" value="forgot_password"> <input type="hidden" name="function" value="forgot_password">
<p class="center span5"> <p class="center span5">
<button type="submit" class="btn btn-primary" >Send me the reset link</button> <button type="submit" class="btn btn-primary" >Send me the reset link</button>
</p> </p>
</form> </form>
<div class="alert alert-info"> <div class="alert alert-info">
{$register_message} <a href="?page=register">{$here}</a>.<br/> {$login_message} <a href="?page=login">{$here}</a> {$register_message} <a href="?page=register">{$here}</a>.<br/> {$login_message} <a href="?page=login">{$here}</a>
</div> </div>
</div><!--/span--> </div><!--/span-->
</div><!--/row--> </div><!--/row-->
{/block} {/block}

View file

@ -1,124 +1,124 @@
{extends file="layout.tpl"} {extends file="layout.tpl"}
{block name=content} {block name=content}
<div class="row-fluid"> <div class="row-fluid">
<div class="span12 center login-header"> <div class="span12 center login-header">
<a href="?"><img src="img/mainlogo.png"/></a> <a href="?"><img src="img/mainlogo.png"/></a>
</div><!--/span--> </div><!--/span-->
</div><!--/row--> </div><!--/row-->
<div class="row-fluid"> <div class="row-fluid">
<div class="well span5 center login-box"> <div class="well span5 center login-box">
<div class="alert alert-info"> <div class="alert alert-info">
{$welcome_message} {$welcome_message}
</div> </div>
{if $userRegistration == '0'|| $userRegistration == '2'} {if $userRegistration == '0'|| $userRegistration == '2'}
<form id="signup" class="form-vertical" method="post" action="index.php"> <form id="signup" class="form-vertical" method="post" action="index.php">
<legend>{$title}</legend> <legend>{$title}</legend>
<div class="control-group {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}error{else if <div class="control-group {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}error{else if
isset($USERNAME) and $USERNAME eq "success"}success{else}{/if}"> isset($USERNAME) and $USERNAME eq "success"}success{else}{/if}">
<label class="control-label">{$username_tag}</label> <label class="control-label">{$username_tag}</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on"><span class="icon-user"></span></span> <span class="add-on"><span class="icon-user"></span></span>
<input type="text" class="input-xlarge" id="Username" name="Username" placeholder="{$username_default}" {if isset($prevUsername)}value="{$prevUsername}"{/if} rel="popover" data-content="{$username_tooltip}" data-original-title="{$username_default}"> <input type="text" class="input-xlarge" id="Username" name="Username" placeholder="{$username_default}" {if isset($prevUsername)}value="{$prevUsername}"{/if} rel="popover" data-content="{$username_tooltip}" data-original-title="{$username_default}">
</div> </div>
</div> </div>
</div> </div>
<div class="control-group {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}error{else if <div class="control-group {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}error{else if
isset($PASSWORD) and $PASSWORD eq "success"}success{else}{/if}"> isset($PASSWORD) and $PASSWORD eq "success"}success{else}{/if}">
<label class="control-label">{$password_tag}</label> <label class="control-label">{$password_tag}</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on"><span class="icon-lock"></span></span> <span class="add-on"><span class="icon-lock"></span></span>
<input type="Password" id="Password" class="input-xlarge" name="Password" placeholder="{$password_default}" {if isset($prevPassword)}value="{$prevPassword}"{/if} rel="popover" data-content="{$password_tooltip}" data-original-title="{$password_default}"> <input type="Password" id="Password" class="input-xlarge" name="Password" placeholder="{$password_default}" {if isset($prevPassword)}value="{$prevPassword}"{/if} rel="popover" data-content="{$password_tooltip}" data-original-title="{$password_default}">
</div> </div>
</div> </div>
</div> </div>
<div class="control-group {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE"}error{else if <div class="control-group {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE"}error{else if
isset($CPASSWORD) and $CPASSWORD eq "success"}success{else}{/if}"> isset($CPASSWORD) and $CPASSWORD eq "success"}success{else}{/if}">
<label class="control-label">{$cpassword_tag}</label> <label class="control-label">{$cpassword_tag}</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on"><span class="icon-lock"></span></span> <span class="add-on"><span class="icon-lock"></span></span>
<input type="Password" id="ConfirmPass" class="input-xlarge" name="ConfirmPass" placeholder="{$cpassword_default}" {if isset($prevConfirmPass)}value="{$prevConfirmPass}"{/if} rel="popover" data-content="{$cpassword_tooltip}" data-original-title="{$cpassword_default}"> <input type="Password" id="ConfirmPass" class="input-xlarge" name="ConfirmPass" placeholder="{$cpassword_default}" {if isset($prevConfirmPass)}value="{$prevConfirmPass}"{/if} rel="popover" data-content="{$cpassword_tooltip}" data-original-title="{$cpassword_default}">
</div> </div>
</div> </div>
</div> </div>
<div class="control-group {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}error{else if <div class="control-group {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}error{else if
isset($EMAIL) and $EMAIL eq "success"}success{else}{/if}"> isset($EMAIL) and $EMAIL eq "success"}success{else}{/if}">
<label class="control-label">{$email_tag}</label> <label class="control-label">{$email_tag}</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on"><span class="icon-envelope"></span></span> <span class="add-on"><span class="icon-envelope"></span></span>
<input type="text" class="input-xlarge" id="Email" name="Email" placeholder="{$email_default}" {if isset($prevEmail)}value="{$prevEmail}"{/if} rel="popover" data-content="{$email_tooltip}" data-original-title="{$email_default}"> <input type="text" class="input-xlarge" id="Email" name="Email" placeholder="{$email_default}" {if isset($prevEmail)}value="{$prevEmail}"{/if} rel="popover" data-content="{$email_tooltip}" data-original-title="{$email_default}">
</div> </div>
</div> </div>
</div> </div>
<div class="control-group {if isset($TAC_ERROR) and $TAC_ERROR eq "TRUE"}error{else if <div class="control-group {if isset($TAC_ERROR) and $TAC_ERROR eq "TRUE"}error{else if
isset($TAC) and $TAC eq "success"}success{else}{/if}"> isset($TAC) and $TAC eq "success"}success{else}{/if}">
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<input type="checkbox" class="input-xlarge" id="TaC" name="TaC" placeholder="Email">{$tac_tag1}<a href='{$TOS_URL}'>{$tac_tag2}</a> <input type="checkbox" class="input-xlarge" id="TaC" name="TaC" placeholder="Email">{$tac_tag1}<a href='{$TOS_URL}'>{$tac_tag2}</a>
</div> </div>
</div> </div>
</div> </div>
{if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"} {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}
<div class="alert alert-error"> <div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">×</button> <button type="button" class="close" data-dismiss="alert">×</button>
<strong>Username Error</strong> {$USERNAME} <strong>Username Error</strong> {$USERNAME}
</div> </div>
{/if} {/if}
{if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"} {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}
<div class="alert alert-error"> <div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">×</button> <button type="button" class="close" data-dismiss="alert">×</button>
<strong>Password Error</strong> {$PASSWORD} <strong>Password Error</strong> {$PASSWORD}
</div> </div>
{/if} {/if}
{if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE" and $CPASSWORD != ""} {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE" and $CPASSWORD != ""}
<div class="alert alert-error"> <div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">×</button> <button type="button" class="close" data-dismiss="alert">×</button>
<strong>Confirmation Password Error</strong> {$CPASSWORD} <strong>Confirmation Password Error</strong> {$CPASSWORD}
</div> </div>
{/if} {/if}
{if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"} {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}
<div class="alert alert-error"> <div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">×</button> <button type="button" class="close" data-dismiss="alert">×</button>
<strong>Email Error</strong> {$EMAIL} <strong>Email Error</strong> {$EMAIL}
</div> </div>
{/if} {/if}
{if isset($TAC_ERROR) and $TAC_ERROR eq "TRUE"} {if isset($TAC_ERROR) and $TAC_ERROR eq "TRUE"}
<div class="alert alert-error"> <div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">×</button> <button type="button" class="close" data-dismiss="alert">×</button>
<strong>Terms of Service Error</strong> {$tac_message} <strong>Terms of Service Error</strong> {$tac_message}
</div> </div>
{/if} {/if}
<input type="hidden" name="function" value="add_user"> <input type="hidden" name="function" value="add_user">
<p class="center span5"> <p class="center span5">
<button type="submit" class="btn btn-primary" >Create My Account</button> <button type="submit" class="btn btn-primary" >Create My Account</button>
</p> </p>
</form> </form>
{else} {else}
Registration Disabled! Registration Disabled!
{/if} {/if}
</div><!--/span--> </div><!--/span-->
</div><!--/row--> </div><!--/row-->
{/block} {/block}

View file

@ -1,66 +1,66 @@
{extends file="layout.tpl"} {extends file="layout.tpl"}
{block name=content} {block name=content}
<div class="row-fluid"> <div class="row-fluid">
<div class="span12 center login-header"> <div class="span12 center login-header">
<a href="?"><img src="img/mainlogo.png"/></a> <a href="?"><img src="img/mainlogo.png"/></a>
</div><!--/span--> </div><!--/span-->
</div><!--/row--> </div><!--/row-->
<div class="row-fluid"> <div class="row-fluid">
<div class="well span5 center login-box"> <div class="well span5 center login-box">
<form id="signup" class="form-vertical" method="post" action="index.php{$getstring}"> <form id="signup" class="form-vertical" method="post" action="index.php{$getstring}">
<legend>{$title}</legend> <legend>{$title}</legend>
<div class="control-group {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}error{else if <div class="control-group {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}error{else if
isset($newpass_error_message) and $newpass_error_message eq "success"}success{else}{/if}"> isset($newpass_error_message) and $newpass_error_message eq "success"}success{else}{/if}">
<label class="control-label">New Password</label> <label class="control-label">New Password</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><span class="icon-tag"></span></span> <span class="add-on" style="margin-left:5px;"><span class="icon-tag"></span></span>
<input type="password" class="input-xlarge" id="NewPass" name="NewPass" placeholder="Your new password" {if isset($prevNewPass)}value="{$prevNewPass}"{/if}> <input type="password" class="input-xlarge" id="NewPass" name="NewPass" placeholder="Your new password" {if isset($prevNewPass)}value="{$prevNewPass}"{/if}>
{if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<br/><span class="help-inline">{$newpass_error_message}</span>{/if} {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<br/><span class="help-inline">{$newpass_error_message}</span>{/if}
</div> </div>
</div> </div>
</div> </div>
<div class="control-group {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}error{else if <div class="control-group {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}error{else if
isset($confirmnewpass_error_message) and $confirmnewpass_error_message eq "success"}success{else}{/if}"> isset($confirmnewpass_error_message) and $confirmnewpass_error_message eq "success"}success{else}{/if}">
<label class="control-label">Confirm New Password</label> <label class="control-label">Confirm New Password</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><span class="icon-tags"></span></span> <span class="add-on" style="margin-left:5px;"><span class="icon-tags"></span></span>
<input type="password" class="input-xlarge" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password" {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}> <input type="password" class="input-xlarge" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password" {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}>
{if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<br/><span class="help-inline">{$confirmnewpass_error_message}</span>{/if} {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<br/><span class="help-inline">{$confirmnewpass_error_message}</span>{/if}
</div> </div>
</div> </div>
</div> </div>
{if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"} {if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"}
<div class="alert alert-success"> <div class="alert alert-success">
The password has been changed! The password has been changed!
</div> </div>
{/if} {/if}
{if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "SHARDOFF"} {if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "SHARDOFF"}
<div class="alert alert-warning"> <div class="alert alert-warning">
The password has been changed, though the shard seems offline, it may take some time to see the change on the shard. The password has been changed, though the shard seems offline, it may take some time to see the change on the shard.
</div> </div>
{/if} {/if}
<input type="hidden" name="function" value="reset_password"> <input type="hidden" name="function" value="reset_password">
<p class="center span5"> <p class="center span5">
<button type="submit" class="btn btn-primary" >Reset the password!</button> <button type="submit" class="btn btn-primary" >Reset the password!</button>
</p> </p>
</form> </form>
</div><!--/span--> </div><!--/span-->
</div><!--/row--> </div><!--/row-->
{/block} {/block}

View file

@ -1,382 +1,382 @@
{block name=content} {block name=content}
<div class="row-fluid js-masonry" data-masonry-options='{ "itemSelector": ".js-masonry-item", "transitionDuration": 0 }'> <div class="row-fluid js-masonry" data-masonry-options='{ "itemSelector": ".js-masonry-item", "transitionDuration": 0 }'>
<div class="col-sm-4 js-masonry-item"> <div class="col-sm-4 js-masonry-item">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" data-original-title=""> <div class="panel-heading" data-original-title="">
<span class="icon-th"></span> Change Password <span class="icon-th"></span> Change Password
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="row-fluid"> <div class="row-fluid">
<form id="changePassword" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}"> <form id="changePassword" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
<legend>Change Password</legend> <legend>Change Password</legend>
{if !isset($changesOther) or $changesOther eq "FALSE"} {if !isset($changesOther) or $changesOther eq "FALSE"}
<div class="control-group {if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}error{else if <div class="control-group {if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}error{else if
isset($match_error_message) and $match_error_message neq "fail"}success{else}{/if}"> isset($match_error_message) and $match_error_message neq "fail"}success{else}{/if}">
<label class="control-label">Current Password</label> <label class="control-label">Current Password</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><span class="icon-lock"></span></span> <span class="add-on" style="margin-left:5px;"><span class="icon-lock"></span></span>
<input type="password" class="setup-width" id="CurrentPass" name="CurrentPass" placeholder="Your current password" {if isset($prevCurrentPass)}value="{$prevCurrentPass}"{/if}> <input type="password" class="setup-width" id="CurrentPass" name="CurrentPass" placeholder="Your current password" {if isset($prevCurrentPass)}value="{$prevCurrentPass}"{/if}>
{if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}<span class="help-inline">The password is incorrect</span>{/if} {if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}<span class="help-inline">The password is incorrect</span>{/if}
</div> </div>
</div> </div>
</div> </div>
{/if} {/if}
<div class="control-group {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}error{else if <div class="control-group {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}error{else if
isset($newpass_error_message) and $newpass_error_message eq "success"}success{else}{/if}"> isset($newpass_error_message) and $newpass_error_message eq "success"}success{else}{/if}">
<label class="control-label">New Password</label> <label class="control-label">New Password</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><span class="icon-tag"></span></span> <span class="add-on" style="margin-left:5px;"><span class="icon-tag"></span></span>
<input type="password" class="setup-width" id="NewPass" name="NewPass" placeholder="Your new password" {if isset($prevNewPass)}value="{$prevNewPass}"{/if}> <input type="password" class="setup-width" id="NewPass" name="NewPass" placeholder="Your new password" {if isset($prevNewPass)}value="{$prevNewPass}"{/if}>
{if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$newpass_error_message}</span>{/if} {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$newpass_error_message}</span>{/if}
</div> </div>
</div> </div>
</div> </div>
<div class="control-group {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}error{else if <div class="control-group {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}error{else if
isset($confirmnewpass_error_message) and $confirmnewpass_error_message eq "success"}success{else}{/if}"> isset($confirmnewpass_error_message) and $confirmnewpass_error_message eq "success"}success{else}{/if}">
<label class="control-label">Confirm New Password</label> <label class="control-label">Confirm New Password</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><span class="icon-tags"></span></span> <span class="add-on" style="margin-left:5px;"><span class="icon-tags"></span></span>
<input type="password" class="setup-width" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password" {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}> <input type="password" class="setup-width" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password" {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}>
{if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$confirmnewpass_error_message}</span>{/if} {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$confirmnewpass_error_message}</span>{/if}
</div> </div>
</div> </div>
</div> </div>
{if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"} {if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"}
<div class="alert alert-success"> <div class="alert alert-success">
The password has been changed! The password has been changed!
</div> </div>
{/if} {/if}
{if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "SHARDOFF"} {if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "SHARDOFF"}
<div class="alert alert-warning"> <div class="alert alert-warning">
The password has been changed, though the shard seems offline, it may take some time to see the change on the shard. The password has been changed, though the shard seems offline, it may take some time to see the change on the shard.
</div> </div>
{/if} {/if}
<input type="hidden" name="function" value="change_password"> <input type="hidden" name="function" value="change_password">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<div class="control-group"> <div class="control-group">
<label class="control-label"></label> <label class="control-label"></label>
<div class="controls"> <div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Password</button> <button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Password</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div><!--/span--> </div><!--/span-->
{if $permission != '1'} {if $permission != '1'}
<div class="col-sm-4 js-masonry-item"> <div class="col-sm-4 js-masonry-item">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" data-original-title=""> <div class="panel-heading" data-original-title="">
<span class="icon-th"></span> Add User <span class="icon-th"></span> Add User
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="row-fluid"> <div class="row-fluid">
<form id="addUser" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}"> <form id="addUser" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
<legend>Add User</legend> <legend>Add User</legend>
<div class="control-group {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}error{/if}"> <div class="control-group {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}error{/if}">
<label class="control-label">Username</label> <label class="control-label">Username</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span style="margin-left:5px;" class="add-on"><span class="icon-user"></span></span> <span style="margin-left:5px;" class="add-on"><span class="icon-user"></span></span>
<input type="text" placeholder="Username" name="Username" id="Username" class="setup-width" {if isset($prevUsername)}value="{$prevUsername}"{/if}> <input type="text" placeholder="Username" name="Username" id="Username" class="setup-width" {if isset($prevUsername)}value="{$prevUsername}"{/if}>
{if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}<span class="help-inline">{$USERNAME}</span>{/if} {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}<span class="help-inline">{$USERNAME}</span>{/if}
</div> </div>
</div> </div>
</div> </div>
<div class="control-group {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}error{/if}"> <div class="control-group {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}error{/if}">
<label class="control-label">Password</label> <label class="control-label">Password</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span style="margin-left:5px;" class="add-on"><span class="icon-lock"></span></span> <span style="margin-left:5px;" class="add-on"><span class="icon-lock"></span></span>
<input type="password" placeholder="Password" name="Password" id="Password" class="setup-width"> <input type="password" placeholder="Password" name="Password" id="Password" class="setup-width">
{if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$PASSWORD}</span>{/if} {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$PASSWORD}</span>{/if}
</div> </div>
</div> </div>
</div> </div>
<div class="control-group {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE"}error{/if}"> <div class="control-group {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE"}error{/if}">
<label class="control-label">Confirm Password</label> <label class="control-label">Confirm Password</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span style="margin-left:5px;" class="add-on"><span class="icon-lock"></span></span> <span style="margin-left:5px;" class="add-on"><span class="icon-lock"></span></span>
<input type="password" placeholder="Confirm Password" name="ConfirmPass" id="ConfirmPass" class="setup-width"> <input type="password" placeholder="Confirm Password" name="ConfirmPass" id="ConfirmPass" class="setup-width">
{if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$CPASSWORD}</span>{/if} {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$CPASSWORD}</span>{/if}
</div> </div>
</div> </div>
</div> </div>
<div class="control-group {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE" and isset($do)}error{/if}"> <div class="control-group {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE" and isset($do)}error{/if}">
<label class="control-label">Email</label> <label class="control-label">Email</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span style="margin-left:5px;" class="add-on"><span class="icon-envelope"></span></span> <span style="margin-left:5px;" class="add-on"><span class="icon-envelope"></span></span>
<input type="text" class="setup-width" id="Email" name="Email" placeholder="Email" {if isset($prevEmail)}value="{$prevEmail}"{/if}> <input type="text" class="setup-width" id="Email" name="Email" placeholder="Email" {if isset($prevEmail)}value="{$prevEmail}"{/if}>
{if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE" and isset($do)}<span class="help-inline">{$EMAIL}</span>{/if} {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE" and isset($do)}<span class="help-inline">{$EMAIL}</span>{/if}
</div> </div>
</div> </div>
</div> </div>
{if isset($SUCCESS_ADD) and $SUCCESS_ADD eq "ok"} {if isset($SUCCESS_ADD) and $SUCCESS_ADD eq "ok"}
<div class="alert alert-success"> <div class="alert alert-success">
The user has been created! The user has been created!
</div> </div>
{/if} {/if}
{if isset($SUCCESS_ADD) and $SUCCESS_ADD eq "shardoffline"} {if isset($SUCCESS_ADD) and $SUCCESS_ADD eq "shardoffline"}
<div class="alert alert-warning"> <div class="alert alert-warning">
The user is created, though the shard seems offline, it may take some time to see the change on the shard. The user is created, though the shard seems offline, it may take some time to see the change on the shard.
</div> </div>
{/if} {/if}
<input type="hidden" name="function" value="add_user"> <input type="hidden" name="function" value="add_user">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<div class="control-group"> <div class="control-group">
<label class="control-label"></label> <label class="control-label"></label>
<div class="controls"> <div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px;">Create User</button> <button type="submit" class="btn btn-primary" style="margin-left:5px;">Create User</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div><!--/span--> </div><!--/span-->
{/if} {/if}
<div class="col-sm-4 js-masonry-item"> <div class="col-sm-4 js-masonry-item">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" data-original-title=""> <div class="panel-heading" data-original-title="">
<span class="icon-th"></span> Change Email <span class="icon-th"></span> Change Email
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="row-fluid"> <div class="row-fluid">
<form id="changeEmail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}"> <form id="changeEmail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
<legend>Change Email</legend> <legend>Change Email</legend>
<div class="control-group {if isset($CEMAIL_ERROR) and $CEMAIL_ERROR eq "TRUE"}error{/if}"> <div class="control-group {if isset($CEMAIL_ERROR) and $CEMAIL_ERROR eq "TRUE"}error{/if}">
<label class="control-label">New Email</label> <label class="control-label">New Email</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><span class="icon-envelope"></span></span> <span class="add-on" style="margin-left:5px;"><span class="icon-envelope"></span></span>
<input type="text" class="setup-width" id="NewEmail" name="NewEmail" placeholder="Your new email" {if isset($prevNewEmail)}value="{$prevNewEmail}"{else if isset($current_mail)}value="{$current_mail}"{/if}> <input type="text" class="setup-width" id="NewEmail" name="NewEmail" placeholder="Your new email" {if isset($prevNewEmail)}value="{$prevNewEmail}"{else if isset($current_mail)}value="{$current_mail}"{/if}>
{if isset($CEMAIL_ERROR) and $CEMAIL_ERROR eq "TRUE"}<span class="help-inline">{$EMAIL}</span>{/if} {if isset($CEMAIL_ERROR) and $CEMAIL_ERROR eq "TRUE"}<span class="help-inline">{$EMAIL}</span>{/if}
</div> </div>
</div> </div>
</div> </div>
{if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "OK"} {if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "OK"}
<div class="alert alert-success"> <div class="alert alert-success">
The email has been changed! The email has been changed!
</div> </div>
{/if} {/if}
{if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "SHARDOFF"} {if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "SHARDOFF"}
<div class="alert alert-warning"> <div class="alert alert-warning">
The email has been changed, though the shard seems offline, it may take some time to see the change on the shard. The email has been changed, though the shard seems offline, it may take some time to see the change on the shard.
</div> </div>
{/if} {/if}
<input type="hidden" name="function" value="change_mail"> <input type="hidden" name="function" value="change_mail">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<div class="control-group"> <div class="control-group">
<label class="control-label"></label> <label class="control-label"></label>
<div class="controls"> <div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Email</button> <button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Email</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="col-sm-4 js-masonry-item"> <div class="col-sm-4 js-masonry-item">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" data-original-title=""> <div class="panel-heading" data-original-title="">
<span class="icon-envelope"></span> Ticket updates <span class="icon-envelope"></span> Ticket updates
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="row-fluid"> <div class="row-fluid">
<form id="changeReceiveMail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}"> <form id="changeReceiveMail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
<legend>Ticket-Update Mail Settings</legend> <legend>Ticket-Update Mail Settings</legend>
<div class="control-group"> <div class="control-group">
<label class="control-label">Receive ticket updates</label> <label class="control-label">Receive ticket updates</label>
<div class="controls"> <div class="controls">
<select name="ReceiveMail"> <select name="ReceiveMail">
<option value="1" {if isset($ReceiveMail) and $ReceiveMail eq 1}selected="selected"{/if}>Yes</option> <option value="1" {if isset($ReceiveMail) and $ReceiveMail eq 1}selected="selected"{/if}>Yes</option>
<option value="0" {if isset($ReceiveMail) and $ReceiveMail eq 0}selected="selected"{/if}>No</option> <option value="0" {if isset($ReceiveMail) and $ReceiveMail eq 0}selected="selected"{/if}>No</option>
</select> </select>
</div> </div>
</div> </div>
<input type="hidden" name="function" value="change_receivemail"> <input type="hidden" name="function" value="change_receivemail">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<div class="control-group"> <div class="control-group">
<label class="control-label"></label> <label class="control-label"></label>
<div class="controls"> <div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Updates</button> <button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Updates</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div><!--/span--> </div><!--/span-->
<div class="col-sm-4 js-masonry-item"> <div class="col-sm-4 js-masonry-item">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" data-original-title=""> <div class="panel-heading" data-original-title="">
<span class="icon-th"></span> Change Info <span class="icon-th"></span> Change Info
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="row-fluid"> <div class="row-fluid">
<form id="changeEmail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}"> <form id="changeEmail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
<legend>Change Info</legend> <legend>Change Info</legend>
<div class="control-group"> <div class="control-group">
<label class="control-label">Firstname</label> <label class="control-label">Firstname</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><span class="icon-user"></span></span> <span class="add-on" style="margin-left:5px;"><span class="icon-user"></span></span>
<input type="text" class="setup-width" id="FirstName" name="FirstName" placeholder="Your firstname" {if isset($FirstName) and $FirstName neq ""}value="{$FirstName}"{/if}> <input type="text" class="setup-width" id="FirstName" name="FirstName" placeholder="Your firstname" {if isset($FirstName) and $FirstName neq ""}value="{$FirstName}"{/if}>
</div> </div>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label">Lastname</label> <label class="control-label">Lastname</label>
<div class="controls"> <div class="controls">
<div class="input-prepend"> <div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><span class="icon-user"></span></span> <span class="add-on" style="margin-left:5px;"><span class="icon-user"></span></span>
<input type="text" class="setup-width" id="LastName" name="LastName" placeholder="Your lastname" {if isset($LastName) and $LastName neq ""}value="{$LastName}"{/if}> <input type="text" class="setup-width" id="LastName" name="LastName" placeholder="Your lastname" {if isset($LastName) and $LastName neq ""}value="{$LastName}"{/if}>
</div> </div>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label">Country</label> <label class="control-label">Country</label>
<div class="controls"> <div class="controls">
<select name="Country"> <select name="Country">
{foreach from=$country_array key=k item=v} {foreach from=$country_array key=k item=v}
<option value="{$k}" {if isset($Country) and $Country eq $k}selected="selected"{/if}>{$v}</option> <option value="{$k}" {if isset($Country) and $Country eq $k}selected="selected"{/if}>{$v}</option>
{/foreach} {/foreach}
</select> </select>
</div> </div>
</div> </div>
<div class="control-group gender-list"> <div class="control-group gender-list">
<label class="control-label">Gender</label> <label class="control-label">Gender</label>
<div class="controls"> <div class="controls">
<label class="radio"> <label class="radio">
<div id="uniform-optionsRadios2" class="radio"><span class="{if isset($Gender) and $Gender eq 0}checked{/if}"><input name="Gender" id="optionsRadios0" value="0" {if isset($Gender) and $Gender eq 0}checked=""{/if} type="radio"></span></div> <div id="uniform-optionsRadios2" class="radio"><span class="{if isset($Gender) and $Gender eq 0}checked{/if}"><input name="Gender" id="optionsRadios0" value="0" {if isset($Gender) and $Gender eq 0}checked=""{/if} type="radio"></span></div>
Secret Secret
</label> </label>
<div style="clear:both"></div> <div style="clear:both"></div>
<label class="radio"> <label class="radio">
<div id="uniform-optionsRadios1" class="radio"><span class="{if isset($Gender) and $Gender eq 1}checked{/if}"><input name="Gender" id="optionsRadios1" value="1" {if isset($Gender) and $Gender eq 1}checked=""{/if} type="radio"></span></div> <div id="uniform-optionsRadios1" class="radio"><span class="{if isset($Gender) and $Gender eq 1}checked{/if}"><input name="Gender" id="optionsRadios1" value="1" {if isset($Gender) and $Gender eq 1}checked=""{/if} type="radio"></span></div>
Male Male
</label> </label>
<div style="clear:both"></div> <div style="clear:both"></div>
<label class="radio"> <label class="radio">
<div id="uniform-optionsRadios2" class="radio"><span class="{if isset($Gender) and $Gender eq 2}checked{/if}"><input name="Gender" id="optionsRadios2" value="2" {if isset($Gender) and $Gender eq 2}checked=""{/if} type="radio"></span></div> <div id="uniform-optionsRadios2" class="radio"><span class="{if isset($Gender) and $Gender eq 2}checked{/if}"><input name="Gender" id="optionsRadios2" value="2" {if isset($Gender) and $Gender eq 2}checked=""{/if} type="radio"></span></div>
Female Female
</label> </label>
</div> </div>
</div> </div>
{if isset($info_updated) and $info_updated eq "OK"} {if isset($info_updated) and $info_updated eq "OK"}
<div class="alert alert-success"> <div class="alert alert-success">
The Info has been updated! The Info has been updated!
</div> </div>
{/if} {/if}
<input type="hidden" name="function" value="change_info"> <input type="hidden" name="function" value="change_info">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<div class="control-group"> <div class="control-group">
<label class="control-label"></label> <label class="control-label"></label>
<div class="controls"> <div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Info</button> <button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Info</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div><!--/span--> </div><!--/span-->
{if $permission == '3'} {if $permission == '3'}
<div class="col-sm-4 js-masonry-item"> <div class="col-sm-4 js-masonry-item">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" data-original-title=""> <div class="panel-heading" data-original-title="">
<span class="icon-th"></span> User Registration <span class="icon-th"></span> User Registration
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="row-fluid"> <div class="row-fluid">
<form id="userRegistration" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}"> <form id="userRegistration" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
<legend>User Registration</legend> <legend>User Registration</legend>
<div class="control-group gender-list"> <div class="control-group gender-list">
<div class="controls"> <div class="controls">
<label class="radio"> <label class="radio">
<div id="uniform-optionsRadios2" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 0}checked{/if}"><input name="userRegistration" id="optionsRadios0" value="0" {if isset($userRegistration) and $userRegistration eq 0}checked=""{/if} type="radio"></span></div> <div id="uniform-optionsRadios2" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 0}checked{/if}"><input name="userRegistration" id="optionsRadios0" value="0" {if isset($userRegistration) and $userRegistration eq 0}checked=""{/if} type="radio"></span></div>
In-Game and Web Registration In-Game and Web Registration
</label> </label>
<div style="clear:both"></div> <div style="clear:both"></div>
<label class="radio"> <label class="radio">
<div id="uniform-optionsRadios1" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 1}checked{/if}"><input name="userRegistration" id="optionsRadios1" value="1" {if isset($userRegistration) and $userRegistration eq 1}checked=""{/if} type="radio"></span></div> <div id="uniform-optionsRadios1" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 1}checked{/if}"><input name="userRegistration" id="optionsRadios1" value="1" {if isset($userRegistration) and $userRegistration eq 1}checked=""{/if} type="radio"></span></div>
In-Game Registration Only In-Game Registration Only
</label> </label>
<div style="clear:both"></div> <div style="clear:both"></div>
<label class="radio"> <label class="radio">
<div id="uniform-optionsRadios2" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 2}checked{/if}"><input name="userRegistration" id="optionsRadios2" value="2" {if isset($userRegistration) and $userRegistration eq 2}checked=""{/if} type="radio"></span></div> <div id="uniform-optionsRadios2" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 2}checked{/if}"><input name="userRegistration" id="optionsRadios2" value="2" {if isset($userRegistration) and $userRegistration eq 2}checked=""{/if} type="radio"></span></div>
Web Registration Only Web Registration Only
</label> </label>
<div style="clear:both"></div> <div style="clear:both"></div>
<label class="radio"> <label class="radio">
<div id="uniform-optionsRadios2" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 3}checked{/if}"><input name="userRegistration" id="optionsRadios2" value="3" {if isset($userRegistration) and $userRegistration eq 3}checked=""{/if} type="radio"></span></div> <div id="uniform-optionsRadios2" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 3}checked{/if}"><input name="userRegistration" id="optionsRadios2" value="3" {if isset($userRegistration) and $userRegistration eq 3}checked=""{/if} type="radio"></span></div>
No Registration No Registration
</label> </label>
</div> </div>
</div> </div>
<input type="hidden" name="function" value="userRegistration"> <input type="hidden" name="function" value="userRegistration">
<input type="hidden" name="target_id" value="{$target_id}"> <input type="hidden" name="target_id" value="{$target_id}">
<div class="control-group"> <div class="control-group">
<label class="control-label"></label> <label class="control-label"></label>
<div class="controls"> <div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Setting</button> <button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Setting</button>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div><!--/span--> </div><!--/span-->
{/if} {/if}
</div><!--/row--> </div><!--/row-->
<script src="js/masonry.pkgd.min.js"></script> <script src="js/masonry.pkgd.min.js"></script>
{/block} {/block}