-
Notifications
You must be signed in to change notification settings - Fork 0
/
orderPlaced.jsp
62 lines (52 loc) · 2.01 KB
/
orderPlaced.jsp
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.text.*"%>
<%@ page import="product.*"%>
<%@ page import="order.*"%>
<head >
<title>Order Summary</title>
<link rel="icon" type="image/png" href="css/images/favicon-16x16.png" sizes="16x16" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<script type="text/javascript" src="js/searchProduct.js"></script>
</head>
<body onload="init()">
<!-- Shell -->
<div class="shell">
<%@include file="global/header.jsp"%> <!-- include from gloabl -->
<div id="main">
<div class="cl"> </div>
<!-- Content -->
<div id="content">
<br>
<% ArrayList<orderInfo> Orders = new ArrayList<orderInfo>() ;%>
<%Orders = (ArrayList<orderInfo>)session.getAttribute("Orders");%>
<%orderInfo orderData = (orderInfo)Orders.get(0);%>
<%
String DATE_FORMAT = "MM/dd/yyyy";
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
String deliverydate = sdf.format(orderData.getDeliveryDate());
String purchasedate = sdf.format(orderData.getPurchaseDate());
%>
<br>
<br>
<h1>Your Order : <%=orderData.getOrderNumber()%> has been placed succesfully </h1>
<br>
<h2> You can track your order <a href="trackOrder.jsp">here</a> </h2>
<br>
<h2>The order will be delivered to : <br> <br>
<%=orderData.getShippingAddress()%> by <%=deliverydate%> <br><br>
<h2 style="text-transformation:none"> Thank you for shopping with us!! </h2>
<br>
<br>
</div>
<!-- End Content -->
<%@include file="global/sidebar.jsp"%> <!-- include from gloabl of sidebar before end main -->
</div>
<!-- End Main -->
<%@include file="global/footer.jsp"%> <!-- include from gloabl of footer before end shell -->
</div>
<!-- End Shell -->
</body>
</html>