<?
    global $vis_language;
    $paging_list='';
    for($i=0;$i<$view_info['page_count'];$i++) $paging_list.='<option value="'.$i.'" '.(($task_page==$i)?'selected="selected"':'').'>'.($i+1).'</option>'; ?>
<section id="breadcrumb" class="row m-b m-l-none m-r-none">
	<div class="col-sm-4">
	  <h3 class="m-b-xs text-black"><? echo $vis_language['TXTGOOGLECALENDER']; ?></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 class="active"><?  echo $vis_language['TXTCALENDERTASKS'];  ?></li>
		 </ul>
	  </div>
	</div>
	<div class="col-sm-8 m-t-md ">
	<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 class="link" href="#/home/get_gcal_event_list/<?  echo $vis_language['TXTEVENTS'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module', '<?  echo $vis_language['TXTEVENTS'];?>', {'vis_module':'home', 'vis_operation':'get_gcal_event_list'})"><? echo $vis_language['TXTCALENDEREVENTS']; ?></a></li>
      <li><a class="link" href="#/home/get_gcal_event_list/<? echo $vis_language['TXTTASKS'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module', '<? echo $vis_language['TXTTASKS'];?>', {'vis_module':'home', 'vis_operation':'get_gcal_event_list'})"><? echo $vis_language['TXTCALENDERTASKS']; ?></a></li>
         </ul>
   </div>

			 <div class="btn-group pull-right">&nbsp;<a class="btn btn-sm btn-primary btn-rounded m-l" href="#/home/add_gcal_task/<?  echo $vis_language['TXTADDCALENDERTASK'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module', '<? echo $vis_language['TXTADDCALENDERTASK'];?>', {'vis_module':'home', 'vis_operation':'add_gcal_task'})"><i class="vh vh-plus"></i><? echo $vis_language['TXTADDCALENDERTASK']; ?></a></div>
		
	</div>
</section>
  <? if($view_info['page_count']>0)
  {
   ?>
<div class="col-lg-12">
   <form name="vis_gcal_task_form" id="vis_gcal_task_form">
   <section class="panel panel-default">
  
         <div id="vis_gcal_tasks">
		 <? include(VIS_PATH_TEMPLATE.'gcal_task_list.php');  ?>
        </div>
  
	   </section>
	   </form>
<? } else { 
	include(VIS_PATH_TEMPLATE.'no_record_yet.php'); 
 } ?>

</div>
