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/vssvclinic/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); include("./Admin/Includes/db.php"); ?> <!DOCTYPE html> <html lang="en"> <!-- Mirrored from preview.landinglayouts.com/templates/5652/shop.html by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 03 Dec 2023 07:49:15 GMT --> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <?php include "includes/title.php" ?> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/css/all.min.css"> <link rel="stylesheet" href="assets/css/font.css"> <link rel="stylesheet" href="assets/css/swiper.min.css"> <link rel="stylesheet" href="assets/css/style.css"> <link rel="shortcut icon" href="assets/imgs/favicon.png" type="image/x-icon"> </head> <body> <!-- main wrapper start --> <div class="ll-main-wrapper"> <!-- top header start --> <?php include "includes/header.php" ?> <!-- top header end --> <!-- main header start --> <!-- main header end --> <!-- breadcrumb start --> <div class="ll-breadcrumb"> <div class="container-fluid"> <div class="ll-breadcrumb-box"> <h1>Order</h1> <ul> <li><a href="index.php">Home</a></li> <li>Order</li> </ul> </div> </div> </div> <!-- breadcrumb end --> <!-- SERVICE start --> <div class="ll-product"> <div class="container"> <div class="ll-heading"> <img src="assets/imgs/Ayurveda-01.png" alt="image" class="img-fluid"/> <!-- <h1>Signup</h1> --> <!-- <h2>We Provide you one of the best Services</h2> --> </div> <!-- signup start --> <div> <div> <div> <div> <div> <div class="modal-content"> <div class="modal-body"> <h1 class="ll-login-title">Orders</h1> <table id="datatable-buttons" class="table table-bordered dt-responsive nowrap w-100"> <thead> <tr> <th>#</th> <th>Order Number</th> <th>Price</th> <th>Date</th> </tr> </thead> <tbody> <?php // Check if the user ID is provided in the URL if (isset($_SESSION['id'])) { $userid = $_SESSION['id']; // Fetch orders for the specified user ID $query = "SELECT * FROM orders WHERE userid = '$userid' ORDER BY id DESC"; $query_run = mysqli_query($con, $query); if(mysqli_num_rows($query_run) > 0) { foreach($query_run as $row) { ?> <style> a:hover { text-decoration: none; color: #0074ff; } .order_number a { color: #e60808; /* Red color for the link */ transition: 0.3s; /* Smooth transition for hover effects */ text-decoration: underline; /* Underlined text */ } .order_number a:hover { color: #162c10; /* Red color on hover (change this if you want another color) */ } </style> <tr> <td><?php echo $row['id']; ?></td> <td class="order_number"><a href="order_details.php?order_number=<?php echo $row['order_number']; ?>" ><?php echo $row['order_number']; ?></a></td> <td><?php echo $row['totalAmount']; ?></td> <td><?php echo $row['datetime']; ?></td> </tr> <?php } } else { // No orders found for the specified user echo '<tr><td colspan="4">No orders found for this user.</td></tr>'; } } else { // User ID not provided in the URL echo '<tr><td colspan="4">User ID not provided.</td></tr>'; } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <!-- signup end --> </div> </div> <!-- product end --> <!-- footer start --> <?php include "includes/footer.php" ?> <!-- copyright end --> </div> <!-- main wrapper end --> <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="assets/js/register.js"></script> --> </body> <!-- Mirrored from preview.landinglayouts.com/templates/5652/shop.html by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 03 Dec 2023 07:49:15 GMT --> </html>