Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/vaticaplus/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); include ("Admin/Includes/db.php"); @$uid = $_SESSION['userid'] ; ?> <!doctype html> <html class="no-js" lang="zxx"> <!-- Mirrored from htmldemo.net/makali/makali/cart.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 30 Sep 2022 10:31:31 GMT --> <head> <?php include 'include/head.php'; ?> </head> <body class="template-color-1"> <!--[if lte IE 9]> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p> <![endif]--> <!-- Main Wrapper Start Here --> <div class="wrapper"> <!-- Main Header Area Start Here --> <!-- Main Header Area Three Start Here --> <?php include 'include/header1.php'; ?> <!-- Main Header Area Three End Here --> <!-- Main Header Area End Here --> <!-- Breadcrumb Area Start Here --> <div class="breadcrumb-area"> <div class="container"> <ol class="breadcrumb breadcrumb-list"> <li class="breadcrumb-item"><a href="index.php">Home</a></li> <li class="breadcrumb-item active">Cart</li> </ol> </div> </div> <!-- Breadcrumb Area End Here --> <!-- Cart Main Area Start --> <div class="cart-main-area ptb-90"> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12"> <!-- Form Start --> <form action="#"> <!-- Table Content Start --> <?php $tot = 0; $id = $_SERVER['REMOTE_ADDR']; $pro = "SELECT * FROM tbl_cart WHERE cid='$id' "; $result=$con->query($pro); if($result->num_rows > 0) { ?> <div class="table-content table-responsive mb-45"> <table> <thead> <tr> <th class="product-thumbnail">Image</th> <th class="product-name">Product</th> <th class="product-price">Price</th> <th class="product-quantity">Quantity</th> <th class="product-subtotal">Total</th> <th class="product-remove">Remove</th> </tr> </thead> <tbody> <?php while($row = mysqli_fetch_array($result)) { // print_r($row); $pii = $row['pid']; $gid = $row['gid']; $pr = mysqli_query($con,"SELECT * FROM tbl_product WHERE id='$pii' "); $data1 = mysqli_fetch_array($pr); $img = $data1['img']; $im = explode(',', $img); ?> <tr > <td class="product-thumbnail"> <a href="#"> <?php foreach ($im as $value) { ?> <img src="Admin/current_causes/<?php echo $value; ?>" alt="cart-image" /> <?php break; } ?> </a> </td> <td class="product-name"><a href="product_detail.php?id=<?php echo $data1['id']; ?>"><?php echo $data1['name']; ?></a> <br> <?php if (empty($gid)) { // echo 'io'; # code... ?> <?php } else {?> <label style="font-weight: bold;float: left;">Add some Goodies:</label> <br> <?php $gd = explode(',', $gid); $j = 1; for($i=0; $i<count($gd); $i++) { $gdv = $gd[$i]; $sql = "select * from tbl_goodies where id='$gdv'"; $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con)); $sql_rowg = mysqli_fetch_array($sql_res); ?> <div > <span style="float: left; position: relative; "><?php echo $j; ?>.<?php echo $sql_rowg['name']; ?></span><br> </div> <?php $j++; } } ?> </td> <td class="product-price"><span class="amount"><i class="fa fa-rupee"></i> <?php echo $row['price']; ?></span></td> <td class="product-quantity"> <input type="number" id="<?php echo $row['id'] ?>" class="updatecart" value="<?php echo $row['qty']; ?>" /> </td> <td class="product-subtotal"><i class="fa fa-rupee"></i> <?php echo $t = $row['qty']*$row['price']; ?></td> <td class="product-remove" > <a class="deletepro" id="<?php echo $row['id'] ?>"><i class="fa fa-times" aria-hidden="true"></i></a></td> </tr> <?php $tot += $t; $allt = $tot + $row['extra_p']; } ?> </tbody> </table> </div> <!-- Table Content Start --> <div class="row"> <!-- Cart Button Start --> <div class="col-md-8 col-sm-12"> <div class="buttons-cart"> <a href="index.php">Continue Shopping</a> <!--<input type="submit" class="updatecart" value="Update Cart" /> --> </div> </div> <!-- Cart Button Start --> <!-- Cart Totals Start --> <div class="col-md-4 col-sm-12"> <div class="cart_totals float-md-right text-md-right"> <h2>Cart Totals</h2> <br /> <table class="float-md-right"> <tbody> <tr class="cart-subtotal"> <th>Subtotal</th> <td><span class="amount"><i class="fa fa-rupee"></i> <?php echo $allt; ?></span></td> </tr> <tr class="order-total"> <th style="font-size: 24px;">Total</th> <td> <strong><span class="amount"><i class="fa fa-rupee"></i> <?php echo $allt; ?></span></strong> </td> </tr> </tbody> </table> <div class="wc-proceed-to-checkout"> <?php if(@$uid == '') { ?> <a href="login.php">Proceed to Checkout</a> <?php } else {?> <a href="checkout.php">Proceed to Checkout</a> <?php } ?> </div> </div> </div> <!-- Cart Totals End --> </div> <?php } else { ?> <div style="text-align: center;"> <span>Your Shopping Cart is empty. </span><br><br> <span> Add item to it now. </span><br> <br> <div class="wc-proceed-to-checkout"> <a href="index.php">Shop Now</a> </div> </div> <?php } ?> <!-- Row End --> </form> <!-- Form End --> </div> </div> <!-- Row End --> </div> </div> <!-- Cart Main Area End --> <!-- Footer Area Start Here --> <?php include'include/footer.php'; ?> <!-- Footer Area End Here --> </div> <!-- Main Wrapper End Here --> <!-- jquery --> <script src="js/vendor/jquery-3.6.0.min.js"></script> <!-- jquery migrate --> <script src="js/vendor/jquery-migrate-3.3.2.min.js"></script> <!-- Countdown js --> <script src="js/jquery.countdown.min.js"></script> <!-- Mobile menu js --> <script src="js/jquery.meanmenu.min.js"></script> <!-- ScrollUp js --> <script src="js/jquery.scrollUp.js"></script> <!-- Fancybox js --> <script src="js/jquery.fancybox.min.js"></script> <!-- Jquery nice select js --> <script src="js/jquery.nice-select.min.js"></script> <!-- Jquery ui price slider js --> <script src="js/jquery-ui.min.js"></script> <!-- Owl carousel --> <script src="js/owl.carousel.min.js"></script> <!-- Bootstrap popper js --> <script src="js/popper.min.js"></script> <!-- Bootstrap js --> <script src="js/bootstrap.min.js"></script> <!-- Plugin js --> <script src="js/plugins.js"></script> <!-- Main activaion js --> <script src="js/main.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(document).on('click','.deletepro', function(){ var id1 = $(this).attr('id').split('e').pop(); $.ajax({ type: 'POST', url: 'Ajax/delete_cart.php', data: {proid: id1 }, success: function(response) { if(response==1) { // $('#exampleModal').hide(); toastr.success("Product has been Removed"); setTimeout(function () { window.location.href='cart.php'; }, 2000); // window.location.href='cart.php'; } else { alert(data); } } }); }); }); </script> <script type="text/javascript"> $(document).ready(function(){ $(document).on('change','.updatecart', function(){ var iqty = $(this).val(); var id1 = $(this).attr('id').split('e').pop(); // var aid = $(this).closest('tr').attr('id'); // var price = $('#qty').val(); // alert(iqty); // alert(id1); $.ajax({ type: 'POST', url: 'Ajax/update_qty.php', data: {aid: id1,qty: iqty }, success: function(response) { if(response==1) { // $('#exampleModal').hide(); toastr.success("Cart Has Been Updated"); setTimeout(function () { window.location.href='cart.php'; }, 2000); // window.location.href='cart.php'; } else { alert(data); } } }); }); }); </script> </body> <!-- Mirrored from htmldemo.net/makali/makali/cart.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 30 Sep 2022 10:31:31 GMT --> </html>