-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
426 lines (363 loc) · 22.6 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
<?php
require 'assets/includes/core.inc.php';
require 'assets/includes/connect.php';
?>
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7 no-js" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8 no-js" lang="en-US">
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html lang="en" class="no-js">
<head>
<!-- Basic need -->
<title>Off Campus Accommodation</title>
<meta charset="UTF-8">
<meta name="description" content="Off campus agent website - Real Estate Connect">
<meta name="keywords" content="">
<meta name="author" content="">
<link rel="profile" href="">
<!-- <link rel="shortcut icon" href="images/favicon.ico"> -->
<!-- Mobile specific meta -->
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="format-detection" content="telephone-no">
<!-- External Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600|Raleway:400,700,800|Roboto:400,500,700" rel="stylesheet">
<!-- CSS files -->
<link rel="stylesheet" href="css/plugins.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header class="header header--blue header--top">
<div class="container">
<div class="topbar">
<ul class="topbar__contact">
<li><span class="ion-ios-telephone-outline topbar__icon"></span><a href="tel:7034650880" class="topbar__link">+2347062168861, +2349020341360</a></li>
<li><span class="ion-ios-email-outline topbar__icon"></span><a href="mailto:[email protected]" class="topbar__link">[email protected]</a></li>
</ul><!-- .topbar__contact -->
</div><!-- .topbar -->
<div class="header__main">
<div class="header__logo">
<a href="index.php">
<h1 class="screen-reader-text">Off campus Accommodation</h1>
<img src="images/icon_search.png" alt="Realand">
</a>
</div><!-- .header__main -->
<div class="nav-mobile">
<a href="#" class="nav-toggle">
<span></span>
</a><!-- .nav-toggle -->
</div><!-- .nav-mobile -->
<div class="header__menu header__menu--v1">
<ul class="header__nav">
<li class="header__nav-item">
<a href="index.php" class="header__nav-link">Home</a>
</li>
<li class="header__nav-item"><a href="student/" class="header__nav-link">Find Roomate</a></li>
<li class="header__nav-item"><a href="submit_property.php" class="header__nav-link header__cta--outline">+ Submit New Property</a></li>
<?php
if(!loggedin()){ ?>
<li class="header__nav-item"><a href="sign_up.php" class="header__nav-link">AGENT SIGN UP | JOIN</a></li>
<?php }else{ ?>
<li class="header__nav-item">
<a href="#" class="header__nav-link">Hi, <?php echo get_profile_name();?>!</a>
<ul>
<li class="setting"><a href="my_profile.php" class="setting__link"><i class="ion-ios-person-outline setting__icon"></i>My Profile</a></li>
<li class="setting"><a href="my_property.php" class="setting__link"><i class="ion-ios-home-outline setting__icon"></i>My Property</a></li>
<li class="setting"><a href="change_password.php" class="setting__link"><i class="ion-ios-unlocked-outline setting__icon"></i>Change Password</a></li>
<li class="setting"><a href="logout.php" class="setting__link"><i class="ion-ios-undo-outline setting__icon"></i>Log Out</a></li>
</ul>
</li>
<?php } ?>
<li class="header__nav-item"><a href="#Feedbackform" class="header__nav-link">Send Feedback</a></li>
</ul><!-- .header__nav -->
</div><!-- .header__menu -->
</div><!-- .header__main -->
</div><!-- .container -->
</header><!-- .header -->
<section class="main-slider">
<div id="rev_slider_1_1_wrapper" class="rev_slider_wrapper fullwidthbanner-container" data-alias="realand-slider-1" data-source="gallery" style="margin:0px auto;background:rgba(0,0,0,0.5);padding:0px;margin-top:0px;margin-bottom:0px;">
<!-- START REVOLUTION SLIDER 5.4.6 fullwidth mode -->
<div id="rev_slider_1_1" class="rev_slider fullwidthabanner" style="display:none;" data-version="5.4.6">
<ul>
<!-- SLIDE -->
<li data-index="rs-1" data-transition="fade" data-slotamount="default" data-hideafterloop="0" data-hideslideonmobile="off" data-easein="default" data-easeout="default" data-masterspeed="300" data-thumb="images/slider1.png" data-rotate="0" data-saveperformance="off" data-title="Slide" data-param1="" data-param2="" data-param3="" data-param4="" data-param5="" data-param6="" data-param7="" data-param8="" data-param9="" data-param10="" data-description="">
<!-- MAIN IMAGE -->
<img src="images/slider1.png" alt="" title="main_slider_1" width="1920" height="820" data-lazyload="images/slider1.png" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" data-bgparallax="off" class="rev-slidebg" data-no-retina>
<!-- LAYERS -->
<!-- LAYER NR. 1 -->
<div class="tp-caption tp-resizeme" id="slide-1-layer-1" data-x="['center','center','center','center']" data-hoffset="['0','0','0','0']" data-y="['middle','middle','middle','middle']" data-voffset="['-68','-68','-60','-40']" data-fontsize="['18','18','16','14']" data-width="none" data-height="none" data-whitespace="nowrap" data-type="text" data-responsive_offset="on" data-frames='[{"delay":300,"speed":1500,"frame":"0","from":"y:top;","to":"o:1;","ease":"Power3.easeInOut"},{"delay":"wait","speed":300,"frame":"999","to":"opacity:0;","ease":"Power3.easeInOut"}]' data-textAlign="['inherit','inherit','inherit','inherit']" data-paddingtop="[0,0,0,0]" data-paddingright="[0,0,0,0]" data-paddingbottom="[0,0,0,0]" data-paddingleft="[0,0,0,0]" style="z-index: 5; white-space: nowrap; font-size: 18px; line-height: 22px; font-weight: 400; color: #f3f3f3; letter-spacing: 0px;font-family:Roboto;">THE BEST REAL ESTATE AGENT FOR STUDENT </div>
<!-- LAYER NR. 2 -->
<div class="tp-caption tp-resizeme" id="slide-1-layer-2" data-x="['center','center','center','center']" data-hoffset="['0','0','0','0']" data-y="['middle','middle','middle','middle']" data-voffset="['0','0','0','0']" data-fontsize="['60','60','40','26']" data-width="none" data-height="none" data-whitespace="nowrap" data-type="text" data-responsive_offset="on" data-frames='[{"delay":300,"speed":1500,"frame":"0","from":"y:50px;opacity:0;","to":"o:1;","ease":"Power3.easeInOut"},{"delay":"wait","speed":300,"frame":"999","to":"opacity:0;","ease":"Power3.easeInOut"}]' data-textAlign="['inherit','inherit','inherit','inherit']" data-paddingtop="[0,0,0,0]" data-paddingright="[0,0,0,0]" data-paddingbottom="[0,0,0,0]" data-paddingleft="[0,0,0,0]" style="z-index: 6; white-space: nowrap; font-size: 60px; line-height: 22px; font-weight: 900; color: #ffffff; letter-spacing: 0px;font-family:Raleway;">SECURE A HOUSE AWAY FROM HOME </div>
<!-- LAYER NR. 3 -->
</li>
<!-- SLIDE -->
<li data-index="rs-12" data-transition="fade" data-slotamount="default" data-hideafterloop="0" data-hideslideonmobile="off" data-easein="default" data-easeout="default" data-masterspeed="300" data-thumb="images/slider2.png" data-rotate="0" data-saveperformance="off" data-title="Slide" data-param1="" data-param2="" data-param3="" data-param4="" data-param5="" data-param6="" data-param7="" data-param8="" data-param9="" data-param10="" data-description="">
<!-- MAIN IMAGE -->
<img src="images/slider2.png" alt="" title="Main Slider 1-2" width="1920" height="820" data-lazyload="images/slider2.png" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" data-bgparallax="off" class="rev-slidebg" data-no-retina>
<!-- LAYERS -->
<!-- LAYER NR. 4 -->
<div class="tp-caption tp-resizeme" id="slide-12-layer-1" data-x="['center','center','center','center']" data-hoffset="['0','0','0','0']" data-y="['middle','middle','middle','middle']" data-voffset="['-68','-68','-60','-40']" data-fontsize="['18','18','16','14']" data-width="none" data-height="none" data-whitespace="nowrap" data-type="text" data-responsive_offset="on" data-frames='[{"delay":300,"speed":1500,"frame":"0","from":"y:top;","to":"o:1;","ease":"Power3.easeInOut"},{"delay":"wait","speed":300,"frame":"999","to":"opacity:0;","ease":"Power3.easeInOut"}]' data-textAlign="['inherit','inherit','inherit','inherit']" data-paddingtop="[0,0,0,0]" data-paddingright="[0,0,0,0]" data-paddingbottom="[0,0,0,0]" data-paddingleft="[0,0,0,0]" style="z-index: 5; white-space: nowrap; font-size: 18px; line-height: 22px; font-weight: 400; color: #f3f3f3; letter-spacing: 0px;font-family:Roboto;">CONNECT WITH THE BEST REAL ESTATE AGENT OFF CAMPUS </div>
<!-- LAYER NR. 5 -->
<div class="tp-caption tp-resizeme" id="slide-12-layer-2" data-x="['center','center','center','center']" data-hoffset="['0','0','0','0']" data-y="['middle','middle','middle','middle']" data-voffset="['0','0','0','0']" data-fontsize="['60','60','40','26']" data-width="none" data-height="none" data-whitespace="nowrap" data-type="text" data-responsive_offset="on" data-frames='[{"delay":300,"speed":1500,"frame":"0","from":"y:50px;opacity:0;","to":"o:1;","ease":"Power3.easeInOut"},{"delay":"wait","speed":300,"frame":"999","to":"opacity:0;","ease":"Power3.easeInOut"}]' data-textAlign="['inherit','inherit','inherit','inherit']" data-paddingtop="[0,0,0,0]" data-paddingright="[0,0,0,0]" data-paddingbottom="[0,0,0,0]" data-paddingleft="[0,0,0,0]" style="z-index: 6; white-space: nowrap; font-size: 60px; line-height: 22px; font-weight: 900; color: #ffffff; letter-spacing: 0px;font-family:Raleway;">SECURE A HOUSE AWAY FROM HOME</div>
</li>
</ul>
<div class="tp-bannertimer tp-bottom" style="visibility: hidden !important;"></div>
</div>
</div>
<!-- END REVOLUTION SLIDER -->
<section class="main-search main-search--absolute">
<div class="container">
<div class="main-search__container">
<section class="listing-search">
<form action="#" method="POST" class="listing-search__form">
<div class="row">
<div class="col-sm-3">
<label for="listing-type" class="listing-search__label">Room Types</label>
<select required name="listing-type" id="listing-type" class="ht-field">
<option disabled value="" selected>All Listing Type</option>
<?php echo get_roomTypes(); ?>
</select>
</div><!-- .col -->
<div class="col-sm-3">
<label for="offer-type" class="listing-search__label">Price Range</label>
<select required name="offer-type" id="offer-type" class="ht-field">
<option disabled value="" selected>Price Ranges</option>
<option value="20-50">20,000 - 50,000</option>
<option value="50-80">50,000 - 80,000</option>
<option value="80-120">80,000 - 120,000</option>
</select>
</div><!-- .col -->
<div class="col-sm-3">
<label for="city" class="listing-search__label">Select Your Location</label>
<select required name="city" id="city" class="ht-field">
<option disabled value="" selected>Choose Location</option>
<?php get_location();?>
</select>
</div><!-- .col -->
<div class="col-sm-3">
<button type="submit" class="btn btn-success btn-lg" style="background-color: #ff6600; color: #fff; margin-top: 20px">Search</button>
</div><!-- .col -->
</div><!-- row -->
</form><!-- .listing-search__form -->
</section><!-- .listing-search -->
</div><!-- .main-search__container -->
</div><!-- .container -->
</section><!-- .main-search -->
</section><!-- .main-slider -->
<?php $limit=6; ?>
<section class="item-grid">
<div class="container">
<div class="row">
<?php
if(isset($_GET['page']) && !empty($_GET['page'])){
$page = $_GET['page'];
}else{
$page = 1;
}
populate_listings_on_index($page,$limit);
?>
</div><!-- .row -->
<?php
$divisionValue = populate_main_listing_total_num()/$limit;
if(is_float($divisionValue)){
$divisionValue = substr($divisionValue, 0,1);
$divisionValue = $divisionValue+1;
}
if($page!=$divisionValue ){
?>
<div class="item-grid--centered">
<a href="<?php $npage=$page+1; echo $_SERVER['SCRIPT_NAME']."?page=$npage"?>" class="item-grid__load-more">Load More</a>
</div>
<?php }else{?>
<div class="item-grid--centered">
<a href="<?php $npage=$page-1; echo $_SERVER['SCRIPT_NAME']."?page=$npage"?>" class="item-grid__load-more">Previous</a>
</div>
<?php } ?>
</div><!-- .container -->
</section><!-- .item-grid-3 -->
<!-- find a roomate section -->
<section>
<div class="container">
<div class="row">
<div class="col-md-7 col-sm-6">
<h3 style="margin: 10px;">NEED A ROOMATE? LET'S GET YOU CONNECTED.</h3>
</div>
<div class="col-md-4 col-sm-4">
<a href="student/" type="submit" class="btn btn-success btn-lg" style="background-color: #ff6600; color: #fff; margin: 10px; text-align: center;"><i class="fa fa-search"></i> Find a Roomate</a>
</div>
</div>
</div>
</section>
<!-- end of finda roomate -->
<section class="features">
<div class="features__overlay">
<h1 style="color:#ffffff; font-weight:bold;" align="center"> Why Choose Us!</h1><p></p>
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="feature">
<img src="images/icon_map.png" alt="Map" class="feature__icon">
<h3 class="feature__title">Freshest Market Info</h3>
<p class="feature__desc">
Our extensive database of listings and market info provide you the all the information you reequire at the convinience of your finger tips.
</p>
</div><!-- .feature -->
</div><!-- .col -->
<div class="col-sm-4">
<div class="feature">
<img src="images/icon_search.png" alt="Search" class="feature__icon">
<h3 class="feature__title">Top Local Agents</h3>
<p class="feature__desc">
We can serve you with the best agents in the market that would gurantee your housing needs.
</p>
</div><!-- .feature -->
</div><!-- .col -->
<div class="col-sm-4">
<div class="feature">
<img src="images/icon_negotiation.png" alt="Negotiation" class="feature__icon">
<h3 class="feature__title">Connecting You..</h3>
<p class="feature__desc">
We bring buyers and sellers together.
</p>
</div><!-- .feature -->
</div><!-- .col -->
</div><!-- .row -->
</div><!-- .container -->
</div><!-- .features__overlay -->
</section><!-- .features -->
<section class="famous-agents">
<div class="container">
<div class="famous-agents__title">
<h2 class="section__title">Famous Agents</h2>
<ul class="slick__navigation famous-agents__navigation">
<li class="slick-prev famous-agents__navigation-prev"><i class="fa fa-angle-left" aria-hidden="true"></i></li>
<li class="slick-next famous-agents__navigation-next"><i class="fa fa-angle-right" aria-hidden="true"></i></li>
</ul>
</div><!-- .famous-agents__title -->
<div class="famous-agents__wrapper" style="text-align: center;">
<?php populate_famous_agents(); ?>
</div><!-- .famous-agents__wrapper -->
</div><!-- .container -->
</section><!-- .famous_agents -->
<section style="margin-top:50px; margin-bottom:50px;" id="Feedbackform">
<div class="container">
<div class="row">
<div class="col-md-12 item-grid__container">
<div style="margin-left:70px;">
<h4 style="margin-bottom: 20px">Post a review.</h4>
<form method="POST" action="assets/includes/feedback_form.php" >
<div class="col-md-4">
<label for="profile-first-name" class="my-profile__label">First Name</label>
<input type="text" name="fname" class="my-profile__field" id="profile-first-name">
<label for="profile-first-name" class="my-profile__label">Last Name</label>
<input type="text" name="lname" class="my-profile__field" id="profile-first-name">
<label for="profile-email" class="my-profile__label">Email*</label>
<input type="email" required name="email" class="my-profile__field" id="profile-email">
<label for="profile-location" class="my-profile__label">Address*</label>
<input type="text" required name="location" class="my-profile__field" id="profile-location">
<div>
<label for="offer-type" class="my-profile__label">Reaction</label>
<select required name="reaction" id="offer-type" class="my-profile__field">
<option disabled value="" selected>Feedback Reaction</option>
<option value="Happy">Happy</option>
<option value="Fairly Happy">Fairly Happy</option>
<option value="Neutral">Neutral</option>
<option value="Not Happy">Not Happy</option>
</select>
</div><!-- .col -->
<label for="profile-twitter" class="my-profile__label">Comment</label>
<textarea name="comment" cols="50px" rows="11px" required value="" class="my-profile__field" id="profile-twitter"></textarea>
<button type="submit" name="submit_feedback" class="my-profile__submit">Send Feedback</button>
</div><!-- .col -->
</form>
</div><!-- .testimonial__content -->
</div><!-- .testimonial--center -->
</div><!-- .testimonial__container -->
</div><!-- .container -->
</section>
<section class="testimonial">
<div class="container">
<div class="testimonial__container testimonial--b-border">
<div class="testimonial--centered">
<h2 class="section__title section__title--large"><?php number_of_happy_client_feedback(); ?>+ Happy Clients</h2>
<img src="images/icon_chat.png" alt="Testimonial" class="testimonial__icon">
<div class="testimonial__content">
<div class="testimonial__slider testimonial__slider--top">
<?php
$query = "SELECT * FROM `users_feedback` WHERE `reaction`='Happy' AND `posted` = '1'" ;
$query_run = mysqli_query($con,$query);
while($rc=mysqli_fetch_array($query_run)){ ?>
<p>
<?php echo $rc['message']; ?>
</p>
<?php } ?>
</div><!-- .testimonial__slider -->
<div class="testimonial__slider testimonial__slider--bottom">
<?php
$query_fc = "SELECT * FROM `users_feedback` WHERE `reaction`='Happy' AND `posted` = '1'" ;
$query_run_fc = mysqli_query($con,$query_fc);
while($rc_fc=mysqli_fetch_array($query_run_fc)){ ?>
<div class="testimonial__slider-wrapper">
<h4 class="testimonial__customer-name"><?php echo $rc_fc['firstname']." ".$rc_fc['lastname']; ?></h4>
<p class="testimonial__customer-company">Location:<?php echo $rc_fc['address']; ?></p>
<img src="images/rating.png" alt="Five Stars Rating">
</div><!-- .testimonial__slider-wrapper -->
<?php } ?>
</div><!-- .testimonial__content -->
</div><!-- .testimonial--center -->
</div><!-- .testimonial__container -->
</div><!-- .container -->
</section>
<!-- partners and popular links were here -->
<footer class="footer">
<div class="footer__main footer__main--v2">
<div class="container">
<div class="footer__logo">
<h1 class="screen-reader-text">OffKampus Agent Connect</h1>
<img src="images/uploads/logo.png" alt="ReaLand">
</div><!-- .footer__logo -->
<p class="footer__desc">OffKampus Agent Connect is made for buying, selling, renting and leasing out houses faster in Nigeria, it's easy and customised for you.</p>
<ul class="footer__social">
<li><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-pinterest" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-youtube-play" aria-hidden="true"></i></a></li>
</ul><!-- .footer__social -->
<p></p><br>
<h3 class="footer__title" style="color: #ffffff; margin-bottom: 3px;">Contact Us</h3>
<ul class="footer__list">
<li><span class="footer--highlighted" style="color: #ffffff;">Address:</span> <a >Somewhere in Nigeria</a></li>
<li><span class="footer--highlighted" style="color: #ffffff;">Email:</span> <a href="mailto:[email protected]">[email protected]</a></li>
<li><span class="footer--highlighted" style="color: #ffffff;">Phone:</span> <a href="tel:+8802993999">(+234)-70x-xxx-xxxx</a></li>
</ul><!-- .footer__list -->
</div><!-- .container -->
</div><!-- .footer__main -->
<div class="footer__copyright footer__copyright--v2">
<div class="container">
<div class="footer__copyright-inner">
<p class="footer__copyright-desc">
© 2019 <span class="footer--highlighted-v2">OffKampus homes</span> Real Estate Platform for student. All Right Reserved.
</p>
<ul class="footer__copyright-list">
<li><span class="footer--highlighted-v2">Site Developed By</span><a href="www.falconinnotech.com" target="blank"> Temitayo Timothy</a></li>
</ul>
</div><!-- .footer__copyright-inner -->
</div><!-- .container -->
</div><!-- .footer__copyright -->
</footer><!-- .footer -->
<a href="#" class="back-to-top"><span class="ion-ios-arrow-up"></span></a>
<!-- JS Files -->
<script src="js/jquery-1.12.4.min.js"></script>
<script src="js/plugins.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBDyCxHyc8z9gMA5IlipXpt0c33Ajzqix4"></script>
<script src="https://cdn.rawgit.com/googlemaps/v3-utility-library/master/infobox/src/infobox.js"></script>
<script src="js/custom.js"></script>
</body>
</html>