Uname : Linux V-ShopU01 4.18.0-348.20.1.el8_5.x86_64 #1 SMP Thu Mar 10 20:59:28 UTC 2022 x86_64
Server : Apache/2.4.37 (rocky) OpenSSL/1.1.1k
Whoami : apache
Safe Mode : OFF
DOCUMENT ROOT : /var/www/html/site_shopudietDisable Function :
Path : /var/www/html/site_shopudiet/
Server IP : 65.20.74.164
Client IP : 18.221.172.50
Current File : /var/www/html/site_shopudiet/package-detail1.php |
<?php
include 'dbconnect.php';
session_start();
if(!isset($_SESSION['id'])){
header('Location: login.php');
}
// logout
if(isset($_POST['but_logout'])){
session_destroy();
header('Location: login.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Online Organic Grocery Store in Kochi | ShopuDiet</title>
<link rel="icon" type="image/png" href="images/favicon.png"/>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no">
<meta name="description" content="All the products we bring you are 100% Organic Certified. Customers can pick and choose the grocery items for their monthly home requirements from our site.">
<meta name="keywords" content="100% Organic Certified, Organic Store, Grocery store, Kochi Organic Store, Organic products">
<meta name="author" content="*">
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<link rel="icon" href="#" type="image/x-icon">
<link rel="shortcut icon" href="#" type="image/x-icon">
<!-- CSS Style -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="stylesheet/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="stylesheet/font-awesome.css" media="all">
<link rel="stylesheet" type="text/css" href="stylesheet/revslider.css" >
<link rel="stylesheet" type="text/css" href="stylesheet/style.css" media="all">
<link rel="stylesheet" type="text/css" href="stylesheet/owl.carousel.css">
<link rel="stylesheet" type="text/css" href="stylesheet/owl.theme.css">
<link rel="stylesheet" type="text/css" href="stylesheet/flexslider.css">
<link rel="stylesheet" type="text/css" href="stylesheet/jquery.mobile-menu.css">
<link rel="stylesheet" type="text/css" href="stylesheet/responsive.css">
<link href="https://fonts.googleapis.com/css?family=Merriweather:300,300i,400,400i,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald:300,400,500,600,700" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:700,600,800,400' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Rubik:400,400i,500,500i,700,700i,900" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.js"></script>
<link rel="stylesheet" href="/path/to/flickity.css" media="screen">
<script src="/path/to/flickity.pkgd.min.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
// $(window).load(function(){
// $('.loader').fadeOut("medium");
// });
$(document).ready(function () {
setTimeout(function(){
$('.loader').fadeOut(100);
}, 2500);
});
</script>
</head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-170593298-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-170593298-1');
</script>
<body>
<div class="loader">
</div>
<div id="page">
<?php
include('header.php');
?>
<div class="page-heading hidden-xs">
<div class="breadcrumbs">
<div class="container">
<div class="row">
<div class="col-xs-12">
<!-- <ul>
<li class="home"> <a href="index.html" title="Go to Home Page">Home</a> <span>› </span> </li>
<li class="category1601"> <strong>Packages</strong> </li>
</ul> -->
</div>
<!--col-xs-12-->
</div>
<!--row-->
</div>
<!--container-->
</div>
<div class="page-title">
<h2>Packages</h2>
</div>
</div>
<!-- BEGIN Main Container -->
<div class="main-container col1-layout wow bounceInUp animated">
<div class="main">
<div class="col-main">
<!-- Endif Next Previous Product -->
<div class="product-view wow bounceInUp animated" itemscope="" itemtype="http://schema.org/Product" itemid="#product_base">
<div id="messages_product_view"></div>
<!--product-next-prev-->
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px;">
<div class="product-essential">
<?php
include('dbconnect.php');
$home_id = $_GET['id'];
$quantity=1;
$squery = "select * from packages where id='$home_id'";
$result = mysqli_query($conn,$squery);
//$i=mysqli_num_rows($result);
//$j=1;
while( $row = mysqli_fetch_array($result))
{
$orgprice=$row['priceorg'];
$newprice=$row['price'];
$splittedstring=explode(",",$row['items']);
$splittedstring1=explode(",",$row['s_weight']);
?>
<form action="add_multipackagecart.php?id=<?php echo $row['id']?>" method="post" id="product_addtocart_form">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12">
<img src="admin/img/<?php echo $row['image']?>" class="img-responsive pack-image">
<input type="hidden" name="quantity" value="<?php echo $quantity;?>">
</div>
<div class="col-md-6 col-sm-6 col-xs-12 prdct_details">
<div class="col-md-6 col-sm-6 col-xs-6">
<h5><?php echo $row['product_name'];?></h5>
<h4><span class="str_price"><?php if ($row['price']>0) { echo "₹".$row['price'];}?></span> <span class="str_price1"><strike><?php if ($row['priceorg']>0) { echo "₹".$row['priceorg'];}?></strike></span></h4>
</div>
<div class="hidden-lg hidden-md hidden-sm col-xs-6">
<input type="submit" name="submit" value="Add to Cart" class="btn btn-cart1" >
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
<p class="prdctdesc"><?php echo $row['product_name']; ?><span>-</span><?php for($i=0;$i<count($splittedstring);$i++){echo $splittedstring[$i];?><span>+</span> <?php echo $splittedstring1[$i];?><span>,</span><?php } echo count($splittedstring);?>Products</p>
<p class="prdctdesc1"><?php echo $row['description']?></p>
<div class="hidden-xs"> <input type="submit" name="submit" value="Add to Cart" class="btn btn-cart1" style="float: left;"></div>
</div>
</div>
</div>
</form>
<?php
}
?>
</div>
</div>
<!--product-essential-->
<?php
include('dbconnect.php');
$home_id = $_GET['id'];
$squery = "select * from packages where id='$home_id'";
$result = mysqli_query($conn,$squery);
//$i=mysqli_num_rows($result);
//$j=1;
while( $row = mysqli_fetch_array($result))
{
?>
<div class="product-collateral container col-md-12 col-sm-12 col-xs-12">
<ul id="product-detail-tab" class="nav nav-tabs product-tabs">
<!-- <li class="active"> <a href="#product_tabs_description" data-toggle="tab"> Package products </a> </li> -->
<!-- <li> <a href="#reviews_tabs" data-toggle="tab">Reviews</a> </li>
<li> <a href="#product_tabs_custom" data-toggle="tab">Custom Tab</a> </li>
<li> <a href="#product_tabs_custom1" data-toggle="tab">Custom Tab1</a> </li> -->
</ul>
<div id="productTabContent" class="tab-content">
<div class="tab-pane fade " id="product_tabs_tags">
<div class="std">
<p><?php echo $row['description']?></p>
</div>
</div>
<div class="tab-pane fade in active" id="product_tabs_description">
<div class="box-collateral box-tags">
<div class="tags">
<div class="row">
<?php
$splittedstring=explode(",",$row['items']);
$splittedstring1=explode(",",$row['s_weight']);
$splittedstring2=explode(",",$row['prdct_price']);
$splittedstring3=explode(",",$row['prdct_id']);
// $count1=count($splittedstring);
// $count2=count($splittedstring1);
for($i=0;$i<count($splittedstring);$i++){
$sql="select * from product where id='".$splittedstring3[$i]."'";
$result = mysqli_query($conn,$sql);
//$i=mysqli_num_rows($result);
//$j=1;
while( $row1 = mysqli_fetch_array($result))
{
?>
<div class="col-sm-6 col-md-6 col-xs-12 dotted">
<div class="col-md-12 col-sm-12 col-xs-12 real_packs">
<div class="col-md-3 col-sm-3 col-xs-4">
<a href="product-detail1.php?id=<?php echo $row1['id'];?>"><img src="admin/img/<?php echo $row1['file1'];?>" class="img-responsive pack_img"></a>
</div>
<div class="col-md-6 col-sm-6 col-xs-4">
<div class="rel_pack_name"> <a href="product-detail1.php?id=<?php echo $row1['id'];?>"><?php echo $row1['product_name'];?></a></div>
<p><?php echo $row1['weight'];?></p>
</div>
<div class="col-md-3 col-sm-3 col-xs-4">
<div class="rel_price"> <?php if ($row1['price']>0) { echo "₹".$row1['price'];}?></div>
</div>
</div>
</div>
<?php
}
}
?>
</div>
</div>
<!--tags-->
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
<!-- end related product -->
</div>
<!--box-additional-->
<!--product-view-->
</div>
</div>
<!--col-main-->
</div>
<!--main-container-->
</div>
<!--col1-layout-->
<!-- For version 1,2,3,4,6 -->
<?php
include('footer.php');
?>
<!--page-->
<!-- Mobile Menu-->
<?php
include('mobile-menu.php');
?>
<a href="#" id="toTop" style="display: block;"><span class="fa fa-arrow-up"></span></a>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/common.js"></script>
<script src="js/jquery.flexslider.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/cloud-zoom.js"></script>
<script src="js/jquery.mobile-menu.min.js"></script>
<style >
@media only screen and (max-width: 479px) and (min-width: 320px){
.product-collateral {
margin-top: 4px;
margin-bottom: 0px;
}
.farm {
padding: 20px;
background: #ffd016;
margin-bottom: 0px;
margin-top: 0px;
}
.main-container{
padding: 15px;
padding-bottom: 0px;
}
}
</style>
</body>
</html>