-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOrderSummary.php
44 lines (43 loc) · 2.07 KB
/
OrderSummary.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php include "layout/header.php"; ?>
<?php include "layout/sidebar-left.php"; ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="css/OrderSummary.css" type="text/css" rel="stylesheet" media="all"/>
</head>
<body>
<div class="submit-order-mainbody">
<?php
$url = htmlspecialchars("Payment.php");
echo "<a href='".$url."'><font size='2em'><u><< Back</u></font></a>";
?>
<div class="checkout-status"><br/><br/></div>
<div class="review-order-prompt">Review and submit order</div>
<div class="review-order-body">
<form name="reviewOrderForm" action="OrderConfirmation.php">
<table class="review-order-table">
<?php
# Retrieve all user information
require_once("Includes/OrderSummaryOps.php");
OrderSummaryOps::getInstance()->displayShippingAddress($_SESSION);
OrderSummaryOps::getInstance()->displayShippingMethod();
OrderSummaryOps::getInstance()->displayPaymentMethod($_SESSION);
?>
</table>
<table class="review-order-table">
<?php
require_once("Includes/db.php");
$itemsTotal = BookDB::getInstance()->retrieveShoppingCartTotal($_SESSION["sessionId"]);
OrderSummaryOps::getInstance()->displayOrderSummary($itemsTotal);
?>
<tr class="review-order-table-body-align-right"><td></td><td>
<input class="review-order-button" name="placeYourOrder" type="submit" value="Place your order"/>
</td></tr>
</table>
<br style="clear: both">
</form>
</div>
</div>
</body>
</html>
<?php include "layout/footer.php"; ?>