
  	
<nav class="navbar navbar-default navbar-static-top">
        <div class="container-fluid" >
            <div class="navbar-header">

                <!-- Collapsed Hamburger -->
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
                    <span class="sr-only">Toggle Navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>

                <!-- Branding Image -->
                <a class="navbar-brand" href="<?php echo base_url(); ?>">
                 HOME
                </a>
            </div>

		
            <div class="collapse navbar-collapse" id="app-navbar-collapse"  >
                <!-- Left Side Of Navbar -->
               

				  <ul class="nav navbar-nav">
				  

				
				
				
				
				
				
				
				
				
					<ul class="nav navbar-nav">
                 	<li  ><a href="<?php echo base_url(); ?>viewproductlist">All products</a></li>
                </ul>
				
				
				
				       <ul class="nav navbar-nav">
				
				  <?php   
				   
					
					 
					 
					$mainmenu= $this->usermodel->populatealldata('maincategory','name','DESC');
$count=0;
 	if(is_array($mainmenu)){

   foreach($mainmenu as $menu) { 
					
   $count++;
   //$menuname = $this->usermodel->populateallarray('mainmenu','sort',  $count);
    $menuid= $menu->id;


					?>
				 <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $menu->name; ?><span class="caret"></span></a>
          <ul class="dropdown-menu">
                          <?php   
					 					$allmymodules= $this->usermodel->populatealldatawhere('productcategory','name','DESC','maincategory',$menuid);

 	if(is_array($allmymodules)){

   foreach($allmymodules as $modulerow) { 
    $mymoduleid=$modulerow->id;
  

  ?>
    


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


		 </ul>
        </li>
		<?php
		
   }}
		?>
		
		
		
			
			
			<!--
      		    <li> 
				<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" style="padding:7px; margin-top:10px;">
                                        SHOP BY  CATEGORY <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 Brand <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 Breference <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(); ?>viewproductsbypreference?refnumber=<?php echo $brandrow->id;  ?>"><?=  $brandrow->name; ?></a></li>
			    <li class="divider"></li>


	<?php

}} else {
    //echo 'No main category available.';
}
	
?>	  
				
                                      
						
			
	
		
		
		
                                    </ul>
										
										
										    
							</li>			
                     </ul>
					
				
				
				
				
				
		
				
					<ul class="nav navbar-nav">
                 	<li><a href="<?php echo base_url(); ?>terms">Payments </a></li>
                </ul>
				
					<ul class="nav navbar-nav">
                 	<li><a href="<?php echo base_url(); ?>delivery">Shipping </a></li>
                </ul>
				
				
				
				<!--
					<ul class="nav navbar-nav">
                 	<li><a href="<?php echo base_url(); ?>career">Career </a></li>
                </ul>
			
					<ul class="nav navbar-nav">
                 	<li><a href="<?php echo base_url(); ?>whyus">Why Us </a></li>
                </ul>
				
					
					<ul class="nav navbar-nav">
                 	<li><a href="<?php echo base_url(); ?>login">Login /Register</a></li>
                </ul>
				-->
                <!-- Right Side Of Navbar -->
                <ul class="nav navbar-nav navbar-right">
               	<?php
if(!empty($_SESSION["shopping_cart"])) {
$cart_count = count(array_keys($_SESSION["shopping_cart"]));
?>
<div class="cart_div">


<a href="<?php echo base_url(); ?>cart"><img src="<?php echo base_url(); ?>images/img/cart-icon.png" /> Cart<span><?php echo $cart_count; ?></span></a>
</div>
<?php
}
?>
                   
                        <li><a href="addpassin.php">
						<div id="share-buttons">
<div id="media" class="pull-right">
     <style type="text/css">
 
#share-buttons img {
width: 35px;
padding: 5px;
border: 0;
box-shadow: 0;
display: inline;
}
 
</style>
<div id="share-buttons">
 
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>



  <div class="fb-like" data-href="https://www.facebook.com/Robiearch?fref=ts" data-layout="button_count"></div>
   <!-- Your share button code -->
  <div class="fb-share-button" 
    data-href="http://www.robisearch.com/" 
    data-layout="button_count">
  </div>

</div>
    
   
	
  </div>
						
						</a></li>
                       

					   
              

			  

				 
			 </ul>
            </div>
        </div>
    </nav>