<? global $vis_language; ?>
<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 class="txt_nowrap"><? echo $vis_language['TXTPAGE']; ?></th>
			<th class="txt_nowrap"><? echo $vis_language['TXTDEPARTMENT']; ?></th>
			<th class="txt_nowrap"><? echo $vis_language['TXTSTATUS']; ?></th>
            <th></th>										
		</tr>
	</thead>
	 <tbody>
        <? if($filters!=-1) for($i=0;$i<count($pages_details);$i++) {
						if($pages_details[$i]['is_enabled']==1){ $status = $vis_language['TXTENABLED'];$lbl='vh-green-bg';} else {$status = $vis_language['TXTDISABLED'];$lbl='label-default';} ?>
        <tr>
        	<tr><td width="30"><label class="checkbox m-n i-checks"><input type="checkbox" name="vis_global_mass_chk_<?=$i?>" id="vis_global_mass_chk_<?=$i?>" value="<?=$pages_details[$i]['page_id'];?>" /><i></i></label></td>               
        	<td><a class=""  href="javascript:void(0);"  data-toggle="ajaxModal" data-modal-arguments="vis_module=setting&vis_operation=get_page_edit&vis_page_id=<? echo $pages_details[$i]['page_id'];?>&vis_static_area=vis_filter_delete_area" title="<? echo $vis_language['TXTUPDATE']; ?>"><?=$pages_details[$i]['page_name'];?></a></td>
            <td><a class=""  href="javascript:void(0);"  data-toggle="ajaxModal" data-modal-arguments="vis_module=setting&vis_operation=get_page_edit&vis_page_id=<? echo $pages_details[$i]['page_id'];?>&vis_static_area=vis_filter_delete_area" title="<? echo $vis_language['TXTUPDATE']; ?>"><? for($d=0;$d<count($department_details);$d++){
						if($department_details[$d]['department_id']==$pages_details[$i]['department_id'])
						   echo $department_details[$d]['domain_name'].' : '.$department_details[$d]['department_name'];
			       }?></a></td>
            <td><?='<span class="label '.$lbl.'">'.$status.'</span>';?></td>
            <td><a class="text-muted"  href="javascript:void(0);"  data-toggle="ajaxModal" data-modal-arguments="vis_module=setting&vis_operation=get_page_delete&vis_page_id=<? echo $pages_details[$i]['page_id'];?>&vis_static_area=vis_filter_delete_area" title="<? echo $vis_language['TXTDELETE']; ?>"><i class="vh vh-delete-round"></i></a>
                  </td>
        </tr>			  
	    <? }?>	
	 </tbody>
</table>
<script>$(".selectpicker").selectpicker();</script>