<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('brand_admin/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('City_admin/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>Title</th>
             <th>District</th>
            <th class="lasto">Order</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: "Title"; }
.listing  td:nth-of-type(3):before { content: "Order"; }
.listing  td:nth-of-type(4):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 > <b><?=$row['title']?></b></td>
<td >
<?php
$sql2 ="SELECT * FROM districts where id=".$row['dist_id']."";
$query2 = $this->db->query($sql2);
if ($query2->num_rows() > 0) {
foreach($query2->result() as $row2) {
echo $proname=$row2->name;
}
}
?> </td>

<td class="lasto3">



<?=$row['order']?></td>

   

<td class="lasto3">
<a href="<?php echo site_url('City_admin/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('City_admin/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>