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_shopudiet
Disable Function :
Path : /var/www/html/site_shopudiet/

Server IP : 65.20.74.164 Client IP : 3.144.116.112
Current File : /var/www/html/site_shopudiet/product-detail1.php
<?php
session_start();
?>
<!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("slow");
// });
$(document).ready(function () {
    setTimeout(function(){
        $('.loader').fadeOut(100);
    }, 2500);
});


</script>
<style>
    .sale-label-org {
    margin-left: 328px;
    width: 44px;
    display: inline-block;
    position: absolute;
    top: 337px;
    line-height: 26px;
    z-index: 10;
       
   }
   @media (max-width: 560px) and (min-width: 280px) {
     .sale-label-org {
    margin-left: 228px !important;
    top: 152px !important;
    width: 44px !important;
}
   }
</style>
  </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="home.php" title="Go to Home Page">Home</a> <span>&rsaquo; </span> </li>
              <li class="category1601"> <strong>Product</strong> </li>
            </ul>
          </div> -->
          <!--col-xs-12--> 
        </div>
        <!--row--> 
      </div>
      <!--container--> 
    </div>
    <div class="page-title">
      <h2>Product</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="product-essential container">
              <div class="row">
                    <?php 
                  include('dbconnect.php');
                 
                 $home_id = (int)$_GET['id'];
                  $quantity=1;
               

                  $squery = "select * from product where id='$home_id'";
                       $result = mysqli_query($conn,$squery);
                       //$i=mysqli_num_rows($result);
                       //$j=1;
                       while( $row = mysqli_fetch_array($result))
                      {
                        $price=$row['price'];
              ?>
                <form action="add_multipackagecart.php?id=<?php echo $row['id']?>" method="post" id="product_addtocart_form">

                  <div class="container">
                    <div class="row">
                      <div class="col-md-4 col-sm-4 col-xs-12">

  <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
       <?php if(!empty($row['file1'])){?>
      <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
    <?php }?> <?php if(!empty($row['file2'])){?>
      <li data-target="#carousel-example-generic" data-slide-to="1"></li> <?php }?>
       <?php if(!empty($row['file3'])){?>
      <li data-target="#carousel-example-generic" data-slide-to="2"></li> <?php }?>
      <?php if(!empty($row['file4'])){?>
      <li data-target="#carousel-example-generic" data-slide-to="2"></li> <?php }?>
      <?php if(!empty($row['file5'])){?>
      <li data-target="#carousel-example-generic" data-slide-to="2"></li> <?php }?>
      
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
      <?php if(!empty($row['file1'])){?>
      
      <div class="item active">
           <?php if($row['org_status'] == 'org') { ?>
            <b><p class="sale-label-org" style="margin-top:4px !important; margin-left:274px !important;">Organic</p></b>
           <img src="images/shop-new-org (1).png" class="sale-label-org" /><?php } ?>  
        <img src="admin/img/<?php echo $row['file1']?>" class="prdimg">
         <?php
        if(!empty($row['discount'])){

        ?>
                    <div class="sale-label sale-top-left"><?php echo $row['discount'];?>% off</div>
                    <?php
                  }
                  ?>
      </div><?php }?>
      <?php if(!empty($row['file2'])){?>

      <div class="item">
           <?php if($row['org_status'] == 'org') { ?> <b><p class="sale-label-org" style="margin-top:10px !important; margin-left:274px !important;">Organic</p></b>
           <img src="images/shop-new-org (1).png" class="sale-label-org" /><?php } ?>  
        <img src="admin/img/<?php echo $row['file2']?>" class="prdimg">
         <?php
        if(!empty($row['discount'])){

        ?>
                    <div class="sale-label sale-top-left"><?php echo $row['discount'];?>% off</div>
                    <?php
                  }
                  ?>
      </div><?php }?>
      <?php if(!empty($row['file3'])){?>

      <div class="item">
           <?php if($row['org_status'] == 'org') { ?>
            <b><p class="sale-label-org" style="margin-top:10px !important; margin-left:274px !important;">Organic</p></b>
            <img src="images/shop-new-org (1).png" class="sale-label-org" /><?php } ?>  
        <img src="admin/img/<?php echo $row['file3']?>" class="prdimg">
         <?php
        if(!empty($row['discount'])){

        ?>
                    <div class="sale-label sale-top-left"><?php echo $row['discount'];?>% off</div>
                    <?php
                  }
                  ?>
      </div><?php }?>

       <?php if(!empty($row['file4'])){?>

      <div class="item">
           <?php if($row['org_status'] == 'org') { ?>
            <b><p class="sale-label-org" style="margin-top:10px !important; margin-left:274px !important;">Organic</p></b>
           <img src="images/shop-new-org (1).png" class="sale-label-org" /><?php } ?>  
        <img src="admin/img/<?php echo $row['file4']?>" class="prdimg">
         <?php
        if(!empty($row['discount'])){

        ?>
                    <div class="sale-label sale-top-left"><?php echo $row['discount'];?>% off</div>
                    <?php
                  }
                  ?>
      </div><?php }?>

       <?php if(!empty($row['file5'])){?>

      <div class="item">
           <?php if($row['org_status'] == 'org') { ?><img src="images/shop-new-org (1).png" class="sale-label-org" /><?php } ?>  
        <img src="admin/img/<?php echo $row['file5']?>" class="prdimg">
         <?php
        if(!empty($row['discount'])){

        ?>
                    <div class="sale-label sale-top-left"><?php echo $row['discount'];?>% off</div>
                    <?php
                  }
                  ?>
      </div><?php }?>
      
    </div>

    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
      <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
  </div>

                        
                      </div>
                      <div class="col-md-1 col-sm-1"></div>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <div class="row">
                        <div class="col-md-6 col-sm-6 col-xs-12 prdct_details">
                        <!-- <h5><?php echo $row['category_name'];?></h5> -->
                        <h3><?php echo $row['product_name'];?></h3>
                        <h6><?php echo $row['weight'];?></h6>
                        <!-- <h4><?php if ($row['price']>0) { echo "₹". $row['price']; }  ?></h4> -->
                        <h4><span class="str_price"><?php if ($row['mrp']>0) { echo "₹".$row['mrp'];} else { echo "₹".$row['price']; }?></span>&nbsp;<span class="str_price1"><strike><?php if ($row['price']>0 && $row['mrp']>0) { echo "₹".$row['price'];}?></strike></span></h4>

                      </div>
                      <div class="col-md-6 col-sm-6 col-xs-8">
                        <div class="add-to-box">
                      <div class="add-to-cart">
                        <!-- <div class="pull-left">
                          <div class="custom pull-left">
                            <button onclick="var result = document.getElementById('qty'); var qty = result.value; if( !isNaN( qty ) &amp;&amp; qty > 0 ) result.value--;return false;" class="reduced items-count" type="button"><i class="fa fa-minus">&nbsp;</i></button>
                            <input type="text" class="input-text qty" title="Qty" value="1" maxlength="12" id="qty" name="qty">
                            <button onclick="var result = document.getElementById('qty'); var qty = result.value; if( !isNaN( qty )) result.value++;return false;" class="increase items-count" type="button"><i class="fa fa-plus">&nbsp;</i></button>
                          </div>
                        </div> -->
                      <!--   <button href="add_cart.php?id=<?php echo $row['id']?>" class="button btn-cart" title="Add to Cart" type="button">Add to Cart</button> -->

<input type="hidden" name="quantity" id="qty<?php echo $row['id'];?>" value="<?php  echo $quantity;?>">
<?php
include("dbconnect.php");
$cart_id = $_SESSION['cart_id'];
$id = $row['id'];
$data = mysqli_query($conn,"SELECT * FROM product_cart where prduct_id='$id' AND cart_id='$cart_id'");
if(mysqli_num_rows($data) > 0)
{
?>
<input type="button" name="submit" style="background-color:#df2b27;" onclick = "cart()" class="btn  btn-cart2" value="VIEW CART">
                     
<?php } else { ?>
                       <input type="button" name="submit" id="add<?php echo $row['id']?>" onclick = "add_cart(<?php echo $row['id'];?>)" class="btn  btn-cart2" value="Add to cart">
    <?php } ?>
                      
                      </div>
                      
                    </div>
                      </div>
                      </div>
                      <div class="row cert">
                        <h4>Certification By</h4>
                         <?php if(!empty($row['doc1'])){?>
                      <div class="col-md-2 col-sm-2 col-xs-2">
                        <img src="admin/img/<?php echo $row['doc1']?>" >
                        
                      </div><?php }?>
                       <?php if(!empty($row['doc2'])){?>
                      <div class="col-md-2 col-sm-2 col-xs-2">
                        <img src="admin/img/<?php echo $row['doc2']?>" >
                        
                      </div><?php }?>
                       <?php if(!empty($row['doc3'])){?>
                      <div class="col-md-2 col-sm-2 col-xs-2">
                        <img src="admin/img/<?php echo $row['doc3']?>" >  
                        
                      </div><?php }?>
                       <?php if(!empty($row['doc4'])){?>
                      <div class="col-md-2 col-sm-2 col-xs-2">
                        <img src="admin/img/<?php echo $row['doc4']?>" >
                        
                      </div><?php }?>
                       <?php if(!empty($row['doc5'])){?>
                      <div class="col-md-2 col-sm-2 col-xs-2">
                        <img src="admin/img/<?php echo $row['doc5']?>" >
                        
                      </div><?php }?>
                      
                      </div>
                      <div class="row manu">
                        <h4>Manufactured By</h4>
                        
                        <div class="col-md-12 col-sm-12 col-xs-12">
                        <?php $bid = $row['brand_id']; 
                              $sq = mysqli_query($conn,"SELECT * FROM brand WHERE id='$bid'");
                              while($res = mysqli_fetch_array($sq))
                              {
                        ?>
                                <h4><?php echo $res['brand_name'];?></h4>
                         <?php } ?>    
                        <h5>Product Code:<?php echo $row['prdct_code'];?></h5>
                        </div>
                        
                      </div>

                        
                      </div>
                      
                    </div>
                    
                  </div>
                 
                </form>
                 <?php
  }
  ?>
              </div>
            </div>
            <!--product-essential-->
             <?php 
                  include('dbconnect.php');
                 
                 $home_id = $_GET['id'];
                  $squery = "select * from product 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">
              <ul id="product-detail-tab" class="nav nav-tabs product-tabs">
                <li class="active"> <a href="#product_tabs_description" data-toggle="tab"> Product Description </a> </li>
               <!--  <li><a href="#product_tabs_tags" data-toggle="tab">Tags</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 in active" id="product_tabs_description">
                  <div class="std">
                  
                    <p><?php echo $row['description']?></p>
                    <!-- <img alt="" src="admin/img/<?php echo $row['file1']?>" style="float:right"> -->
                  
                  </div>
                </div>
              <!--   <div class="tab-pane fade" id="product_tabs_tags">
                  <div class="box-collateral box-tags">
                    <div class="tags">
                      <form id="addTagForm" action="#" method="get">
                        <div class="form-add-tags">
               
                          <div class="input-box">
                            <input class="input-text" name="productTagName" id="productTagName" type="text" value="enter your tags">
                            <button type="button" title="Add Tags" class=" button btn-add" onClick="submitTagForm()"> <span>Add Tags</span> </button>
                          </div>
                      
                        </div>
                      </form>
                    </div>
                  
                    <p class="note">Use spaces to separate tags. Use single quotes (') for phrases.</p>
                  </div>
                </div> -->
             
              </div>
            </div>
              <?php
  }
  ?>
        
           
      
            <!-- 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');
  ?>
  <!-- End For version 1,2,3,4,6 -->

  <!--page-->
  <!-- Mobile Menu-->
  <?php
   include('mobile-menu.php');
  ?>
  <a href="#" id="toTop" style="display: block;"><span class="fa fa-arrow-up"></span></a>
  <!-- JavaScript -->
  <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>
