Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (36 sloc) 1.35 KB
<?php
require("../dbCon.php");
require("../commonFunctions.php");
$orderID = $_GET['orderID'];
//echo "Welcome " . $_SESSION["userName"] . "!";
?>
<html>
<head>
<link rel="stylesheet" href="../style.css">
</head>
<body>
<div id="header">
<ul id="menu" class="blue">
<li><a href="cDashboard.php">Home</a></li>
<li><a href="cEditProfile.php">Edit Profile</a></li>
<li><a href="cSearchProduct.php">Search Product</a></li>
<li><a href="cCreateOrder.php">Create Order</a></li>
<li><a href="cPayment.php">Payment</a></li>
<li><a href="cCart.php">Cart</a></li>
<li class="active"><a href="cPastOrders.php">Past Orders</a></li>
<li class='fRight'><a href="logout.php">Log Out</a></li>
</ul>
</div>
<div id='contentwrapper'>
<?php
if (orderCustomer($orderID) !== $_SESSION['CustomerID']){
echo "<h1>Cannot view another customer's order!</h1>";
}else{
displayOrders(0, $orderID);
echo "<hr>";
displayOrderDetails($orderID);
}
?>
</div>
</body>
</html>
You can’t perform that action at this time.