MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.68
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/www/vaticaplus/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/www/vaticaplus/wishlist.php
<?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'; ?>
   <style type="text/css">
       .wi{
        background: #c7b270 none repeat scroll 0 0;
    color: #ffffff;
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto;
    padding: 10px 56px;
    text-transform: uppercase;
    width: 260px;
       }
   </style>
</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">Wishlist</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_wishlist 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>
                                            <th class="product-subtotal">add to cart</th>

                                        </tr>
                                    </thead>
                                    <tbody>
                                                   <?php
                                               while($row = mysqli_fetch_array($result))
                                               {
                                                
                                            //  print_r($row);  
                                              $pii = $row['pid'];
                                    $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>
                                            </td>
                                            <td class="product-price"><span class="amount"><i class="fa fa-rupee"></i> &nbsp;<?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> &nbsp;<?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>

                                                        <input type="hidden" name="wshid" id="wishid" value="<?php echo $row['id']; ?>">

                                            <td class="product-add-to-car "><a href="#" class="wi addtocart" style="background: #2e8b57 none repeat scroll 0 0;">add to cart</a></td>
                                        </tr>
                                       <?php
                                       $tot += $t;
                                        } ?>
                                       
                                    </tbody>
                                </table>
                            </div>
                            <!-- Table Content Start -->
                            <div class="row">
                                <!-- Cart Button Start -->
                                <div class="col-md-8 col-sm-12">
                                    <div class="buttons-cart">
                                        <!-- <input type="submit" value="Update Cart" /> -->
                                        <a href="index.php">Continue Shopping</a>
                                    </div>
                                </div>
                                <!-- Cart Button Start -->
                                <!-- Cart Totals Start -->
                               
                                <!-- Cart Totals End -->
                            </div>

                            

                        <?php }  else { ?>

                            <div style="text-align: center;">
                                <span>Your Wishlist 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_wish.php', 
                    data: {proid: id1 },
                    success: function(response) {
                          
                         if(response==1)
                           {
                            // $('#exampleModal').hide();
                            
                                toastr.success("Product has been Removed");

                                setTimeout(function () {
                            
                       window.location.href='wishlist.php';
                        }, 2000);
                                // window.location.href='cart.php';
                             
                           }
                           else
                           {
                                 alert(data);
                           }
                    }
                });
    });
     });
    </script>
     <script type="text/javascript">
        $(document).ready(function(){

     $(document).on('click','.addtocart', function(){
            // alert('k');

            

          
          var wishid = $('#wishid').val();
          
          
          $.ajax({  
                    type: 'POST',  
                    url: 'Ajax/addtocart_wish.php', 
                    data: {wishid: wishid },
                    success: function(response) {
                          
                         if(response==1)
                           {
                            // $('#exampleModal').hide();
                            
                                toastr.success("Product has been Added In To Cart");

                                setTimeout(function () {
                            
                      window.location.href='wishlist.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_qtywish.php', 
                    data: {aid: id1,qty: iqty },
                    success: function(response) {
                          
                         if(response==1)
                          {
                            // $('#exampleModal').hide();
                            
                                toastr.success("Wishlist Has Been Updated");

                                setTimeout(function () {
                            
                      window.location.href='wishlist.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>

MMCT - 2023