-
Notifications
You must be signed in to change notification settings - Fork 30
/
index.php
511 lines (477 loc) · 27.8 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
502
503
504
505
506
507
508
509
510
511
<?php
ini_set('session.cache_limiter','public');
session_cache_limiter(false);
session_start();
include("config.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Meta Tags -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" href="images/favicon.ico">
<!-- Fonts
========================================================-->
<link href="https://fonts.googleapis.com/css?family=Muli:400,400i,500,600,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Comfortaa:400,700" rel="stylesheet">
<!-- Css Link
========================================================-->
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-slider.css">
<link rel="stylesheet" type="text/css" href="css/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="css/layerslider.css">
<link rel="stylesheet" type="text/css" href="css/color.css" id="color-change">
<link rel="stylesheet" type="text/css" href="css/owl.carousel.min.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="fonts/flaticon/flaticon.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<!-- Title
=========================================================-->
<title>Homex - Real Estate Template</title>
</head>
<body>
<!-- Page Loader -->
<!--<div class="page-loader position-fixed z-index-9999 w-100 bg-white vh-100">
<div class="d-flex justify-content-center y-middle position-relative">
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div> -->
<!-- Page Loader -->
<div id="page-wrapper">
<div class="row">
<!-- Header start -->
<?php include("include/header.php");?>
<!-- Header end -->
<!-- Banner Start -->
<div class="overlay-black w-100 slider-banner1 position-relative" style="background-image: url('images/banner/04.jpg'); background-size: cover; background-position: center center; background-repeat: no-repeat;">
<div class="container h-100">
<div class="row h-100 align-items-center">
<div class="col-lg-12">
<div class="text-white">
<h1 class="mb-4"><span class="text-primary">Find</span><br>
Your dream house</h1>
<form method="post" action="propertygrid.php">
<div class="row">
<div class="col-md-6 col-lg-2">
<div class="form-group">
<select class="form-control" name="type">
<option value="">Select Type</option>
<option value="appartment">Appartment</option>
<option value="flat">Flat</option>
<option value="bunglow">Bunglow</option>
<option value="house">House</option>
<option value="villa">Villa</option>
<option value="office">Office</option>
</select>
</div>
</div>
<div class="col-md-6 col-lg-2">
<div class="form-group">
<select class="form-control" name="stype">
<option value="">Select Status</option>
<option value="rent">Rent</option>
<option value="sale">Sale</option>
</select>
</div>
</div>
<div class="col-md-8 col-lg-6">
<div class="form-group">
<input type="text" class="form-control" name="city" placeholder="Enter City or Enter State" required>
</div>
</div>
<div class="col-md-4 col-lg-2">
<div class="form-group">
<button type="submit" name="filter" class="btn btn-primary w-100">Search Property</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Banner End -->
<!-- Text Block One
======================================================-->
<div class="full-row bg-gray">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2 class="text-secondary double-down-line text-center mb-5">What We Do</h2></div>
</div>
<div class="text-box-one">
<div class="row">
<div class="col-lg-3 col-md-6">
<div class="p-4 text-center hover-bg-white hover-shadow rounded mb-4 transation-3s">
<i class="flaticon-rent text-primary flat-medium" aria-hidden="true"></i>
<h5 class="text-secondary hover-text-primary py-3 m-0"><a href="#">Selling Service</a></h5>
<p>Lacinia tempor tortor nibh. Et mattis cubilia suspendisse cras justo potenti.</p>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="p-4 text-center hover-bg-white hover-shadow rounded mb-4 transation-3s">
<i class="flaticon-for-rent text-primary flat-medium" aria-hidden="true"></i>
<h5 class="text-secondary hover-text-primary py-3 m-0"><a href="#">Rental Service</a></h5>
<p>Lacinia tempor tortor nibh. Et mattis cubilia suspendisse cras justo potenti.</p>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="p-4 text-center hover-bg-white hover-shadow rounded mb-4 transation-3s">
<i class="flaticon-list text-primary flat-medium" aria-hidden="true"></i>
<h5 class="text-secondary hover-text-primary py-3 m-0"><a href="#">Property Listing</a></h5>
<p>Lacinia tempor tortor nibh. Et mattis cubilia suspendisse cras justo potenti.</p>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="p-4 text-center hover-bg-white hover-shadow rounded mb-4 transation-3s">
<i class="flaticon-diagram text-primary flat-medium" aria-hidden="true"></i>
<h5 class="text-secondary hover-text-primary py-3 m-0"><a href="#">Legal Investment</a></h5>
<p>Lacinia tempor tortor nibh. Et mattis cubilia suspendisse cras justo potenti.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!----- Our Services ---->
<!-- Recent Properties -->
<div class="full-row">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 class="text-secondary double-down-line text-center mb-4">Recent Property</h2>
</div>
<!--- <div class="col-md-6">
<ul class="nav property-btn float-right" id="pills-tab" role="tablist">
<li class="nav-item"> <a class="nav-link py-3 active" id="pills-home-tab" data-toggle="pill" href="#pills-home" role="tab" aria-controls="pills-home" aria-selected="true">New</a> </li>
<li class="nav-item"> <a class="nav-link py-3" id="pills-profile-tab" data-toggle="pill" href="#pills-profile" role="tab" aria-controls="pills-profile" aria-selected="false">Featured</a> </li>
<li class="nav-item"> <a class="nav-link py-3" id="pills-contact-tab2" data-toggle="pill" href="#pills-contact" role="tab" aria-controls="pills-contact" aria-selected="false">Top Sale</a> </li>
<li class="nav-item"> <a class="nav-link py-3" id="pills-contact-tab3" data-toggle="pill" href="#pills-resturant" role="tab" aria-controls="pills-contact" aria-selected="false">Best Sale</a> </li>
</ul>
</div> --->
<div class="col-md-12">
<div class="tab-content mt-4" id="pills-tabContent">
<div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home">
<div class="row">
<?php $query=mysqli_query($con,"SELECT property.*, user.uname,user.utype,user.uimage FROM `property`,`user` WHERE property.uid=user.uid ORDER BY date DESC LIMIT 9");
while($row=mysqli_fetch_array($query))
{
?>
<div class="col-md-6 col-lg-4">
<div class="featured-thumb hover-zoomer mb-4">
<div class="overlay-black overflow-hidden position-relative"> <img src="admin/property/<?php echo $row['18'];?>" alt="pimage">
<div class="featured bg-primary text-white">New</div>
<div class="sale bg-secondary text-white text-capitalize">For <?php echo $row['5'];?></div>
<div class="price text-primary"><b>$<?php echo $row['13'];?> </b><span class="text-white"><?php echo $row['12'];?> Sqft</span></div>
</div>
<div class="featured-thumb-data shadow-one">
<div class="p-3">
<h5 class="text-secondary hover-text-primary mb-2 text-capitalize"><a href="propertydetail.php?pid=<?php echo $row['0'];?>"><?php echo $row['1'];?></a></h5>
<span class="location text-capitalize"><i class="fas fa-map-marker-alt text-primary"></i> <?php echo $row['14'];?></span> </div>
<div class="bg-gray quantity px-4 pt-4">
<ul>
<li><span><?php echo $row['12'];?></span> Sqft</li>
<li><span><?php echo $row['6'];?></span> Beds</li>
<li><span><?php echo $row['7'];?></span> Baths</li>
<li><span><?php echo $row['9'];?></span> Kitchen</li>
<li><span><?php echo $row['8'];?></span> Balcony</li>
</ul>
</div>
<div class="p-4 d-inline-block w-100">
<div class="float-left text-capitalize"><i class="fas fa-user text-primary mr-1"></i>By : <?php echo $row['uname'];?></div>
<div class="float-right"><i class="far fa-calendar-alt text-primary mr-1"></i> 6 Months Ago</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Recent Properties -->
<!-- Why Choose Us -->
<div class="full-row living bg-one overlay-secondary-half" style="background-image: url('images/haddyliving.jpg'); background-size: cover; background-position: center center; background-repeat: no-repeat;">
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-6">
<div class="living-list pr-4">
<h3 class="pb-4 mb-3 text-white">Why Choose Us</h3>
<ul>
<li class="mb-4 text-white d-flex">
<i class="flaticon-reward flat-medium float-left d-table mr-4 text-primary" aria-hidden="true"></i>
<div class="pl-2">
<h5 class="mb-3">Experience Quality</h5>
<p>Ad non vivamus Elementum eget fringilla venenatis quisque, maecenas adipiscing aliquet justo. Libero. Gravida. Sapien, dolor nostra sem. Rutrum conubia inceptos egestas dolor class.</p>
</div>
</li>
<li class="mb-4 text-white d-flex">
<i class="flaticon-real-estate flat-medium float-left d-table mr-4 text-primary" aria-hidden="true"></i>
<div class="pl-2">
<h5 class="mb-3">Experience Quality</h5>
<p>Ad non vivamus Elementum eget fringilla venenatis quisque, maecenas adipiscing aliquet justo. Libero. Gravida. Sapien, dolor nostra sem. Rutrum conubia inceptos egestas dolor class.</p>
</div>
</li>
<li class="mb-4 text-white d-flex">
<i class="flaticon-seller flat-medium float-left d-table mr-4 text-primary" aria-hidden="true"></i>
<div class="pl-2">
<h5 class="mb-3">Experience Quality</h5>
<p>Ad non vivamus Elementum eget fringilla venenatis quisque, maecenas adipiscing aliquet justo. Libero. Gravida. Sapien, dolor nostra sem. Rutrum conubia inceptos egestas dolor class.</p>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- why choose us -->
<!-- How it work -->
<div class="full-row">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2 class="text-secondary double-down-line text-center mb-5">How It Work</h2>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="icon-thumb-one text-center mb-5">
<div class="bg-primary text-white rounded-circle position-absolute z-index-9">1</div>
<div class="left-arrow"><i class="flaticon-investor flat-medium icon-primary" aria-hidden="true"></i></div>
<h5 class="text-secondary mt-5 mb-4">Discussion</h5>
<p>Nascetur cubilia sociosqu aliquet ut elit nascetur nullam duis tincidunt nisl non quisque vestibulum platea ornare ridiculus.</p>
</div>
</div>
<div class="col-md-4">
<div class="icon-thumb-one text-center mb-5">
<div class="bg-primary text-white rounded-circle position-absolute z-index-9">2</div>
<div class="left-arrow"><i class="flaticon-search flat-medium icon-primary" aria-hidden="true"></i></div>
<h5 class="text-secondary mt-5 mb-4">Files Review</h5>
<p>Nascetur cubilia sociosqu aliquet ut elit nascetur nullam duis tincidunt nisl non quisque vestibulum platea ornare ridiculus.</p>
</div>
</div>
<div class="col-md-4">
<div class="icon-thumb-one text-center mb-5">
<div class="bg-primary text-white rounded-circle position-absolute z-index-9">3</div>
<div><i class="flaticon-handshake flat-medium icon-primary" aria-hidden="true"></i></div>
<h5 class="text-secondary mt-5 mb-4">Acquire</h5>
<p>Nascetur cubilia sociosqu aliquet ut elit nascetur nullam duis tincidunt nisl non quisque vestibulum platea ornare ridiculus.</p>
</div>
</div>
</div>
</div>
</div>
<!-- How It Work -->
<!-- Achievement
============================================================-->
<div class="full-row overlay-secondary" style="background-image: url('images/counterbg.jpg'); background-size: cover; background-position: center center; background-repeat: no-repeat;">
<div class="container">
<div class="fact-counter">
<div class="row">
<div class="col-md-3">
<div class="count wow text-center mb-sm-50" data-wow-duration="300ms"> <i class="flaticon-house flat-large text-white" aria-hidden="true"></i>
<?php
$query=mysqli_query($con,"SELECT count(pid) FROM property");
while($row=mysqli_fetch_array($query))
{
?>
<div class="count-num text-primary my-4" data-speed="3000" data-stop="<?php
$total = $row[0];
echo $total;?>">0</div>
<?php } ?>
<div class="text-white h5">Property Available</div>
</div>
</div>
<div class="col-md-3">
<div class="count wow text-center mb-sm-50" data-wow-duration="300ms"> <i class="flaticon-house flat-large text-white" aria-hidden="true"></i>
<?php
$query=mysqli_query($con,"SELECT count(pid) FROM property where stype='sale'");
while($row=mysqli_fetch_array($query))
{
?>
<div class="count-num text-primary my-4" data-speed="3000" data-stop="<?php
$total = $row[0];
echo $total;?>">0</div>
<?php } ?>
<div class="text-white h5">Sale Property Available</div>
</div>
</div>
<div class="col-md-3">
<div class="count wow text-center mb-sm-50" data-wow-duration="300ms"> <i class="flaticon-house flat-large text-white" aria-hidden="true"></i>
<?php
$query=mysqli_query($con,"SELECT count(pid) FROM property where stype='rent'");
while($row=mysqli_fetch_array($query))
{
?>
<div class="count-num text-primary my-4" data-speed="3000" data-stop="<?php
$total = $row[0];
echo $total;?>">0</div>
<?php } ?>
<div class="text-white h5">Rent Property Available</div>
</div>
</div>
<div class="col-md-3">
<div class="count wow text-center mb-sm-50" data-wow-duration="300ms"> <i class="flaticon-man flat-large text-white" aria-hidden="true"></i>
<?php
$query=mysqli_query($con,"SELECT count(uid) FROM user");
while($row=mysqli_fetch_array($query))
{
?>
<div class="count-num text-primary my-4" data-speed="3000" data-stop="<?php
$total = $row[0];
echo $total;?>">0</div>
<?php } ?>
<div class="text-white h5">Registered Users</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Popular Place -->
<div class="full-row bg-gray">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2 class="text-secondary double-down-line text-center mb-5">Popular Places</h2></div>
</div>
<div class="col-lg-12">
<div class="row">
<div class="col-md-6 col-lg-3 pb-1">
<div class="overflow-hidden position-relative overlay-secondary hover-zoomer mx-n13 z-index-9"> <img src="images/thumbnail4/1.jpg" alt="">
<div class="text-white xy-center z-index-9 position-absolute text-center w-100">
<?php
$query=mysqli_query($con,"SELECT count(state), property.* FROM property where state='gujarat'");
while($row=mysqli_fetch_array($query))
{
?>
<h4 class="hover-text-primary text-capitalize"><a href="stateproperty.php?id=<?php echo $row['17']?>"><?php echo $row['state'];?></a></h4>
<span><?php
$total = $row[0];
echo $total;?> Properties Listed</span> </div>
<?php } ?>
</div>
</div>
<div class="col-md-6 col-lg-3 pb-1">
<div class="overflow-hidden position-relative overlay-secondary hover-zoomer mx-n13 z-index-9"> <img src="images/thumbnail4/2.jpg" alt="">
<div class="text-white xy-center z-index-9 position-absolute text-center w-100">
<?php
$query=mysqli_query($con,"SELECT count(state), property.* FROM property where state='mumbai'");
while($row=mysqli_fetch_array($query))
{
?>
<h4 class="hover-text-primary text-capitalize"><a href="stateproperty.php?id=<?php echo $row['17']?>"><?php echo $row['state'];?></a></h4>
<span><?php
$total = $row[0];
echo $total;?> Properties Listed</span> </div>
<?php } ?>
</div>
</div>
<div class="col-md-6 col-lg-3 pb-1">
<div class="overflow-hidden position-relative overlay-secondary hover-zoomer mx-n13 z-index-9"> <img src="images/thumbnail4/3.jpg" alt="">
<div class="text-white xy-center z-index-9 position-absolute text-center w-100">
<?php
$query=mysqli_query($con,"SELECT count(state), property.* FROM property where state='banglore'");
while($row=mysqli_fetch_array($query))
{
?>
<h4 class="hover-text-primary text-capitalize"><a href="stateproperty.php?id=<?php echo $row['17']?>"><?php echo $row['state'];?></a></h4>
<span><?php
$total = $row[0];
echo $total;?> Properties Listed</span> </div>
<?php } ?>
</div>
</div>
<div class="col-md-6 col-lg-3 pb-1">
<div class="overflow-hidden position-relative overlay-secondary hover-zoomer mx-n13 z-index-9"> <img src="images/thumbnail4/4.jpg" alt="">
<div class="text-white xy-center z-index-9 position-absolute text-center w-100">
<?php
$query=mysqli_query($con,"SELECT count(state), property.* FROM property where state='rajasthan'");
while($row=mysqli_fetch_array($query))
{
?>
<h4 class="hover-text-primary text-capitalize"><a href="stateproperty.php?id=<?php echo $row['17']?>"><?php echo $row['state'];?></a></h4>
<span><?php
$total = $row[0];
echo $total;?> Properties Listed</span> </div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Popular Places -->
<!-- Testonomial -->
<div class="full-row">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="content-sidebar p-4">
<div class="mb-3 col-lg-12">
<h4 class="double-down-line-left text-secondary position-relative pb-4 mb-4">Testimonial</h4>
<div class="recent-review owl-carousel owl-dots-gray owl-dots-hover-primary">
<?php
$query=mysqli_query($con,"select feedback.*, user.* from feedback,user where feedback.uid=user.uid and feedback.status='1'");
while($row=mysqli_fetch_array($query))
{
?>
<div class="item">
<div class="p-4 bg-primary down-angle-white position-relative">
<p class="text-white"><i class="fas fa-quote-left mr-2 text-white"></i><?php echo $row['2']; ?>. <i class="fas fa-quote-right mr-2 text-white"></i></p>
</div>
<div class="p-2 mt-4">
<span class="text-primary d-table text-capitalize"><?php echo $row['uname']; ?></span> <span class="text-capitalize"><?php echo $row['utype']; ?></span>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Testonomial -->
<!-- Footer start-->
<?php include("include/footer.php");?>
<!-- Footer start-->
<!-- Scroll to top -->
<a href="#" class="bg-primary text-white hover-text-secondary" id="scroll"><i class="fas fa-angle-up"></i></a>
<!-- End Scroll To top -->
</div>
</div>
<!-- Wrapper End -->
<!-- Js Link
============================================================-->
<script src="js/jquery.min.js"></script>
<!--jQuery Layer Slider -->
<script src="js/greensock.js"></script>
<script src="js/layerslider.transitions.js"></script>
<script src="js/layerslider.kreaturamedia.jquery.js"></script>
<!--jQuery Layer Slider -->
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/tmpl.js"></script>
<script src="js/jquery.dependClass-0.1.js"></script>
<script src="js/draggable-0.1.js"></script>
<script src="js/jquery.slider.js"></script>
<script src="js/wow.js"></script>
<script src="js/YouTubePopUp.jquery.js"></script>
<script src="js/validate.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/custom.js"></script>
</body>
</html>