<? global $vis_language;?>
            <table class="table table-hover b-t b-light m-b-none" data-ride="datatables" >
               <thead class="table_head">
                  <tr>
                     <th>
                        <div class="btn-group">
                           <label class="checkbox m-n m-r-sm i-checks"  style="float: left;"><input type="checkbox"><i></i></label>
                        </div>
                     </th>
                     <th><? echo $vis_language['TXTTITLE']; ?></th>
                     <th class="txt_nowrap"><? echo $vis_language['TXTDURATION'].' '.$vis_language['TXTFROM']; ?></th>
                     <th class="txt_nowrap"><? echo $vis_language['TXTDURATION'].' '.$vis_language['TXTTO']; ?></th>
                    
                     <!--<th class="txt_nowrap"><? echo $vis_language['XTCREATEDATE']; ?></th>-->
                   
                   
                    
                    <th></th>
                  </tr>
               </thead>
               <tbody>
                  <?
                     if($filters!=-1) for($i=0;$i<count($filters);$i++) {
						if($filters[$i]['is_enabled']==1){ $status = $vis_language['TXTENABLED'];$lbl='vh-green-bg';} else {$status = $vis_language['TXTDISABLED'];$lbl='label-default';}
                        echo '<tr id="'.$i.'"><td width="30"><label class="checkbox m-n i-checks"><input type="checkbox" name="vis_global_mass_chk_'.$i.'" id="vis_global_mass_chk_'.$i.'" value="'.$filters[$i]['filter_id'].'" /><i></i></label></td>';
                        echo '<td><a href="#/report/custom_report_detail/'.$filters[$i]['filter_name'].'/'.$filters[$i]['filter_id'].'/'.$operation['custom_show_report'].'">'.$filters[$i]['filter_name'].'</a></td>';
																								
																								echo '<td><a href="#/report/custom_report_detail/'.$filters[$i]['filter_name'].'/'.$filters[$i]['filter_id'].'/'.$operation['custom_show_report'].'">'.date(VIS_DATETIME_FORMAT,($filters[$i]['fromdate'] )).'</a></td>';
																								
																								echo '<td><a href="#/report/custom_report_detail/'.$filters[$i]['filter_name'].'/'.$filters[$i]['filter_id'].'/'.$operation['custom_show_report'].'">'.date(VIS_DATETIME_FORMAT,($filters[$i]['todate'] )).'</a></td>';
																							
																									//echo '<td><a href="#/ticket/search_detail/'.$filters[$i]['filter_name'].'/'.$filters[$i]['filter_id'].'/'.$operation['custom_show_report'].'">'.format_datetime($filters[$i]['display_order']).'</a></td>';
																									
																																														
                        
																							
                        ?>

						
                  <td align="center" >
                  <div id="option_<? echo $i; ?>" style="display:block; width:10;">
                  	<button class="btn btn-sm dropdown-toggle" data-toggle="dropdown" style="padding:0px; background:none;"><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="text-primary m-r-sm link" href="javascript:void(0);" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $filters[$i]['filter_name']; ?>',{'vis_module':'report','vis_operation':'custom_report_result', 'vis_filter_id':<? echo $filters[$i]['filter_id']?>,'vis_search':3,'vis_report':1,'vis_is_report':1,'vis_action':'#/report/custom_report_result/<? echo $filters[$i]['filter_name']; ?>/<? echo $filters[$i]['filter_id']?>'});"><? echo $vis_language['TXTGENRATE']; ?></a></li>
        <li><a href="javascript:void(0);" class="m-r-sm link" data-toggle="ajaxModal" data-modal-arguments="vis_module=report&vis_operation=add_report_inqueue&vis_static_area=vis_open_new_dialog&vis_filter_id=<? echo $filters[$i]['filter_id'];?>&report_type=14" type="button"><? echo $vis_language['TXTEXPORT']; ?></a></li>
    <li><a href="javascript:void(0);" class="m-r-sm link" data-toggle="ajaxModal" data-modal-arguments="vis_module=report&vis_operation=add_schedule_report_inqueue&vis_static_area=vis_open_new_dialog&vis_filter_id=<? echo $filters[$i]['filter_id'];?>&report_type=14" onclick="" type="button"><? echo $vis_language['TXTSCHEDULE']; ?></a></li>
       <li> <a class="m-r-sm link"  href="javascript:void(0);"  data-toggle="ajaxModal" data-modal-arguments="vis_module=report&vis_operation=get_custom_delete&vis_filter_id=<? echo $filters[$i]['filter_id'];?>&vis_static_area=vis_filter_delete_area&vis_is_report=1" title="<? echo $vis_language['TXTDELETE']; ?>"><? echo $vis_language['TXTDELETE']; ?></a></li>
        </ul>
                  </div>
                 
                    
                     
                     
                  </td>

                  </tr> <? }?>
               </tbody>
            </table>
         
<script type="text/javascript">
	$(".selectpicker").selectpicker();

		
   $(document).ready(function() {
   $('[data-ride="datatables"]').dataTable({
           "bPaginate" : false,
   		"sDom": 't', "bAutoWidth": false,
   		"aoColumns": [
   			{ "bSortable": false },
							null,
   		  	null,
   		  	null,
   			{ "bSortable": false }
   		]
   	});
   });
</script>
<script src="<?= VIS_PATH_SCRIPT; ?>dropdown_dropup.js"></script>
