-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
288 lines (252 loc) · 15.2 KB
/
index.php
File metadata and controls
288 lines (252 loc) · 15.2 KB
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
<?php
if(isset($_COOKIE['fname'])){
echo 'Thanks for booking with us '.$_COOKIE['fname']. '!<br>';
}
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Reservation Page - Walnut Ridge Wedding Rentals</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" href="setsStyles.css">
<meta name="robots" content="noindex, nofollow">
</head>
<body>
<header>
<a href="https://blueteam2022.greenriverdev.com/Wedding_Website/Main/">
<img alt="logo img" id="theLogo" src="logo.png"></a>
<div class="progress" style="height: 37px; width: 50%; ">
<div style="width: 20%; background-color:#d6b6ae" class="progress-bar">STEP 1/5: <br> Pick a Set</div>
</div>
<br>
</header>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<h1>Please Pick Your Set</h1><br>
<h4><center>Having trouble deciding which set to choose? </br> Check out our <a href="https://blueteam2022.greenriverdev.com/Wedding_Website_Sprint_3/reviews.php" target="_blank" rel="noopener noreferrer">love notes</a> (reviews) from previous customers to get an idea.</center></h4><br><br>
<!-- LINK TO GOOGLE REVIEWS
https://www.google.com/search?q=walnut+ridge+wedding+rentals&rlz=1C5CHFA_enUS959US959&oq=&aqs=chrome.0.69i59i450l8.649477j0j15&sourceid=chrome&ie=UTF-8#lrd=0x883737f3a133cd9b:0xeba696626c42da9e,1,,,
-->
</div>
</div>
<div id="reserve" ">
<em>Please fill out the following to reserve your order:</em>
</div>
<?php
// IF LAYERED ARCH WAS SELECTED PREVIOUSLY (from cookie) pre-select Layered Arch ---------
if (isset($_COOKIE['set']) && $_COOKIE['set'] == "Layered Arch") {
?>
<div class="container">
<form class="center" action="packages.php" method="post" id="setForm">
<div class="row">
<div class="col-4">
<input type="radio" checked id="lArch" name="set" value="Layered Arch">
<label for="lArch"><img src = "photos/JM1_5196.jpg" width = "100%" alt = "Layered Arch"></label><br>
<p class="text-center">Layered Arch</p>
</div>
<div class="col-4">
<input type="radio" id="modernRound" name="set" value="Modern Round">
<label for="modernRound"><img src = "photos/IMG_7338.jpg" width = "100%" alt = "Modern Round"></label><br>
<p class="text-center">Modern Round</p>
</div>
</div>
<div class="row">
<div class="col-4">
<input type="radio" id="vintageMirror" name="set" value="Vintage Mirror">
<label for="vintageMirror"><img src = "photos/_DSC0756.jpg" width = "100%" alt = "Vintage Mirror"></label><br>
<p class="text-center">Vintage Mirror</p>
</div>
<div class="col-4">
<input type="radio" id="DarkWalnut" name="set" value="Dark Walnut">
<label for="DarkWalnut" id="walnut"><img src = "photos/B98C3F0B-7C55-4FE1-A2ED-8698DA929605.jpg" width = "140%" alt = "Dark Walnut"></label><br>
<p class="text-center">Dark Walnut</p>
</div>
</div>
<div class="row-cols-4" id="rustic">
<input type="radio" id="rusticWood" name="set" value="Rustic Wood">
<label for="rusticWood"><img src = "photos/Donnie+Rosie+Photo-9449.jpg" width = "200%" alt = "Rustic Wood"></label>
<br>
<p class="text-center">Rustic Wood</p>
</div>
<?php }
// IF MODERN ROUND WAS SELECTED PREVIOUSLY (from cookie) pre-select Modern round---------
if (isset($_COOKIE['set']) && $_COOKIE['set'] == "Modern Round") { ?>
<div class="container">
<form class="center" action="packages.php" method="post" id="setForm">
<div class="row">
<div class="col-4">
<input type="radio" id="lArch" name="set" value="Layered Arch">
<label for="lArch"><img src = "photos/JM1_5196.jpg" width = "100%" alt = "Layered Arch"></label><br>
<p class="text-center">Layered Arch</p>
</div>
<div class="col-4">
<input type="radio" checked id="modernRound" name="set" value="Modern Round">
<label for="modernRound"><img src = "photos/IMG_7338.jpg" width = "100%" alt = "Modern Round"></label><br>
<p class="text-center">Modern Round</p>
</div>
</div>
<div class="row">
<div class="col-4">
<input type="radio" id="vintageMirror" name="set" value="Vintage Mirror">
<label for="vintageMirror"><img src = "photos/_DSC0756.jpg" width = "100%" alt = "Vintage Mirror"></label><br>
<p class="text-center">Vintage Mirror</p>
</div>
<div class="col-4">
<input type="radio" id="DarkWalnut" name="set" value="Dark Walnut">
<label for="DarkWalnut" id="walnut"><img src = "photos/B98C3F0B-7C55-4FE1-A2ED-8698DA929605.jpg" width = "140%" alt = "Dark Walnut"></label><br>
<p class="text-center">Dark Walnut</p>
</div>
</div>
<div class="row-cols-4" id="rustic">
<input type="radio" id="rusticWood" name="set" value="Rustic Wood">
<label for="rusticWood"><img src = "photos/Donnie+Rosie+Photo-9449.jpg" width = "200%" alt = "Rustic Wood"></label> <br>
<p class="text-center">Rustic Wood</p>
</div>
<?php }
// IF VINTAGE MIRROR WAS SELECTED PREVIOUSLY (from cookie) pre-select Vintage Mirror---------
if (isset($_COOKIE['set']) && $_COOKIE['set'] == "Vintage Mirror") { ?>
<div class="container">
<form class="center" action="packages.php" method="post" id="setForm">
<div class="row">
<div class="col-4">
<input type="radio" id="lArch" name="set" value="Layered Arch">
<label for="lArch"><img src = "photos/JM1_5196.jpg" width = "100%" alt = "Layered Arch"></label><br>
<p class="text-center">Layered Arch</p>
</div>
<div class="col-4">
<input type="radio" id="modernRound" name="set" value="Modern Round">
<label for="modernRound"><img src = "photos/IMG_7338.jpg" width = "100%" alt = "Modern Round"></label><br>
<p class="text-center">Modern Round</p>
</div>
</div>
<div class="row">
<div class="col-4">
<input type="radio" checked id="vintageMirror" name="set" value="Vintage Mirror">
<label for="vintageMirror"><img src = "photos/_DSC0756.jpg" width = "100%" alt = "Vintage Mirror"></label><br>
<p class="text-center">Vintage Mirror</p>
</div>
<div class="col-4">
<input type="radio" id="DarkWalnut" name="set" value="Dark Walnut">
<label for="DarkWalnut" id="walnut"><img src = "photos/B98C3F0B-7C55-4FE1-A2ED-8698DA929605.jpg" width = "140%" alt = "Dark Walnut"></label><br>
<p class="text-center">Dark Walnut</p>
</div>
</div>
<div class="row-cols-4" id="rustic">
<input type="radio" id="rusticWood" name="set" value="Rustic Wood">
<label for="rusticWood"><img src = "photos/Donnie+Rosie+Photo-9449.jpg" width = "200%" alt = "Rustic Wood"></label> <br>
<p class="text-center">Rustic Wood</p>
</div>
<?php }
// IF DARK WALNUT WAS SELECTED PREVIOUSLY (from cookie) pre-select DARK WALNUT---------
if (isset($_COOKIE['set']) && $_COOKIE['set'] == "Dark Walnut") { ?>
<div class="container">
<form class="center" action="packages.php" method="post" id="setForm">
<div class="row">
<div class="col-4">
<input type="radio" id="lArch" name="set" value="Layered Arch">
<label for="lArch"><img src = "photos/JM1_5196.jpg" width = "100%" alt = "Layered Arch"></label><br>
<p class="text-center">Layered Arch</p>
</div>
<div class="col-4">
<input type="radio" id="modernRound" name="set" value="Modern Round">
<label for="modernRound"><img src = "photos/IMG_7338.jpg" width = "100%" alt = "Modern Round"></label><br>
<p class="text-center">Modern Round</p>
</div>
</div>
<div class="row">
<div class="col-4">
<input type="radio" id="vintageMirror" name="set" value="Vintage Mirror">
<label for="vintageMirror"><img src = "photos/_DSC0756.jpg" width = "100%" alt = "Vintage Mirror"></label><br>
<p class="text-center">Vintage Mirror</p>
</div>
<div class="col-4">
<input type="radio" checked id="DarkWalnut" name="set" value="Dark Walnut">
<label for="DarkWalnut" id="walnut"><img src = "photos/B98C3F0B-7C55-4FE1-A2ED-8698DA929605.jpg" width = "140%" alt = "Dark Walnut"></label><br>
<p class="text-center">Dark Walnut</p>
</div>
</div>
<div class="row-cols-4" id="rustic">
<input type="radio" id="rusticWood" name="set" value="Rustic Wood">
<label for="rusticWood"><img src = "photos/Donnie+Rosie+Photo-9449.jpg" width = "200%" alt = "Rustic Wood"></label>
<br>
<p class="text-center">Rustic Wood</p>
</div>
<?php }
if (isset($_COOKIE['set']) && $_COOKIE['set'] == "Rustic Wood") { ?>
<div class="container">
<form class="center" action="packages.php" method="post" id="setForm">
<div class="row">
<div class="col-4">
<input type="radio" id="lArch" name="set" value="Layered Arch">
<label for="lArch"><img src = "photos/JM1_5196.jpg" width = "100%" alt = "Layered Arch"></label><br>
<p class="text-center">Layered Arch</p>
</div>
<div class="col-4">
<input type="radio" id="modernRound" name="set" value="Modern Round">
<label for="modernRound"><img src = "photos/IMG_7338.jpg" width = "100%" alt = "Modern Round"></label><br>
<p class="text-center">Modern Round</p>
</div>
</div>
<div class="row">
<div class="col-4">
<input type="radio" checked id="vintageMirror" name="set" value="Vintage Mirror">
<label for="vintageMirror"><img src = "photos/_DSC0756.jpg" width = "100%" alt = "Vintage Mirror"></label><br>
<p class="text-center">Vintage Mirror</p>
</div>
<div class="col-4">
<input type="radio" id="DarkWalnut" name="set" value="Dark Walnut">
<label for="DarkWalnut" id="walnut"><img src = "photos/B98C3F0B-7C55-4FE1-A2ED-8698DA929605.jpg" width = "140%" alt = "Dark Walnut"></label><br>
<p class="text-center">Dark Walnut</p>
</div>
</div>
<div class="row-cols-4" id="rustic">
<input type="radio" checked id="rusticWood" name="set" value="Rustic Wood">
<label for="rusticWood"><img src = "photos/Donnie+Rosie+Photo-9449.jpg" width = "200%" alt = "Rustic Wood"></label>
<br>
<p class="text-center">Rustic Wood</p>
</div>
<?php }
// IF COOKIE['set'] IS NOT SET - NO PRE-SELECTED OPTIONS
if (!isset($_COOKIE['set'])) { ?>
<div class="container">
<form class="center" action="packages.php" method="post" id="setForm">
<div class="row">
<div class="col-4">
<input type="radio" id="lArch" name="set" value="Layered Arch">
<label for="lArch"><img src = "photos/JM1_5196.jpg" width = "100%" alt = "Layered Arch"></label><br>
<p class="text-center">Layered Arch</p>
</div>
<div class="col-4">
<input type="radio" id="modernRound" name="set" value="Modern Round">
<label for="modernRound"><img src = "photos/IMG_7338.jpg" width = "100%" alt = "Modern Round"></label><br>
<p class="text-center">Modern Round</p>
</div>
</div>
<div class="row">
<div class="col-4">
<input type="radio" id="vintageMirror" name="set" value="Vintage Mirror">
<label for="vintageMirror"><img src = "photos/_DSC0756.jpg" width = "100%" alt = "Vintage Mirror"></label><br>
<p class="text-center">Vintage Mirror</p>
</div>
<div class="col-4">
<input type="radio" id="DarkWalnut" name="set" value="Dark Walnut">
<label for="DarkWalnut" id="walnut"><img src = "photos/B98C3F0B-7C55-4FE1-A2ED-8698DA929605.jpg" width = "140%" alt = "Dark Walnut"></label><br>
<p class="text-center">Dark Walnut</p>
</div>
</div>
<div class="row-cols-4" id="rustic">
<input type="radio" id="rusticWood" name="set" value="Rustic Wood">
<label for="rusticWood"><img src = "photos/Donnie+Rosie+Photo-9449.jpg" width = "200%" alt = "Rustic Wood"></label>
<br>
<p class="text-center">Rustic Wood</p>
</div>
<?php } ?>
<!--pre-populated calendar date value based on cookie input, and made input min = today; that way user is unable to book date in the past -->
<br><label for="date">Pick Your Date: </label><br>
<input type="date" name="date" value="<?php echo date($_COOKIE['date']); ?>" min="<?= date('Y-m-d'); ?>">
<br><br><input type="submit" id="button"><br><br>
</form>
</div>
</body>
</html>