<?php

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


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


if($ship_det):

?>

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

<tr class="tdcolor">
<td width="2%" align="center">No.</td>
<td width="48%" align="center">Area</td>
<td width="30%" align="center">Shipping Charge (Rs.)</td>
<td width="10%" align="center">Modify</td>
<td width="10%" align="center">Delete</td>
</tr>

<?php $i=1; foreach($ship_det as $row): ?>
<tr class="tdcolor2">
<td align="center"><?=$i?></td>
<td align="center"><?=$row['area']?></td>
<td align="center"><?=$row['cost']?></td>
<td align="center">
<a href="<?php echo site_url('shipping_admin/edit/'.$row['id']) ; ?>">
<img src="<?php echo base_url('assets/web_images/edit.png'); ?>" width="20" height="20" />
</a>
</td>
<td align="center">
<a href="<?php echo site_url('shipping_admin/delete/'.$row['id'].'/1/') ; ?>" onClick="return confirm('Delete content ?')">
<img src="<?php echo base_url('assets/web_images/delete.gif'); ?>" width="20" height="20" />
</a> 
</td>
</tr>
<?php $i++; endforeach; ?>


</table>

<?php endif; ?>


