-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment.jspx
212 lines (175 loc) · 6.56 KB
/
payment.jspx
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:directive.page contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"/>
<jsp:output doctype-root-element="html"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
omit-xml-declaration="true" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Mom&Pop Book Store Home</title>
<link rel="stylesheet" href="res/main.css" type="text/css"
charset="utf-8" />
<link rel="StyleSheet" href="res/payment.css" type="text/css"
title="cse4413" media="screen, print" />
<script type="text/javascript" src="res/validate_credit_card.js"><jsp:text /></script>
</head>
<body>
<form action="Start" method="POST">
<div id="banner">
<a href="home.jspx">
<img src="images/Banner.jpg" alt="Banner" width="250" height="100"></img>
</a>
<span id="banner2">
<img id="banner2" src="images/Banner2.jpg" alt="Banner" width="400" height="100"></img>
</span>
</div>
<ul>
<li><a href="/Project/">Home</a></li>
<li><a href="login.jspx">Log In</a></li>
<li>
<div class="dropdown">
<button class="dropbtn">Category</button>
<div class="dropdown-content">
<a href="scienceBooks.jspx">Science</a> <a href="fictionBooks.jspx">Fiction</a> <a href="engineeringBooks.jspx">Engineering</a>
</div>
</div>
</li>
<li id="searchbar" style="float: right"><input type="text"
id="search" placeholder="Search" name="searchValue"/> <input
type="submit" id="searchbutton" value="Search" name="searchSubmit" /></li>
<li style="float: right"><button id="cartsubmit" name="cartsubmit" value="0"><img src="images/cart.png" class="thumbnail" height="40" width="50" /></button></li> <li style="float: right"><a href="checkout.jspx">Checkout</a></li>
</ul>
<br />
<br />
<br />
<br />
<div class= "pay">
<form action = "Start" method = "POST">
<div class="input-group input-group-lg">
First Name: <input type="text" class="form-control"
placeholder="First Name" required="true" name="j_firstName" id="fname" />
</div>
<br />
<label name="firstNameError">${firstname_error}</label>
<span id="firstNameError"></span>
<br />
<div class="input-group input-group-lg">
Last Name: <input type="text" class="form-control"
placeholder="Last Name" required="true" name="j_lastName" id="lname" />
</div>
<br />
<label name="lastNameError">${lastname_error}</label>
<span id="lastNameError"></span>
<br />
<div class="input-group input-group-lg">
Credit Card Number: <input type="text" class="form-control"
placeholder="Card Number" required="true" name="j_card" id="card" onblur="isNumberKey(event)"/>
</div>
<br/>
<label name="cardError">${card_error}</label>
<span id="cardError"></span>
<br />
<div class="input-group input-group-lg">
Type: <br/>
<select>
<option value="Visa">Visa</option>
<option value="Master">MasterCard</option>
<option value="Amex">American Express</option>
</select>
</div>
<br/>
<div class="input-group input-group-lg">
Billing Address:
<input type="text" class="form-control"
placeholder="Street Address" required="true" name="j_Bstreet" id="bStreet" />
</div>
<br />
<label name="BStreetError">${billingstreet_error}</label>
<span id="BStreetError"></span>
<br />
<div class="input-group input-group-lg">
<input type="text" class="form-control"
placeholder="Province" required="true" name="j_Bprovince" id="bProvince" />
</div>
<br />
<label name="BProvinceError">${billingprovince_error}</label>
<span id="BProvinceError"></span>
<br />
<div class="input-group input-group-lg">
<input type="text" class="form-control"
placeholder="Country" required="true" name="j_Bcountry" id="bCountry" />
</div>
<br />
<label name="BCountryError">${billingcountry_error}</label>
<span id="BCountryError"></span>
<br />
<div class="input-group input-group-lg">
<input type="text" class="form-control"
placeholder="ZIP" required="true" name="j_Bzip" id="bZip" />
</div>
<br />
<label name="BZipError">${billingzip_error}</label>
<span id="BZipError"></span>
<br />
<div class="input-group input-group-lg">
<input type="text" class="form-control"
placeholder="Phone Number" required="true" name="j_Bphone" id="bPhone" />
</div>
<label name="BPhoneError">${billingphone_error}</label>
<span id="BZipError"></span>
<br />
<br/>
<div class="input-group input-group-lg">
Shipping Address:
<input type="text" class="form-control"
placeholder="Street Address" required="true" name="j_Sstreet" id="sStreet" />
</div>
<br />
<label name="SStreetError">${shippingstreet_error}</label>
<span id="SStreetError"></span>
<br />
<div class="input-group input-group-lg">
<input type="text" class="form-control"
placeholder="Province" required="true" name="j_Sprovince" id="sProvince" />
</div>
<br />
<label name="SProvinceError">${shippingprovince_error}</label>
<span id="SProvinceError"></span>
<br />
<div class="input-group input-group-lg">
<input type="text" class="form-control"
placeholder="Country" required="true" name="j_Scountry" id="sCountry" />
</div>
<br />
<label name="SCountryError">${shippingcountry_error}</label>
<span id="SCountryError"></span>
<br />
<div class="input-group input-group-lg">
<input type="text" class="form-control"
placeholder="ZIP" required="true" name="j_Szip" id="sZip" />
</div>
<br />
<label name="SZipError">${shippingzip_error}</label>
<span id="SZipError"></span>
<br />
<div class="input-group input-group-lg">
<input type="text" class="form-control"
placeholder="Phone Number" required="true" name="j_Sphone" id="sPhone" />
</div>
<br />
<label name="SPhoneError">${shippingphone_error}</label>
<span id="SZipError"></span>
<br />
<label name="addressError">${address_error}</label>
<span id="addressError"></span>
<br/>
<button type="submit" class="float" name="placeOrder" value="true">Place Order</button>
<br />
</form>
</div>
</form>
</body>
</html>
</jsp:root>