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

		<div class="content">
		
		
		
		
		
		
		
		
		
		
		
		
		
		
			<div class="wrap">
			 <div id="main" role="main" STYLE="margin-bottom:20px">
				
						<?php
		
		$smsconfig = $this->usermodel->populateallarray('smsconfig','id',1);
		 $mylandingpage=$smsconfig[0]['landingpage'];

		if(isset($mylandingpage)){
		  
	   if($mylandingpage=="category11"){
		   
		   
		   
		   
?>
		
		
		
				
		    <div class="collapse navbar-collapse" id="app-navbar-collapse"  >
                <!-- Left Side Of Navbar -->
               

				  <ul class="nav navbar-nav">
				  

      		    <li> 
				<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" style="padding:7px; margin-top:10px;">
                                        SHOP BY  CATEGORYS <span class="caret"></span>
                                    </button>
							
                                    <ul class="dropdown-menu dropdown-info pull-right" role="menu"  >
                                  
								  
								  
							
								  
								  	<?php
				
	      $maincategory=$this->usermodel->populateall('productcategory','companyid',1);
								  
						
					 


if(is_array($maincategory)) {

   foreach($maincategory as $maincategoryrow){

   //echo $courserow->coursename;
    ?>
	 <li> <a id="non-printable"  class="btn-default" href="<?php echo base_url(); ?>viewproductsbycategory?refnumber=<?php echo $maincategoryrow->id;  ?>"><?=  $maincategoryrow->name; ?></a></li>
			    <li class="divider"></li>


	<?php

}} else {
    //echo 'No main category available.';
}
	
?>	  
				
                                      
						
			
	
		
		
		
                                    </ul>
										
										
										    
							</li>			
                     </ul>
		        
				
				
				
				
				
					  <ul class="nav navbar-nav">
				  

      		    <li> 
				<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" style="padding:7px; margin-top:10px;">
                                        BY Brands <span class="caret"></span>
                                    </button>
							
                                    <ul class="dropdown-menu dropdown-info pull-right" role="menu"  >
                                  
								  
								  
							
								  
								  	<?php
				
								  
								  
								  $brand = $this->usermodel->populateall('people','category',"supplier");
					 


if(is_array($brand)) {

   foreach($brand as $brandrow){

   //echo $courserow->coursename;
    ?>
	 <li> <a id="non-printable"  class="btn-default" href="<?php echo base_url(); ?>viewproductsbybrand?refnumber=<?php echo $brandrow->id;  ?>"><?=  $brandrow->company; ?></a></li>
			    <li class="divider"></li>


	<?php

}} else {
    //echo 'No main category available.';
}
	
?>	  
				
                                      
						
			
	
		
		
		
                                    </ul>
										
										
										    
							</li>			
                     </ul>
				
				
				
				
				
					  <ul class="nav navbar-nav">
				  

      		    <li> 
				<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" style="padding:7px; margin-top:10px;">
                                        BY Breferences <span class="caret"></span>
                                    </button>
							
                                    <ul class="dropdown-menu dropdown-info pull-right" role="menu"  >
                                  
								  
								  
							
								  
								  	<?php
				
								  
								  
								  $brand = $this->usermodel->populateall('customedproductcategory','companyid',"1");
					 


if(is_array($brand)) {

   foreach($brand as $brandrow){

   //echo $courserow->coursename;
    ?>


			 <li> <a id="non-printable"  class="btn-default" href="<?php echo base_url(); ?>viewproductsbypreferenceandcategory?refnumber=<?php echo $brandrow->id;  ?>&category=<?php if(isset($refnumber)){ echo $refnumber;  }  ?>"><?=  $brandrow->name; ?></a></li>
	   

			   <li class="divider"></li>


	<?php



	




}} else {
    //echo 'No main category available.';
}
	
?>	  
				
                                      
						
			
	
		
		
		
                                    </ul>
										
										
										    
							</li>			
                     </ul>
				
				
				
				
				
				
				
				
				
				
		               
                      
					
        </div>
		
		
		<?php
	   }
		}
		?>
		
		
		
		
			      <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;

$products = $this->usermodel->populateallarray('products','code',$c->code);
		 	 


?>	
<!--******************************************************DB CONTENT************************************************-->
			        <li>
					<div class="post-info">
						<?php 
						 $img_id=$products[0]['imgid'];	
						$usr_result= $this->usermodel->populatepostimages($img_id);
						$img1='photoimghod/';
						if($usr_result==FALSE){
						?>
						<a href="<?php echo base_url();?>viewitem?randomitemidentifier=<?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();?>viewitem?randomitemidentifier=<?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();?>viewitem?randomitemidentifier=<?php   {echo  $id;}  ?>"><?php echo $c->name; ?></a></h3>
								<div class="post-info-rate-share">
								<span><a href="<?php echo base_url();?>viewitem?randomitemidentifier=<?php   {echo  $id;}  ?>" style="color:red"><?php echo $currencysymbol." ". $c->sellingprice; ?></a></span>
				        				
				        		<span class="pull-right" ><div class="btn btn-info" >
								<a href="<?php echo base_url();?>viewitem?randomitemidentifier=<?php   {echo  $id;}  ?>" style="color:white">Order Now</a>
								
								</div>	</span>
							</div>
			        		</div>
			        	
			        	</div>
			        </li>
			        <?php endforeach; }?>
			      </ul>
			    </div>
				
			</div>

					
		</div>
							
 
		
	
					 <div class="row"">

		 <div class="col-md-12 text-center" style="background:white">    <?php echo $links; ?>
					   		<span style="color:red; font-size:20px"><?php  echo $total_rows. "   Product in the system. " ;?>    </span>

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

		
		?>