- no more duplicated functions - improved performances (much less duplicated mysql queries) - less code and better error handling
41 lines
952 B
PHP
41 lines
952 B
PHP
<?php
|
|
/*********************/
|
|
/* Edit Account Form */
|
|
/*********************/
|
|
?>
|
|
|
|
<!-- start of edit account form -->
|
|
<tr>
|
|
<td> Email Address </td>
|
|
<td> <input type="text" name="ext_email" value="<?php echo $ext_email; ?>"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td> Password </td>
|
|
<td> <input type="password" name="ext_password"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td> Password (again) </td>
|
|
<td> <input type="password" name="ext_password2"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td> Real Name </td>
|
|
<td> <input type="text" name="ext_realname" value="<?php echo $ext_realname; ?>"> </td>
|
|
</tr>
|
|
<?php
|
|
// if we manage another user we can give him administrator rights
|
|
if($oUser->iUserId == $_REQUEST['userId'])
|
|
{
|
|
?>
|
|
<tr>
|
|
<td> Administrator </td>
|
|
<td> <input type="checkbox" name="ext_hasadmin" "<?php echo $ext_hasadmin; ?>" value="on"> </td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr>
|
|
<td colspan=2> </td>
|
|
</tr>
|
|
|
|
<!-- end of edit account form -->
|