File size: 2.51Kb
<?php echo $this->validation()->messages() ?>
<h1><?php echo $title ?></h1>
<form action="" method="post">
<table class="grid" width="400">
<tr>
<td><label for="username"><?php echo __('Username')?>*:</label></td>
<td><input name="username" type="text" id="username" value="<?php echo View::escape($user->username)?>" size="40" /></td>
</tr>
<tr>
<td><label for="email"><?php echo __('Email')?>*:</label></td>
<td><input name="email" type="text" id="email" value="<?php echo View::escape($user->email)?>" size="40" /></td>
</tr>
<tr>
<td><label for="web"><?php echo __('Website')?>:</label></td>
<td><input name="web" type="text" id="web" value="<?php echo View::escape($user->web)?>" size="40" /></td>
</tr>
<tr>
<td><label for="level"><?php echo __('Permission')?>:</label></td>
<td>
<select name="level" id="level">
<?php
for($i=0;$i<4;$i++)
{
if($user->level==$i)
{
$sel = 'selected="selected"';
}
else
{
$sel = '';
}
echo '<option value="'.$i.'" '.$sel.'>'.User::getLevel($i).'</option>';
}
?>
</select>
ATTENTION: user can delete all wallpapers. Be carefull when adding users.
<ul>
<li>Admin: Can add/edit/delete all wallpapers, bulk insert, users, categories, comments, tags and change options.</li>
<li>Moderator: Can add/edit/delete all wallpapers, categories, comments, tags.</li>
<li>User: Can add/edit/delete all wallpapers. </li>
<li>Pending: Restrict login completely.</li>
</ul>
</td>
</tr>
<tr>
<td><label for="password"><?php echo ( $add?__('Password'):__('New Password (leave blank if not changing)'))?>:</label></td>
<td><input name="password" type="password" id="password" value="" size="40" /></td>
</tr>
<tr>
<td><label for="password_repeat"><?php echo ($add? __('Password Repeat'):__('New Password Repeat'))?>:</label></td>
<td><input name="password_repeat" type="password" id="password_repeat" value="" size="40" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submit" id="submit" value="<?php echo __('Submit')?>" />
<input type="hidden" name="id" id="id" value="<?php echo $user->id?>" />
<a href="<?php echo get_url('admin/users/')?>" class="cancel"><?php echo __('cancel')?></a></td>
</tr>
</table>
</form>