<?   global $vis_language; 
    $paging_list='';
    for($i=0;$i<$view_info['page_count'];$i++) $paging_list.='<option value="'.$i.'" '.(($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" id="url_header">
      <h3 class="m-b-xs text-black"><? echo $vis_language['TXTEXOTELAPPS']; ?><span id="total_cnt"> (<?=$number_count['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'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSETTINGS'];?>',{'vis_module':'setting','vis_operation':'setting_menu'});"><? echo $vis_language['TXTSETTINGS']; ?></a></li>
            <li><a class="link" href="#/setting/exotel/<? echo $vis_language['TXTEXOTEL'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTEXOTEL'];?>',{'vis_module':'setting','vis_operation':'exotel'});"><? echo $vis_language['TXTEXOTEL']; ?></a></li>
            <li class="active"><? echo $vis_language['TXTEXOTELAPPS']; ?></li>
         </ul>
      </div>
   </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" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTADDEXOTELAPP']; ?>',{'vis_module':'setting','vis_operation':'new_exotel_app','vis_action':'#/setting/new_exotel_app/<?php echo $vis_language['TXTEXOTELAPPS']."/".$action[4];?>'});"><i style="font-size:10px;" class="vh vh-plus"></i>  <? echo $vis_language['TXTADDEXOTELAPP']; ?></a>
      </div>
   </div>
</section>
  <? if($view_info['page_count']>0)
   {
   ?>
<div class="col-lg-12">
   <form  name="vis_activitylog_form" id="vis_activitylog_form">
	    <input type="hidden" value="" name="vis_filter_enable" id="vis_filter_enable">
      <section class="panel panel-default">
         <div class="row wrapper clr" id="view_action">
            <div class="col-sm-9 tkt_left_menu m-t-xs"></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':'setting', 'vis_operation':'exotel_number', '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_exotel_number_list">
             <? include_once(VIS_PATH_TEMPLATE.'exotel_app_list.php'); ?>
         </div>
         <footer class="wrapper panel-footer bg-white">
            <div class="row">
               <div class="col-sm-9 tkt_left_menu m-t-xs"></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':'setting', 'vis_operation':'exotel_number', '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>
<section class="fullFrame m-n" id="vis_no_record_search1" style="display:none;">
</section>
<script>
   function vis_apply_filter(vis_page){
	vis_page = (vis_page!=undefined && typeof(vis_page)!=undefined && vis_page != '') ? vis_page:'';
	var data = {'vis_filter_enable':'1', 'vis_page':vis_page, 'vis_action': $("#vis_filter_list input, #vis_filter_list select").serialize() };
    $.ajax({
		url: 'index.php?vis_module=setting&vis_operation=exotel_number',
		data: data,
		type: "POST",
		dataType: "json",
		success: function(data) {
			$(".tkt_right_menu").html(data.paging);
			$("#vis_exotel_number_list").html(data.list);

			if(data.total_cnt==0){
				$("#vis_no_record_search1").show();
				$("#vis_no_record_search1").html(data.list);
			}else $("#vis_no_record_search1").hide();
            toggle_mass_actions(); // To disable header & footer mass actions on list pages
		},
		error: function(xhr, ajaxOptions, thrownError) {$("#vis_global_msg_div").visInterface("load_global_message", "Error: "+xhr.status+" - "+thrownError);}
	});

}
</script>
<?
}
else
{
	include(VIS_PATH_TEMPLATE.'no_record_yet.php');
} ?>
