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
$probysubcat=$obj->select_all("product","where cat_id='$_REQUEST[subcatid]' and status='Active' order by id");
//shop by subcategory
$shopbystscat=$obj->select_all("subcategory","where cat_id='$_REQUEST[subcatid]' and status='Active' order by subcat_id");
$scat_query= $obj->select_all("categories","where cat_id='$_REQUEST[subcatid]' order by cat_id");
$scatName= mysqli_fetch_array($scat_query);
//select category name
$cat_query= $obj->select_all("menu","where menu_id='$scatName[menu_id]' order by menu_id");
$catName= mysqli_fetch_array($cat_query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php include('title.php')?> :<?php echo $scatName['category_name'];?></title>
<meta charset="utf-8">
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="">
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<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>
<!--- Js to add to cart---->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://medisius.com/js/jquery.ui.shake.js"></script>
<!---end------>
</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">
<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><?php echo $scatName['category_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" style="margin-bottom:40px">
<?php if(mysqli_num_rows($shopbystscat)>0){?>
<div class="product-view">
<div class="left-content-product">
<div id="product">
<div class="related titleLine products-list grid module ">
<h3 class="modtitle">Shop by Sub Category</h3>
<?php while($mobile_cat=mysqli_fetch_array($shopbystscat)){?>
<div class="item col-md-3 col-xs-6" style="padding:2px">
<div class="item-inner product-layout transition product-grid" style="-webkit-box-shadow: 0px 0px 5px 6px #4f4c4c3d;-moz-box-shadow: 0px 0px 5px 6px #4f4c4c3d; box-shadow: 0px 0px 5px 6px #4f4c4c3d; margin: 0 0 15px 0;">
<div class="product-item-container" style="margin:0px;">
<div class="left-block left-b">
<div class=""> <a href="<?php echo $url?>customresult2.php?sub2subcatid=<?php echo $mobile_cat['subcat_id']?>">
<center>
<img src="<?php echo $url?>image/product/<?php echo $mobile_cat['sub_menu_image'] ?>" class="img-1 img-responsive" alt="image1" style="padding:3px;height:175px" id="shopImg">
</center>
</a> </div>
</div>
<div class="right-block" style="height: 30px;">
<h4><a href="customresult2.php?sub2subcatid=<?php echo $mobile_cat['subcat_id']?>">
<?php echo $mobile_cat['subcat_name']?>
</a></h4>
</div>
</div>
</div>
</div>
<?php }?>
</div>
</div>
<!-- end Related Products-->
</div>
</div>
<?php }else{?>
<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($probysubcat)>0){
while($resu5=mysqli_fetch_array($probysubcat)){
$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[sizeof($dcd_img)-1] ?>" class="img-1 img-responsive" alt="image1">
<img src="<?php echo $url?>image/product/<?php if(sizeof($dcd_img)>=1)echo $dcd_img[sizeof($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=<?php echo $resu5['id']?>" 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;"> </span>';}?>
</p>
</div>
</div>
</div>
</div>
<!-- end product-->
<?php }} else { echo "<h2>Fot found.....</h2>";} ?>
</div>
</div>
<!-- end Related Products-->
</div>
</div>
<?php }?>
</div>
<div class="item col-md-1 col-xs-12"></div>
</div>
<?php include "includes/left_bar_mob.php"?>
<!--Middle Part End-->
</div>
<!-- //Main Container -->
<!-- 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>