Server IP : 103.53.40.154 / Your IP : 3.133.109.251 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/asksolution.in/../drckjon.in/../rajwadahouse.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); if(!isset($_SESSION["user"]) OR $_SESSION["user"] == "" ){ header('location:login.php'); } require_once('admin/config.php'); // Remove to Wishlist start if(isset($_POST['delete'])){ $id = $_POST['id']; $del_re_wis = "DELETE FROM `tbl_wishlist` WHERE `w_id` = '$id'"; $run_re_wis = mysqli_query($db,$del_re_wis); if($run_re_wis){ echo "<script> window.alert('Product removed from your wishlist successfully.'); window.location.href = 'wishlist.html'; </script>"; }else{ echo "<script> window.alert('Query Failed.'); window.location.href = 'wishlist.html'; </script>"; } } // Remove to Wishlist start ?> <!doctype html> <html class="no-js" lang="zxx"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php include "top-links.php";?> <title>Wishlist</title> </head> <body> <div id="main-wrapper"> <?php include "header.php";?> <div class="page-banner-section section bg-image" data-bg="assets/images/bg/breadcrumb.jpg"> <div class="container"> <div class="row"> <div class="col"> <div class="page-banner text-center"> <h1>Wishlist</h1> <ul class="page-breadcrumb"> <li><a href="<?php echo $wspath?>">Home</a></li> <li>Wishlist</li> </ul> </div> </div> </div> </div> </div> <div class="wishlist-section section pt-100 pt-lg-80 pt-md-70 pt-sm-60 pt-xs-50 "> <div class="container sb-border pb-70 pb-lg-50 pb-md-40 pb-sm-30 pb-xs-20"> <div class="row"> <div class="col-12"> <!-- Cart Table --> <div class="cart-table table-responsive mb-30"> <table class="table"> <thead> <tr> <th class="pro-thumbnail">Image</th> <th class="pro-title">Product</th> <th class="pro-price">Price</th> <th class="pro-stock">Stock Status</th> <th class="pro-addtocart">Add to cart</th> <th class="pro-remove">Remove</th> </tr> </thead> <tbody> <?php $user_id = $_SESSION['user']['cus_id']; $sql_wish_i = "SELECT * FROM `tbl_wishlist` INNER JOIN `tbl_services` ON tbl_wishlist.product_id = tbl_services.id WHERE `user_id` = '$user_id'"; $run_wish_i = mysqli_query($db,$sql_wish_i); if(mysqli_num_rows($run_wish_i) > 0){ while($data_wish_i = mysqli_fetch_assoc($run_wish_i)){ ?> <tr> <td class="pro-thumbnail"> <a href="<?php echo $wspath ?>product<?php echo $dataprod['slug_url']; ?>.html"> <img src="<?php echo $wspath; ?>admin/images/property-image/<?php echo $data_wish_i['image']; ?>" alt="<?php echo $site_name?>" title="<?php echo $site_name?>"> </a> </td> <td class="pro-title"><a href="<?php echo $wspath ?>product<?php echo $data_wish_i['slug_url']; ?>.html"><?php echo $data_wish_i['name']; ?></a></td> <td class="pro-price"><span>₹<?php echo $data_wish_i['price'] ?></span></td> <td class="pro-stock"><span class="in-stock">in stock</span></td> <td class="pro-addtocart"><form action="<?php echo $wspath; ?>add-cart.php" method="POST" style="margin-right:10px;"> <!-- Hidden Inputs to Pass Product Data --> <input name="sr_no" value="<?php echo $data_wish_i['id'] ?>" type="hidden"> <input name="name" value="<?php echo $data_wish_i['name'] ?>" type="hidden"> <input name="price" value="<?php echo $data_wish_i['price'] ?>" type="hidden"> <input name="image" value="admin/images/property-image/<?php echo $data_wish_i['image'] ?>" type="hidden"> <input name="quantity" value="1" type="hidden"> <!-- Submit Button --> <button class="btn add-compare" name="add_product" type="submit"> <i class="ion-bag"></i> Add to Cart</button> </form></td> <td class="pro-remove"> <form action="<?php $_PHP_SELF ?>" method="POST"> <input type="hidden" name="id" value="<?= $data_wish_i['w_id']?>"> <button class="btn btn--yellow" type="submit" name="delete"><i class="fa fa-trash-o"></i></button> </form></td> </tr> <?php } }else{ echo'No Product Found'; } ?> </tbody> </table> </div> </div> </div> </div> </div> <?php include "footer.php";?> </div> </body> </html>