<? global $vis_language;
 ?>

<header class="header b-b b-light bg-w clearfix">
	 <section class="row">
	  <div class="col-md-12">
		<h3 class="m-b-xs text-black"><? echo $vis_language['TXTLEADERBOARD']; ?></h3>
	  </div>
	  <ul class="breadcrumb bg-empty no-border m-b-xxs ">

		<li><a class="link" href="#/home/quick_view/<? echo $vis_language['TXTHOME']; ?>"><? echo $vis_language['TXTHOME'];?></a></li>
		  <li><a class="link" href="#/report/report_list/<? echo $vis_language['TXTREPORTS']; ?>" onclick="$('#vis_workpanel_div').visExecution('load_module', '<? echo $vis_language['TXTREPORTS']; ?>',{'vis_module':'report', 'vis_operation':'report_list'});"><? echo $vis_language['TXTREPORTS']; ?></a></li>
		     <li><a class="link" href="#/report/report_list/<? echo $vis_language['TXTREPORTS']; ?>/Reports?&show_report=2" onclick="$('#vis_workpanel_div').visExecution('load_module', '<? echo $vis_language['TXTREPORTS']; ?>', {'vis_module':'report', 'vis_operation':'report_list','show_report':'2'});"><? echo $vis_language['TXTDATA']; ?></a></li>
		<li class="active"><? echo $vis_language['TXTLEADERBOARD']; ?></li>
	  </ul>

	  </section>
</header>
            <section class="scrollable">
				 <form class="form-horizontal" enctype="multipart/form-data" id="vis_task_form1" name="vis_task_form1" method="post" >
				 <div id="myTask">
				   <? if($staffCnt['total']>0){?>
					 <div class="text-right padder">
                        <ul class="pagination-sm pagination" id="task_pagination"></ul>
                     </div>
					  <aside class="myTask">
                        <? include(VIS_PATH_TEMPLATE.'leaderboard_report_list.php'); ?>
                     </aside>

					 <div class="text-right padder">
                        <ul class="pagination-sm pagination" id="task_pagination1"></ul>
                     </div>
					  <? }else {
                     include(VIS_PATH_TEMPLATE.'no_record_yet.php');
                     }?>
					 </div>
                     </form>
            </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) {
          $('.myTask').visExecution('load_operations',{'vis_module':'report', 'vis_operation':'leaderboard_report', 'vis_page':page-1 ,'vis_form':'vis_task_form1','vis_change':1});
          }
      });<? }?>

	$(".selectpicker").selectpicker();
</script>
