<? global $vis_language;
   $paging_list='';
   for($i=0;$i<$view_info['page_count'];$i++) $paging_list.='<option value="'.$i.'" '.(($customfield_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 $operation['view_title']; ?><span id="total_cnt"> (<? echo $customfield_info['total']; ?>)</span></h3>
      <div>
         <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><a class="link" href="#/setting/setting_menu/<? echo $vis_language['TXTSETTINGS']; ?>"><? echo $vis_language['TXTSETTINGS']; ?></a></li>
             <? if($operation['vis_section']=='service'){?>
              <li><a class="link" href="#/setting/view_service_category/<? echo $vis_language['TXTSERVICECATEGORY']; ?>"><? echo $vis_language['TXTSERVICECATEGORY']; ?></a></li>
             <li><a class="link" href="#/setting/view_service_item/<? echo $vis_language['TXTSERVICEITEM']; ?>" ><? echo $vis_language['TXTSERVICEITEM']; ?></a> </li>
             <? }else{?>
             <li><a class="link" href="#/setting/view_configuration/<? echo $vis_language['TXTCONFIGURATIONITEMTYPE']; ?>" ><? echo $vis_language['TXTCONFIGURATIONITEMTYPE']; ?></a> </li>
             <? }?>
            <li class="active"><? echo $operation['view_title']; ?></li>
         </ul>
      </div>
   </div>
   <div class="col-sm-6 text-right text-left-xs m-t-lg">
    <? if($operation['vis_section']=='service'){?>
   <div class="btn-group pull-right">
			<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="vh vh-action text-muted"></i> <b class="caret"></b></button>
     <ul class="dropdown-menu dropdown-menu-right text-left">
     <li><a href="#/setting/view_service_category/<? echo $vis_language['TXTSERVICECATEGORY'];?>" class="link" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSERVICECATEGORY']; ?>',{'vis_module':'setting','vis_operation':'view_service_category'});"><?= $vis_language['TXTSERVICECATEGORY']; ?></a></li>
     
     <li><a href="#/setting/view_service_item/<? echo $vis_language['TXTSERVICEITEM'];?>" class="link" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSERVICEITEM']; ?>',{'vis_module':'setting','vis_operation':'view_service_item'});"><?= $vis_language['TXTSERVICEITEM']; ?></a></li>
          <?
            //if($operation['vis_operation']!='' && $service_details!=-1) { ?>
				<li><a href="#/setting/view_service_field/<? echo $vis_language['TXTSERVICECUSTOMFIELD'];?>" class="link" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSERVICECUSTOMFIELD']; ?>',{'vis_module':'setting','vis_operation':'view_service_field','vis_section':'service', 'cache':true});"><?= $vis_language['TXTSERVICECUSTOMFIELD']; ?></a></li>   <? //} ?>
         </ul>
   </div>
   <? }else{?>
   <div class="btn-group pull-right">
			<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="vh vh-action text-muted"></i> <b class="caret"></b></button>
     <ul class="dropdown-menu dropdown-menu-right text-left">
     <li><a href="#/setting/view_configuration/<? echo $vis_language['TXTCONFIGURATIONITEMTYPE'];?>" class="link" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTCONFIGURATIONITEMTYPE']; ?>',{'vis_module':'setting','vis_operation':'view_configuration'});"><?= $vis_language['TXTCONFIGURATIONITEMTYPE']; ?></a></li>
     
    
         </ul>
   </div>
   <? }?>
      <div class="btn-group">&nbsp;
         <?
            if($operation['vis_operation']!='') { ?>
         <a class="btn btn-rounded btn-primary btn-sm dropdown-toggle" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTADDNEWCUSTOMFIELD']; //$vis_language['TXTADDCICUSTOMFIELD']; ?>',{'vis_module':'setting','vis_operation':'<? echo $operation['vis_operation']; ?>','vis_section':'<? echo $operation['vis_section'];?>' ,'cache':true});"><i style="font-size:10px;" class="vh vh-plus"></i>  <? echo $vis_language['TXTADD']; ?></a>  <? } ?>
      </div>
   </div>
