<form method="POST" action="submit.php">
<input type="hidden" name="edit" value="user">
<input type="hidden" name="user_id" value=" { $user - > id } ">
<table class="title">
<tr>
<td class="header">
<img class="icon" src="images/user.png" alt="" />
{ $user_name }
</td>
<td align="right">
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt=" { $lang_cancel } "></a>
<input type="image" src="image.php?icon=save" alt=" { $lang_submit } ">
</td>
</tr>
</table>
<table class="info">
<tr>
<td class="header">
{ $lang_user }
</td>
<td class="header_right">
</td>
</tr>
<tr>
<td class="label">
{ $lang_user_name }
</td>
<td class="value">
<input type="text" name="user_name" value=" { $user - > name } ">
</td>
</tr>
<tr>
<td class="label">
{ $lang_user_displayname }
</td>
<td class="value">
<input type="text" name="user_displayname" value=" { $user - > displayname } ">
</td>
</tr>
<tr>
<td class="label">
{ $lang_user_realm }
</td>
<td class="value">
{ html_radios name = user_realm values = $realm_ids output = $realm_names selected = $user - > realm }
</td>
</tr>
<tr>
<td class="label">
<b>Rechte</b>
</td>
<td class="value">
</td>
</tr>
<tr>
<td class="label">
{ $lang_user_role_add }
</td>
<td class="value">
<img src="images/page_add.png" alt="[Add]">
<input type="checkbox" name="role_add" { if in_array ( 'add' , $user - > role ) } checked="checked" { /if }
</td>
</tr>
<tr>
<td class="label">
{ $lang_user_role_edit }
</td>
<td class="value">
<img src="images/page_edit.png" alt="[Edit]">
<input type="checkbox" name="role_edit" { if in_array ( 'edit' , $user - > role ) } checked="checked" { /if }
</td>
</tr>
<tr>
<td class="label">
{ $lang_user_role_delete }
</td>
<td class="value">
<img src="images/page_delete.png" alt="[Delete]">
<input type="checkbox" name="role_delete" { if in_array ( 'delete' , $user - > role ) } checked="checked" { /if }
</td>
</tr>
{ if $suser_admin }
<tr>
<td class="label">
{ $lang_user_role_manage }
</td>
<td class="value">
<img src="images/manage.png" alt="[Manage]">
<input type="checkbox" name="role_manage" { if in_array ( 'manage' , $user - > role ) } checked="checked" { /if }
</td>
</tr>
<tr>
<td class="label">
{ $lang_user_role_admin }
</td>
<td class="value">
<img src="images/admin.png" alt="[Admin]">
<input type="checkbox" name="role_admin" { if in_array ( 'admin' , $user - > role ) } checked="checked" { /if }
</td>
</tr>
{ /if }
</table>
</form>