| 
									
										
										
										
											2011-08-18 08:16:27 +08:00
										 |  |  | <h2>Users</h2> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.mousewheel-3.0.4.pack.js"></script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.pack.js"></script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	<link rel="stylesheet" type="text/css" href="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.css" media="screen" /> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	<script type="text/javascript"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		$(document).ready(function() { | 
					
						
							|  |  |  | 			$(".qsobox").fancybox({ | 
					
						
							|  |  |  | 				'width'				: '75%', | 
					
						
							|  |  |  | 				'height'			: '50%', | 
					
						
							|  |  |  | 				'autoScale'			: false, | 
					
						
							|  |  |  | 				'transitionIn'		: 'none', | 
					
						
							|  |  |  | 				'transitionOut'		: 'none', | 
					
						
							|  |  |  | 				'type'				: 'iframe' | 
					
						
							|  |  |  | 			}); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		}); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	</script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <div class="wrap_content"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <?php if($this->session->flashdata('notice')) { ?>
 | 
					
						
							|  |  |  | 	<div id="message" > | 
					
						
							|  |  |  |     	<?php echo $this->session->flashdata('notice'); ?>
 | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | <?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	<table class="users" width="100%"> | 
					
						
							|  |  |  | 		<tr class="user_title titles"> | 
					
						
							|  |  |  | 			<td>User</td> | 
					
						
							|  |  |  | 			<td>E-mail</td> | 
					
						
							|  |  |  | 			<td>Type</td> | 
					
						
							| 
									
										
										
										
											2011-08-20 00:12:59 +08:00
										 |  |  | 			<td>Options</td> | 
					
						
							| 
									
										
										
										
											2011-08-18 08:16:27 +08:00
										 |  |  | 		</tr> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		<?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		$i = 0; | 
					
						
							|  |  |  | 		foreach ($results->result() as $row) { ?>
 | 
					
						
							|  |  |  | 		<?php  echo '<tr class="tr'.($i & 1).'">'; ?>
 | 
					
						
							|  |  |  | 			<td><a href="<?php echo site_url('user/edit')."/".$row->user_id; ?>"><?php echo $row->user_name; ?></a></td>
 | 
					
						
							|  |  |  | 			<td><?php echo $row->user_email; ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-08-20 00:12:59 +08:00
										 |  |  | 			<td><?php $l = $this->config->item('auth_level'); echo $l[$row->user_type]; ?></td>
 | 
					
						
							|  |  |  | 			<td><a href="<?php echo site_url('user/delete')."/".$row->user_id; ?>">Delete</a></td> | 
					
						
							| 
									
										
										
										
											2011-08-18 08:16:27 +08:00
										 |  |  | 		</tr> | 
					
						
							|  |  |  | 		<?php $i++; } ?>
 | 
					
						
							|  |  |  | 	</table> | 
					
						
							| 
									
										
										
										
											2011-08-18 09:27:53 +08:00
										 |  |  | <div class="controls"><a href="<?php echo site_url('user/add'); ?>">Add user</a></div> | 
					
						
							| 
									
										
										
										
											2011-08-18 08:16:27 +08:00
										 |  |  | </div> |