GIF89a php
Current File : /home/hencockfreshchic/public_html/app_old/myOrder.php
<?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');

if($_GET['prod_id']=="")
{
  echo '<script>window.location.href="allOrders.php";</script>';
}

?>
<!DOCTYPE html>
<html>

<?php include'head.php'; ?>
<body>
<?php include'header.php'; ?>
 
 <?php
    $sqlO="SELECT * FROM `incoming_order` WHERE `sr`='".$_GET['prod_id']."'";
    $rsO=mysqli_query($conn,$sqlO);
    while($rowO=mysqli_fetch_array($rsO)){

      $sqlP="SELECT * FROM `products` WHERE `sr`='".$rowO['prod_id']."'";
      $rsP=mysqli_query($conn,$sqlP);
      $rowP=mysqli_fetch_assoc($rsP);
 ?>
<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">
          <div class="row bg-light rounded mt-3">
            <div class="col-12">
              <small class="text-muted fw-light">Placed on <?php echo dateFormates($rowO['datee']); ?></small>
              <h5 class="text-success"><?php echo findOrderStatus($rowO['order_status']); ?> </h5>
            </div>
          </div>
          <div class="row bg-light rounded">
            <div class="col-12">
              <ul class="list-group list-group-flush mx-2" >
                <li class="list-group-item px-0 bg-light fw-light">
                <div class="float-start text-muted">
                  <h6 class="text-dark"><i class="bi bi-bag-check-fill text-success fs-6"></i> <?php echo ucfirst(orderType($rowO['order_type'])); ?></h6>
                </div>
                </li>
              </ul>
            </div>
          </div> 
          <div class="row my-3 bg-light rounded border">
            <div class="col-3 py-3">
              <figure class="figure my-3">
                 <img src="assest/images/img-3.png" 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>
               <span class="card-link text-dark">Size : <?php echo ucfirst($rowP["p_size"]); ?></span><br>
               <span class="card-link text-dark">Color : <?php echo ucfirst($rowP["p_color"]); ?></span><br>
               <span class="card-link text-dark fw-bold">Price : <?php echo $rowO['prod_price']; ?></span>
            </div>
            <div class="col-3 py-3 text-center">
              <span class="text-dark"><strong>RS</strong><br> <?php echo totalPrice($rowO['prod_price'],$rowO['prod_qty']); ?></span>
          </div>
        </div>
        <div class="row bg-light py-1 my-2">
          <h6 class="text-dark my-0">Order Details :</h6>
            <div class="col-12 rounded">
             <ul class="list-group list-group-flush mx-2">
                <li class="list-group-item px-0 bg-light fw-light">
                <div class="float-start text-muted"><small>Total Items</small></div>
                <div class="float-end text-muted"><small><?php echo $rowO['prod_qty']; ?></small> </div>
                </li>
                 <li class="list-group-item px-0 bg-light fw-light">
                <div class="float-start text-muted"><small>Order Id</small></div>
                <div class="float-end text-muted"><?php echo $rowO['order_id']; ?></div>
                </li>
                 
              </ul>
            </div>
          </div>
        </div>
       </div>
     </div>
   </div> 

</div>
 <?php } ?>




  <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>
<?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>