-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
501 lines (487 loc) · 19.1 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
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script type="text/javascript" src="bootstrap/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script src="https://use.fontawesome.com/cc6df5477b.js"></script>
<title>Navita</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!-- Responsive Navigation Bar -->
<nav class="navbar navbar-inverse navbar-fixed-top ">
<div class="container">
<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="index.php">Navita</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li><a href="index.php">Home</a></li>
<li><a href="#">List of PG's</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#" id="login"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
<li><a href="signup.php"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
</ul>
</div>
</div>
</nav>
<!-- Login call -->
<div id="logindiv" class="modal">
<form class="modal-content animate" action="#" method="post">
<div class="imgcontainer">
<span class="close" title="Close">×</span>
<img src="img/avatar1.jpg" alt="Avatar" class="avatar">
</div>
<div class="container1">
<label><b>Email</b></label>
<input type="email" placeholder="Enter Email" name="email" required>
<label><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password" required>
<button type="submit" name="login">Login</button>
<input type="checkbox" checked="checked"> Remember me
</div>
<div class="container1" id="loginbottom">
<button type="button" class="cancelbtn">Cancel</button>
<span class="password">Forgot <a href="#">password?</a></span>
</div>
</form>
<?php
//php login validation
$servername = "localhost";
$username = "root";
$password = "burnitdown";
$dbname = "navita";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error)
die("Connection failed: ". $conn->connect_error);
if (isset($_POST['login']))
{
$email = mysqli_real_escape_string($conn,$_POST['email']);
$password = mysqli_real_escape_string($conn,$_POST['password']);
$hashed_password = hash("sha256",$password);
$sql = "SELECT email,password FROM users WHERE email='$email' AND password='$hashed_password' ";
$result = mysqli_query($conn,$sql);
if (mysqli_num_rows($result))
{
header("Location:dashboard.php");
}
else
{
echo "Invalid credentials";
}
}
?>
</div>
<!-- Introduction of website -->
<div id="introduction">
<div class="wrapper">
<div class="container">
<div class="introtext">
<h2>Some text about navita</h2>
<h3>Some more text</h3>
</div>
<div class=searchbox>
<p><b>Search bar to be completed soon </b></p>
</div>
<div class="top-reviews">
<div class="row1" id="user1">
<div class="col-3">
<img src="img/user1.jpg" alt="user image 1"><br><br>
<p><b>User name 1</b></p>
</div>
<div class=col-9>
<p class="color-orangered">Navita rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
<div class="row1" id="user2">
<div class="col-3">
<img src="img/user2.jpg" alt="user image 2"><br><br>
<p><b>User name 2</b></p>
</div>
<div class=col-9>
<p class="color-orangered">Navita rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
<div class="row1" id="user3">
<div class="col-3">
<img src="img/user3.jpg" alt="user image 3"><br><br>
<p><b>User name 3</b></p>
</div>
<div class=col-9>
<p class="color-orangered">Navita rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
<div class="review-selector">
<div class="container">
<span id="review1" class="active">•</span>
<span id="review2" class="">•</span>
<span id="review3" class="">•</span>
</div>
</div>
</div>
</div>
</div>
<!-- requirements -->
<div class="requirements">
<div class="container">
<div class="row1">
<div class="col-3">
<div><center><a href="#"><h4><i class="fa fa-file-text-o"></i> Rental Aggrement</h4></a></center></div>
</div>
<div class="col-6">
<div><center><a href="#"><h4>Tell us your requirements</h4></a></center></div>
</div>
<div class="col-3">
<div><center><a href="#"><h4>Write a review</h4></a></center></div>
</div>
</div>
</div>
</div>
<!-- Trending properties -->
<div class="trending-properties all-heading">
<div class="container">
<div class="page-header">
<h2>Trending Properties</h2>
</div>
<div class="w3-content w3-display-container">
<div class="trending-properties-1">
<div class="row1">
<div class="col-4 mySlides" id="tp1">
<h5><b>Boys CoHo 1</b></h5>
<p><i class="fa fa-map-marker"></i> Location</p>
<p><i class="fa fa-rupee"></i> Money</p>
<img src="img/tp1.jpg" width="100%"> <!-- Replace images, images copied from zocalo -->
</div>
<div class="col-4 mySlides" id="tp2">
<h5><b>Boys CoHo 2</b></h5>
<p><i class="fa fa-map-marker"></i> Location</p>
<p><i class="fa fa-rupee"></i> Money</p>
<img src="img/tp2.jpg" width="100%">
</div>
<div class="col-4 mySlides" id="tp3">
<h5><b>Boys CoHo 3</b></h5>
<p><i class="fa fa-map-marker"></i> Location</p>
<p><i class="fa fa-rupee"></i> Money</p>
<img src="img/tp3.jpg" width="100%">
</div>
</div>
</div>
<div class="trending-properties-1">
<div class="row1">
<div class="col-4 mySlides" id="tp4">
<h5><b>Boys CoHo 4</b></h5>
<p><i class="fa fa-map-marker"></i> Location</p>
<p><i class="fa fa-rupee"></i> Money</p>
<img src="img/tp2.jpg" width="100%"> <!-- Replace images, images copied from zocalo -->
</div>
<div class="col-4 mySlides" id="tp5">
<h5><b>Boys CoHo 5</b></h5>
<p><i class="fa fa-map-marker"></i> Location</p>
<p><i class="fa fa-rupee"></i> Money</p>
<img src="img/tp3.jpg" width="100%">
</div>
<div class="col-4 mySlides" id="tp6">
<h5><b>Boys CoHo 6</b></h5>
<p><i class="fa fa-map-marker"></i> Location</p>
<p><i class="fa fa-rupee"></i> Money</p>
<img src="img/tp1.jpg" width="100%">
</div>
</div>
</div>
<div class="trending-properties-1">
<div class="row1">
<div class="col-4 mySlides" id="tp7">
<h5><b>Boys CoHo 7</b></h5>
<p><i class="fa fa-map-marker"></i> Location</p>
<p><i class="fa fa-rupee"></i> Money</p>
<img src="img/tp3.jpg" width="100%"> <!-- Replace images, images copied from zocalo -->
</div>
<div class="col-4 mySlides" id="tp8">
<h5><b>Boys CoHo 8</b></h5>
<p><i class="fa fa-map-marker"></i> Location</p>
<p><i class="fa fa-rupee"></i> Money</p>
<img src="img/tp1.jpg" width="100%">
</div>
<div class="col-4 mySlides" id="tp9">
<h5><b>Boys CoHo 9</b></h5>
<p><i class="fa fa-map-marker"></i> Location</p>
<p><i class="fa fa-rupee"></i> Money</p>
<img src="img/tp2.jpg" width="100%">
</div>
</div>
</div>
<button class="w3-button w3-display-left" onclick="plusDivs(-1)">❮</button>
<button class="w3-button w3-display-right" onclick="plusDivs(1)">❯</button>
</div>
</div>
</div>
<!-- Reviews -->
<div class="reviews all-heading">
<div class="container">
<div class="page-header">
<h2>Reviews</h2>
</div>
<div class="row1">
<div class="col-3 locations">
<ul>
<li class="active" id="location-1">Location 1</li>
<li id="location-2">Location 2</li>
<li id="location-3">Location 3</li>
<li id="location-4">Location 4</li>
<li id="location-5">Location 5</li>
</ul>
</div>
<div id="location-r-1">
<div class="col-9">
<div class="bottom-review">
<div class="row1">
<div class="col-3">
<img src="img/user1.jpg"><br><br>
<p><b>Name</b></p>
<p class="mobile-display color-orangered">Location of reviewer</p>
</div>
<div class="col-9">
<p class="color-orangered">Navita Rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
<div class="bottom-review desktop-display">
<div class="row1">
<div class="col-3">
<img src="img/user3.jpg"><br><br>
<p><b>Name</b></p>
</div>
<div class="col-9">
<p class="color-orangered">Navita Rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
</div>
</div>
<div id="location-r-2">
<div class="col-9">
<div class="bottom-review">
<div class="row1">
<div class="col-3">
<img src="img/user2.jpg"><br><br>
<p><b>Name</b></p>
<p class="mobile-display color-orangered">Location of reviewer</p>
</div>
<div class="col-9">
<p class="color-orangered">Navita Rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
<div class="bottom-review desktop-display">
<div class="row1">
<div class="col-3">
<img src="img/user1.jpg"><br><br>
<p><b>Name</b></p>
</div>
<div class="col-9">
<p class="color-orangered">Navita Rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
</div>
</div>
<div id="location-r-3">
<div class="col-9">
<div class="bottom-review">
<div class="row1">
<div class="col-3">
<img src="img/user3.jpg"><br><br>
<p><b>Name</b></p>
<p class="mobile-display color-orangered">Location of reviewer</p>
</div>
<div class="col-9">
<p class="color-orangered">Navita Rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
<div class="bottom-review desktop-display">
<div class="row1">
<div class="col-3">
<img src="img/user2.jpg"><br><br>
<p><b>Name</b></p>
</div>
<div class="col-9">
<p class="color-orangered">Navita Rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
</div>
</div>
<div id="location-r-4">
<div class="col-9">
<div class="bottom-review">
<div class="row1">
<div class="col-3">
<img src="img/user1.jpg"><br><br>
<p><b>Name</b></p>
<p class="mobile-display color-orangered">Location of reviewer</p>
</div>
<div class="col-9">
<p class="color-orangered">Navita Rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
<div class="bottom-review desktop-display">
<div class="row1">
<div class="col-3">
<img src="img/user2.jpg"><br><br>
<p><b>Name</b></p>
</div>
<div class="col-9">
<p class="color-orangered">Navita Rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
</div>
</div>
<div id="location-r-5">
<div class="col-9">
<div class="bottom-review">
<div class="row1">
<div class="col-3">
<img src="img/user2.jpg"><br><br>
<p><b>Name</b></p>
<p class="mobile-display color-orangered">Location of reviewer</p>
</div>
<div class="col-9">
<p class="color-orangered">Navita Rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
<div class="bottom-review desktop-display">
<div class="row1">
<div class="col-3">
<img src="img/user3.jpg"><br><br>
<p><b>Name</b></p>
</div>
<div class="col-9">
<p class="color-orangered">Navita Rating</p>
<p>Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.Some text.</p>
</div>
</div>
</div>
</div>
</div>
<div class="see-all-reviews">
<center><a href="#"><p>See all reviews</p></a></center>
</div>
</div>
</div>
</div>
</div>
<!-- Services -->
<div class="services all-heading">
<div class="container"> <!-- Note: Images copied from zocalo. So changes images -->
<div class="page-header">
<h2>Navita Services</h2>
</div>
<div class="row1">
<a href="rental_aggrement.php"><div class="col-6 rental">
<center>
<div class="services-text">
<h4><i class="fa fa-file-text-o"></i> Create Rental Aggrement</h4>
</div>
</center>
</div></a>
<div class="col-1"></div>
<a href="maovers_and_packers.php"><div class="col-5 movers">
<center>
<div class="services-text">
<h4>Movers and Packers</h4>
</div>
</center>
</div></a>
</div>
</div>
</div>
<!-- How it works -->
<div class="how-it-works all-heading">
<div class="container">
<div class="page-header">
<h2>How it Works</h2>
</div>
<div class="row1">
<div class="col-1"></div>
<div class="col-3">
<center>
<h3>Search</h3>
<p>Browse through verified and detailed listings with real photos. Search on our map based interface by price, location, city or otherwise. Available on your nearest phone, tab or desktop</p>
</center>
</div>
<div class="col-1"></div>
<div class="col-3">
<center>
<h3>Connect</h3>
<p>Directly connect with genuine people for free! Ya, you read it right, no brokers here. Find the perfect roommate through social connect and the perfect place to stay through hood views</p>
</center>
</div>
<div class="col-1"></div>
<div class="col-3">
<center>
<h3>Move In</h3>
<p>Move-in to your preferred listing with a single click. We love feedback. If you like us, do share with your friends and if you hate us, do let us know. Happy hunting my dear friend</p>
<center>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer id="footer" >
<div class="container-made">
<div class="navita-conditions">
<center>
<a href="#">About us</a> |
<a href="#">Contact us</a> |
<a href="#">Careers</a> |
<a href="#">Privacy Policy</a> |
<a href="#">Blog</a> |
<a href="#">Terms and Conditions</a>
</center>
</div>
<div id="follow">
<center>
<h3>Follow us on</h3>
<a href="#"><i class="fa fa-facebook" style="font-size:40px; color:white"></i></a>
<a href="#"><i class="fa fa-twitter" style="font-size:40px; color:white"></i></a>
<a href="#"><i class="fa fa-linkedin" style="font-size:40px; color:white"></i></a>
<a href="#"><i class="fa fa-google-plus" style="font-size:40px; color:white"></i></a>
<a href="#"><i class="fa fa-youtube" style="font-size:40px; color:white"></i></a>
</div>
</center>
</div>
<center>
<p>Copyright ©Navita. All Rights Reserved | Contact Us: +91 7577045235</p>
</center>
</div>
</footer>
<script src="script.js" rel="text/javascript"></script>
</body>
</html>