GIF89a
<?php ob_start(); ini_set('error_reporting', E_STRICT); include("session.php"); include("connect.php"); include("libs.php"); mysqli_set_charset($conn,'utf8'); date_default_timezone_set('Asia/Kolkata'); $sqlC="SELECT * FROM `incoming_order` WHERE `order_status`!='Delete' && `user_sr`='".$_COOKIE["user_id"]."' ORDER BY `sr` DESC"; $rsC=mysqli_query($conn,$sqlC); $chkC=mysqli_num_rows($rsC); if($chkC==0) { echo '<script>window.location.href="dashboard.php";</script>'; } ?> <!DOCTYPE html> <html> <?php include'head.php'; ?> <body> <?php include'header.php'; ?> <div onclick="closeNav()"> <div class="container no-gutters"> <div class="row row-spac no-gutters"> <div class="col-md-5 no-gutters" style="margin: auto;padding: 0px;"> <div class="container m-0 p-0"> <div class="row my-3"> <h5 class="my-2"><i class="bi bi-bag-check-fill text-dark fs-4"></i>My Orders</h5> <!-- <h6 class="mx-3">Delivery in 1-2 Days</h6> --> </div> <?php while($rowC=mysqli_fetch_array($rsC)){ $sqlP="SELECT * FROM `products` WHERE `sr`='".$rowC['prod_id']."'"; $rsP=mysqli_query($conn,$sqlP); $rowP=mysqli_fetch_assoc($rsP); ?> <div class="row my-3 bg-light rounded border" onclick="pageRedirect('myOrder.php?prod_id=<?php echo $rowC['sr']; ?>')"> <div class="col-3 py-3"> <figure class="figure my-3"> <img src="<?php echo "../admin.cpanel/".$rowP["image"]; ?>" class="figure-img img-fluid" style="max-width: 100%; height: auto"> </figure> </div> <div class="col-6 py-3"> <p class="latter-size fw-bold text-success m-0"><?php echo ucfirst($rowP["p_name"]); ?></p> <?php if($rowP["p_color"]<>""){ ?> <span class="card-link text-dark">Color : <?php echo ucfirst($rowP["p_color"]); ?></span><br> <?php } ?> <?php if($rowP["p_size"]<>""){ ?> <span class="card-link text-dark">Weight : <?php echo ucfirst($rowP["p_size"]); ?></span><br> <?php } ?> <span class="card-link text-dark fw-bold">Price : <?php echo totalPrice($rowC['prod_price'],$rowC['prod_qty']); ?></span> </div> <div class="col-3 py-3"> <div class="form-group text-center"> <label class="form-lable mb-1 ">QTY</label> <input type="number" name="" readonly="readonly" class="form-control" value="<?php echo $rowC['prod_qty']; ?>"> </div> </div> <span class="card-link text-dark fw-bold">Status : <?php echo findOrderStatus($rowC['order_status']); ?></span> </div> <?php } ?> </div> </div> </div> </div> <div class="container no-gutters mb-5"> <div class="row row-spac no-gutters"> <div class="col-md-5 no-gutters" style="margin: auto;padding: 0px;"> <!-- <img src="assest/images/banner/img-12.png" class="img-fluid mx-auto d-flex" style="height: auto; max-width: 90%;"> --> </div> </div> </div> </div> <?php include 'footer.php';?> <script> function myFunction() { var dots = document.getElementById("dots"); var moreText = document.getElementById("more"); var btnText = document.getElementById("myBtn"); if (dots.style.display === "none") { dots.style.display = "inline"; btnText.innerHTML = "Read more"; moreText.style.display = "none"; } else { dots.style.display = "none"; btnText.innerHTML = "Read less"; moreText.style.display = "inline"; } } </script> <script> function openNav() { document.getElementById("mySidebar").style.width = "250px"; document.getElementById("main").style.marginLeft = "250px"; } function closeNav() { document.getElementById("mySidebar").style.width = "0"; document.getElementById("main").style.marginLeft= "0"; } </script> </body> </html> <div id="snackbar"><span id="snack_msgg" style="color: white"></span></div>