<? 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['TXTBREAKLINES']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTSTATUS']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTDISPLAYORDER']; ?></th>
         <th></th>
      </tr>
   </thead>
   <tbody>
      <?
          if($breaklines!=-1) for($i=0;$i<$breaklines_info['breaklines_count'];$i++) {
			 if($breaklines[$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="'.$breaklines[$i]['breakline_id'].'" /><i></i></label></td>';
             echo '<td>'.$breaklines[$i]['expression'].'</td>';
             echo '<td><span class="label '.$lbl.'">'.$status.'</span></td>';
             echo '<td>'.$breaklines[$i]['exec_order'].'</td>';?>
      <td align="center"> <a class="text-muted" href="javascript:void(0);" data-toggle="ajaxModal" data-modal-arguments="vis_module=setting&vis_operation=get_breakline_delete&vis_breakline_id=<? echo $breaklines[$i]['breakline_id']; ?>&vis_static_area=vis_breakline_delete_form" title="<? echo $vis_language['TXTDELETE']; ?>"><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>
