System: Windows NT WINDOWS18 10.0 build 17763 (Windows Server 2016) AMD64 | User: IWPD_3544(appclien)

Path: D:\Inetpub\vhosts\appclients.in\fruits-vegitables.nmvm.org

[Back to List]
<?php
include "includes/main-action.php";
$obj=new admin_main();
$sel_cs=$obj->select_all("menu","order by menu_id");
$sel_banner_top=$obj->select_all("adv_tbl1","order by adv_id desc limit 1");
$sel_banner_right=$obj->select_all("adv_tbl3","order by adv_id desc limit 2");
$sel_slider=$obj->select_all("adv_tbl2","order by adv_id desc");
//select product details
$probysub2subcat=$obj->select_all("product","where subcat_id='$_REQUEST[sub2subcatid]' and status='Active'");
//select sts category
$stscat_query= $obj->select_all("subcategory","where subcat_id='$_REQUEST[sub2subcatid]'");
$stscatName= mysqli_fetch_array($stscat_query);
//select sub category name
$scat_query= $obj->select_all("categories","where cat_id='$stscatName[cat_id]' and menu_id='$stscatName[menu_id]'");
$scatName= mysqli_fetch_array($scat_query);
//select category name
$cat_query= $obj->select_all("menu","where menu_id='$stscatName[menu_id]'");
$catName= mysqli_fetch_array($cat_query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php include('title.php')?>: <?php echo $stscatName['subcat_name']?></title>
<meta charset="utf-8">
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="">
<meta name="robots" content="index, follow" />
<!-- Mobile specific metas
    ============================================ -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Favicon
    ============================================ -->
<link rel="shortcut icon" type="image/png" href="<?php echo $url?>image/icon/favicon.png"/>
<link rel="stylesheet" href="<?php echo $url?>css/bootstrap/css/bootstrap.min.css">
<link href="<?php echo $url?>css/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so_megamenu.css" rel="stylesheet">	
<link href="<?php echo $url?>css/footer/footer2.css" rel="stylesheet">
<link href="<?php echo $url?>css/header/header2.css" rel="stylesheet">
<link id="color_scheme" href="<?php echo $url?>css/home2.css" rel="stylesheet">
<link href="<?php echo $url?>css/responsive.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700' rel='stylesheet' type='text/css'>
<style type="text/css">
         body{font-family:'Poppins', sans-serif}
</style>
<style>
*{margin:0;}
#overlay{
  position:fixed;
  z-index:99999;
  top:0;
  left:0;
  bottom:0;
  right:0;
  background:rgba(0,0,0,0.9);
  transition: 1s 0.4s;
}
</style>
<script>
	/*
;(function(){
  function id(v){return document.getElementById(v); }
  function loadbar() {
    var ovrl = id("overlay"),
        prog = id("progress"),
        stat = id("progstat"),
        img = document.images,
        c = 0;
        tot = img.length;

    function imgLoaded(){
      c += 1;
      var perc = ((100/tot*c) << 0) +"%";
      prog.style.width = perc;
      stat.innerHTML = "Loading "+ perc;
      if(c===tot) return doneLoading();

    }
    function doneLoading(){
      ovrl.style.opacity = 0;
      setTimeout(function(){ 
        ovrl.style.display = "none";
      }, 1200);
    }
    for(var i=0; i<tot; i++) {
      var tImg     = new Image();
      tImg.onload  = imgLoaded;
      tImg.onerror = imgLoaded;
      tImg.src     = img[i].src;
    }    
  }
  document.addEventListener('DOMContentLoaded', loadbar, false);
}());
*/
	</script>	
</head>
<body class="common-home res layout-2">
<!----	
<div id="overlay">
        <center><img src="<?php echo $url?>image/loader.gif" style="margin-top: 40%;width: 100px;height: 100px;"></center>
		<div id="progstat" style="display:none"></div>
        <div id="progress" style="display:none"></div>
