-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart_details.html
329 lines (327 loc) · 13.7 KB
/
cart_details.html
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!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" xml:lang="en" lang="en">
<head>
<title>Cart Details</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript" src="order.js"></script>
<script type="text/javascript" src="ajax_populate.js"></script>
<script type="text/javascript" src="shopping_cart.js"></script>
<link href='https://fonts.googleapis.com/css?family=Oswald:300' rel='stylesheet' type='text/css' />
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css' />
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Russo+One" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="mycss.css" />
</head>
<body>
<div class="jumbotron">
<div class="container text-center">
<h1>Bertha's Deluxe Chocolates</h1>
<p>Let us sweeten your day</p>
</div>
</div>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://www.sdsu.edu/">SDSU</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li><a href="./index.html">Home</a></li>
<li><a href="./products.html">Products</a></li>
<li><a href="./cart_details.html">Order Online</a></li>
<li><a href="./about.html">About Us </a></li>
<li><a href="./contact.html">Contact Us</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="active"><a id='cart_a_href' href="./cart_details.html">Your Cart: <span id="count" class="glyphicon glyphicon-shopping-cart"> 0</span></a></li>
</ul>
</div>
</div>
</nav>
<div id="emptyCardBox"></div>
<div id="cart"></div>
<div class="clearing_class"></div>
<div><input type="button" class="order_button_class" value="Order Now" id="order_button" /></div>
<div class="clearing_class"></div>
<div id="dialog-modal" class="widget-dialog-container" title="Complete Your Order">
<form method="post" class="form_order" action="/perl/jadrn028/proj4/reading_cookie.cgi">
<div id="errorBox"></div>
<br />
<table class="dialog-table">
<legend>Billing Address</legend>
<tr>
<td>First Name:</td>
<td><input type="text" name="fname_b" tabindex="1" maxlength="20" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" name="lname_b" tabindex="2" maxlength="20" /></td>
</tr>
<tr>
<td>Address:</td>
<td><Input type="text" name="address1_b" tabindex="3" /></td>
</tr>
<tr>
<td>Address2:</td>
<td><Input type="text" name="address2_b" tabindex="4" /></td>
</tr>
<tr>
<td>State:</td>
<td> <fieldset>
<label class="state_class">
<select name="state_b" tabindex="5">
<option value="none">Select a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA" selected="selected">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District Of Columbia</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select></label> </td>
</fieldset>
</tr>
<tr>
<td>City:</td>
<td><Input type="text" name="city_b" tabindex="6" maxlength="30" /></td>
</tr>
<tr>
<td>Zip:</td>
<td><Input type="text" name="zip_b" tabindex="7" maxlength="5" /></td>
</tr>
<tr>
<td>Phone:</td>
<td><Input type="text" name="phone_b" id = "phone_b_id" placeholder="##########" maxlength="10" tabindex="8" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<br />
<div>
<legend>Shipping Address</legend>
<label class="container">Same as Billing Address
<input type="checkbox" id="checkbox_address">
<span class="checkmark"></span>
</label>
</div>
<table class="dialog-table">
<tr>
<td>First Name:</td>
<td><input type="text" name="fname_s" tabindex="9" maxlength="20" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" name="lname_s" tabindex="10" /></td>
</tr>
<tr>
<td>Address:</td>
<td><Input type="text" name="address1_s" tabindex="11" /></td>
</tr>
<tr>
<td>Address2:</td>
<td><Input type="text" name="address2_s" tabindex="12" /></td>
</tr>
<tr>
<td>State:</td>
<td> <fieldset>
<label class="state_class">
<select name="state_s" tabindex="13">
<option value="none">Select a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA" selected="selected">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District Of Columbia</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select></label> </td>
</fieldset>
</tr>
<tr>
<td>City:</td>
<td><Input type="text" name="city_s" tabindex="14" maxlength="30" /></td>
</tr>
<tr>
<td>Zip:</td>
<td><Input type="text" name="zip_s" tabindex="15" maxlength="5" /></td>
</tr>
<tr>
<td>Phone:</td>
<td><Input type="text" name="phone_s" id = "phone_s_id" placeholder="##########" maxlength="10" tabindex="16" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<br />
<table class="dialog-table">
<legend>Payment Details</legend>
<tr>
<td>Payment Type:</td>
<td>
<input type="radio" name="payment_type" value="Visa" tabindex="17"> Visa
<input type="radio" name="payment_type" value="Mastercard" tabindex="18"> Mastercard
<input type="radio" name="payment_type" value="Discover" tabindex="19"> Discover
<input type="radio" name="payment_type" value="AmericanExpress" tabindex="20"> American Express
</td>
</tr>
<tr>
<td>Card Number</td>
<td><input type="text" name="card_number" tabindex="21" maxlength="16" /></td>
</tr>
<tr>
<td>Expiration Month:</td>
<td><fieldset>
<label class="dropdown_class">
<select name="month_card" tabindex="22">
<option value="none">Select a month</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select></label></td></fieldset>
</tr>
<tr>
<td>Expiration Year:</td>
<td><fieldset>
<label class="dropdown_class">
<select name="year_card" tabindex="23">
<option value="none">Select a year</option>
<option value="2017">2017</option>
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
<option value="2025">2025</option>
<option value="2026">2026</option>
<option value="2027">2027</option>
<option value="2028">2028</option>
</select></label></td></fieldset>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><input type="reset" /></td>
<td><input type="submit" class="ui-button" value="Submit Order"/></td>
</tr>
</table>
</form>
</div>
</body>
</html>