-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
256 lines (218 loc) · 10.5 KB
/
home.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
<?php
define('IN_SITE', true);
$rootpath1 = "";
require('libs/core1.php');
?>
<?php
$phongtro = new Phongtro();
$listPhongtro = $phongtro->getListStt1();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>GreenHome - Thuê Phòng Trọ</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/home.png" rel="icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Raleway:300,400,500,700,800|Montserrat:300,400,700" rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
<!-- =======================================================
* Template Name: Reveal - v4.9.1
* Template URL: https://bootstrapmade.com/reveal-bootstrap-corporate-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<body>
<!-- ======= Top Bar ======= -->
<section id="topbar" class="d-flex align-items-center">
<div class="container d-flex justify-content-center justify-content-md-between">
<div class="contact-info d-flex align-items-center">
<i class="bi bi-envelope d-flex align-items-center"><a href="mailto:contact@example.com">HomegreenLTN.com</a></i>
<i class="bi bi-phone d-flex align-items-center ms-4"><span>+84 937058XXX</span></i>
</div>
<div class="social-links d-none d-md-flex align-items-center">
<a href="#" class="twitter"><i class="bi bi-twitter"></i></a>
<a href="#" class="facebook"><i class="bi bi-facebook"></i></a>
<a href="#" class="instagram"><i class="bi bi-instagram"></i></a>
<a href="#" class="linkedin"><i class="bi bi-linkedin"></i></a>
<button class="btn btn-success ml-2"><a class="text-white" href="<?php echo $homeurl."signin1.php"?>">LOGIN</a></button>
</div>
</div>
</section><!-- End Top Bar-->
<!-- ======= Header ======= -->
<header id="header" class="d-flex align-items-center">
<div class="container d-flex justify-content-between">
<div id="logo">
<img src="" alt="">
<h1><a href="index.html">Green<span>Home</span></a></h1>
<!-- Uncomment below if you prefer to use an image logo -->
<!-- <a href="index.html"><img src="assets/img/logo.png" alt=""></a>-->
</div>
<nav id="navbar" class="navbar">
<ul>
<li><a class="nav-link scrollto active" href="#hero">Home</a></li>
<li><a class="nav-link scrollto" href="appuserchange/?m=blog&a=list">Blog</a></li>
<li><a class="nav-link scrollto" href="#contact">Contact</a></li>
</ul>
<i class="bi bi-list mobile-nav-toggle"></i>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
<!-- ======= hero Section ======= -->
<section id="hero">
<div class="hero-content" data-aos="fade-up">
<h2>Green <span>Home</span><br>Be where your feet are!</h2>
</div>
<div class="hero-slider swiper">
<div class="swiper-wrapper">
<div class="swiper-slide" style="background-image: url('assets/img/hero-carousel/1.jpg');"></div>
<div class="swiper-slide" style="background-image: url('assets/img/hero-carousel/2.jpg');"></div>
<div class="swiper-slide" style="background-image: url('assets/img/hero-carousel/3.jpg');"></div>
<div class="swiper-slide" style="background-image: url('assets/img/hero-carousel/4.jpg');"></div>
<div class="swiper-slide" style="background-image: url('assets/img/hero-carousel/5.jpg');"></div>
</div>
</div>
</section><!-- End Hero Section -->
<main id="main">
<!-- ======= Portfolio Section ======= -->
<section id="portfolio" class="portfolio">
<div class="container" data-aos="fade-up">
<div class="section-header">
<h2>Danh Sách Tất Cả Phòng Trọ</h2>
Hiện tại bên chúng tôi có tổng là: <?php echo db_count($DB_PHONGTRO, 'phongtro_ma'); ?> phòng trọ, với <?php echo db_count($DB_PHONGTRO, 'phongtro_ma', array('trangthai' => 1)); ?> phòng đã thuê và <?php echo db_count($DB_PHONGTRO, 'phongtro_ma', array('trangthai' => '0')); ?> phòng trống
</div>
<!-- <div class="row" data-aos="fade-up" data-aos-delay="100">
<div class="col-lg-12 d-flex justify-content-center">
<ul id="portfolio-flters">
<li data-filter="*" class="filter-active">Tất Cả</li>
<li data-filter=".filter-card">Phòng Trống</li>
</ul>
</div>
</div> -->
<div class="row portfolio-container" data-aos="fade-up" data-aos-delay="150">
<?php
foreach ($listPhongtro as $phong) {
$trangthai = $phong['trangthai'] == 0 ? '<span class="text-danger">Trống</span>' : '<span class="text-primary">Đang thuê</span>';
?>
<div class="col-lg-3 col-md-6 portfolio-item filter-app">
<img src="assets/img/portfolio/NT.png" class="img-fluid" alt="">
<div class="text-center"><?php echo $phong['tenphongtro']; ?></div>
<div class="portfolio-info">
<h4>
<?php echo $phong['tenphongtro']; ?>
</h4>
<p> <?php echo $trangthai; ?> </p>
<a href="assets/img/portfolio/NT.png" data-gallery="portfolioGallery" class="portfolio-lightbox preview-link" title="<?php echo ($phong['tenphongtro']."<br>".$phong['thongtin']);?>"><i class="bx bx-plus"></i></a>
<a href="portfolio-details.html" class="details-link" title="More Details"><i class="bx bx-link"></i></a>
</div>
</div>
<?php
}
?>
</div>
</div>
</section><!-- End Portfolio Section -->
<!-- ======= Contact Section ======= -->
<section id="contact">
<div class="container" data-aos="fade-up">
<div class="section-header">
<h2>Liên Hệ Với Chúng Tôi</h2>
<p>Để lựa chọn phòng trọ phù hợp với bạn. Hãy liên hệ với chúng tôi qua phương thức dưới đây! </p>
</div>
<div class="row contact-info">
<div class="col-md-4">
<div class="contact-address">
<i class="bi bi-geo-alt"></i>
<h3>Địa Chỉ</h3>
<address>236B Lê Văn Sỹ, Q.Tân Bình, TP.HCM</address>
</div>
</div>
<div class="col-md-4">
<div class="contact-phone">
<i class="bi bi-phone"></i>
<h3>Số Điện Thoại</h3>
<p><a href="tel:+155895548855">+84 9370584XX</a></p>
</div>
</div>
<div class="col-md-4">
<div class="contact-email">
<i class="bi bi-envelope"></i>
<h3>Email</h3>
<p><a href="mailto:info@example.com">GreenhomeLTN@gmail.com</a></p>
</div>
</div>
</div>
</div>
<div class="container mb-4">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3919.19389574661!2d106.66458655048882!3d10.796456692270203!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3175292e780bc82f%3A0x41b3ce1213cdb644!2zMjM2QiBMw6ogVsSDbiBT4bu5LCBQaMaw4budbmcgMSwgVMOibiBCw6xuaCwgVGjDoG5oIHBo4buRIEjhu5MgQ2jDrSBNaW5oLCBWaeG7h3QgTmFt!5e0!3m2!1svi!2s!4v1667377050163!5m2!1svi!2s" width="100%" height="500" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
</section><!-- End Contact Section -->
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<footer class="container">
<div class="container">
<div class="copyright">
© DTM<strong> BiLN</strong>
</div>
<div class="credits">
<!--
All the links in the footer should remain intact.
You can delete the links only if you purchased the pro version.
Licensing information: https://bootstrapmade.com/license/
Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/buy/?theme=Reveal
-->
Designed by <a href="https://facebook.com/ngoc.t.le">Lê Tấn Ngọc</a>
</div>
</div>
</footer><!-- End Footer -->
<a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
<!-- Vendor JS Files -->
<script src="assets/vendor/aos/aos.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
<!-- Messenger Plugin chat Code -->
<div id="fb-root"></div>
<!-- Your Plugin chat code -->
<div id="fb-customer-chat" class="fb-customerchat">
</div>
<script>
var chatbox = document.getElementById('fb-customer-chat');
chatbox.setAttribute("page_id", "112308215055696");
chatbox.setAttribute("attribution", "biz_inbox");
</script>
<!-- Your SDK code -->
<script>
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : 'v15.0'
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/vi_VN/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
</html>