 <? global $vis_language; 
			if($staff_details==-1){   
				include(VIS_PATH_TEMPLATE.'no_record_yet.php'); 
				echo '<script> $("#view_action").hide(); $("#vis_admin_form .panel-footer").hide(); $("#vis_admin_list").hide(); $(".fullFrame").removeClass("b-t").addClass("m-t-lg m-b-lg"); </script>';
			 } else { ?>
			<script> $("#view_action").show(); $("#vis_admin_form .panel-footer").show(); $("#vis_admin_list").show(); </script>
         <table class="table table-hover b-t b-light m-b-none" data-ride="datatables">
            <thead class="table_head">
               <tr>
                  <th>
					<div class="btn-group">
					<label class="checkbox m-n m-r-sm i-checks"  style="float: left;"><input type="checkbox"><i></i></label>		
					</div>
				 </th>
                  <th><? echo $vis_language['TXTFULLNAME']; ?></th>
                  <th class="txt_nowrap"><? echo $vis_language['TXTUSERNAME']; ?></th>
                  <th class="txt_nowrap"><? echo $vis_language['TXTDOMAINSACCESS']; ?></th>
                  <th class="txt_nowrap"><? echo $vis_language['TXTADMINTYPE']; ?></th>
               </tr>
            </thead>
            <tbody>
               <?
                  for($i=0;$i<$staff_info['staff_count'];$i++) {
					 $department_access=$staff_details[$i]['department'];
                     echo '<tr>';?>
                     <td width="30"><label class="checkbox m-n i-checks"><input type="checkbox" name="vis_global_mass_chk_<? echo $i; ?>" id="vis_global_mass_chk_<? echo $i; ?>" value="<? echo $staff_details[$i]['staff_id']; ?>"/><i></i></label></td>
                     <? echo '<td><a href="#/setting/adminaccess_details/'.str_replace("/"," ",$staff_details[$i]['user_name']).'/'.$staff_details[$i]['staff_id'].'">'.$staff_details[$i]['first_name'].' '.$staff_details[$i]['last_name'].'</a></td>';
                      echo '<td><a href="#/setting/adminaccess_details/'.str_replace("/"," ",$staff_details[$i]['user_name']).'/'.$staff_details[$i]['staff_id'].'">'.$staff_details[$i]['user_name'].'</a></td>';
                        ?>
               <td >
                  <div class="<?php if(count($staff_details[$i]['department'])>5) echo 'dept_access'; ?>"><a href="#/setting/adminaccess_details/<?php echo str_replace("/"," ",$staff_details[$i]['user_name']);?>/<?php echo $staff_details[$i]['staff_id']; ?>">
                     <?php if($staff_details[$i]['department']!= -1) for($j=0;$j<count($staff_details[$i]['department']);$j++) {
                        echo $staff_details[$i]['department'][$j]['domain_name'].'<br/>';
                        } ?>
                     </a>
                  </div>
               </td>
               <?
                  echo '<td><a href="#/setting/adminaccess_details/'.str_replace("/"," ",$staff_details[$i]['user_name']).'/'.$staff_details[$i]['staff_id'].'">'.$staff_details[$i]['superadmin'].'</a></td>';
                  echo '</tr>';
                  } ?>
            </tbody>
         </table><? } ?>
<script type="text/javascript">
   $(".selectpicker").selectpicker(); 
   $(document).ready(function() {	
   $('[data-ride="datatables"]').dataTable({		
          "bPaginate" : false,	
   		"sDom": 't', "bAutoWidth": false,
   		"aoColumns": [
   			{ "bSortable": false },
   		  	null,
   		  	null,
   		  	null,													
   			null,
   		]
   	});
   });
</script>
