MMCT TEAM
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  ]

Current File : /home2/imyrqtmy/public_html/vaticaplus/my_order.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">Order</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

                                             $count = 1;

                                              $id = $_SERVER['REMOTE_ADDR'];

                                           $pro = "SELECT * FROM tbl_order WHERE loginid='$uid' ";

                                         $result=$con->query($pro);

                                           if($result->num_rows > 0)

                                           {

                                            ?>

                            <div class="table-content table-responsive mb-45">

                                <table>

                                    <thead>

                                        <tr>

                                            <th class="product-thumbnail">#</th>

                                            <th class="product-name">Status</th>

                                            <th class="product-price">Name</th>

                                            <th class="product-quantity">Email</th>

                                            <th class="product-subtotal">Phone No</th>

                                            <th class="product-remove">Total Price</th>

                                            <th class="product-subtotal"></th>



                                        </tr>

                                    </thead>

                                    <tbody>

                                                   <?php

                                               while($row = mysqli_fetch_array($result))

                                               {

                                                

                                                    $status = $row['status'];

                                           ?>

                                        <tr>

                                            <td><?php echo $count; ?></td>

                                            <td><?php

                                                    if ($status == '0') { ?>

                                                        <a  class=" text-primary">

                                                                <?php echo 'In Progress'; ?>

                                                            </a>

                                                    <?php }

                                                    elseif ($status == '1') { ?>



                                                        <a>

                                                            <?php echo 'Confirmed'; ?>

                                                            </a>

                                                        

                                                   <?php } 

                                                    elseif ($status == '2') { ?>



                                                        <a  class=" text-primary">

                                                                <?php echo 'Cancelled'; ?>

                                                            </a>

                                                        

                                                   <?php } 

                                                   elseif ($status == '3') { ?>



                                                        <a  class=" text-primary">

                                                                <?php echo 'Shipped'; ?>

                                                            </a>

                                                        

                                                   <?php } 



                                                   elseif ($status == '4') { ?>



                                                        <a  class=" text-primary">

                                                                <?php echo 'Deliverd'; ?>

                                                            </a>

                                                        

                                                   <?php } 

                                                   ?></td>

                                                   <td><?php echo $row['fname'] . $row['lname'] ; ?></td>

                                                 <td><?php echo $row['email']; ?></td>

                                                 <td><?php echo $row['phone']; ?></td>

                                                 <td><?php echo $row['total_p']; ?></td>

                                                 

                                            



                                            <td class="product-add-to-car "><a href="view.php?id=<?php echo $row['id']; ?>" class="wi" style="background: #2e8b57 none repeat scroll 0 0;">View</a></td>

                                        </tr>

                                       <?php

                                      $count++;

                                        } ?>

                                       

                                    </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 Orderlist 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