Update lua versions
[ryzomcore.git] / web / private_php / ams / ingame_templates / settings.tpl
blob6049bddbaffbe5d11e68ac68925e699177313e03
1 {block name=content}
2 <tr><td>
3       <table width="100%" cellspacing="0" cellpadding="0" border="0">
4         <tr bgcolor="{$second_menu_bg_color}" valign="middle">
5           <td>
6           <table>
7             <tr>
8               <td>
9                 <table cellspacing="0" cellpadding="4">
10                   <tr>              
11                     <td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_user&id={$target_id}"><h7>Browse User</h7></a></td>
12                     <td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$target_id}"><h7>Send Ticket</h7></a></td>
13                     {if isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1}
14                         {if $userPermission eq 1}
15                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Make Moderator</h7></a></td>
16                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
17                         {else if $userPermission eq 2 }
18                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
19                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
20                         {else if $userPermission eq 3 }
21                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
22                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</h7></a></td>
23                         {/if}
24                     {/if}
25                   </tr>
26                 </table>
27               </td>
28             </tr>
29           </table>
30           </td>
31         </tr>
32         <tr>
33                 <td height="3" bgcolor="#000000"></td>
34         </tr>
35       </table>
36   </td></tr>
38     <tr><td>
39         <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
40         <tr><td height="7"></td><td></td></tr>
41         <tr>
42                 <td width="3%"></td>
43                 <td width="100%" height="12" valign="middle"><h1>Change Settings of {$target_username}</h1></td>
44         </tr>
45         <tr>
46           <td height="5"></td><td></td>
47         </tr>
48         </table>
49   </td></tr>
50   <tr><td>
51       <table width="100%" cellspacing="0" cellpadding="0" border="0">
52         <tr bgcolor="#000000" valign="middle">
53           <td>
54             <table>
55               <tr><td height="8"></td></tr>
56             </table>
57           </td>
58         </tr>
59         <tr><td height="2"></td></tr>
60         <tr><td height="1" bgcolor="#000000"></td></tr>
61         <tr><td height="10"></td></tr>
62         <tr valign="middle">
63           <td>
64             <table width="100%" height="100%" cellpadding="10">
65               <tr><td>
66                 <table width="100%" bgcolor="{$main_tbl_color}" border="2">
67                         <tr><td>
68                                 <table cellpadding="10">
69                                         <tr><td>
70                                                 
71                                         <p><h3>Change Password</h3></p>
72                                         
73                                         <form id="changePassword" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
74                                                 <table cellpadding="1">
75                                                 {if !isset($changesOther) or $changesOther eq "FALSE"}
76                                                 <tr>
77                                                         <td valign="middle">
78                                                         Current Password:
79                                                         </td>
80                                                         <td>
81                                                         <input type="text" id="CurrentPass" name="CurrentPass" {if isset($prevCurrentPass)}value="{$prevCurrentPass}"{/if}>
82                                                         {if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}<font color="red">The password is incorrect</font>{/if}
83                                                         </td>
84                                                         </p>
85                                                 </tr>
86                                                 {/if}
87                                                 <tr><td valign="middle">
88                                                 New Password:
89                                                 </td><td>
90                                                 <input type="text" class="input-xlarge" id="NewPass" name="NewPass" placeholder="Your new password"  {if isset($prevNewPass)}value="{$prevNewPass}"{/if}>
91                                                 {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$newpass_error_message}</font>{/if}
92                                                 </td></tr>
93                                                         
94                                                 <tr><td valign="middle">
95                                                 Confirm New Password:
96                                                 </td><td>
97                                                 <input type="text" class="input-xlarge" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password"  {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}>
98                                                 {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$confirmnewpass_error_message}</font>{/if}
99                                                 </td></tr>  
100                                                 </table>
101                                                 {if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"}
102                                                 <p><font color="green">
103                                                         The password has been changed!
104                                                 </font></p>
105                                                 {/if}
106                                                 
107                                                 
108                                                 <input type="hidden" name="function" value="change_password">
109                                                 <input type="hidden" name="target_id" value="{$target_id}">
111                                                 <p><input type="submit" value="Change Password"/></p>
113                                         </form>         
114                                                                 
115                                         </td></tr>
116                                 </table>
117                         </td></tr>
118                 </table>
119               </td></tr>
120               <tr><td>
121                 <table width="100%" bgcolor="{$main_tbl_color}" border="2">
122                         <tr><td>
123                                 <table cellpadding="10">
124                                         <tr><td>
125                                                 <p><h3>Change Email</h3></p>
126                                                 
127                                                 <form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
128                                                 <table>
129                                                         <tr><td valign="middle">
130                                                         New Email:
131                                                         </td><td>
132                                                         <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}>
133                                                         {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}<font color="red">{$EMAIL}</font>{/if}
134                                                         </td></tr>
135                                                 </table>
136                                                 {if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "OK"}
137                                                 <p>
138                                                         <font color="green">The email has been changed!</green>
139                                                 </p>
140                                                 {/if}
141                                                 
142                                                 <input type="hidden" name="function" value="change_mail">
143                                                 <input type="hidden" name="target_id" value="{$target_id}">
144                                                 <p>
145                                                 <input type="submit" value="Change Email"/>
146                                                 </p>
147                                         </form>
148                                         </td></tr>
149                                 </table>
150                         </td></tr>
151                 </table>
152               </td></tr>
153                 <tr><td>
154                 <table width="100%" bgcolor="{$main_tbl_color}" border="2">
155                         <tr><td>
156                                 <table cellpadding="10">
157                                         <tr><td>
158                                                 <p><h3>Change Info</h3></p>
159                                                 <form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
160                                                 <table>
161                                                 <tr>
162                                                         <td valign="middle">Firstname: </td>
163                                                         <td><input type="text" id="FirstName" name="FirstName" placeholder="Your firstname" {if isset($FirstName) and $FirstName neq ""}value="{$FirstName}"{/if}></td>
164                                                 </tr>
165                                                 
166                                                 <tr>
167                                                         <td valign="middle">Lastname: </td>
168                                                         <td><input type="text" id="LastName" name="LastName" placeholder="Your lastname" {if isset($LastName) and $LastName neq ""}value="{$LastName}"{/if}></td>
169                                                 </tr>   
170                                                 
171                                                 <tr>
172                                                         <td valign="middle">Country: </td>
173                                                         <td><select name="Country">
174                                                                         {foreach from=$country_array key=k item=v}
175                                                                                 <option value="{$k}" {if isset($Country) and $Country eq $k}selected="selected"{/if}>{$v}</option>
176                                                                         {/foreach}
177                                                         </select></td>  
178                                                 </tr>
179                                                 <tr>
180                                                         <td valign="middle">Gender</td>
181                                                         <td>
182                                                                 <select name="Gender">
183                                                                         <option value="0"{if isset($Gender) and $Gender eq 0}selected="selected"{/if}>Secret</option>
184                                                                         <option value="1"{if isset($Gender) and $Gender eq 1}selected="selected"{/if}>Male</option>
185                                                                         <option value="2"{if isset($Gender) and $Gender eq 2}selected="selected"{/if}>Female</option>
186                                                                 </select></td>
187                                                         </td>
188                                                 </tr>
189                                                 </table>                        
190                                                 {if isset($info_updated) and $info_updated eq "OK"}
191                                                 <p>
192                                                         <font color="green">The Info has been updated!</font>
193                                                 </p>
194                                                 {/if}
195                                                 
196                                                 <input type="hidden" name="function" value="change_info">
197                                                 <input type="hidden" name="target_id" value="{$target_id}">
199                                                 <p>
200                                                 <input type="submit" value="Change Info"/>
201                                                 </p>
202                                         </form>
203                                                 
204                                         </td></tr>
205                                 </table>
206                         </td></tr>
207                 </table>
208               </td></tr>
209                 <tr><td>
210                 <table width="100%" bgcolor="{$main_tbl_color}" border="2">
211                         <tr><td>
212                                 <table cellpadding="10">
213                                         <tr><td>
214                                                 <p><h3>Ticket-Update Mail Settings</h3></p>
215                                                 <form id="changeReceiveMail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
216                                                         <table>
217                                                                 <tr><td valign="middle">
218                                                                         Receive ticket updates
219                                                                 </td><td>
220                                                                          <select name="ReceiveMail">    
221                                                                                 <option value="1" {if isset($ReceiveMail) and $ReceiveMail eq 1}selected="selected"{/if}>Yes</option>
222                                                                                 <option value="0" {if isset($ReceiveMail) and $ReceiveMail eq 0}selected="selected"{/if}>No</option>
223                                                                         </select>
224                                                                 </td></tr>
225                                                         </table>
226                                                         
227                                                         <input type="hidden" name="function" value="change_receivemail">
228                                                         <input type="hidden" name="target_id" value="{$target_id}">
229                                                         <p>
230                                                                 <input type="submit" value="Change Updates"/>
231                                                         </p>
232                                                 </form>
233                                                 
234                                         </td></tr>
235                                 </table>
236                         </td></tr>
237                 </table>
238               </td></tr>
239             </table>
240           </td>
241         </tr>
242       </table>
243       
244   </td></tr>
245         
246 {/block}
247