
					
					<table class="table datatable-responsive-row-history table-hover">
						<col width="15%">
  						<col width="15%">
  						<col width="15%">
  						<col width="15%">
  						<col width="10%">
  						<col width="10%">
  						<col width="10%">
  						<col width="10%">
						<thead>
							<tr>
								<th></th>
								<th class=""><?php echo $this->lang->line('lbl_user_fullname');?></th>
								<th class=""><?php echo $this->lang->line('lbl_user_name');?></th>
								<th class=""><?php echo $this->lang->line('lbl_user_email');?></th>
								<th class=""><?php echo $this->lang->line('lbl_user_ip');?></th>
								<th class="text-center"><?php echo $this->lang->line('lbl_status');?></th>
								<th class=""><?php echo $this->lang->line('lbl_createon');?></th>
								<th class=""><?php echo $this->lang->line('lbl_view');?></th>
								<th class="text-center"><?php echo $this->lang->line('lbl_action');?></th>
							</tr>
						</thead>
						<tbody>
						<?php 
							if($users) {
								$row_count = count($users);
								// echo phpversion();
								$this->load->library('MyEncrypt');
								$myencrypt = new MyEncrypt;
								foreach ($users as $row) {

									if($row->status=='1'){
										$label_status = 'label-success';
										$status = $this->lang->line('active');
									} else {
										$label_status = 'label-danger';
										$status = $this->lang->line('in_active');
									}

							?>
							<tr>
							    <td></td>
								<td class=""><?php echo ucwords($row->fullname);?></td>
								<td class=""><?php echo $row->username;?></td>
								<td class=""><?php echo $row->email;?></td>
								<td class=""><?php echo ($row->loginipaddr) ? $row->loginipaddr : $row->createdipaddr;?></td>
								
								<?php if($row->status=='1'){ ?>
								        <td class="text-center"><span class="label <?php echo $label_status;?>"><a style="color:#fff;text-transform:none;font-size:13px;" onclick="changeStatus('<?php echo $myencrypt->encode($row->uusersid); ?>')"><?php echo $status;?></a></span></td>
								<?php } else {?>
 								        <td class="text-center"><span class="label <?php echo $label_status;?>"><a style="color:#fff;text-transform:none;font-size:13px;" onclick="changeActiveStatus('<?php echo $myencrypt->encode($row->uusersid); ?>')"><?php echo $status;?></a></span></td>
                                <?php } ?>
                                <td class=""><?php echo date('Y-m-d', strtotime($row->createdate));?></td>
                                <td class="text-center"><a class="btn btn-primary" href="<?php echo base_url().'admin/users/view/'.$myencrypt->encode($row->uusersid);?>"><i class="fa fa-search position-center"></i></a></td>
								<td class="text-center">

									<ul class="icons-list">
										<li class="dropdown">
											<a href="#" class="dropdown-toggle" data-toggle="dropdown">
												<i class="icon-menu9"></i>
											</a>

											<ul class="dropdown-menu dropdown-menu-right <?php if($row_count=='1') { echo 'inline-drop'; }?>">
												<li><a href="<?php echo base_url().'admin/users/add/'.$myencrypt->encode($row->uusersid);?>"><i class="fa fa-edit"></i> <?php echo $this->lang->line('edit');?></a></li>
												<li><a onclick="confirmdelete('<?php echo $myencrypt->encode($row->uusersid);?>')" href="javascript:void(0)" ><i class="fa fa-remove"></i> <?php echo $this->lang->line('delete');?></a></li>
												
											</ul>
										</li>
									</ul>
								</td>
							</tr>
						<?php 

								}
							
							}  else { 

						?>
							<?php } ?>
						</tbody>
					</table>

		<script type="text/javascript">
		
		
		</script>
				