-
Notifications
You must be signed in to change notification settings - Fork 0
/
property.php
104 lines (77 loc) · 4.38 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
<?php
ini_set('session.cache_limiter','public');
session_cache_limiter(false);
session_start();
include("config.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<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 http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" href="prop.png">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Property Hub</title>
</head>
<body>
<?php include("include/header.php");?>
<div class="container my-5 py-5">
<div class="row my-5 py-5 rounded shadow">
<h2 class="text-start">List of Properties</h2>
<?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="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home">
<div class="row d-flex mx-auto justify-content-center">
<?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-sm-6 col-md-4 col-lg-3 mb-4">
<div class="card h-100 border-0 shadow rounded">
<div class="position-relative">
<img class="card-img-top" src="admin/property/<?php echo $row['18']; ?>" alt="pimage" style="height: 200px; object-fit: cover;">
<div class="card-img-overlay d-flex flex-column justify-content-end align-items-center">
<a href="propertydetail?pid=<?php echo $row['0'];?>" class="btn btn-sm btn-primary mb-3">View details</a>
</div>
</div>
<div class="card-body bg-light">
<h5 class="card-title"><?php echo $row['1']; ?></h5>
<hr>
<div class="row">
<div class="col-md-6">
<p class="card-text"><i class="fas fa-map-marker-alt text-warning"></i> <?php echo $row['15'];?></p>
</div>
<div class="col-md-6">
<div class="d-flex justify-content-end align-items-center">
<p class="card-text mb-0 ms-3"><strong>₱<?php echo $row['13'];?></strong></p>
</div>
</div>
</div>
<hr>
<div class="d-flex justify-content-between align-items-center">
<div class="text-secondary"><?php echo $row['24']; ?></div>
<span class="badge bg-primary text-white"><?php echo $row['5']; ?></span>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<?php include("include/footer.php");?>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js" integrity="sha384-eMNCOe7tC1doHpGoWe/6oMVemdAVTMs2xqW4mwXrXsW0L84Iytr2wi5v2QjrP/xp" crossorigin="anonymous"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/effects.js"></script>
</body>
</html>