Cloudlog/application/views/user/edit.php
2011-08-18 02:27:53 +01:00

41 行
1.1 KiB
PHP

<h2>Edit user</h2>
<div class="wrap_content user">
<?php echo validation_errors(); ?>
<form method="post" action="<?php echo site_url('user/edit')."/".$this->uri->segment(3); ?>" name="users">
<table>
<tr>
<td>Username</td>
<td><input type="text" name="user_name" value="<?php echo $user_name; ?>" /></td>
</tr>
<tr>
<td>E-mail</td>
<td><input type="text" name="user_email" value="<?php echo $user_email; ?>" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="user_password" /><br><div class="small">Leave blank to keep existing password</div></td>
</tr>
<tr>
<td>Type</td>
<td><select name="user_type">
<?php
$levels = $this->config->item('auth_level');
while (list($key, $val) = each($levels)) {
?>
<option value="<?php echo $key; ?>" <?php if($user_type == $key) { echo "selected=\"selected\""; } ?>><?php echo $val; ?></option>
<?php } ?>
</select>
</td>
</tr>
</table>
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
<div><input type="submit" value="Submit" /></div>
</form>
</div>