<?  $paging_list='';
    for($i=0;$i<$integration_info['page_count'];$i++) $paging_list.='<option value="'.$i.'" '.(($integration_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"><span><? echo $vis_language['TXTVTIGER'];?> (<? echo $integration_info['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><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 class="active"><? echo $vis_language['TXTVTIGER'];?></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="#/setting/new_vtiger/<? echo $vis_language['TXTADDVTIGER'];?>"><i style="font-size:10px;" class="vh vh-plus"> </i> <? echo $vis_language['TXTADD'];?></a>
		</div>
	</div>
</section>
 <? if($view_info['page_count']>0 && $integration_info['integration_count']!=0)
   {?>
<input type="hidden" name="vis_integration_id"  id="vis_integration_id" value="<? echo $integration_details['integration_id']; ?>"/>
<div class="col-lg-12">
	<form name="vis_integration_form" id="vis_integration_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">
							<li><a href="javascript:void(0);" onclick="$(this).visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'change_setting_status', 'vis_form':'vis_integration_form', 'vis_switch':'integration', 'vis_current_operation':'integration_list', 'vis_integration_type':'<? echo $integration_type;?>', 'vis_current_module':'setting','vis_is_enable':'1'})"><? 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_integration_form', 'vis_switch':'integration', 'vis_current_operation':'integration_list', 'vis_integration_type':'<? echo $integration_type;?>', 'vis_current_module':'setting', 'vis_is_enable':'0'})"><? 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':'setting', 'vis_operation':'integration_list', 'vis_integration_type':'<? echo $integration_type;?>', '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_blesta_list">
				<? include_once(VIS_PATH_TEMPLATE.'vtiger_integration_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_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">
								<li><a href="javascript:void(0);" onclick="$(this).visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'change_setting_status', 'vis_form':'vis_integration_form', 'vis_switch':'integration', 'vis_current_operation':'integration_list', 'vis_integration_type':'<? echo $integration_type;?>', 'vis_current_module':'setting','vis_is_enable':'1'})"><? 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_integration_form', 'vis_switch':'integration', 'vis_current_operation':'integration_list', 'vis_integration_type':'<? echo $integration_type;?>','vis_current_module':'setting', 'vis_is_enable':'0'})"><? 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':'setting', 'vis_operation':'integration_list', 'vis_integration_type':'<? echo $integration_type;?>', '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>
<script src="<?= VIS_PATH_SCRIPT; ?>dropdown_dropup.js"></script>
<?
}
else
{
	 include(VIS_PATH_TEMPLATE.'no_record_yet.php');
} ?>
<script>$(".selectpicker").selectpicker();</script>
