<?php include('public_header.php'); ?>

<html>
<head>
<title>CodeIgniter Shopping Cart</title>
<link href="<?php echo base_url(); ?>assets/css/core.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/core.js"></script>

    

</head>
<body>

	<div class="bio_main">
    	<div class="bio_inner">
        	<div class="container">
        		<div class="col-lg-12 padding_part ">
                	<div class="bio_content">  
                		<h1> SHOP </h1>
                		<form action="<?php echo site_url('cart/search_keyword');?>" method = "post" class="searchform">
							<input type="text" class="search" name = "keyword" />
							<input type="submit" class="searchbtn" value = "Search" />
						</form>
                <?php if (! $results) {
                echo $h1title ; 
                } else {?>
				
				<ul class="products-search">
<?php foreach($results as $row){ ?>


    <li>
   <a href="<?php echo base_url(); ?>cart/storedetails/<?php echo $row->id?>"> <h4><?php echo $row->name?></h4></a>
    <img src="<?php echo base_url(); ?>assets/img/products/<?php echo $row->image?>" alt="" 
        	class="product-img-search" />
    <h6>$<?php echo $row->price?></h6>
<a href="<?php echo base_url(); ?>cart/storedetails/<?php echo $row->id?>"> <h4>Read More</h4></a>
     </li>      
    
<?php } }?>
</ul>
				  </div>
				 </div>
				</div>
		</div>
	</div>

<?php include('footer_inner.php'); ?>