<!---start-content---->
<style>

#pictures{
	width:500px%;
	height:350PX;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center; 
}

</style>
	
		<div class="content">
			<div class="wrap">
			
			 <div class="row" style="margin:1px; padding:10px; background:white; height:80%;">
         
		 <div class="col-md-4" style="background:white;  height:350PX;">
		
		 
<img style=" height:80%; "  src="<?php echo base_url(); ?>photoimghod/online.png"  >
 <center>

<a  id="more" href="<?php echo base_url();?>" class="btn btn-primary" >
Start Shoping Now </a>

 </center>
 </div>


<div class="col-md-8">
				
  <div id="pictures" >
 
	
</div>


		
</div>	 

	
	
	</div>
			 <div id="main" role="main" STYLE="margin-bottom:20px">
				

<H1 STYLE="color:white; background:black"> <B><CENTER> SHOP BY ITEM CATEGORY </CENTER></B></H1>
			      <ul id="tiles">
			        <!-- These are our grid blocks -->
<!--******************************************************DB CONTENT************************************************-->
<?php 
if(!is_array($viewproducts)) {
echo "<tr>";
echo "<td colspan='7'>";
echo '<div class="alert alert-danger text-center">There is no  result found . Please feel  to post any Aspirants.</div>';
echo "<td>";
echo "</tr>";
}else{
?>
<?php 
foreach ($viewproducts as $c): 
$id=$c->id;

		 	 


?>	
<!--******************************************************DB CONTENT************************************************-->
			        <li>
					<div class="post-info">
						<?php 
						 $img_id=$c->imgid;	
						$usr_result= $this->usermodel->populatepostimages($img_id);
						$img1='photoimghod/';
						if($usr_result==FALSE){
						?>
						

						<a href="<?php echo base_url();?>viewproductsbycategory?refnumber=<?php   {echo  $id;}  ?>" ><img  style="height:300px" src="<?php echo base_url(); ?>images/img/default.jpg"></a>
						<?php
						}else{
						$img=$usr_result[0]->name;
						$url = base_url().$img1.$img;
						 ?>
						<a href="<?php echo base_url();?>viewproductsbycategory?refnumber=<?php   {echo  $id;}  ?>" ><img src="<?php echo $url ?>" style="height:300px" ></a>         
						<?PHP
						}
						?>

			        	<div class="post-info">
			        		<div class="post-basic-info">
							
				        		<h3><a href="<?php echo base_url();?>viewproductsbycategory?refnumber=<?php   {echo  $id;}  ?>"><?php echo $c->name; ?></a></h3>
								<div class="post-info-rate-share">
				        				
				        		<span class="pull-right" ><div class="btn btn-info" >
								<a href="<?php echo base_url();?>viewproductsbycategory?refnumber=<?php   {echo  $id;}  ?>" style="color:white">Shop By This Category >> </a>
								
								</div>	</span>
							</div>
			        		</div>
			        	
			        	</div>
			        </li>
			        <?php endforeach; }?>
			      </ul>
			    </div>
			</div>
			
		</div>
		
		
		<?PHP
								$this->load->view("template/ecommercebottomdata");

		
		?>
		
			
		<?PHP
								$this->load->view("template/ecommerceslides");

		
		?>
		









