-
Notifications
You must be signed in to change notification settings - Fork 3
/
body.php
522 lines (497 loc) · 25.6 KB
/
body.php
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
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
<!-- Banner Content -->
<!--Banner-->
<section class="banner">
<!--Background-->
<div class="bg-parallax bg-1"></div>
<!--End Background-->
<div class="container">
<div class="logo-banner text-center">
<a href="" title="">
<img width="50%" src="images/gypsy-white.svg" alt="">
</a>
</div>
<div class="banner-cn">
<!-- Tabs Cat Form -->
<ul class="tabs-cat text-center row">
<li class="cate-item active col-xs-2">
<a data-toggle="tab" href="#form-hotel" title="">
<span>Hotel</span><img width="40px" src="images/icon-hotel.svg" alt=""></a>
</li>
<li class="cate-item col-xs-2">
<a data-toggle="tab" href="#form-flight" title="">
<span>Flight</span><img width="40px" src="images/icon-flight.svg" alt="">
</a>
</li>
<li class="cate-item col-xs-2">
<a data-toggle="tab" href="#form-car" title="">
<span>Car</span><img width="40px" src="images/icon-car.svg" alt=""></a>
</li>
<li class="cate-item col-xs-2">
<a data-toggle="tab" href="#form-bus" title="">
<span>Bus</span><img width="40px" src="images/icon-bus.svg" alt=""></a>
</li>
<li class="cate-item col-xs-2">
<a data-toggle="tab" href="#form-train" title="">
<span>Train</span><img width="40px" src="images/icon-train.svg" alt=""></a>
</li>
<li class="cate-item col-xs-2">
<a data-toggle="tab" href="#form-tour" title="">
<span>Packages</span><img width="40px" src="images/icon-tour.svg" alt=""></a>
</li>
</ul>
<!-- End Tabs Cat -->
<!-- Tabs Content -->
<div class="tab-content">
<!-- Search Hotel -->
<form method="post" class="form-cn form-hotel tab-pane active in" id="form-hotel">
<h2>Where would you like to go?</h2>
<div class="form-search clearfix">
<div class="form-field field-destination">
<label for="destination"><span>Destination:</span> Country, City, Airport, Area,
Landmark</label>
<input type="text" name="dest" id="destination" class="field-input">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Check in">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Check out">
</div>
<div class="form-field field-select">
<div class="select">
<span>Guest</span>
<select>
<option>Guest</option>
<option>1 Guest</option>
<option>2 Guest</option>
<option>3 Guest</option>
</select>
</div>
</div>
<div class="form-submit">
<button name="submit" type="submit" class="awe-btn awe-btn-lager awe-search">Search</button>
</div>
</div>
</form><?php
if (isset($_POST['submit'])) {
$value = $_POST['dest'];
} ?>
<!-- End Search Hotel -->
<!-- Search Car -->
<div class="form-cn form-car tab-pane" id="form-car">
<h2>Where would you like to go?</h2>
<div class="form-search clearfix">
<div class="form-field field-Picking">
<label for="Picking"><span>Picking up:</span> City, airport...</label>
<input type="text" id="Picking" class="field-input">
</div>
<div class="form-field field-droping">
<input type="text" class="field-input" placeholder="Droping off">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Pick up date">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Drop off date">
</div>
<div class="form-submit">
<button type="submit" class="awe-btn awe-btn-lager awe-search">Search</button>
</div>
</div>
</div>
<!-- End Search Car -->
<!-- Search Bus -->
<div class="form-cn form-car tab-pane" id="form-bus">
<h2>Where would you like to go?</h2>
<ul class="form-radio">
<li>
<div class="radio-checkbox">
<input type="radio" name="radio-2" id="radio-5" class="radio">
<label for="radio-1">AC</label>
</div>
</li>
<li>
<div class="radio-checkbox">
<input type="radio" name="radio-2" id="radio-6" class="radio">
<label for="radio-2">Non-AC</label>
</div>
</li>
</ul>
<div class="form-search clearfix" style="margin-top: 1px">
<div class="form-field field-Picking">
<label for="Picking"><span>Picking up:</span> City, airport...</label>
<input type="text" id="Picking" class="field-input">
</div>
<div class="form-field field-droping">
<input type="text" class="field-input" placeholder="Droping off">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Pick up date">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Drop off date">
</div>
<div class="form-submit">
<button type="submit" class="awe-btn awe-btn-lager awe-search">Search</button>
</div>
</div>
</div>
<!-- End Search BUS -->
<!-- Search Train-->
<div class="form-cn form-car tab-pane" id="form-train">
<h2>Where would you like to go?</h2>
<ul class="form-radio">
<li>
<div class="radio-checkbox">
<input type="radio" name="radio-2" id="radio-5" class="radio">
<label for="radio-4">AC</label>
</div>
</li>
<li>
<div class="radio-checkbox">
<input type="radio" name="radio-2" id="radio-6" class="radio">
<label for="radio-5">First Class</label>
</div>
</li>
<li>
<div class="radio-checkbox">
<input type="radio" name="radio-2" id="radio-5" class="radio">
<label for="radio-6">Second Class</label>
</div>
</li>
</ul>
<div class="form-search clearfix" style="margin-top: 1px">
<div class="form-field field-Picking">
<label for="Picking"><span>Picking up:</span> City, Station...</label>
<input type="text" id="Picking" class="field-input">
</div>
<div class="form-field field-droping">
<input type="text" class="field-input" placeholder="Droping off">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Pick up date">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Drop off date">
</div>
<div class="form-submit">
<button type="submit" class="awe-btn awe-btn-lager awe-search">Search</button>
</div>
</div>
</div>
<!-- End Search Train -->
<!-- Search Flight-->
<div class="form-cn form-flight tab-pane" id="form-flight">
<h2>Where would you like to go?</h2>
<div class="form-search clearfix">
<div class="form-field field-from">
<label for="flight-from"><span>Flight from:</span> Airport</label>
<input type="text" name="flightfrom" id="flight-from" class="field-input">
</div>
<div class="form-field field-to">
<label for="flight-to"><span>To :</span> Country, Airpor</label>
<input type="text" id="flight-to" class="field-input">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Departing">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Returning">
</div>
<div class="form-field field-select field-adult">
<div class="select">
<span>Adults</span>
<select>
<option>Adults</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
</div>
<div class="form-field field-select field-children">
<div class="select">
<span>Children</span>
<select>
<option>Children</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
</div>
<div class="form-submit">
<button type="submit" class="awe-btn awe-btn-medium awe-search">Search</button>
</div>
</div>
</div>
<!-- End Search Flight -->
<!-- Search Package -->
<div class="form-cn form-package tab-pane" id="form-tour">
<h2>Where would you like to go?</h2>
<ul class="form-radio">
<li>
<div class="radio-checkbox">
<input type="radio" name="radio-1" id="radio-1" class="radio">
<label for="radio-1">Flight + Hotel</label>
</div>
</li>
<li>
<div class="radio-checkbox">
<input type="radio" name="radio-1" id="radio-2" class="radio">
<label for="radio-2">Flight + Hotel +Car</label>
</div>
</li>
<li>
<div class="radio-checkbox">
<input type="radio" name="radio-1" id="radio-3" class="radio">
<label for="radio-3">Hotel +Car</label>
</div>
</li>
<li>
<div class="radio-checkbox">
<input type="radio" name="radio-1" id="radio-4" class="radio">
<label for="radio-4">Flight +Car</label>
</div>
</li>
</ul>
<div class="form-search clearfix">
<div class="form-field field-from">
<label for="filghtfrom"><span>Flight From:</span> Airport...</label>
<input type="text" id="filghtfrom" class="field-input">
</div>
<div class="form-field field-to">
<label for="flightto"><span>To:</span> Country, Airport</label>
<input type="text" id="flightto" class="field-input">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Departing">
</div>
<div class="form-field field-date">
<input type="text" class="field-input calendar-input" placeholder="Returning">
</div>
<div class="form-field field-select field-adults">
<div class="select">
<span>Adults</span>
<select>
<option>Adults</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
</div>
<div class="form-field field-select field-children">
<div class="select">
<span>Children</span>
<select>
<option>Children</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
</div>
<div class="form-submit">
<button type="submit" class="awe-btn awe-btn-medium awe-search">Search</button>
</div>
</div>
</div>
<!-- End Search Package -->
<!-- Search Tour-->
<div class="form-cn form-tour tab-pane" id="form-package">
<h2>Where would you like to go?</h2>
<div class="form-search clearfix">
<div class="form-field field-select field-region">
<div class="select">
<span>Region: <small>Wourldwide, africa..</small></span>
<select>
<option>Africa</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
</div>
<div class="form-field field-select field-country">
<div class="select">
<span>Country</span>
<select>
<option>Country</option>
<option>Viet Nam</option>
<option>Thai Lan</option>
</select>
</div>
</div>
<div class="form-field field-select field-style">
<div class="select">
<span>Tour Style</span>
<select>
<option>Style One</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
</div>
<div class="form-submit">
<button type="submit" class="awe-btn awe-btn-medium awe-search">Search</button>
</div>
</div>
</div>
<!-- End Search Tour -->
</div>
<!-- End Tabs Content -->
</div>
<!-- End Banner Content -->
</div>
</section>
<!--End Banner-->
<!-- Sales -->
<section class="sales">
<!-- Title -->
<div class="title-wrap">
<div class="container">
<div class="travel-title float-left">
<h2>Hot Sale Today: <span>Paris, Amsterdam, Saint Petersburg & more</span></h2>
</div>
<a href="#" title="" class="awe-btn awe-btn-5 awe-btn-lager arrow-right text-uppercase float-right">See
all</a>
</div>
</div>
<!-- End Title -->
<!-- Hot Sales Content -->
<div class="container">
<div class="sales-cn">
<div class="row">
<!-- HostSales Item -->
<?php
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$stmt = $conn->prepare("SELECT * FROM hotel WHERE location = ?");
$stmt->bind_param("s", $value);
$stmt->execute();
$result2 = $stmt->get_result();
while ($row = $result2->fetch_assoc()) {
?>
<div class="col-xs-6 col-md-3">
<div class="sales-item">
<figure class="home-sales-img">
<a href="" title="">
<img style="width:290px;height:290px;" src="images/deal/<? echo $row['image']; ?>"
alt="">
</a>
<figcaption>
Save <span>20</span>%
</figcaption>
</figure>
<div class="home-sales-text">
<div class="home-sales-name-places">
<div class="home-sales-name">
<a href="review/index.php?destination=<?php echo urlencode($row['name']); ?>"><?php echo $row['name']; ?></a>
</div>
<div class="home-sales-places">
<a href="#" title=""><? echo $row['location']; ?></a>
</div>
</div>
<div class="hotel-list-item hotel-text "><span class="hotel-star">
<i class="glyphicon glyphicon-star"></i>
<i class="glyphicon glyphicon-star"></i>
<i class="glyphicon glyphicon-star"></i>
<i class="glyphicon glyphicon-star"></i>
<i class="glyphicon glyphicon-star"></i>
</span>
<span class="rating">
<br>Good<br>
<span>7.5</span>
</span></div>
<hr class="hr">
<div class="price-box">
<span class="price old-price">From <del>$269</del></span>
<span class="price special-price">$<? echo $row['price']; ?><small>/night</small></span>
</div>
</div>
</div>
</div><? } ?>
<!-- End HostSales Item -->
</div>
</div>
</div>
<!-- End Hot Sales Content -->
</section>
<!-- End Sales -->
<!-- Confidence and Subscribe -->
<section class="confidence-subscribe">
<!-- Background -->
<div class="bg-parallax bg-3"></div>
<!-- End Background -->
<div class="container">
<div class="row cs-sb-cn">
<!-- Confidence -->
<div class="col-md-6">
<div class="confidence">
<h3>Book with confidence</h3>
<ul>
<li>
<span class="label-nb">01</span>
<h5>No booking charges</h5>
<p>We don't charge you an extra fee for booking a hotel room with us</p>
</li>
<li>
<span class="label-nb">02</span>
<h5>No cancellation fees</h5>
<p>We don't charge you a cancellation or modification fee in case plans change</p>
</li>
<li>
<span class="label-nb">03</span>
<h5>Instant confirmation</h5>
<p>Instant booking confirmation whether booking online or via the telephone</p>
</li>
<li>
<span class="label-nb">04</span>
<h5>Flexible booking</h5>
<p>You can book up to a whole year in advance until the moment of your stay</p>
</li>
</ul>
</div>
</div>
<!-- End Confidence -->
<!-- Subscribe -->
<div class="col-md-6">
<div class="subscribe">
<h3>Subscribe to our newsletter</h3>
<p>Enter your email address and we’ll send you our regular promotional emails, packed with
special offers, great deals, and huge discounts</p>
<!-- Subscribe Form -->
<div class="subscribe-form">
<form action="#" method="get">
<input type="text" name="" value="" placeholder="Your email" class="subscribe-input">
<button type="submit"
class="awe-btn awe-btn-5 arrow-right text-uppercase awe-btn-lager">subcrible
</button>
</form>
</div>
<!-- End Subscribe Form -->
<!-- Follow us -->
<div class="follow-us">
<h4>Follow us</h4>
<div class="follow-group">
<a href="" title=""><i class="fa fa-facebook"></i></a>
<a href="" title=""><i class="fa fa-twitter"></i></a>
<a href="" title=""><i class="fa fa-pinterest"></i></a>
<a href="" title=""><i class="fa fa-linkedin"></i></a>
<a href="" title=""><i class="fa fa-instagram"></i></a>
<a href="" title=""><i class="fa fa-google-plus"></i></a>
<a href="" title=""><i class="fa fa-digg"></i></a>
</div>
</div>
<!-- Follow us -->
</div>
</div>
<!-- End Subscribe -->
</div>
</div>
</section>
<!-- End Confidence and Subscribe -->