</section>
   <? if($view_info['page_count']>0)
   {
   ?>
<div class="col-lg-12">
   <form name="vis_surveyfield_form" id="vis_surveyfield_form">
      <section class="panel panel-default">
         <div class="row wrapper clr">
            <div class="col-sm-9 tkt_left_menu">
               <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" role="menu">
  							<li><a href="javascript:void(0);" onclick="$(this).visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'change_setting_status', 'vis_form':'vis_surveyfield_form', 'vis_switch':'surveyfield','vis_current_operation':'<?php echo $operation['vis_current_operation']; ?>','vis_current_module':'<?php echo $operation['vis_current_module']; ?>', 'vis_is_enable':'1', 'vis_page':'<? echo $customfield_info['page']; ?>'})"><? echo $vis_language['TXTENABLE']; ?></a></li>
                           <li><a href="javascript:void(0);" onclick="$(this).visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'change_setting_status', 'vis_form':'vis_surveyfield_form', 'vis_switch':'surveyfield','vis_current_operation':'<?php echo $operation['vis_current_operation']; ?>','vis_current_module':'<?php echo $operation['vis_current_module']; ?>', 'vis_is_enable':'0', 'vis_page':'<? echo $customfield_info['page']; ?>'})"><? echo $vis_language['TXTDISABLE']; ?></a></li>
                     </ul>
                  </div>
               </div>
            </div>
            <div  class="col-sm-3 text-right text-center-xs tkt_right_menu" id="paging">
               <select name="pageing" class="form-control input-sm selectpicker pull-right paging v-middle" onchange="$(this).parents('#vis_workpanel_div').visExecution('load_area',{'vis_module':'<?php echo $operation['vis_current_module']; ?>', 'vis_operation':'<?php echo $operation['vis_current_operation']; ?>', 'vis_page':this.value})">
               <? 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.'ci_field_list.php'); ?>
         </div>
         <footer class="wrapper panel-footer bg-white">
            <div class="row">
               <div class="col-sm-9 tkt_left_menu">
                  <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" role="menu">
                           <li><a href="javascript:void(0);" onclick="$(this).visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'change_setting_status', 'vis_form':'vis_surveyfield_form', 'vis_switch':'surveyfield','vis_current_operation':'<?php echo $operation['vis_current_operation']; ?>','vis_current_module':'<?php echo $operation['vis_current_module']; ?>', 'vis_is_enable':'1', 'vis_page':'<? echo $customfield_info['page']; ?>'})"><? echo $vis_language['TXTENABLE']; ?></a></li>
                           <li><a href="javascript:void(0);" onclick="$(this).visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'change_setting_status', 'vis_form':'vis_surveyfield_form', 'vis_switch':'surveyfield','vis_current_operation':'<?php echo $operation['vis_current_operation']; ?>','vis_current_module':'<?php echo $operation['vis_current_module']; ?>', 'vis_is_enable':'0', 'vis_page':'<? echo $customfield_info['page']; ?>'})"><? echo $vis_language['TXTDISABLE']; ?></a></li>
                        </ul>
                     </div>
                  </div>
               </div>
               <div class="col-sm-3 text-right text-center-xs tkt_right_menu" id="paging">
                  <select name="pageing" class="form-control input-sm selectpicker pull-right paging v-middle" onchange="$(this).parents('#vis_workpanel_div').visExecution('load_area',{'vis_module':'<?php echo $operation['vis_current_module']; ?>', 'vis_operation':'<?php echo $operation['vis_current_operation']; ?>', 'vis_page':this.value})">
                  <? echo $paging_list;?>
                  </select>
                  <div class="text-muted pull-right label_page"><? echo $vis_language['TXTPAGE']; ?>:</div>
               </div>
            </div>
         </footer>
      </section>
   </form>
</div>
<?
}
else
{
 include(VIS_PATH_TEMPLATE.'no_record_yet.php');
} ?>