</div>---->	
<div id="wrapper" class="wrapper-fluid banners-effect-7">
<!-- Header Container  -->
<?php include "includes/topbar.php";?>
<!-- //Header Top -->
<!-- Header center -->
<?php include "includes/searchbar.php";?>
<!-- //Header center -->
<!-- Header Bottom -->
<?php include "includes/navbar.php";?>
</header>
<!-- //Header Container  -->
<!-- Main Container  -->
<div class="main-container container" style="margin-bottom: 50px;">
<ul class="breadcrumb">
  <li><a href="<?php echo $url?>"><i class="fa fa-home"></i></a></li>
  <li><a href="<?php echo $url?>customresult.php?catid=<?php echo $catName['menu_id']?>"><?php echo $catName['menu']?></a></li>
  <li><a href="<?php echo $url?>customresult2.php?catid=<?php echo $scatName['cat_id']?>"><?php echo $scatName['category_name'];?></a></li>
  <li><?php echo $stscatName['subcat_name']?></li>
</ul>
<div class="row">
  <!--Middle Part Start-->
  <div class="item col-md-1 col-xs-12"></div>
  <div id="content" class="col-md-10 col-sm-10">
    <div class="product-view">
      <div class="left-content-product">
        <div id="product">
          <div class="related titleLine products-list grid module ">
            <h3 class="modtitle">Products </h3>
           <?php if(mysqli_num_rows($probysub2subcat)>0){
			 while($resu5=mysqli_fetch_array($probysub2subcat)){
			 $extPrice=explode(",",$resu5['price']);	 
			?>
            <div class="item col-md-3 col-xs-6" style="margin-bottom:10px">
                <div class="item-inner product-layout transition product-grid">
                  <div class="product-item-container">
                    <div class="left-block left-b">
                      <?php if($resu5['oldprc']!=0){?>
                      <div class="box-label"> <span class="label-product label-sale">
                        <?php  
				        $bachat=$resu5['oldprc']-$extPrice[0];
				        echo round(100*$bachat/$resu5['oldprc'])."%";
					 ?>
                        </span> </div>
                      <?php }?>
                      <div class="product-image-container second_img"> <a href="<?php echo $url?>product.php?pid=<?php echo $resu5['id']?>" target="_self">
                        <?php if($resu5['img'])$dcd_img=json_decode($resu5['img']);?>
                        <img src="<?php echo $url?>image/product/<?php echo $dcd_img[0] ?>" class="img-1 img-responsive" alt="image1"> <img src="<?php echo $url?>image/product/<?php if(empty($dcd_img[1]))echo $dcd_img[0];else echo $dcd_img[1] ?>" class="img-2 img-responsive" alt="image2"> </a> </div>
                    </div>
                    <div class="right-block">
                      <div class="caption hide-cont">
                        <h4>
						  <a href="<?php echo $url?>product.php?pid" title="<?php echo $resu5['name']?>" target="_self">
                          <?php if(strlen($resu5['name'])>25)echo substr($resu5['name'],0,20)." ...";else echo $resu5['name']; ?>
                          </a></h4>
                      </div>
                      <p class="price"> <span class="price-new">Rs.
                        <?php $extPrice=explode(",",$resu5['price']);
						      echo number_format($extPrice[0]); ?>
                      </span>
                        <?php if($resu5['oldprc']!=0){?>
                        <span class="price-old" style="line-height: 0;">Rs. <?php echo number_format($resu5['oldprc'])?></span>
                        <?php }else{ echo '<span class="price-old" style="color:#fff;line-height: 0;">&nbsp;</span>';}?>
                      </p>
                    </div>
                  </div>
                </div>
              </div>
            <!-- end product-->
            <?php }
			}?>
          </div>
        </div>
        <!-- end Related  Products-->
      </div>
    </div>
  </div>
  <div class="item col-md-1 col-xs-12"></div>
</div> 
</div>
<!-- Footer Container -->
<?php include "includes/footer.php" ?>
<script type="text/javascript" src="<?php echo $url?>js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/countdown/jquery.countdown.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/so_megamenu.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/addtocart.js"></script>	
<script type="text/javascript" src="<?php echo $url?>js/themejs/libs.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/application.js"></script>
</body>
</html>