forked from divyanshusahu/Navita
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
330 lines (316 loc) · 10.9 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.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 = "**********";
$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">
<p><b>User name 1</b></p>
</div>
<div class=col-9>
<p>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">
<p><b>User name 2</b></p>
</div>
<div class=col-9>
<p>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">
<p><b>User name 3</b></p>
</div>
<div class=col-9>
<p>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 class="bor"><h4>Rental Aggrement</h4></div>
</div>
<div class="col-6">
<div class="bor"><h4>Tell us your requirements</h4></div>
</div>
<div class="col-3">
<div class="bor"><h4>Write a review</h4></div>
</div>
</div>
</div>
</div>
<!-- To be completed -->
<!-- Trending properties -->
<div class="trending-properties all-heading">
<div class="container">
<div class="page-header">
<h2>Trending Properties</h2>
</div>
<div class="properties">
<div class="row1">
<div class="col-4">
<h5><b>Boys CoHo</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">
<h5><b>Boys CoHo</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">
<h5><b>Boys CoHo</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>
</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 class="col-9">
<div class="bottom-review">
<div class="row1">
<div class="col-3">
<img src="img/user1.jpg">
<p>Name</p>
</div>
<div class="col-9">
<p>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">
<div class="row1">
<div class="col-3">
<img src="img/user3.jpg">
<p>Name</p>
</div>
<div class="col-9">
<p>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>
</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>
<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>