2013-07-30 23:19:57 +00:00
{ block name = content }
<tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
2013-08-03 16:59:21 +00:00
<tr bgcolor=" { $second_menu_bg_color } " valign="middle">
2013-07-30 23:19:57 +00:00
<td>
<table>
<tr>
<td>
<table cellspacing="0" cellpadding="4">
<tr>
2013-09-09 01:47:32 +00:00
<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>
2013-07-30 23:19:57 +00:00
{ if isset ( $isAdmin ) and $isAdmin eq 'TRUE' and $target_id neq 1 }
{ if $userPermission eq 1 }
2013-09-09 01:47:32 +00:00
<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>
2013-07-30 23:19:57 +00:00
{ else if $userPermission eq 2 }
2013-09-09 01:47:32 +00:00
<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>
2013-07-30 23:19:57 +00:00
{ else if $userPermission eq 3 }
2013-09-09 01:47:32 +00:00
<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>
2013-07-30 23:19:57 +00:00
{ /if }
{ /if }
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="3" bgcolor="#000000"></td>
</tr>
</table>
</td></tr>
<tr><td>
2013-08-03 16:59:21 +00:00
<table width="100%" bgcolor=" { $title_bg_color } " cellspacing="2">
2013-07-30 23:19:57 +00:00
<tr><td height="7"></td><td></td></tr>
<tr>
<td width="3%"></td>
2013-09-09 01:47:32 +00:00
<td width="100%" height="12" valign="middle"><h1>Change Settings of { $target_username } </h1></td>
2013-07-30 23:19:57 +00:00
</tr>
<tr>
<td height="5"></td><td></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="#000000" valign="middle">
<td>
<table>
<tr><td height="8"></td></tr>
</table>
</td>
</tr>
<tr><td height="2"></td></tr>
<tr><td height="1" bgcolor="#000000"></td></tr>
<tr><td height="10"></td></tr>
<tr valign="middle">
<td>
<table width="100%" height="100%" cellpadding="10">
<tr><td>
2013-08-03 16:59:21 +00:00
<table width="100%" bgcolor=" { $main_tbl_color } " border="2">
2013-07-30 23:19:57 +00:00
<tr><td>
<table cellpadding="10">
<tr><td>
<p><h3>Change Password</h3></p>
2013-09-09 01:47:32 +00:00
<form id="changePassword" method="post" action=" { $ingame_webpath } ?page=settings&id= { $target_id } ">
2013-07-30 23:19:57 +00:00
<table cellpadding="1">
{ if ! isset ( $changesOther ) or $changesOther eq "FALSE" }
<tr>
2013-07-31 00:09:21 +00:00
<td valign="middle">
2013-07-30 23:19:57 +00:00
Current Password:
</td>
<td>
<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 }
</td>
</p>
</tr>
{ /if }
2013-07-31 00:09:21 +00:00
<tr><td valign="middle">
2013-07-30 23:19:57 +00:00
New Password:
</td><td>
<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 }
</td></tr>
2013-07-31 00:09:21 +00:00
<tr><td valign="middle">
2013-07-30 23:19:57 +00:00
Confirm New Password:
</td><td>
<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 }
</td></tr>
</table>
{ if isset ( $SUCCESS_PASS ) and $SUCCESS_PASS eq "OK" }
<p><font color="green">
The password has been changed!
</font></p>
{ /if }
<input type="hidden" name="function" value="change_password">
<input type="hidden" name="target_id" value=" { $target_id } ">
<p><input type="submit" value="Change Password"/></p>
</form>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
<tr><td>
2013-08-03 16:59:21 +00:00
<table width="100%" bgcolor=" { $main_tbl_color } " border="2">
2013-07-30 23:19:57 +00:00
<tr><td>
<table cellpadding="10">
<tr><td>
<p><h3>Change Email</h3></p>
2013-09-09 01:47:32 +00:00
<form id="changeEmail" class="form-vertical" method="post" action=" { $ingame_webpath } ?page=settings&id= { $target_id } ">
2013-07-31 00:09:21 +00:00
<table>
<tr><td valign="middle">
New Email:
</td><td>
2013-08-24 23:22:24 +00:00
<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 } >
2013-07-31 00:09:21 +00:00
{ if isset ( $EMAIL_ERROR ) and $EMAIL_ERROR eq "TRUE" } <font color="red"> { $EMAIL } </font> { /if }
</td></tr>
</table>
{ if isset ( $SUCCESS_MAIL ) and $SUCCESS_MAIL eq "OK" }
<p>
<font color="green">The email has been changed!</green>
</p>
{ /if }
<input type="hidden" name="function" value="change_mail">
<input type="hidden" name="target_id" value=" { $target_id } ">
<p>
<input type="submit" value="Change Email"/>
</p>
</form>
2013-07-30 23:19:57 +00:00
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
<tr><td>
2013-08-03 16:59:21 +00:00
<table width="100%" bgcolor=" { $main_tbl_color } " border="2">
2013-07-30 23:19:57 +00:00
<tr><td>
<table cellpadding="10">
<tr><td>
<p><h3>Change Info</h3></p>
2013-09-09 01:47:32 +00:00
<form id="changeEmail" class="form-vertical" method="post" action=" { $ingame_webpath } ?page=settings&id= { $target_id } ">
2013-07-31 00:09:21 +00:00
<table>
<tr>
<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>
</tr>
<tr>
<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>
</tr>
<tr>
<td valign="middle">Country: </td>
<td><select name="Country">
{ foreach from = $country_array key = k item = v }
<option value=" { $k } " { if isset ( $Country ) and $Country eq $k } selected="selected" { /if } > { $v } </option>
{ /foreach }
</select></td>
</tr>
<tr>
<td valign="middle">Gender</td>
<td>
<select name="Gender">
<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="2" { if isset ( $Gender ) and $Gender eq 2 } selected="selected" { /if } >Female</option>
</select></td>
</td>
</tr>
</table>
{ if isset ( $info_updated ) and $info_updated eq "OK" }
<p>
<font color="green">The Info has been updated!</font>
</p>
{ /if }
<input type="hidden" name="function" value="change_info">
<input type="hidden" name="target_id" value=" { $target_id } ">
<p>
<input type="submit" value="Change Info"/>
</p>
</form>
2013-07-30 23:19:57 +00:00
2013-08-24 23:22:24 +00:00
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
<tr><td>
<table width="100%" bgcolor=" { $main_tbl_color } " border="2">
<tr><td>
<table cellpadding="10">
<tr><td>
<p><h3>Ticket-Update Mail Settings</h3></p>
2013-09-09 01:47:32 +00:00
<form id="changeReceiveMail" class="form-vertical" method="post" action=" { $ingame_webpath } ?page=settings&id= { $target_id } ">
2013-08-24 23:22:24 +00:00
<table>
<tr><td valign="middle">
Receive ticket updates
</td><td>
<select name="ReceiveMail">
<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>
</select>
</td></tr>
</table>
<input type="hidden" name="function" value="change_receivemail">
<input type="hidden" name="target_id" value=" { $target_id } ">
<p>
<input type="submit" value="Change Updates"/>
</p>
</form>
2013-07-30 23:19:57 +00:00
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</td>
</tr>
</table>
</td></tr>
{ /block }