<div class="col-md-12  full min_ht">
<div class="col-md-12  text-center">

<p class="inter">
<?php echo anchor(base_url('Admin_home/'),'Home') ; ?> >> <a href="<?php echo site_url('Banner/view');?>"><?=$heading?></a>
</p><br>

<h1 style="text-align:left;"><i class="fa fa-bars" aria-hidden="true"></i> <?=$heading?>
<ul  class="inner_ul">
<li><a href="<?php echo site_url('Banner/create') ; ?>"><img src="<?php echo site_url('assets/images/icon-32-new.png') ; ?>" ><br> Add New</a></li>
</ul>

</h1>
<div class="clr2"></div>


<table class="listing" >
		<thead>
		<tr>
			<th class="lasto">No.</th>
            <th class="lasto">Link</th>
			<th class="lasto">Image</th>
			<th class="lasto">Status</th>
            <th class="lasto">Modify</th>
			<th class="lasto">Delete</th>
		</tr>
		</thead>
        
<style>
@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width: 1024px)  
{
.listing td:nth-of-type(1):before { content: "No."; }
.listing td:nth-of-type(2):before { content: "Link"; }
.listing  td:nth-of-type(3):before { content: "Image"; }
.listing  td:nth-of-type(4):before { content: "Status"; }
.listing  td:nth-of-type(5):before { content: "Modify"; }
.listing  td:nth-of-type(5):before { content: "Delete"; }
}
</style>
<tbody>


<?php $i=1;
foreach($result_array as $row):?>

<tr>
<td class="lasto3"><?=$i?></td>
<td class="lasto3"><?=$row['link']?></td>
<td class="lasto3">
<?php if($row['image']!=''):  ?>
<img src="<?php echo base_url('assets/images/'.$row['image']) ; ?>" width="60" height="60"/> 
<?php endif; ?>
</td>

<td class="lasto3">

<?php if($row['status']=="2"): ?>

<img src="<?php echo base_url('assets/web_images/incorrect.png'); ?>" width="20" height="20" />
<br />
<a href="<?php echo site_url('Basic_functions/change_status/shop_banner/status/1/id/'.$row['id'].'/Banner/view' ); ?>">Activate?</a>

<?php elseif($row['status']=="1") : ?>

<img src="<?php echo base_url('assets/web_images/ok.png'); ?>" width="20" height="20" />
<br />
<a href="<?php echo site_url('Basic_functions/change_status/shop_banner/status/2/id/'.$row['id'].'/Banner/view' ); ?>">Suspend?</a>

<?php endif; ?>

</td>    

<td class="lasto3">
<a href="<?php echo site_url('Banner/edit/'.$row['id']) ; ?>">
<img src="<?php echo base_url('assets/web_images/edit.png'); ?>" width="20" height="20" />
</a>
</td>

<td class="lasto3">
<a href="<?php echo site_url('Banner/delete/'.$row['id'].'/1/'.$uniq_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 $i++; endforeach; ?>
</tbody>
</table>
</div>
</div>