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 category products
$probycat=$obj->select_all("product","where menu_id='$_REQUEST[catid]' and status='Active' order by id desc");
//shop by subcategory 
$shopbyscat=$obj->select_all("categories","where menu_id='$_REQUEST[catid]' and status='Active' order by cat_id");

//select category name
$cat_query= $obj->select_all("menu","where menu_id='$_REQUEST[catid]' order by menu_id");
$catName= mysqli_fetch_array($cat_query);
/*
$sessionID = session_id();
echo "where session_id='$sessionID'";
echo "<br>";
$loginStatus_2=$obj->select_all("register","where session_id='$sessionID'");
if(mysqli_num_rows($loginStatus_2)>0){
$result=mysqli_fetch_array($loginStatus_2);
	$_SESSION['user_id']=$result['reg_id'];
	$_SESSION['regEmailID']=$result['cemail'];
	$_SESSION['userName']=$result['cfname']." ".$result['clname'];
	$_SESSION['regMobileNo']=$result['ctel'];
	$_SESSION['userType']=$result['ccompany'];
	$_SESSION['walletAmount']=$result['wallet'];
}
die();
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic page needs
    ============================================ -->
<title><?php include('title.php')?> <?php echo $catName['menu']?></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>	
  <style>
   .price1 {
    line-height: 0;
    font-size: large;
   }
  </style>                   

</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><?php echo $catName['menu']?></li>
</ul>
<div class="row">
  <!--Left Part Start-->
  <?php //include "includes/left_bar.php"?>
  <!--Left Part ends-->
  <!--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($shopbyscat)>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 if(mysqli_num_rows($shopbyscat)>0){
			 while($mobile_cat=mysqli_fetch_array($shopbyscat)){
			?>
               <div class="item col-md-3 col-xs-6" style="padding:2px">
                    <div class="item-inner product-layout transition product-grid" style=" 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?>customresult1.php?subcatid=<?php echo $mobile_cat['cat_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>
						 <div class="right-block" style="height:30px;">
                          <h4 style="padding-left:10px;"><a href="<?php echo $url?>customresult1.php?subcatid=<?php echo $mobile_cat['cat_id']?>">
                            <?php echo $mobile_cat['category_name']?>
                            </a></h4>
                        </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($probycat)>0){
			 while($resu5=mysqli_fetch_array($probycat)){
			 $expprice=explode(",",$resu5['price']); 
       $expoldPrice = explode(",", $resu5['oldprc']);
			?>
            <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=$expoldPrice[0]-$expprice[0];
				                      echo round(100*$bachat/$resu5['oldprc'])."% OFF";
					               ?>
                        </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=<?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>
                     <div class="text-success1">
                       <h5 class="price1"  >Rs. <del><small><?php echo $expoldPrice[0]; ?></small></del> <?php echo $expprice[0]." ";  ?></h5>
                     </div>
                    </div>
                  </div>
                </div>
              </div>
            <?php }
			} ?>
          </div>
        </div>
        <!-- end Related  Products-->
      </div>
    </div>
  <?php }?>
  </div>
 <div class="item col-md-1 col-xs-12"></div>
</div>
</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>