<? 
	global $vis_language;
	if($roundrobin_info['total']>0){
?>
<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['TXTDISPLAYORDER']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTSTATUS']; ?></th>
         <th></th>
      </tr>
   </thead>
   <tbody>
      <?
         if($roundrobin_details!=-1) for($i=0;$i<$roundrobin_info['roundrobin_count'];$i++) {
			 if($roundrobin_details[$i]['is_enabled']==1){ $status = $vis_language['TXTENABLED'];$lbl='vh-green-bg';} else {$status = $vis_language['TXTDISABLED'];$lbl='label-default';}
             echo '<tr><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="'.$roundrobin_details[$i]['roundrobin_id'].'" /><i></i></label></td><td><a href="#/setting/rounrobin_details/'.rawurlencode(str_replace('/', ' ', $roundrobin_details[$i]['roundrobin_name'])).'/'.$roundrobin_details[$i]['roundrobin_id'].'">'.$roundrobin_details[$i]['roundrobin_name'].'</a></td>';
             echo '<td><a href="#/setting/rounrobin_details/'.rawurlencode(str_replace('/', ' ', $roundrobin_details[$i]['roundrobin_name'])).'/'.$roundrobin_details[$i]['roundrobin_id'].'">'.$roundrobin_details[$i]['execution_order'].'</a></td>';
             echo '<td><span class="label '.$lbl.'">'.$status.'</span></td>';
         //    echo '<td><span class="vis-icon-med vis-icon-trash" onclick="$(this).visInterface(\'load_dialog\', {\'vis_module\':\'setting\', \'vis_operation\':\'get_workflow_delete\', \'vis_workflow_id\':'.$workflow_details[$i]['workflow_id'].', \'vis_static_area\':\'vis_workflow_delete_area\'})"></span></td>'; ?>
      <td align="center"> <a class="text-muted" data-toggle="ajaxModal" data-modal-arguments="vis_module=setting&vis_operation=get_roundrobin_delete&vis_roundrobin_id=<? echo $roundrobin_details[$i]['roundrobin_id']; ?>&vis_static_area=vis_domain_delete_form&vis_page=<? echo $roundrobin_info['page']; ?>"  title="<? echo $vis_language['TXTDELETE']; ?>" href="javascript:void(0);"><i class="vh vh-delete-round"></a></td>
      <?
         echo '</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>
<?
}
else
{
	$operation['no_record']=1;
	include(VIS_PATH_TEMPLATE.'no_record_yet.php');
}
?>