<?php

echo heading($heading,3,'align="center"') ; 


/**
*
*	here $result_array is an array, not an array of objects
*	because we used $query->result_array() instead of $query->result() 
*
*/

if( count($result_array)>0 ): 
//if($result):

//if($shipdetails): 
?>

<table width="800" align="center" cellpadding="6" cellspacing="2">

<tr class="tdcolor">
<td width="2%" align="center">No.</td>
<td width="38%" align="center">Name</td>
<td width="15%" align="center">Email</td>
<td width="15%" align="center">Address</td>
<td width="10%" align="center">Location</td>
<td width="10%" align="center">Mobile No</td>
<td width="10%" align="center">Delete</td>
</tr>

<?php 

$i=1;

foreach($result_array as $row):
//foreach($locationname as $row1):
?>

<tr class="tdcolor2">
<td align="center"><?=$i?></td>
<td align="center"><?=$row['first_name']?></td>
<td align="center"><?=$row['email']?></td>
<td align="center"><?=$row['address']?></td>
<td align="center">
<?php foreach($loc_det as $row1): ?>
<?php if($row['location']==$row1['lid']): ?><?=$row1['location']?>
<?php endif; ?>
<?php endforeach; ?>

</td>
<td align="center"><?=$row['mobile']?></td>
<td align="center">
<a href="<?php echo site_url('priority_customers/delete/'.$row['id']) ; ?>" onClick="return confirm('Delete content ?')">
<img src="<?php echo base_url('assets/web_images/delete.gif'); ?>" width="20" height="20" />
</a> 
</td>

</tr>
<?php //endforeach; ?>
<?php $i++; endforeach; ?>


</table>
<?php endif; ?>
<?php //endif; ?>