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
$proby_offer=$obj->select_all("product","where pro_type='Special Offer' and status='Active'");
//shop by subcategory 
$shopbyscat=$obj->select_all("categories","where menu_id='$_REQUEST[catid]' and status='Active'");

//select category name
$cat_query= $obj->select_all("menu","where menu_id='$_REQUEST[catid]'");
$catName= mysqli_fetch_array($cat_query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic page needs
    ============================================ -->
<title><?php include('title.php')?> Special offer products</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"/>
<!-- Libs CSS
    ============================================ -->
<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?>js/datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">
<link href="<?php echo $url?>js/owl-carousel/owl.carousel.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/lib.css" rel="stylesheet">
<link href="<?php echo $url?>js/jquery-ui/jquery-ui.min.css" rel="stylesheet">
<link href="<?php echo $url?>js/minicolors/miniColors.css" rel="stylesheet">
<!-- Theme CSS
    ============================================ -->
<link href="<?php echo $url?>css/themecss/so_searchpro.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so_megamenu.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-categories.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-listing-tabs.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-category-slider.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-newletter-popup.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">
<!-- Google web fonts
    ============================================ -->
<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>
</head>
<body class="common-home res layout-2">
<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">
<p>&nbsp;</p>
<div class="row">
  <!--Left Part Start-->
  <?php //include "includes/left_bar.php"?>
  <!--Left Part ends-->
  <!--Middle Part Start-->
  <div id="content" class="col-md-12 col-sm-12">
  <div class="product-view">
      <div class="left-content-product">
        <div id="product">
          <div class="related titleLine products-list grid module ">
            <h3 class="modtitle">Offer Products </h3>
            <?php if(mysqli_num_rows($proby_offer)>0){
			 while($resu5=mysqli_fetch_array($proby_offer)){
			 $extPrice=explode(",",$resu5['price']); 
			?>
            <div class="item col-md-3 col-xs-6">
                <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'])>20)echo substr($resu5['name'],0,18)."...";else echo $resu5['name'] ?></a></h4>
						  <h5><?php $expQty = explode(",",$resu5['oldprice']);echo $expQty[0]?></h5>
                      </div>
                      <p class="price"> 
					  <span class="price-new">Rs. <?php echo $extPrice[0]; ?>.00</span>
					  <?php if($resu5['oldprc']!=0){?><span class="price-old" style="line-height: 0;">Rs. <?php echo $resu5['oldprc']?></span><?php }else{ echo '<span class="price-old" style="color:#fff;line-height: 0;">&nbsp;</span>';}?>
					   </p>
					  <div class="col-md-12 col-sm-12" style="padding:0">
                              <form method="get" action="addtocart.php">
                                <div class="left-content-product">
                                  <div class="content-product-right">
                                    <div class="form-group box-info-product">
                                      <div class="option quantity">
                                        <div class="input-group quantity-control" unselectable="on" style="-webkit-user-select: none;display: inline-flex;padding: 4px 4px;">
                                          <button type="submit" name="submit" style="border:0;background: #444444;color: #fff;font-size: 9px;"> Add to Cart</button>
                                          <input class="form-control" type="text" name="quantity" value="1">
                                          <input type="hidden" name="productid" value="<?php echo $resu5['id']?>">
                                          <input type="hidden" name="maxStock" value="<?php echo $resu5['stock']?>">
                                          <input type="hidden" name="pcolor" value="<?php 
										  $extPrice=explode(",",$resu5['price']);
										  $extOldPrice=explode(",",$resu5['oldprice']); 
										  echo $extPrice[0]."*M*".$extOldPrice[0] ?>">
										  <input type="hidden" name="psize" class="form-control" value="1">
                                          <span class="input-group-addon product_quantity_down">-</span> <span class="input-group-addon product_quantity_up">+</span> </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </form>
					   </div>
                    </div>
                  </div>
                </div>
            </div>
            <?php }
			} ?>
          </div>
        </div>
        <!-- end Related  Products-->
      </div>
    </div>
  </div>

  <?php //include "includes/left_bar_mob.php"?>
  <!--Middle Part End-->
</div>
</div>
<!-- //Main Container -->
<!-- Footer Container -->
<?php include "includes/footer.php" ?>
<!-- Include Libs & Plugins
  ============================================ -->
<!-- Placed at the end of the document so the pages load faster -->
<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/owl-carousel/owl.carousel.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/slick-slider/slick.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/libs.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/unveil/jquery.unveil.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/dcjqaccordion/jquery.dcjqaccordion.2.8.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/datetimepicker/moment.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/jquery-ui/jquery-ui.min.js"></script>
<!-- Theme files
  ============================================ -->
<script type="text/javascript" src="<?php echo $url?>js/themejs/homepage.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/application.js"></script>
<!--     -->
</body>
</html>