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 (0750) :  /home2/imyrqtmy/public_html/lashadesigns/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/lashadesigns/order_details.php
<?php
session_start();
error_reporting(E_ERROR | E_PARSE);
$se = $_SESSION["id"];
if (!isset($_SESSION['id'])) {
    header("Location: login.php");
}
include("admin/includes/config.php");
 
?>


<!doctype html>
<html lang="en">
   <head>
   <link rel="stylesheet" type="text/css" href="css/plugins.css">
   <?php require "inc/head.php" ?>
   <body data-sidebar="dark">
    
      <div id="layout-wrapper">
       
       
       
         <!-- header -->
         <!-- header -->
      
         <div class="main-content">
    <div class="page-content">
        <div class="container-fluid">
            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                    </div>
                </div>
            </div>
            <div class="row justify-content-center"> <!-- Centering the content -->
                <div class="col-lg-8"> <!-- Using 6 columns -->
                    <div class="card">
                        <div class="card-body">
                            <div class="invoice-title">
                                <div style="border-bottom: 1px solid;">
                                    <div class="md-4" style="height: 76px;">
                                        <img src="images/logo/lasha.png" class="img_invoce" alt="logo" height="97" style="padding-top: 3px; position: absolute; padding-left: 278px; height: 99px; margin-top: -17px;">
                                        <!-- position: absolute; -->
                                    </div>
                                    <div class="md-4">
                                        <h2 class="font-size-14 table-heading" ></h2>
                                    </div>
                                    <!-- <p class="gst">GST NO: 1234567890</p> -->
                                </div>
                                
                            </div>
                            <?php     
                                $order_number = $_GET['order_number'];
                                // order_number

                                // if (isset($_SESSION['id'])) {
                                //     $se = $_SESSION['id'];
                                   

                                $query = "SELECT * FROM `tbl_orders` WHERE order_number ='$order_number'";
                                    $query_run = mysqli_query($conn, $query);
                                    
                                    if(mysqli_num_rows($query_run) > 0) {
                                        foreach($query_run as $row) {    
                            ?>
                            <div class="table-responsive" style="border-bottom: 1px solid;">
                                <table class="table table-nowrap">
                                    <thead>
                                    </thead>
                                    <tbody>
                                        <tr>
                                        <!-- <?php echo $row['order_number']; ?> -->
                                            <td style="border-bottom-width: 0px;"> <strong> Order Number : </strong><?php echo $row['order_number'] ?></td>
                                            <!-- <?php echo $row['datetime']; ?> -->
                                             <td style="border-bottom-width: 0px;"> <strong> Date : </strong> <?php echo $row['created_at'] ?> </td>
                                        </tr>
                                        <tr>
                                        <?php echo $row['totalAmount']; ?>
                                        <td style="border-bottom-width: 0px;"> <strong> Order Amount : </strong> <?php echo $row['total_amt'] ?>  </td>
                                        </tr>

                                    </tbody>
                                </table>
                            </div>

                            <?php 
                        }} 
                    // }
                        ?>

                                   <?php

                                        if (isset($_SESSION['id'])) {
                                        $se = $_SESSION['id'];
                                        } else {
                                        $se = null;
                                        }
                                        $query = "SELECT * FROM user_address where user_id ='$se' ORDER BY id DESC LIMIT 1";
                                        $result = mysqli_query($conn, $query);
                                        
                                        if(mysqli_num_rows($result) > 0){
                                        foreach($result as $row){    
                                    ?>

                            <div class="table-responsive" style="border-bottom: 1px solid;">
                                <table class="table table-nowrap">
                                    <thead>
                                    </thead>
                                    <tbody>
                                        
                                        <tr>
                                            <td style="border-bottom-width: 0px;"><strong> Name : </strong> <?php echo $row['name']; ?> </td>
                                            <td style="border-bottom-width: 0px;"><strong>Email : </strong> <?php echo $row['email']; ?></td>
                                        </tr>
                                        <tr>
                                            <td style="border-bottom-width: 0px;"><strong> Phone : </strong> <?php echo $row['mobile']; ?></td>
                                            <td style="border-bottom-width: 0px;"> <strong> Address : </strong> <?php echo $row['address']; ?> </td>
                                        </tr>
                                        <tr>
                                            <td style="border-bottom-width: 0px;"><strong> City : </strong> <?php echo $row['district']; ?></td>
                                            <td style="border-bottom-width: 0px;"><strong> State : </strong> <?php echo $row['state']; ?></td>
                                            <!-- <td style="border-bottom-width: 0px;"> <strong> Zip Code : </strong> <?php echo $row['pincode']; ?>	 </td> -->
                                        </tr>
                                        <tr>
                                            <!-- <td style="border-bottom-width: 0px;"><strong> State : </strong> <?php echo $row['state']; ?></td> -->


                                         
                                        </tr>
                                    </tbody>
                                </table>
                           
                            </div>

                            <?php }} ?>
                            <div class="table-responsive " >
                                <table >
                                    <thead>
                                    </thead>
                                    <tbody>
                                        <tr class="footer-table">
                                            <td  style="padding: 8px; font-weight: bold;">
                                                <strong class="foot">+91 99XXXX000</strong><br>
                                            </td>
                                            <td  style="padding: 8px; font-weight: bold;">
                                                <ul>
                                                    <strong class="foot">info@gmail.com</strong>
                                                </ul>
                                            </td>
                                            <td  style="padding: 8px;     font-weight: bold;">
                                                <strong class="foot">New Delhi</strong>
                                            </td>
                                         
                                        </tr>
                                        <tr>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="d-print-none">
                                <div class="float-end">
                                    <a href="javascript:window.print()" class="btn btn-success waves-effect waves-light me-1">Print</a>
                                    <!-- <i class="fa fa-print"></i> -->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- end row -->
        </div>
        <!-- container-fluid -->
    </div>
    <!-- End Page-content -->
    <!-- footer -->
</div>

         <!-- end main content-->
      </div>
      <!-- END layout-wrapper -->
      <!-- Right Sidebar -->
      <!-- /Right-bar -->
      <!-- Right bar overlay-->
      <div class="rightbar-overlay"></div>
      <?php include 'admin/includes/bscript.php'; ?>
      <!-- <script src="assets/js/jquery.min.js"></script>
      <script src="assets/js/bootstrap.min.js"></script>
      <script src="assets/js/SmoothScroll.min.js"></script>
      <script src="assets/js/swiper.min.js"></script>
      <script src="assets/js/custom.js"></script> -->

      <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.min.js"></script>
    <script src="js/swiper-bundle.min.js"></script>
    <script src="js/carousel.js"></script>
    <script src="js/bootstrap-select.min.js"></script>
    <script src="js/lazysize.min.js"></script>
    <script src="js/count-down.js"></script>
    <script src="js/wow.min.js"></script>
    <script src="js/multiple-modal.js"></script>

    <script src="js/main.js"></script>
   </body>
</html>

MMCT - 2023