<? global $vis_language; 
	$paging_list='';
    for($i=0;$i<$view_info['page_count'];$i++) $paging_list.='<option value="'.$i.'" '.(($product_info['page']==$i)?'selected="selected"':'').'>'.($i+1).'</option>';  ?>
	<section class="container"> 
   <div class="row">
        <div class="col-md-12">
          <section class="container m-t-md">         
            <form class="vis_myproducts_form" method="post" id="vis_task_form1" name="vis_task_form1">
            <div class="row padder clr" <? if($client_product==-1) echo 'style="display:none;"'; ?>>
				<div class="col-sm-9"></div>
			    <div class="col-sm-3 text-right text-center-xs tkt_right_menu m-t-n">
                        <ul class="pagination-sm pagination" id="task_pagination"></ul>
               </div>
			</div>
            <div class="list-unstyled padder m-b-none table-responsive scroll-x" id="vis_product_list" <? if($client_product==-1) echo 'style="display:none;"'; ?>>
			  <? include_once(VIS_PATH_TEMPLATE.'myproduct_list.php'); ?>
            </div>
              <div class="row padder clr m-b" <? if($client_product==-1) echo 'style="display:none;"'; ?>>
				<div class="col-sm-9"></div>
				<div class="col-sm-3 text-right text-center-xs tkt_right_menu">
                        <ul class="pagination-sm pagination" id="task_pagination1"></ul>
               </div>
			</div>
			<input type="hidden" name="vis_page" id="vis_page" value="">
			<input type="hidden" name="vis_module" value="billing">
			<input type="hidden" name="vis_operation" value="client_products_list">
			</form>
            <section class="wrapper fullFrame" id="no_record_found" <? if($client_product!=-1) echo 'style="display:none;"'; ?>>
                <div class="fullMiddle m-xl text-center h4"><?= $vis_language['TXTNOTHINGTODISPLAY']; ?></div>
            </section>
          </section>
		</div>
      </div><!-- /.row -->
  </section>
<script>
<? if($view_info['page_count']>0) {?>
    $('.pagination-sm').twbsPagination({
		totalPages:<?php echo $view_info['page_count']; ?>,
		visiblePages:3,
		first:false,
		last:false,
		onPageClick: function (event, page) {     
		$.ajax({
		url: 'index.php',
		data: {'vis_module':"billing", 'vis_operation':"client_products_list", 'vis_page':page-1, 'vis_form':'vis_task_form1', 'vis_change':1},
		type: "POST",
		success: function(data) {            
			$("#vis_product_list").html(data);
		}
		});
          }
      });
<? }?>
function load_page(page) {
	$('#vis_page').val(page);
	$(".vis_myproducts_form").submit();
}
</script>