-
Notifications
You must be signed in to change notification settings - Fork 31
/
property.php
224 lines (194 loc) · 11 KB
/
property.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
<?php
ini_set('session.cache_limiter','public');
session_cache_limiter(false);
session_start();
include("config.php");
///code
?>
<!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">
<meta name="description" content="Homex template">
<meta name="keywords" content="">
<meta name="author" content="Unicoder">
<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>
-->
<div id="page-wrapper">
<div class="row">
<!-- Header start -->
<?php include("include/header.php");?>
<!-- Header end -->
<!-- Banner --->
<div class="banner-full-row page-banner" style="background-image:url('images/breadcromb.jpg');">
<div class="container">
<div class="row">
<div class="col-md-6">
<h2 class="page-name float-left text-white text-uppercase mt-1 mb-0"><b>Property Grid</b></h2>
</div>
<div class="col-md-6">
<nav aria-label="breadcrumb" class="float-left float-md-right">
<ol class="breadcrumb bg-transparent m-0 p-0">
<li class="breadcrumb-item text-white"><a href="#">Home</a></li>
<li class="breadcrumb-item active">Property Grid</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
<!-- Banner --->
<!-- Property Grid
===============================================================-->
<div class="full-row">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="row">
<?php
$query=mysqli_query($con,"SELECT property.*, user.uname,user.utype,user.uimage FROM `property`,`user` WHERE property.uid=user.uid");
while($row=mysqli_fetch_array($query))
{
?>
<div class="col-md-6">
<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="sale bg-secondary text-white">For <?php echo $row['5'];?></div>
<div class="price text-primary text-capitalize">$<?php echo $row['13'];?> <span class="text-white"><?php echo $row['12'];?> Sqft</span></div>
</div>
<div class="featured-thumb-data shadow-one">
<div class="p-4">
<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="px-4 pb-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 class="col-md-12">
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center mt-4">
<li class="page-item disabled"> <span class="page-link">Previous</span> </li>
<li class="page-item active" aria-current="page"> <span class="page-link"> 1 <span class="sr-only">(current)</span> </span> </li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">...</li>
<li class="page-item"><a class="page-link" href="#">5</a></li>
<li class="page-item"> <a class="page-link" href="#">Next</a> </li>
</ul>
</nav>
</div> -->
</div>
</div>
<div class="col-lg-4">
<div class="sidebar-widget">
<h4 class="double-down-line-left text-secondary position-relative pb-4 my-4">Instalment Calculator</h4>
<form class="d-inline-block w-100" action="calc.php" method="post">
<label class="sr-only">Property Amount</label>
<div class="input-group mb-2 mr-sm-2">
<div class="input-group-prepend">
<div class="input-group-text">$</div>
</div>
<input type="text" class="form-control" name="amount" placeholder="Property Price">
</div>
<label class="sr-only">Month</label>
<div class="input-group mb-2 mr-sm-2">
<div class="input-group-prepend">
<div class="input-group-text"><i class="far fa-calendar-alt"></i></div>
</div>
<input type="text" class="form-control" name="month" placeholder="Duration Year">
</div>
<label class="sr-only">Interest Rate</label>
<div class="input-group mb-2 mr-sm-2">
<div class="input-group-prepend">
<div class="input-group-text">%</div>
</div>
<input type="text" class="form-control" name="interest" placeholder="Interest Rate">
</div>
<button type="submit" value="submit" name="calc" class="btn btn-primary mt-4">Calclute Instalment</button>
</form>
</div>
<div class="sidebar-widget mt-5">
<h4 class="double-down-line-left text-secondary position-relative pb-4 mb-4">Recent Property Add</h4>
<ul class="property_list_widget">
<?php
$query=mysqli_query($con,"SELECT * FROM `property` ORDER BY date DESC LIMIT 6");
while($row=mysqli_fetch_array($query))
{
?>
<li> <img src="admin/property/<?php echo $row['18'];?>" alt="pimage">
<h6 class="text-secondary hover-text-primary text-capitalize"><a href="propertydetail.php?pid=<?php echo $row['0'];?>"><?php echo $row['1'];?></a></h6>
<span class="font-14"><i class="fas fa-map-marker-alt icon-primary icon-small"></i> <?php echo $row['14'];?></span>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Footer start-->
<?php include("include/footer.php");?>
<!-- Footer start-->
<!-- Scroll to top -->
<a href="#" class="bg-secondary 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/custom.js"></script>
</body>
</html>