<? global $vis_language;
    $paging_list='';
    for($i=0;$i<$view_details_info['page_count'];$i++) $paging_list.='<option value="'.$i.'" '.(($view_details_info['page']==$i)?'selected="selected"':'').'>'.($i+1).'</option>';
?>
<section id="breadcrumb" class="row m-b m-l-none m-r-none">
	<div class="col-sm-6">
		<h3 class="m-b-xs text-black"><? echo $vis_language['TXTVIEWS']; ?><span id="total_cnt"> (<? echo $view_total['total']; ?>)</span></h3>
		<ul class="breadcrumb bg-empty no-border m-b-xxs no-padder">
			<li><a class="link" href="#/home/quick_view/<? echo $vis_language['TXTHOME']; ?>"><? echo $vis_language['TXTHOME']; ?></a></li>
			<li class="active"><? echo $vis_language['TXTVIEWS']; ?></li>
		</ul>
	</div>
	<div class="col-sm-6 text-right text-left-xs m-t-lg">
		  <div class="btn-group">
			<a class="btn btn-rounded btn-primary btn-sm dropdown-toggle" href="#/home/new_view/Add view"><i style="font-size:10px;" class="vh vh-plus"></i> <? echo $vis_language['TXTADD']; ?></a>
		  </div>
	</div>
</section>
 <? if($view_details_info['page_count']>0)
   {
 ?>
<div class="col-lg-12">
    <form name="vis_view_form" id="vis_view_form">
		<section class="panel panel-default">
			<div class="row wrapper clr">
			  <div class="col-sm-9 tkt_left_menu">
				<? if(isset($operation['vis_draft']) && $operation['vis_draft']==1) { ?>
				<div class="btn-group select">
				  </div>
				<? }
					else { ?>
				<div class="vis_mass_action">
				<div class="btn-group">
				  <button class="btn bg-empty btn-sm dropdown-toggle action_btn" data-toggle="dropdown">
					<i class="vh vh-action"></i> <span class="caret"></span>
				  </button>
					<ul class="dropdown-menu">
						<li><a href="javascript:void(0);" onclick="$(this).visExecution('submit_form',{'vis_module':'home', 'vis_operation':'change_setting_status', 'vis_form':'vis_view_form', 'vis_switch':'views', 'vis_is_enable':'1', 'vis_current_operation':'view_views','vis_current_module':'staff'})"><? echo $vis_language['TXTENABLE']; ?></a></li>
						<li><a href="javascript:void(0);" onclick="$(this).visExecution('submit_form',{'vis_module':'home', 'vis_operation':'change_setting_status', 'vis_form':'vis_view_form', 'vis_switch':'views', 'vis_is_enable':'0', 'vis_current_operation':'view_views','vis_current_module':'staff'})"><? echo $vis_language['TXTDISABLE']; ?></a></li>
					</ul>
				</div>
				</div>
				<? }//else ?>
			  </div>
			  <div class="col-sm-3 text-right text-center-xs tkt_right_menu" id="paging">
				 <select onchange="$(this).parents('#vis_workpanel_div').visExecution('load_area',{'vis_module':'staff', 'vis_operation':'view_views', 'vis_page':this.value})" class="form-control input-sm selectpicker pull-right paging v-middle" name="pageing">
					<? echo $paging_list;?>
				  </select>
				  <div class="text-muted pull-right label_page"><? echo $vis_language['TXTPAGE']; ?>:</div>
			  </div>
			</div>
			<div class="table-responsive scroll-x" id="vis_domain_list">
			<? include_once(VIS_PATH_TEMPLATE.'views_list.php'); ?>
			</div>
			<footer class="wrapper panel-footer bg-white">
			  <div class="row">
				  <div class="col-sm-9 tkt_left_menu">
				<? if(isset($operation['vis_draft']) && $operation['vis_draft']==1) { ?>
				<div class="btn-group">
				  </div>
				<? }

					else { ?>
				<div class="vis_mass_action_footer">
				<div class="btn-group">
				  <button type="button" class="btn bg-empty btn-sm dropdown-toggle action_btn" data-toggle="dropdown">
					<i class="vh vh-action"></i>
					<span class="caret"></span>
				  </button>
					<ul class="dropdown-menu" role="menu">
							<li><a href="javascript:void(0);" onclick="$('#vis_global_msg_div').visExecution('submit_form',{'vis_module':'home', 'vis_operation':'change_setting_status', 'vis_form':'vis_view_form', 'vis_switch':'views', 'vis_is_enable':'1', 'vis_current_operation':'view_views','vis_current_module':'staff'})"><? echo $vis_language['TXTENABLE']; ?></a></li>
						<li><a href="javascript:void(0);" onclick="$('#vis_global_msg_div').visExecution('submit_form',{'vis_module':'home', 'vis_operation':'change_setting_status', 'vis_form':'vis_view_form', 'vis_switch':'views', 'vis_is_enable':'0', 'vis_current_operation':'view_views','vis_current_module':'staff'})"><? echo $vis_language['TXTDISABLE']; ?></a></li>
					</ul>
				</div>
			   </div>
				<? }//else ?>
			  </div>
			  <div class="col-sm-3 text-right text-center-xs tkt_right_menu" id="paging">
				  <select onchange="$(this).parents('#vis_workpanel_div').visExecution('load_area',{'vis_module':'staff', 'vis_operation':'view_views', 'vis_page':this.value})" class="form-control input-sm selectpicker pull-right paging v-middle" name="pageing">
					<? echo $paging_list;?>
				  </select>
				  <div class="text-muted pull-right label_page"><? echo $vis_language['TXTPAGE']; ?>:</div>
			  </div>

			  </div>
			</footer>
		  </section>
   </form>
   <?
}
else
{
 include(VIS_PATH_TEMPLATE.'no_record_yet.php');
} ?>
<script src="<?= VIS_PATH_SCRIPT; ?>dropdown_dropup.js"></script>
