<? global $vis_language; 
    $operators=array(1=>$vis_language['TXTCLIENT'], 2=>$vis_language['TXTSTAFF'], 3=>$vis_language['TXTSTAFF']);
    $paging_list='';
   for($i=0;$i<$view_info['page_count'];$i++) $paging_list.='<option value="'.$i.'" '.(($audit_log_info['page']==$i)?'selected="selected"':'').'>'.($i+1).'</option>';?>
    <div class="row wrapper clr" id="view_action" >
            <div class="col-sm-9 tkt_left_menu"></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_details_list_<? echo $operation['vis_release_id']; ?>').visExecution('load_area',{'vis_module':'releases', 'vis_operation':'get_details', 'vis_action':'audit_log', 'vis_release_id':<? echo $operation['vis_release_id']; ?> ,'vis_page':this.value})">
               <? echo $paging_list;?>
               </select>
               <div class="text-muted pull-right label_page"><? echo $vis_language['TXTPAGE']; ?>:</div>
            </div>
         </div>
<table class="table table-hover b-t b-light m-b-none" data-ride="datatables">
   <thead class="table_head">
      <tr>         
         <th><? echo $vis_language['TXTOPERATION']; ?></th>
         <th><? echo $vis_language['TXTDATETIME']; ?></th>
         <th><? echo $vis_language['TXTOPERATOR']; ?></th>
      </tr>
   </thead>
   <tbody>
      <?
    if($audit_log!=-1) for($i=0;$i<$audit_count;$i++) {
        echo '<tr><td>'.$audit_log[$i]['audit_log_operation'].'</td><td>'.format_datetime($audit_log[$i]['entry_date']).'</td><td>'.($audit_log[$i]['operator_id']==0?'System':($operators[$audit_log[$i]['operator']].' ('.$audit_log[$i]['name'].')')).'</td></tr>';
    }?>
   </tbody>
</table>
<footer class="wrapper panel-footer bg-white">
            <div class="row">
               <div class="col-sm-9 tkt_left_menu"> </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_details_list_<? echo $operation['vis_release_id']; ?>').visExecution('load_area',{'vis_module':'releases', 'vis_operation':'get_details', 'vis_action':'audit_log' , 'vis_release_id':<? echo $operation['vis_release_id']; ?>, 'vis_page':this.value})">
                  <? echo $paging_list;?>
                  </select>
                  <div class="text-muted pull-right label_page"><? echo $vis_language['TXTPAGE']; ?>:</div>
               </div>
            </div>
         </footer>
<script type="text/javascript">

	
   $(".selectpicker").selectpicker(); 
   $(document).ready(function() {	
   $('[data-ride="datatables"]').dataTable({		
           "bPaginate" : false,	
   		"sDom": 't', "bAutoWidth": false,
   		"aaSorting": [[ 1, "desc" ]],
   		"aoColumns": [
   		  	null,
   		  	null,
   		  	null
   		]
   	});
   });
</script>
