			<?php
			
$uid_client = $_REQUEST['uid_client'];

include("../php/configi.php");
			?>
<label class="label" for="mco">Multiple Contacts:</label>
	<table class="table table-bordered table-striped">
				<?php
include("../php/configi.php");
$queryac="SELECT * FROM " . $_COOKIE['phxcrmclient_id'] . "_client_contacts WHERE uid_client = " . $uid_client . ";";
//echo $queryac;
$resultac=mysqli_query($conn, $queryac);

//mysql_close();                

$iac = 0;

 while($rowac=mysqli_fetch_array($resultac)) { 
 
 	if ($iac == 0){
		
		//show header
	?>	
		
		

<thead>
			<th>
			</th>
<th>
<label>Name:</label>
</th>
<th>
<label>Mobile:</label>
</th>

<th>
<label>Email Acct:</label>
</th>
<th>
<label>Job Title:</label>
</th>



</thead>


<?php
		
	}
 
	$con_uid				 = $rowac['con_uid']; 
	$contact_name			 = $rowac['contact_name']; 
	$contact_job_title		 = $rowac['contact_job_title']; 
	$contact_mobile			 = $rowac['contact_mobile']; 
	$contact_email_acct		 = $rowac['contact_email_acct']; 
	$contact_email			 = $rowac['contact_email']; 
	$contact_pl1			 = $rowac['contact_pl1']; 	
	$contact_pl2			 = $rowac['contact_pl2']; 	
	$contact_pl3			 = $rowac['contact_pl3']; 	
	$contact_pl4			 = $rowac['contact_pl4']; 	
	$contact_pl5			 = $rowac['contact_pl5']; 	
	
	?>
	
	<tr>
				   <td style="width: 12px; padding-left: 2px; padding-right: 2px;">
				 <button type="button" onclick="javascript: del_custcontact(<?php echo $con_uid?>, <?php echo $uid_client?>)"  class="btn btn-link" >Del </button>
			</td>
		<td> <input  class='form-control' type='text'  value='<? echo $contact_name; ?>' onchange="javascript: update_field_contact_sec('contact_name', 'inputsec', this.value, <?php echo $con_uid;?>)" /></td>
			<td> <input  class='form-control' type='text'  value='<? echo $contact_mobile; ?>' onchange="javascript: update_field_contact_sec('contact_mobile', 'inputsec', this.value, <?php echo $con_uid;?>)"  /></td>
				<td> <input  class='form-control' type='text'  value='<? echo $contact_email_acct; ?>' onchange="javascript: update_field_contact_sec('contact_email_acct', 'inputsec', this.value, <?php echo $con_uid;?>)"  /></td>
		<td> <input  class='form-control' type='text'  value='<? echo $contact_job_title; ?>' onchange="javascript: update_field_contact_sec('contact_job_title', 'inputsec', this.value, <?php echo $con_uid;?>)"  /></td>


		


	</tr>
	
	<?php
	
	$iac = $iac + 1;
}

	if ($iac == 0){

	echo "No alternate contacts for this Client";

	}
	

?>


</td>
</tr>

</table>

