-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
354 lines (323 loc) · 16.2 KB
/
index.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
<?php
include "models/Room.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Grand Hotel</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="main.css">
<script src="https://kit.fontawesome.com/dbed6b6114.js" crossorigin="anonymous"></script>
<link rel = "icon" href = "images/logo.png" type = "image/png">
</head>
<body>
<!-- header -->
<header class = "header" id = "header">
<div class = "head-top">
<div class = "site-name">
<span>GEEKPROBIN</span>
</div>
<div class = "site-nav">
<span id = "nav-btn">MENU <i class = "fas fa-bars"></i></span>
</div>
</div>
<div class = "head-bottom flex">
<h2>NICE AND COMFORTABLE PLACE TO STAY</h2>
<p>Grand Hotel is a quiet, comfortable hotel located near the Ecological Sanctuary and the Monteverde Butterfly Gardens in an area called Cerro Plano, an ideal location half way between the Monteverde Cloud Forest reserve and the main village of the Monteverde area (Santa Elena), in close proximity to several restaurants and activities. All rooms have private bathrooms with hot water. </p>
<button type = "button" class = "head-btn">GET STARTED</button>
</div>
</header>
<!-- end of header -->
<!-- side navbar -->
<div class = "sidenav" id = "sidenav">
<span class = "cancel-btn" id = "cancel-btn">
<i class = "fas fa-times"></i>
</span>
<br>
<br>
<div class = "w-50 h-50" style="align-content: center;">
<img class="img-fluid rounded" src="images/bestprofilepic.jpg" alt="profile" >
</div>
<ul class = "navbar">
<li><a href = "#header">Home</a></li>
<li><a href = "#services">Services</a></li>
<li><a href = "#rooms">Rooms</a></li>
<li><a href = "#customers">Customers</a></li>
<li><a href = "#customers">Reservation in progress</a></li>
<li><a href = "#customers">Done reservation</a></li>
</ul>
<?php if(isset($_SESSION["id"]))
{
?>
<a href="logout.php" style="text-decoration:none;"><button class = "btn log-in">Log Out</button></a>
<?php }
else
{
?>
<a href="SignUp.php" style="text-decoration:none;"> <button class = "btn">Sign Up</button> </a>
<a href="login.php" style="text-decoration:none;"><button class = "btn log-in">Login</button></a>
<?php
}
?>
</div>
<!-- end of side navbar -->
<!-- fullscreen modal -->
<div id = "modal"></div>
<!-- end of fullscreen modal -->
<!-- body content -->
<section class = "services sec-width" id = "services">
<div class = "title">
<h2>services</h2>
</div>
<div class = "services-container">
<!-- single service -->
<article class = "service">
<div class = "service-icon">
<span>
<i class = "fas fa-utensils"></i>
</span>
</div>
<div class = "service-content">
<h2>Food Service/ Food Runner</h2>
<p>Full-service restaurants : fine dining restaurants, family restaurants, ethnic restaurants, casual restaurants. Catering & banqueting : catering companies, conference centers, wedding venues, festival food coordinators. Drinking establishments : bars, pubs, nightclubs, cabarets.</p>
<button type = "button" class = "btn">Know More</button>
</div>
</article>
<!-- end of single service -->
<!-- single service -->
<article class = "service">
<div class = "service-icon">
<span>
<i class = "fas fa-swimming-pool"></i>
</span>
</div>
<div class = "service-content">
<h2>Refreshment</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias blanditiis tempore officia accusamus asperiores. Illum maxime eligendi necessitatibus laudantium iste nisi pariatur doloremque ut illo similique voluptatum enim distinctio perferendis, ad ipsam aspernatur omnis rem autem ex, reiciendis corporis suscipit!</p>
<button type = "button" class = "btn">Know More</button>
</div>
</article>
<!-- end of single service -->
<!-- single service -->
<article class = "service">
<div class = "service-icon">
<span>
<i class = "fas fa-broom"></i>
</span>
</div>
<div class = "service-content">
<h2>Housekeeping</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias blanditiis tempore officia accusamus asperiores. Illum maxime eligendi necessitatibus laudantium iste nisi pariatur doloremque ut illo similique voluptatum enim distinctio perferendis, ad ipsam aspernatur omnis rem autem ex, reiciendis corporis suscipit!</p>
<button type = "button" class = "btn">Know More</button>
</div>
</article>
<!-- end of single service -->
<!-- single service -->
<article class = "service">
<div class = "service-icon">
<span>
<i class = "fas fa-door-closed"></i>
</span>
</div>
<div class = "service-content">
<h2>Room Security</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias blanditiis tempore officia accusamus asperiores. Illum maxime eligendi necessitatibus laudantium iste nisi pariatur doloremque ut illo similique voluptatum enim distinctio perferendis, ad ipsam aspernatur omnis rem autem ex, reiciendis corporis suscipit!</p>
<button type = "button" class = "btn">Know More</button>
</div>
</article>
<!-- end of single service -->
</div>
</section>
<!-- <div class = "book">
<form class = "book-form">
<div class = "form-item">
<label for = "checkin-date">Check In Date: </label>
<input type = "date" id = "chekin-date">
</div>
<div class = "form-item">
<label for = "checkout-date">Check Out Date: </label>
<input type = "date" id = "chekout-date">
</div>
<div class = "form-item">
<label for = "adult">Adults: </label>
<input type = "number" min = "1" value = "1" id = "adult">
</div>
<div class = "form-item">
<label for = "children">Children: </label>
<input type = "number" min = "1" value = "1" id = "children">
</div>
<div class = "form-item">
<label for = "rooms">Rooms: </label>
<input type = "number" min = "1" value = "1" id = "rooms">
</div>
<div class = "form-item">
<input type = "submit" class = "btn" value = "Book Now">
</div>
</form>
</div> -->
<section class = "rooms sec-width" id = "rooms">
<div class = "title">
<h2>rooms</h2>
</div>
<div class = "rooms-container">
<!-- single room -->
<?php
$rooms = Room::all();
foreach($rooms as $room)
{
?>
<article class = "room">
<div class = "room-image">
<img src = "images/img1.jpg" alt = "room image">
</div>
<div class = "room-text">
<h3><?= $room["name"]; ?></h3>
<ul>
<li>
<i class = "fas fa-arrow-alt-circle-right"></i>
Lorem ipsum dolor sit amet.
</li>
<li>
<i class = "fas fa-arrow-alt-circle-right"></i>
Lorem ipsum dolor sit amet.
</li>
<li>
<i class = "fas fa-arrow-alt-circle-right"></i>
Lorem ipsum dolor sit amet.
</li>
</ul>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Temporibus exercitationem repellendus maxime ullam tempore architecto provident unde expedita quam beatae, dolore eligendi molestias sint tenetur incidunt voluptas. Unde corporis qui iusto vitae. Aut nesciunt id iste, cum esse commodi nemo?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Nulla corporis quasi officiis cumque, fugiat nostrum sunt, tempora animi dicta laborum beatae ratione doloremque. Delectus odio sit eius labore, atque quo?</p>
<p class = "rate">
<span><?= $room["price"]; ?></span> Per Night
</p>
<button type = "button" class = "btn">book now</button>
</div>
</article>
<?php
}
?>
</div>
</section>
<section class = "customers" id = "customers">
<div class = "sec-width">
<div class = "title">
<h2>customers</h2>
</div>
<div class = "customers-container">
<!-- single customer -->
<div class = "customer">
<div class = "rating">
<span><i class = "fas fa-star"></i></span>
<span><i class = "fas fa-star"></i></span>
<span><i class = "fas fa-star"></i></span>
<span><i class = "fas fa-star"></i></span>
<span><i class = "far fa-star"></i></span>
</div>
<h3>We Loved it</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quaerat beatae veritatis provident eveniet praesentium veniam cum iusto distinctio esse, vero est autem, eius optio cupiditate?</p>
<img src = "images/cus1.jpg" alt = "customer image">
<span>Customer Name, Country</span>
</div>
<!-- end of single customer -->
<!-- single customer -->
<div class = "customer">
<div class = "rating">
<span><i class = "fas fa-star"></i></span>
<span><i class = "fas fa-star"></i></span>
<span><i class = "fas fa-star"></i></span>
<span><i class = "fas fa-star"></i></span>
<span><i class = "fas fa-star"></i></span>
</div>
<h3>Comfortable Living</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quaerat beatae veritatis provident eveniet praesentium veniam cum iusto distinctio esse, vero est autem, eius optio cupiditate?</p>
<img src = "images/cus2.jpg" alt = "customer image">
<span>Customer Name, Country</span>
</div>
<!-- end of single customer -->
<!-- single customer -->
<div class = "customer">
<div class = "rating">
<span><i class = "fas fa-star"></i></span>
<span><i class = "fas fa-star"></i></span>
<span><i class = "fas fa-star"></i></span>
<span><i class = "fas fa-star"></i></span>
<span><i class = "far fa-star"></i></span>
</div>
<h3>Nice Place</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quaerat beatae veritatis provident eveniet praesentium veniam cum iusto distinctio esse, vero est autem, eius optio cupiditate?</p>
<img src = "images/cus1.jpg" alt = "customer image">
<span>Customer Name, Country</span>
</div>
<!-- end of single customer -->
</div>
</div>
</section>
<!-- end of body content -->
<!-- footer -->
<footer class = "footer">
<div class = "footer-container">
<div>
<h2>About Us </h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Itaque sapiente mollitia doloribus provident? Eos quisquam aliquid vel dolorum, impedit culpa.</p>
<ul class = "social-icons">
<li class = "flex">
<i class = "fa fa-twitter fa-2x"></i>
</li>
<li class = "flex">
<i class = "fa fa-facebook fa-2x"></i>
</li>
<li class = "flex">
<i class = "fa fa-instagram fa-2x"></i>
</li>
</ul>
</div>
<div>
<h2>Useful Links</h2>
<a href = "#">Blog</a>
<a href = "#">Rooms</a>
<a href = "#">Subscription</a>
<a href = "#">Gift Card</a>
</div>
<div>
<h2>Privacy</h2>
<a href = "#">Career</a>
<a href = "#">About Us</a>
<a href = "#">Contact Us</a>
<a href = "#">Services</a>
</div>
<div>
<h2>Have A Question</h2>
<div class = "contact-item">
<span>
<i class = "fas fa-map-marker-alt"></i>
</span>
<span>
203 Fake St.Mountain View, San Francisco, California, USA
</span>
</div>
<div class = "contact-item">
<span>
<i class = "fas fa-phone-alt"></i>
</span>
<span>
<i class="fas fa-phone-alt">+84545 37534 48</i>
</span>
</div>
<div class = "contact-item">
<span>
<i class = "fas fa-envelope"></i>
</span>
<span>
</span>
</div>
</div>
</div>
</footer>
<!-- end of footer -->
<script src="script.js"></script>
</body>
</html>