<div  id="searched_products">





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

<table width="100%" border="1" cellspacing="0" cellpadding="10">

<?php if(!empty($product)){ foreach($product as $row_off):	?>
		
        
  <tr>
  
  <td style="text-align:center;" valign="middle">
    
     <?php if($row_off['img']!=''): ?>
        <img src="<?php echo base_url('assets/images/'.$row_off['img']) ; ?>"   class="max-width" width="50" height="50" />
        <?php else: ?>
        <img src="<?php echo base_url('assets/web_images/no_image.jpg') ; ?>"  class="max-width" width="50" height="50" />
        <?php endif; ?>
    </td>
    <td><p><b><a href="<?php echo site_url( 'Product/view/'.$row_off['aid'].'/'.$row_off['category_id'].'/'.$row_off['unit_id'].'/'.url_title($row_off['title'], '-', TRUE) ) ; ?>" >
 <?=$row_off['title']?></a></b></p></td>
    <td><p >



<?php if($row_off['uprice']!='') { ?> <span class="meroon2" >MRP  <i class="fa fa-inr" aria-hidden="true"></i><span class="text_over_line"> <?=$row_off['uprice']?> </span> </span><?php } ?>
<br />
<span class="meroon" >Selling Price  <span class="selling_price"> <i class="fa fa-inr" aria-hidden="true"></i> <?=$row_off['price']?> </span></span>
<br /><span class="for_text"> For <?php $uid=$row_off['unit_id']; 
$sql ="SELECT * FROM shop_unit where id=$uid";
$query = $this->db->query($sql);
if ($query->num_rows() > 0) {
  foreach ($query->result() as $row) {?>
<?php echo $row->title;?>
     
     
<?php }
}

	 
 ?>
</span>


</p></td>
    
    
    <td>
    test
    </td>
    
    
    <td style="text-align:center;">
  
      <p> 
<?php $currentURL = current_url(); 
$url=urlencode(base64_encode($currentURL));
?>
<a href="<?php echo site_url('Cart/insert/'.$row_off['aid'].'/1/'.$row_off['price'].'/'.$row_off['unit_id'].'/'.$url.'/'.url_title($row_off->title,'-',true)); ?>" class="read_more5" > 
Add to Cart</a>

<!--<a href="<?php echo site_url( 'Product/view/'.$row_off['aid'].'/'.$row_off['category_id'].'/'.$row_off['unit_id'].'/'.url_title($row_off['title'], '-', TRUE) ) ; ?>" class="read_more5" >Read More</a>-->
</p>
    
    
    
    </td>
  </tr>



<?php endforeach; }  ?>   


</table>




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



<?php
 // $this->load->view('website/side');
//echo json_encode();
?>






