<? 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['TXTDOMAIN']; ?></th>
			<th class="txt_nowrap"><? echo $vis_language['TXTFRESHBOOKS'].' '.$vis_language['TXTDOMAIN']; ?></th>				
			<th class="txt_nowrap"><? echo $vis_language['TXTUSRKEY']; ?></th>
			<th class="txt_nowrap"><? echo $vis_language['TXTSTATUS']; ?></th>									
			<th></th>
		</tr>
	</thead>
	<tbody>			  
		
	 <? for($i=0;$i<$integration_info['view_count'];$i++) {
		if($integration_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 m-r-sm i-checks"><input type="checkbox"  name="vis_global_mass_chk_'.$i.'" id="vis_global_mass_chk_'.$i.'" value="'.$integration_details[$i]['integration_id'].'" /><i></i></label></td>';
        echo '<td><a href="#/setting/integration_update/'.str_replace('/', ' ', $integration_details[$i]['domain_name']).'/'.$integration_details[$i]['integration_id'].'">'.$integration_details[$i]['domain_name'].'</a></td>';
        echo '<td><a href="#/setting/integration_update/'.str_replace('/', ' ', $integration_details[$i]['domain_name']).'/'.$integration_details[$i]['integration_id'].'">'.$integration_details[$i]['admin_user'].'</a></td>';
        echo '<td><a href="#/setting/integration_update/'.str_replace('/', ' ', $integration_details[$i]['domain_name']).'/'.$integration_details[$i]['integration_id'].'">'.$integration_details[$i]['api_key'].'</a></td>';
		echo '<td><span class="label '.$lbl.'">'.$status.'</span></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_freshbook_delete&vis_integration_id=<? echo $integration_details[$i]['integration_id']; ?>&vis_static_area=vis_freshbook_delete_form" ><i class="vh vh-delete-round"></a></td>
        <? echo '</tr>';
    }?>	  
    </tbody>
</table>
