94 lines
3.4 KiB
PHP
94 lines
3.4 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en" dir="ltr">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Home Page</title>
|
|
<link rel="stylesheet" href="./static/css/fontawesome.css">
|
|
<link rel="stylesheet" href="./static/css/style.css">
|
|
</head>
|
|
<body>
|
|
<div class="title-nav">
|
|
<h1 class="title">Hong Kong Cube Shop Shopping System</h1>
|
|
</div>
|
|
<div class="content-container">
|
|
<div class="nav">
|
|
<a href="profile">
|
|
<div class="profile-detials">
|
|
<i class="fas fa-user-alt fa-lg"></i>
|
|
<h3>Account</h3>
|
|
<p><?php echo $_SESSION['customer']['customerEmail']?></p>
|
|
</div>
|
|
</a>
|
|
<ol>
|
|
<li>
|
|
<a href="home" class="">
|
|
<span><i class="fas fa-shopping-bag fa-lg"></i>Order</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="" class="selected">
|
|
<span><i class="fas fa-history fa-lg"></i>Order Records</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="logout" class="logout">
|
|
<span><i class="fas fa-sign-out-alt fa-lg"></i>Logout</span>
|
|
</a>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
<div class="main">
|
|
<div class="content">
|
|
<div class="back-button">
|
|
<a href="orderhistory"><button type="button"><i class="fas fa-long-arrow-alt-left"></i> Back</button></a>
|
|
</div>
|
|
<?php $row = $data->getOrderInf()->fetch_array(MYSQLI_ASSOC)?>
|
|
<div class="order-detials">
|
|
<span>Order No: <?php echo $row['orderID'] ?></span>
|
|
<span>Order Date: <?php echo $row['orderDateTime'] ?></span>
|
|
</div>
|
|
<?php
|
|
$status = "Completed";
|
|
if($row['status'] != 3){
|
|
$status = ($row['status'] == 2)? "Awaiting" : "Delivery";
|
|
}
|
|
?>
|
|
<div class="status">Order <?php echo $status ?></div>
|
|
<br>
|
|
<div class="order-information">
|
|
<h4>Shop name: <?php echo $row["consignmentStoreName"] ?></h4>
|
|
<p>Shipment To:</p>
|
|
<p><?php echo $row["address"]?></p>
|
|
</div>
|
|
<div class="order-table">
|
|
<div class="order-table-heading">
|
|
<div class="order-table-head">Goods ID</div>
|
|
<div class="order-table-head">Goods Name</div>
|
|
<div class="order-table-head">Quantity</div>
|
|
<div class="order-table-head">Selling Price</div>
|
|
</div>
|
|
<div class="order-table-body">
|
|
<?php foreach($data->getOrderItem() as $itemRow){ ?>
|
|
<div class="order-table-row">
|
|
<div class="order-table-cell"><?php echo $itemRow["goodsNumber"] ?></div>
|
|
<div class="order-table-cell"><?php echo $itemRow["goodsName"] ?></div>
|
|
<div class="order-table-cell"><?php echo $itemRow["quantity"] ?></div>
|
|
<div class="order-table-cell">$<?php echo $itemRow["sellingPrice"] ?></div>
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
<table class="order-total">
|
|
<tr>
|
|
<td class="item-total">Total </td>
|
|
<td class="total">$<?php echo $row["totalPrice"] ?></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<footer><p>Hong Kong Cube Shop Shopping System © 2020</p></footer>
|
|
<script src="./static/js/initOrder.js"></script>
|
|
</body>
|
|
</html>
|