-
Notifications
You must be signed in to change notification settings - Fork 0
/
my-properties.php
309 lines (255 loc) · 11 KB
/
my-properties.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
<!DOCTYPE html>
<html lang="zxx">
<?php
include 'connection.php';
session_start();
if (isset($_SESSION['lanlords'])){
$id = $_SESSION['lanlords'];
//echo $id;
$sql = "SELECT * FROM lanlords WHERE phoneno = '$id' ";
$query = mysqli_query($con,$sql);
$rw = mysqli_fetch_assoc($query);
$fullname = $rw['fullname'];
$phoneno = $rw['phoneno'];
$photo = $rw['passport'];
}
else {
header("location:login.php");
}
?>
<head>
<title>My Properties</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<!-- External CSS libraries -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/animate.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-submenu.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-select.min.css">
<link rel="stylesheet" href="css/leaflet.css" type="text/css">
<link rel="stylesheet" href="css/map.css" type="text/css">
<link rel="stylesheet" type="text/css" href="fonts/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="fonts/flaticon/font/flaticon.css">
<link rel="stylesheet" type="text/css" href="fonts/linearicons/style.css">
<link rel="stylesheet" type="text/css" href="css/jquery.mCustomScrollbar.css">
<link rel="stylesheet" type="text/css" href="css/dropzone.css">
<link rel="stylesheet" type="text/css" href="css/slick.css">
<!-- Custom stylesheet -->
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" id="style_sheet" href="css/skins/default.css">
<!-- Favicon icon -->
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" >
<!-- Google fonts -->
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800%7CPlayfair+Display:400,700%7CRoboto:100,300,400,400i,500,700">
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link rel="stylesheet" type="text/css" href="css/ie10-viewport-bug-workaround.css">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="js/html5shiv.min.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="page_loader"></div>
<!-- Top header start -->
<header class="top-header top-header-bg d-none d-xl-block d-lg-block d-md-block" id="top-header-2">
</header>
<!-- Top header end -->
<!-- Main header start -->
<header class="top-header top-header-bg d-none d-xl-block d-lg-block d-md-block" id="top-header-2">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-4 col-sm-5">
<ul class="top-social-media pull-right">
<li>
<a href="#" class="rss"><i class=""></i></a>
</li>
</ul>
</div>
</div>
</div>
</header>
<!-- Top header end -->
<!-- Main header start -->
<header class="main-header">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand logo" href="profile.php">
<img src="img/logos/logo.png" alt="logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item ">
<a class="nav-link " href="profile.php" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-home"> My Profile</i>
</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="submit-property.php" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-university"> Add property</i>
</a>
</li>
<li class="nav-item ">
<a class="nav-link " href="my-properties.php" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-eye"> View Properties</i>
</a>
</li>
</ul>
</div>
</nav>
</div>
</header>
<!-- Main header end -->
<!-- Sub banner start -->
<div class="sub-banner">
<div class="container">
<div class="page-name">
<h1>My Properties</h1>
</div>
</div>
</div>
<!-- Sub Banner end -->
<!-- My bookmarks start -->
<div class="my-bookmarks content-area">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-12 col-sm-12">
<!-- Avatar start -->
<div class="edit-profile-photo">
<div class="edit-profile-photo">
<img src = '<?php echo $photo;?>' alt="profile-photo" class="img-fluid">
</div>
</div>
<!-- Avatar end -->
<!-- My account box start -->
<div class="my-account-box">
<ul>
<li>
<a href="profile.php" class="active">
<i class="flaticon-people"></i>My Profile
</a>
</li>
<li>
<a href="submit-property.php" class="">
<i class="flaticon-cross"></i>Add property
</a>
</li>
<li>
<a href="my-properties.php">
<i class="fa fa-eye"></i>View Property
</a>
</li>
<li>
<a href="change-password2.php">
<i class="flaticon-lock"></i>Change Password
</a>
</li>
<li>
<form method="POST" action = "logout2.php">
<button name = "logout3" class="flaticon-exit"> Log Out</button>
</form>
</li>
</ul>
</div>
<!-- My account box end -->
</div>
<div class="col-lg-8 col-md-12 col-sm-12">
<!-- Heading -->
<h3 class="heading-2">Properties uploaded </h3>
<div class="my-properties">
<?php
include 'connection.php';
if (isset($_SESSION['lanlords'])){
$id = $_SESSION['lanlords'];
//echo $id;
$sql = "SELECT * FROM props WHERE phoneno = '$id' ";
$query = mysqli_query($con,$sql);
echo '<table class="table brd-none">
<thead>
<tr>
<th>PROPERTY</th>
<th></th>
<th>PRICE</th>
<th>LOCATION</th>
</tr>
</thead>
<tbody> ';
while ($rw = mysqli_fetch_assoc($query)) {
echo '<tr>
<td class="image">
<a href="#"><img a src= "'.$rw['photo1'].'" class="img-fluid"></a>
</td>
<td>
<div class="inner">
<a href="#"></a>
<figure><i class="flaticon-facebook-placeholder-for-locate-places-on-maps"></i> '.$rw['address'].'</figure>
<div class="tag price">'.$rw['type'].'</div>
</div>
</td>
<td>'.$rw['price'].'</td>
<td>'.$rw['campus'].'</td>
</tr>';
}
echo '</tbody>
</table>' ;
}
?>
</div>
</div>
</div>
</div>
</div>
<!-- My bookmarks end -->
<!-- Footer start -->
<footer class="footer">
<div class="container footer-inner">
<div class="row">
<div class="col-xl-12">
<p class="copy">© Ejigson</p>
</div>
</div>
</div>
</footer>
<!-- Footer end -->
<!-- Full Page Search -->
<script src="js/jquery-2.2.0.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-submenu.js"></script>
<script src="js/rangeslider.js"></script>
<script src="js/jquery.mb.YTPlayer.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/jquery.scrollUp.js"></script>
<script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="js/leaflet.js"></script>
<script src="js/leaflet-providers.js"></script>
<script src="js/leaflet.markercluster.js"></script>
<script src="js/dropzone.js"></script>
<script src="js/slick.min.js"></script>
<script src="js/jquery.filterizr.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/jquery.countdown.js"></script>
<script src="js/maps.js"></script>
<script src="js/app.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="js/ie10-viewport-bug-workaround.js"></script>
<!-- Custom javascript -->
<script src="js/ie10-viewport-bug-workaround.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','../../../www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-89110077-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>