-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
560 lines (513 loc) · 19.9 KB
/
index.php
File metadata and controls
560 lines (513 loc) · 19.9 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
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
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>GrandStay - Home</title>
<link rel="icon" href="images/logo/hotel-logo.avif">
<?php require('inc/links.php'); ?>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"/>
<style>
.availability-form{
margin-top: -50px;
z-index: 2;
position: relative;
}
@media screen and (max-width: 575px) {
.availability-form{
margin-top: 25px;
padding: 0 35px;
}
}
</style>
</head>
<body class="bg-light">
<?php require('inc/header.php'); ?>
<!-- Swiper -->
<div class="container-fluid px-lg-4 mt-4">
<div class="swiper swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="images/carousel/1.png" class="w-100 d-block">
</div>
<div class="swiper-slide">
<img src="images/carousel/2.png" class="w-100 d-block">
</div>
<div class="swiper-slide">
<img src="images/carousel/3.png" class="w-100 d-block">
</div>
<div class="swiper-slide">
<img src="images/carousel/4.png" class="w-100 d-block">
</div>
<div class="swiper-slide">
<img src="images/carousel/5.png" class="w-100 d-block">
</div>
<div class="swiper-slide">
<img src="images/carousel/6.png" class="w-100 d-block">
</div>
</div>
</div>
</div>
<!-- check Availability form -->
<div class="container availability-form">
<div class="row">
<div class="col-lg-12 bg-white shadow p-4 rounded">
<h5 class="mb-4">Check Booking Availability</h5>
<form>
<div class="row align-items-end">
<div class="col-lg-3 mb-3">
<label class="form-label" style="font-weight: 500;">Check In</label>
<input type="date" class="form-control shadow-none">
</div>
<div class="col-lg-3 mb-3">
<label class="form-label" style="font-weight: 500;">Check Out</label>
<input type="date" class="form-control shadow-none">
</div>
<div class="col-lg-3 mb-3">
<label class="form-label" style="font-weight: 500;">Adult</label>
<select class="form-select shadow-none">
<!-- <option selected>Open this secect menu</option> -->
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
<option value="4">four</option>
</select>
</div>
<div class="col-lg-3 mb-3">
<label class="form-label" style="font-weight: 500;">Children</label>
<select class="form-select shadow-none">
<!-- <option selected>Open this secect menu</option> -->
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
<option value="4">four</option>
</select>
</div>
<div class="cool-lg-2 mb-lg-3 mt-2">
<button type="submit" class="btn text-white shadow-none custom-bg">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- Room Cart -->
<H2 class="mt-4 pt-2 mb-4 text-center fw-bold h-font">Our Rooms</H2>
<div class="container">
<div class="row">
<?php
$room_res = select("SELECT * FROM `rooms` WHERE `status`=? AND `remove`=? ORDER BY id DESC LIMIT 3", [1, 0], 'ii');
while($room_data = mysqli_fetch_assoc($room_res))
{
// get feature of rooms
$fea_q = mysqli_query($con,"SELECT f.name FROM `features` f
INNER JOIN `room_features` rfea ON f.id = rfea.features_id
WHERE rfea.room_id = '$room_data[id]'");
$features_data = "";
while($fea_row = mysqli_fetch_assoc($fea_q)){
$features_data .="<span class='badge rounded-pill text-bg-light text-wrap me-1 mb-1'>
$fea_row[name]
</span>";
}
// get facilities of rooms
$fac_q = mysqli_query($con,"SELECT f.name FROM `facilities` f
INNER JOIN `room_facilities` rfac ON f.id = rfac.facilities_id
WHERE rfac.room_id = '$room_data[id]'");
$facilities_data = "";
while($fac_row = mysqli_fetch_assoc($fac_q)){
$facilities_data .="<span class='badge rounded-pill text-bg-light text-wrap me-1 mb-1'>
$fac_row[name]
</span>";
}
// Get thumbnail of the image
$room_thumb = ROOMS_IMG_PATH . "thumbnail.jpg"; // Default thumbnail
$thumb_q = mysqli_query($con, "SELECT `image` FROM `room_image`
WHERE `room_id` = '$room_data[id]' AND `thumb` = '1'");
if ($thumb_q && mysqli_num_rows($thumb_q) > 0) {
$thumb_res = mysqli_fetch_assoc($thumb_q);
if (!empty($thumb_res['image'])) {
$room_thumb = ROOMS_IMG_PATH . $thumb_res['image']; // Update with the actual thumbnail
}
}
$book_btn = "";
if(!$row['shutdown']){
$login=0;
if(isset($_SESSION['login']) && $_SESSION['login'] === true){
$login=1;
}
$book_btn = "<button onclick='checkLoginToBook($login,$room_data[id])' class='btn btn-sm text-white custom-bg shadow-none'>Book Now</button>";
}
// print room card
echo <<<data
<div class="col-lg-4 col-md-6 my-3">
<div class="card border-0 shadow" style="max-width: 350px; margin: auto; ">
<div id="roomCarousel" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item">
<img src="images/rooms/1.jpg" class="d-block w-100" >
</div>
<div class="carousel-item">
<img src="images/rooms/2.png" class="d-block w-100">
</div>
<div class="carousel-item">
<img src="images/rooms/3.png" class="d-block w-100" >
</div>
<div class="carousel-item">
<img src="images/rooms/4.png" class="d-block w-100" >
</div>
<div class="carousel-item">
<img src="images/rooms/5.png" class="d-block w-100" >
</div>
<div class="carousel-item active">
<img src="images/rooms/6.png" class="d-block w-100" >
</div>
<div class="carousel-item">
<img src="images/rooms/7.png" class="d-block w-100" >
</div>
<div class="carousel-item">
<img src="images/rooms/8.png" class="d-block w-100" >
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#roomCarousel" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#roomCarousel" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<div class="card-body">
<h5>$room_data[name]</h5>
<h6 class="mb-4">₹$room_data[price] /- per night</h6>
<div class="features mb-3">
<h6 class="mb-1">Features</h6>
$features_data
</div>
<div class="facilities mb-3">
<h6 class="mb-1">Facilities</h6>
$facilities_data
</div>
<div class="guest mb-3">
<h6 class="mb-1">Guest</h6>
<span class="badge rounded-pill text-bg-light text-wrap">
$room_data[adult] Adult
</span>
<span class="badge rounded-pill text-bg-light text-wrap">
$room_data[children] Children
</span>
</div>
<div class="rating mb-4">
<h6 class="mb-1">Rating</h6>
<span class="badge rounded-pill bg-light">
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
</span>
</div>
<div class="d-flex justify-content-evenly mb-2">
$book_btn
<a href="room_details.php?id=$room_data[id]" class="btn btn-sm btn-outline-dark shadow-none">More details</a>
</div>
</div>
</div>
</div>
data;
}
?>
<div class="col-lg-12 text-center mt-5">
<a href="rooms.php" class="btn btn-sm btn-outline-dark rounded-1 fw-bold shadow-none">More Rooms >>></a>
</div>
</div>
</div>
<!-- our facilities -->
<H2 class="mt-4 pt-2 mb-4 text-center fw-bold h-font">Our Facilities</H2>
<div class="container">
<div class="row justify-content-evenly px-lg-0 px-md-0 px-5">
<?php
$res = mysqli_query($con, "SELECT * FROM `facilities` ORDER BY id DESC LIMIT 5");
while($row = mysqli_fetch_assoc($res)){
echo<<<data
<div class="col-lg-2 col-md-2 text-center bg-white rounded shadow py-4 my-3">
<img src="images/features/facility.png" width="60px">
<h5 class="mt-3">$row[name]</h5>
</div>
data;
}
?>
<div class="col-lg-12 text-center mt-5">
<a href="facilities.php" class="btn btn-sm btn-outline-dark rounded-1 fw-bold shadow-none">More Facilities >>></a>
</div>
</div>
</div>
<!-- Testimonials -->
<H2 class="mt-4 pt-2 mb-4 text-center fw-bold h-font">Testimonials</H2>
<div class="container">
<!-- Swiper -->
<div class="swiper swiper-testimonials">
<div class="swiper-wrapper mb-5">
<div class="swiper-slide bg-white p-4">
<div class="profile d-flex align-item-center p-0">
<img src="images/features/star.svg" alt="">
<h6 class="m-5 ms-0">Mahesh Rao</h6>
</div>
<p>
"This is a fantastic hotel. Our rooms were very comfortable.
The hotel is convenient to the central area of Helsinki as well
as to the train station."
</p>
<div class="rating">
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
</div>
</div>
<div class="swiper-slide bg-white p-4">
<div class="profile d-flex align-item-center p-0">
<img src="images/features/star.svg" alt="">
<h6 class="m-5 ms-0">Pratyush Sao</h6>
</div>
<p>
"Great value for money stay near Helsinki station, location was fantastic,
place was clean, staff were friendly, breakfast was great."
</p>
<div class="rating">
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
</div>
</div>
<div class="swiper-slide bg-white p-4">
<div class="profile d-flex align-item-center p-0">
<img src="images/features/star.svg" alt="">
<h6 class="m-5 ms-0">Abhishek</h6>
</div>
<p>
"Beautiful stay!
Hotel Arthur is a perfect place to stay in Helsinki.
It is close to the center and the railway station.
The room was very pleasant."
</p>
<div class="rating">
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
</div>
</div>
<div class="swiper-slide bg-white p-4">
<div class="profile d-flex align-item-center p-0">
<img src="images/features/star.svg" alt="">
<h6 class="m-5 ms-0">Pratik Dhandare</h6>
</div>
<p>
"The hotel room was clean, nice and spacious. Breakfast offered with a wide variety of food.
The staff were friendly and helpful.
The location is just perfect for a walk around the city centre"
</p>
<div class="rating">
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
</div>
</div>
<div class="swiper-slide bg-white p-4">
<div class="profile d-flex align-item-center p-0">
<img src="images/features/star.svg" alt="">
<h6 class="m-5 ms-0">Vikas Dewangan</h6>
</div>
<p>
"Hospitality, kindness, cleanliness ans service were there as expected.
I can only advise you to continue this way same if
it would be nice to offer some croissants and pains au chocolats at the breakfast…"
</p>
<div class="rating">
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
</div>
</div>
<div class="swiper-slide bg-white p-4">
<div class="profile d-flex align-item-center p-0">
<img src="images/features/star.svg" alt="">
<h6 class="m-5 ms-0">Ayushi Sing</h6>
</div>
<p>
"Clean and comfy hotel in city centre
We had a wonderful stay in charming Hotel Arthur.
Staff was welcoming,"
</p>
<div class="rating">
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
</div>
</div>
<div class="swiper-slide bg-white p-4">
<div class="profile d-flex align-item-center p-0">
<img src="images/features/star.svg" alt="">
<h6 class="m-5 ms-0">Shubham</h6>
</div>
<p>
"Great hotel for our last night in Helsinki
We arrived before 12pm and we could have a room straight
away instead of just dropping the bags in the luggage area! Staff was friendly"
</p>
<div class="rating">
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
</div>
</div>
<div class="swiper-slide bg-white p-4">
<div class="profile d-flex align-item-center p-0">
<img src="images/features/star.svg" alt="">
<h6 class="m-5 ms-0">Sanskriti</h6>
</div>
<p>
"Clean and comfy hotel in city centre
We had a wonderful stay in charming Hotel Arthur.
Staff was welcoming,"
</p>
<div class="rating">
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
</div>
</div>
<div class="swiper-slide bg-white p-4">
<div class="profile d-flex align-item-center p-0">
<img src="images/features/star.svg" alt="">
<h6 class="m-5 ms-0">Vivek Yadav</h6>
</div>
<p>
"Very decent for a short city break. Excellent location,
central and well connected with tram/metro. Staff was welcoming,"
</p>
<div class="rating">
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
<i class="bi bi-star-fill text-warning"></i>
</div>
</div>
</div>
<div class="swiper-pagination"></div>
</div>
<div class="col-lg-12 text-center mt-5">
<a href="about.php" class="btn btn-sm btn-outline-dark rounded-1 fw-bold shadow-none">Know More >>></a>
</div>
</div>
<!-- Reach us -->
<?php
$contact_q = "SELECT * FROM `contact_details` WHERE `sr_no`=?";
$values = [1];
$contact_r = mysqli_fetch_assoc(select($contact_q,$values, 'i'));
?>
<H2 class="mt-4 pt-2 mb-4 text-center fw-bold h-font">Reach Us</H2>
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-8 p-4 mb-lg-0 mb-3 bg-white rounded">
<iframe class="w-100 rounded" height="320px" src="<?php echo $contact_r['iframe'] ?>" loading="lazy"></iframe>
</div>
<div class="col-lg-4 col-md-4">
<div class="bg-white p-5 rounded mb-4">
<!-- Call Us Section -->
<h5>Call Us</h5>
<a href="tel:+<?php echo $contact_r['pn1'] ?>" class="d-inline-block mb-2 text-decoration-none text-dark">
<i class="bi bi-telephone-fill"></i> +<?php echo $contact_r['pn1'] ?>
</a>
<br>
<?php
if($contact_r['pn2']!=''){
echo<<<data
<a href="tel: +$contact_r[pn2]" class="d-inline-block text-decoration-none text-dark">
<i class="bi bi-telephone-fill"></i> +$contact_r[pn2]
</a>
data;
}
?>
<!-- Follow Us Section -->
<h5 class="mt-4">Follow Us</h5>
<?php
if($contact_r['tw']!=''){
echo<<<data
<a href="$contact_r[tw]" class="d-inline-block mb-3">
<span class="badge bg-light text-dark fs-6">
<i class="bi bi-twitter"></i> Twitter</span>
</a>
<br>
data;
}
?>
<a href="<?php echo $contact_r['insta'] ?>" class="d-inline-block mb-3">
<span class="badge bg-light text-dark fs-6">
<i class="bi bi-instagram"></i> Instagram</span>
</a>
<br>
<a href="<?php echo $contact_r['fb'] ?>" class="d-inline-block mb-3">
<span class="badge bg-light text-dark fs-6">
<i class="bi bi-facebook"></i> facebook</span>
</a>
</div>
</div>
</div>
</div>
<?php require('inc/footer.php');?>
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
<script>
var swiper = new Swiper(".swiper-container", {
spaceBetween: 30,
effect: "fade",
loop: true,
autoplay: {
delay: 3500,
disableOnInteraction: false,
}
});
var swiper = new Swiper(".swiper-testimonials", {
effect: "coverflow",
grabCursor: true,
centeredSlides: true,
slidesPerView: "auto",
slidesPerView: "3",
loop: true,
coverflowEffect: {
rotate: 50,
stretch: 0,
depth: 100,
modifier: 1,
slideShadows: false,
},
pagination: {
el: ".swiper-pagination",
},
breakpoints: {
320: {
slidePerView: 1,
},
640: {
slidePerView: 1,
},
768: {
slidePerView: 3,
},
1024: {
slidePerView: 4,
},
}
});
document.getElementById('availabilityForm').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent the default form submission behavior
alert('Bookings available!');
});
</script>
</body>
</html>