| 
									
										
										
										
											2011-08-18 08:16:27 +08:00
										 |  |  | <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> | 
					
						
							| 
									
										
										
										
											2011-08-18 09:27:53 +08:00
										 |  |  | 		<td><input type="password" name="user_password" /><br><div class="small">Leave blank to keep existing password</div></td> | 
					
						
							| 
									
										
										
										
											2011-08-18 08:16:27 +08:00
										 |  |  | 	</tr> | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 	<tr> | 
					
						
							|  |  |  | 		<td>Type</td> | 
					
						
							|  |  |  | 		<td><select name="user_type"> | 
					
						
							| 
									
										
										
										
											2011-08-18 08:47:59 +08:00
										 |  |  | 				<?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 } ?>
 | 
					
						
							| 
									
										
										
										
											2011-08-18 08:16:27 +08:00
										 |  |  | 			</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> |