<? global $vis_language;  
if($twilio_number==-1){   
	include(VIS_PATH_TEMPLATE.'no_record_yet.php'); 
	echo '<script> $("#view_action").hide(); $("#vis_activitylog_form .panel-footer").hide(); $("#vis_twilio_number_list").hide(); $(".fullFrame").removeClass("b-t").addClass("m-t-lg m-b-lg"); </script>';
 } else { ?>
	<script> $("#view_action").show(); $("#vis_activitylog_form .panel-footer").show(); $("#vis_twilio_number_list").show(); </script>
	<table class="table table-hover b-t b-light m-b-none" data-ride="datatables">
	   <thead class="table_head">		   
		  <tr>
			 <th class="txt_nowrap"><? echo $vis_language['TXTTITLE']; ?></th>
			 <th class="txt_nowrap"><? echo $vis_language['TXTAPP']; ?></th>
			 <th class="txt_nowrap"><? echo $vis_language['TXTTWILIONUMBER']; ?></th>
			 <th></th>
		  </tr>
	   </thead>		   
	   <tbody>
		  <? 
			  if($twilio_number!=-1) for($i=0;$i<count($twilio_number);$i++) {
				  $href='#/setting/twilio_details/'.$twilio_number[$i]['title'].'/'.$twilio_number[$i]['twilio_id'];?>
				<tr>
					<td><a href='<?=$href?>'><?=$twilio_number[$i]['title']?></a></td>
					<td><a href='<?=$href?>'><?=$twilio_number[$i]['integration_title']?></a></td>
					<td><a href='<?=$href?>'><?=$twilio_number[$i]['twilio_number']?></a></td>
					<td align="center"><a class="text-muted" data-toggle="ajaxModal" data-modal-arguments="vis_module=setting&vis_operation=get_twilio_delete&vis_twilio_id=<? echo $twilio_number[$i]['twilio_id']; ?>" title="<? echo $vis_language['TXTDELETE']; ?>" href="javascript:void(0);" ><i class="vh vh-delete-round"></a></td>
				 </tr>
			<?php } ?>
	   </tbody>
	</table>
	<script type="text/javascript">
		$(".selectpicker").selectpicker();  
	</script>
<? } ?>