mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
More user changes. 'user/add' now implemented.
This commit is contained in:
41
application/views/user/add.php
Normal file
41
application/views/user/add.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<h2>Add user</h2>
|
||||
<div class="wrap_content user">
|
||||
<?php echo validation_errors(); ?>
|
||||
|
||||
<form method="post" action="<?php echo site_url('user/add'); ?>" name="users">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Username</td>
|
||||
<td><input type="text" name="user_name" value="<?php if(isset($user_name)) { echo $user_name; } ?>" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>E-mail</td>
|
||||
<td><input type="text" name="user_email" value="<?php if(isset($user_email)) { echo $user_email; } ?>" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Password</td>
|
||||
<td><input type="password" name="user_password" value="<?php if(isset($user_password)) { echo $user_password; } ?>" /></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(isset($user_type)) { 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>
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<tr>
|
||||
<td>Password</td>
|
||||
<td><input type="text" name="user_password" /><br><div class="small">Leave blank to keep existing password</div></td>
|
||||
<td><input type="password" name="user_password" /><br><div class="small">Leave blank to keep existing password</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -50,4 +50,5 @@
|
||||
</tr>
|
||||
<?php $i++; } ?>
|
||||
</table>
|
||||
<div class="controls"><a href="<?php echo site_url('user/add'); ?>">Add user</a></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user