-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrent_building_list.php
201 lines (169 loc) · 8.37 KB
/
rent_building_list.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
<?php
declare(strict_types=1);
session_start();
ob_start();
include "../includes/connect.php";
include "../includes/functions.php";
?>
<!DOCTYPE html>
<html lang="zxx">
<!-- Mirrored from code-theme.com/html/findhouses/add-property.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 13 Dec 2021 10:32:32 GMT -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="html 5 template">
<meta name="author" content="">
<title>View Property</title>
<!-- FAVICON -->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="css/jquery-ui.css">
<!-- GOOGLE FONTS -->
<link href="https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i%7CMontserrat:600,800" rel="stylesheet">
<!-- FONT AWESOME -->
<link rel="stylesheet" href="css/fontawesome-all.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- ARCHIVES CSS -->
<link rel="stylesheet" href="css/search.css">
<link rel="stylesheet" href="css/dashbord-mobile-menu.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/swiper.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/lightcase.css">
<link rel="stylesheet" href="css/owl-carousel.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/menu.css">
<link rel="stylesheet" href="css/slick.css">
<link rel="stylesheet" href="css/styles.css">
</head>
<body class="inner-pages maxw1600 m0a dashboard-bd">
<!-- Wrapper -->
<div id="wrapper" class="int_main_wraapper">
<!-- START SECTION HEADINGS -->
<!-- Header Container
================================================== -->
<?php include "navigation.php"; ?>
<div class="clearfix"></div>
<!-- Header Container / End -->
<!-- START SECTION USER PROFILE -->
<section class="user-page section-padding pt-5">
<div class="container-fluid">
<div class="row">
<?php include "left_sidebar.php" ?>
<div class="col-lg-9 col-md-12 col-xs-12 royal-add-property-area section_100 pl-0 user-dash2">
<!-- Display success messages -->
<?php display_success_message(); ?>
<div class="dashborad-box stat bg-white">
<div class="dashborad-box">
<h4 class="title">Rent building List</h4>
<div class="section-body listing-table">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Building Name</th>
<th>No.of Floors</th>
<th>No.of Flats(Per Floor)</th>
<th>Division</th>
<th>Address</th>
</tr>
</thead>
<tbody>
<?php
// Query
$stmt = query("SELECT * FROM building");
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$building_name = $row['building_name'];
$no_of_flats = $row['no_of_flats'];
$no_of_floors = $row['no_of_floors'];
$division = $row['division'];
$address = $row['address'];
?>
<tr>
<td><input type="button" class="btn btn-link" value="<?php echo $building_name;?>"
onclick="show_listfn('<?php echo $building_name;?>');"></td>
<td><?php echo $no_of_floors; ?></td>
<td class="rating"><span><?php echo $no_of_flats; ?></span></td>
<td class="status"><span class=" active"><?php echo $division; ?></span></td>
<td><?php echo $address; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- END SECTION USER PROFILE -->
<a data-scroll href="#wrapper" class="go-up"><i class="fa fa-angle-double-up" aria-hidden="true"></i></a>
<!-- END FOOTER -->
<!-- START PRELOADER -->
<div id="preloader">
<div id="status">
<div class="status-mes"></div>
</div>
</div>
<!-- END PRELOADER -->
<!-- ARCHIVES JS -->
<script src="js/jquery-3.5.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/moment.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/mmenu.min.js"></script>
<script src="js/mmenu.js"></script>
<script src="js/swiper.min.js"></script>
<script src="js/swiper.js"></script>
<script src="js/slick.min.js"></script>
<script src="js/slick2.js"></script>
<script src="js/fitvids.js"></script>
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<script src="js/imagesloaded.pkgd.min.js"></script>
<script src="js/isotope.pkgd.min.js"></script>
<script src="js/smooth-scroll.min.js"></script>
<script src="js/lightcase.js"></script>
<script src="js/search.js"></script>
<script src="js/owl.carousel.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/ajaxchimp.min.js"></script>
<script src="js/newsletter.js"></script>
<script src="js/jquery.form.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/searched.js"></script>
<script src="js/dashbord-mobile-menu.js"></script>
<script src="js/forms-2.js"></script>
<script src="js/color-switcher.js"></script>
<script src="js/dropzone.js"></script>
<!-- MAIN JS -->
<script src="js/script.js"></script>
<script>
$(".dropzone").dropzone({
dictDefaultMessage: "<i class='fa fa-cloud-upload'></i> Click here or drop files to upload",
});
</script>
<script>
$(".header-user-name").on("click", function() {
$(".header-user-menu ul").toggleClass("hu-menu-vis");
$(this).toggleClass("hu-menu-visdec");
});
function show_listfn(info_b)
{
location.assign("rent_client_list.php?b_name="+info_b);
}
</script>
</div>
<!-- Wrapper / End -->
</body>
</html>
<?php
//close database connection - initialize object to null
$pdo = null;
ob_end_flush();
?>