<? 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 class="txt_nowrap"><? echo $vis_language['TXTTITLE']; ?></th>
			<th><? echo $vis_language['TXTDEPARTMENT']; ?></th>
			<th class="txt_nowrap"><? echo $vis_language['MSGENABLETICKCONV']; ?></th>									
			<th></th>
		</tr>
	</thead>
	<tbody>			  
		<? for($i=0;$i<count($twitter_details);$i++) {
         $status=($twitter_details[$i]['db_prefix']==1)?$vis_language['TXTYES']:$vis_language['TXTNO'];
		echo '<tr><td width="30"><label class="checkbox m-n m-r-sm i-checks"><input type="checkbox"  name="vis_global_mass_chk_'.$i.'" id="vis_global_mass_chk_'.$i.'" value="'.$twitter_details[$i]['integration_id'].'" /><i></i></label></td>';
        echo '<td><a href="#/setting/twitter_details/'.rawurlencode(str_replace('/', ' ', $twitter_details[$i]['host_name'])).'/'.$twitter_details[$i]['integration_id'].'">'.$twitter_details[$i]['host_name'].'</a></td>';
        echo '<td><a href="#/setting/twitter_details/'.rawurlencode(str_replace('/', ' ', $twitter_details[$i]['host_name'])).'/'.$twitter_details[$i]['integration_id'].'">'.$twitter_details[$i]['department_name'].'</a></td>';
		echo '<td><a href="#/setting/twitter_details/'.rawurlencode(str_replace('/', ' ', $twitter_details[$i]['host_name'])).'/'.$twitter_details[$i]['integration_id'].'">'.$status.'</a></td>';         ?>        
        <td align="center"> <a href="javascript:void(0);" title="<? echo$vis_language['TXTDELETE']; ?>" class="text-muted" data-toggle="ajaxModal" data-modal-arguments="vis_module=setting&vis_operation=get_twitter_delete&vis_integration_id=<? echo $twitter_details[$i]['integration_id']; ?>&vis_static_area=vis_twitter_delete_form" ><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>
