<?php   session_start(); include 'xyz.php';


?>

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
	
@media screen and (max-width: 485px) and (min-width: 300px){
	.item{height:250px;}
#largeScreenOnly,#largeScreens{ display:none; }
.col3{
	width:200px;float:left;
}
}
@media screen and (max-width: 1600px) and (min-width: 486px){.item{height:350px;}
.hidBig{ display:none; }
#SmallScreenOnly{ display:none; }
}
@media screen and (max-width: 2600px) and (min-width: 1601px){
	.item{height:430px;}
	#SmallScreenOnly{ display:none; }

}
</style>
		<?php  include 'inc/outl_toplinks.php'; ?>
		<link rel="stylesheet" type="text/css" href="css/outl_ulib.css">
</head>
	<body><?php include 'inc/outl_header.php';  include 'inc/outl_nav.php'; include 'inc/outl_owlslider.php'; ?>
	
<?php  include 'inc/outl_prodcatlog.php';   ?>


		


<!-- SECTION -->
		<div class="section">
			<!-- container -->
			<div class="container">
				<!-- row -->
				<div class="row">

					<!-- section title -->
					<div class="col-md-12">
						<div class="section-title"><h4 class="title">What do you want to buy?</h4><div class="section-nav">
								<ul class="section-tab-nav tab-nav">
<?php  $menus=1; for($d=0;$d<count($brand);$d++){
	if($cat_status[$d]==1){ ?>
<li class="<?php if($menus==1){ echo 'active';}  ?>"><a data-toggle="tab" href="#menus<?php echo $menus;  ?>"><?php echo $brand[$d]; ?></a></li>
<?php $menus++;} } ?></ul></div></div></div>
					<!-- /section title -->

<div class="col-md-12"><div class="row">

	<div class="tab-content">

<?php  $menusTab=1; for($d=0;$d<count($brand);$d++){ if($cat_status[$d]==1){ ?>
<div id="menus<?php echo $menusTab;  ?>" class="tab-pane fade  <?php if($menusTab==1){ echo 'in active';}?>">
<?php foreach(QueryDB("SELECT * FROM products where brand='$d' and tm_status=1 ")as $listProd){?>
<div class="col-md-3"><div class="product"><div class="product-img"><img src="<?php echo explode(',', str_replace('../','',$listProd['item_img']))[0];  ?>" class="img img-responsive img-thumbnail" style=""><div class="product-label"><?php  if($listProd['item_offer']!=0){  echo '<span class="sale">-'.$listProd['item_offer'].'%</span>';  }  ?><span class="new">Original</span></div>
</div><div class="product-body"><p class="product-category"><?php echo $brand[$d]; ?></p>
<h3 class="product-name"><a href="#"><?php  echo $company[$listProd['company']].','.$listProd['item_name'].' '.$brand[$listProd['brand']] ?></a></h3>
<h4 class="product-price">
&#8358;<?php  echo number_format(calcDiscount($listProd['item_cost'],$listProd['item_offer']));   ?>
<?php  if($listProd['item_offer']!=''){?>
	<del class="product-old-price">&#8358;<?php  echo number_format($listProd['item_cost']);  ?></del>
	<?php  } ?>

<span class="small"><?php $inStock =  totalStock($listProd['id'],'','')-getQuantity($listProd['id'],'','');if($inStock>0){  echo $inStock.' In Stock'; }else{ echo 'Out Stock'; }?></span>
</h4>
<div class="product-rating"><i class="fa fa-star"></i><i class="fa fa-star"></i>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></div>
												<div class="product-btns">
<a href="<?php echo getItemLink($listProd['id'],$listProd['item_pid']);  ?>" class="quick-view btn btn-success btn-xs"><i class="fa fa-eye"></i> View</a>
												</div>
											</div>
<!-- <div class="add-to-cart"><button class="add-to-cart-btn"><i class="fa fa-shopping-cart"></i> add to cart</button></div> -->

</div></div> <?php } ?>




  </div><?php $menusTab++;} } ?></div></div></div></div></div></div>



		<?php  //include 'inc/outl_hotdeals.php';  ?>

		

<div class="section"><div class="container"><div class="row">
<div class="col-md-12"><div class="section-title"><h4 class="title">Top Manufacturers</h4>
</div></div>


<?php for($y=0;$y<count($company);$y++){
	if($comp_status[$y]!=0){
	?>

<div class="col-md-3 col3" style="max-height:140px;margin-top:10px;box-shadow: 5px 5px 10px gray;">
<a href="products-supplier/<?php echo $company[$y];  ?>/"><img src="<?php echo str_replace('../','',$compLogo[$y]);  ?>" style="width:100%;"></a>
</div>

<?php } }?></div></div></div>









<!-- SECTION -->
		<div class="section">
			<!-- container -->
			<div class="container">
				<!-- row -->
				<div class="row">

					<!-- section title -->
<div class="col-md-12"><div class="section-title"><h4 class="title">Top Selling</h4></div></div>
					<!-- /section title -->



					<!-- Products tab & slick -->
					<div class="col-md-12">
						<div class="row">
							
<?php    foreach(QueryDB("SELECT * FROM products where tm_status=1 ORDER BY RAND() ")as $listProd){?>
<div class="col-md-3"><div class="product"><div class="product-img"><img src="<?php echo explode(',', str_replace('../','',$listProd['item_img']))[0];  ?>" alt=""><div class="product-label"><?php  if($listProd['item_offer']!=0){  echo '<span class="sale">-'.$listProd['item_offer'].'%</span>';  }  ?><span class="new">Original</span></div>
</div><div class="product-body"><p class="product-category"><?php echo $brand[$listProd['brand']]; ?></p>
<h3 class="product-name"><a href="#"><?php  echo $company[$listProd['company']].','.$listProd['item_name'].' '.$brand[$listProd['brand']] ?></a></h3>
<p><?php echo '<b>Size:</b> '.$sized_by[$listProd['size']].' <b>Colour:</b> '.$colored_by[$listProd['color']];  ?></p>
<h4 class="product-price">
&#8358;<?php  echo number_format(calcDiscount($listProd['item_cost'],$listProd['item_offer']));   ?>
<?php  if($listProd['item_offer']!=''){?>
	<del class="product-old-price">&#8358;<?php  echo number_format($listProd['item_cost']);  ?></del><?php  } ?></h4>
	<span class="small"><?php $inStock =  totalStock($listProd['id'],'','')-getQuantity($listProd['id'],'','');if($inStock>0){  echo $inStock.' In Stock'; }else{ echo 'Out Stock'; }?></span>
<div class="product-rating"><i class="fa fa-star"></i><i class="fa fa-star"></i>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></div>
												<div class="product-btns">
<a href="<?php echo getItemLink($listProd['id'],$listProd['item_pid']);  ?>" class="quick-view btn btn-success btn-xs"><i class="fa fa-eye"></i> View</a>
												</div>
											</div>
<!-- <div class="add-to-cart"><button class="add-to-cart-btn"><i class="fa fa-shopping-cart"></i> add to cart</button> -->
											</div>
										</div><?php } ?>
										<!-- /product -->

									
								<!-- /tab -->
						
						</div>
					</div>
					<!-- Products tab & slick -->
				</div>
				<!-- /row -->
			</div>
			<!-- /container -->
		</div>
		<!-- /SECTION -->










		<?php //include 'inc/outl_topselling.php'; //include 'inc/outl_topselling2.php';
//include 'inc/outl_newsletter.php';

		 ?>






	






		



		<?php include 'inc/outl_newsbottom.php'; include 'inc/outl_footer.php';  include 'js/outl_footlinks.php'; ?>

	</body>
</html>
