File manager - Edit - /home/gppowercontrol/public_html/wishlist.php
Back
<!doctype html> <html class="no-js" lang=""> <head> <?php include "include/head.php"; isLogin(); ?> </head> <body> <?php include "include/header.php" ?> <div class="breadcurb-area"> <div class="container"> <ul class="breadcrumb"> <li class="home"><a href="index.php">Home </a></li> <li> Wishlist</li> </ul> </div> </div> <div class="wishlist-area"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="cart-title"> <h2>Wishlist</h2> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <!-- Cart Item --> <div class="wishlist-item chart-item table-responsive fix"> <table class="col-lg-12"> <thead> <tr> <th class="th-delate">Remove</th> <th class="th-product">Images</th> <th class="th-details">Product Name</th> <th class="th-price">Unit Price</th> <th class="th-edit th-stock">Stock Status </th> <th class="th-total th-add-to-cart">Add to Cart </th> </tr> </thead> <tbody> <?php $user_id = $user['id']; $sql = "SELECT * FROM `wishlists` WHERE `user_id` = '$user_id'"; $res = mysqli_query($con, $sql); while ($row = mysqli_fetch_assoc($res)) { ?> <?php $product_id = $row['product_id']; $sqll = "SELECT * FROM `product` WHERE `id` = '$product_id'"; $ress = mysqli_query($con, $sqll); $roww = mysqli_fetch_assoc($ress); $image = json_decode($roww['image']); $cat_id = $roww['category']; $sql11 = mysqli_query($con, "SELECT * FROM `category` WHERE `id`='$cat_id'"); $category = mysqli_fetch_assoc($sql11); $cat_name = $category['name']; ?> <tr> <td class="th-delate"><a onclick="delete_wishlist_item('<?php echo $roww['id'] ?>','<?php echo $user_id ?>')"><i class="fa fa-trash"></i></a></td> <td class="th-product"> <a href="product.php?url=<?= $roww['url'] ?>"><img src="media/product/<?php echo $image[0] ?>" alt="<?php echo $roww['image_alt_tag'] ?>"></a> </td> <td class="th-details"> <h2><a href="product.php?url=<?= $roww['url'] ?>"><?= $roww['name'] ?></a></h2> </td> <td class="th-price">₹ <?= $roww['discounted_price'] ?></td> <td class="th-edit th-stock"><a href="#"><?= $roww['availability'] ?></a></td> <th class="td-add-to-cart"><a href="product.php?url=<?= $roww['url'] ?>"> Add to Cart</a></th> </tr> <?php } ?> </tbody> </table> </div><!-- End Cart Item --> </div> </div> </div> </div><!-- End Wishlist Area --> <?php include "include/footer.php" ?> <?php include "include/foot.php" ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.52 |
proxy
|
phpinfo
|
Settings