Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u615232177 ( 615232177)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/u615232177/domains/sabrinaluxebraidedwigs.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u615232177/domains/sabrinaluxebraidedwigs.com/public_html/order_details.php
<?php session_start();
$page_name = basename($_SERVER['PHP_SELF']); 
 include("headerstrict.php"); ?>
<?php 
if (isset($_GET['order_id'])){
	$order_id = mysqli_real_escape_string($con,$_GET['order_id']);
	$stmt = $con -> prepare('SELECT * FROM my_orders WHERE order_id=?');
	$stmt -> bind_param('s',$order_id);
	$stmt -> execute(); 
	$stmt -> store_result(); 
	$stmt -> bind_result($id,$user_id,$order_id,$total,$nice_date,$horrible_date,$status,$email_succesful,$email_delivered,$delivery_zone_complete,$payment_method); 
	$numrows = $stmt -> num_rows();
	if($numrows > 0){
		while ($stmt -> fetch()) { 

			$divided = explode('-',$delivery_zone_complete,2);
			$delivery_zone_id = $divided[0];
			$delivery_zone_fee = $divided[1];

		if($status=="Pending"){$status_color="red";}
		if($status=="Completed"){$status_color="forestgreen";}
		}
	}
	else{echo "<meta http-equiv=\"refresh\" content=\"0; url=index.php\">";exit();}
}
else{echo "<meta http-equiv=\"refresh\" content=\"0; url=index.php\">";exit();}
?>
<title><?php echo $company_name; ?> - Order no <?php echo $order_id; ?></title>

<!-- Title Page -->
	<section class="bg-title-page p-t-40 p-b-50 flex-col-c-m" style="background-image: url(images/banner-min.jpg);">
		<h2 class="l-text2 t-center">
		<div class='space_top'></div>
			Order No: <?php echo $order_id; ?>
		</h2>
	</section><br/>

<section class="team spad" style='background:white;'>
	<div class="container">
		<div class="row">
			<div class="col-lg-6">
<div class="billing">
<div class="checkout_title">Order Details</div><br/>
<?php 
	$stmt1 = $con -> prepare('SELECT * FROM cart_details WHERE order_id=?');
	$stmt1 -> bind_param('s',$order_id);
	$stmt1 -> execute(); 
	$stmt1 -> store_result(); 
	$stmt1 -> bind_result($id,$order_id,$product_id,$product_title,$product_price,$product_image,$qty); 
	$numrows1 = $stmt1 -> num_rows();
	if($numrows1 > 0){
		while ($stmt1 -> fetch()) { 
		echo"
		<a href='product_details.php?u=$product_id'>
		<img src='$admin_no/assets/img/products/$product_image' alt='' style='width:100px;height:100px;border-radius:5px;'><br/>
		<b>$product_title</b></a><br/>$currency";
		echo number_format($product_price);
		echo
		"
		<br/>Qty - $qty<hr/>";
		$total = $qty * $product_price;
		$total_array[] = $total;
		}
		echo"Status <span class='number_box' style='color:$status_color;'>$status</span><br/>";
		$grand_total = array_sum($total_array);
		$gt = $grand_total + $delivery_zone_fee;
		echo"	
		Subtotal<span class='number_box'>$currency";echo number_format($grand_total);echo"</span><br/>
		Shipping Fee<span class='number_box'>$currency";echo number_format($delivery_zone_fee);echo"</span><hr/>
		Total <span class='number_box the_color'>$currency";echo number_format($gt);echo"
		</span>";
	}
	else{echo "<meta http-equiv=\"refresh\" content=\"0; url=index.php\">";exit();}
?>
<br/><br/>
</div>
</div>
<div class="col-lg-3"></div>
		</div>
		

	</div>
</section>
<?php include("footer.php"); ?>

Al-HUWAITI Shell