<script type="text/javascript">
  $(".carousel").swipe({

  swipe: function(event, direction, distance, duration, fingerCount, fingerData) {

    if (direction == 'left') $(this).carousel('next');
    if (direction == 'right') $(this).carousel('prev');

  },
  allowPageScroll:"vertical"

});
function add_cart(id)
    {
        $(".label_top").text(''); 
       $(".fl-mini-cart-content").text('');
       var qty = $("#qty"+id).val();
       $(".fix").text('');
       $.ajax({
                    url: 'add_multipackagecart.php',
                    data: {id:id,qty:qty},
                    type: 'post',
                    async: false,
                    dataType: 'json',
                    success:function(data){
                        $("#add"+id).text('View Cart');
                        /*$("#add"+id).attr('disabled','TRUE');*/
                        //console.log(data.count);
                        $(".label_top").text(data.count);
                        $("#add"+id).css('background-color','#df2b27');
                        $("#add"+id).css('color','#fff');
                        $(".fl-mini-cart-content").append(data.list);
                        $("#add"+id).attr("onclick","cart()");
                        //console.log(data.fix);
                        $("div").removeClass("hidden-sm");
                        $(".fix").append(data.fix);
                    }
            });
    }
     function cart()
    {
        window.location.href='cart.php';
        //alert('error');
    }
</script>

  </body>
  </html>