-
Notifications
You must be signed in to change notification settings - Fork 1
/
posted.html
734 lines (698 loc) · 24.9 KB
/
posted.html
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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>Các bài đã đăng - Home24h</title>
<meta content="" name="description" />
<meta content="" name="keywords" />
<!-- Favicons -->
<link href="assets/img/favicon.png" rel="icon" />
<link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon" />
<!-- Google Fonts -->
<link
href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700"
rel="stylesheet"
/>
<!-- Vendor CSS Files -->
<link href="assets/vendor/animate.css/animate.min.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/swiper/swiper-bundle.min.css" rel="stylesheet" />
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet" />
<!-- =======================================================
* Template Name: EstateAgency - v4.9.1
* Template URL: https://bootstrapmade.com/real-estate-agency-bootstrap-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<body>
<!-- ======= Property Search Section ======= -->
<div class="click-closed"></div>
<!--/ Form Search Star /-->
<div class="box-collapse">
<div class="title-box-d">
<h3 class="title-d">Tìm kiếm</h3>
</div>
<span class="close-box-collapse right-boxed bi bi-x"></span>
<div class="box-collapse-wrap form">
<form class="form-a">
<div class="row">
<div class="col-md-12 mb-2">
<div class="form-group">
<label class="pb-2" for="Type">Từ khóa</label>
<input
type="text"
class="form-control form-control-lg form-control-a"
placeholder="Keyword"
/>
</div>
</div>
<div class="col-md-6 mb-2">
<div class="form-group mt-3">
<label class="pb-2" for="Type">Theo kiểu</label>
<select
class="form-control form-select form-control-a"
id="Type"
>
<option>Tất cả</option>
<option>Cho thuê</option>
<option>Bán</option>
<!-- <option>Open House</option> -->
</select>
</div>
</div>
<div class="col-md-6 mb-2">
<div class="form-group mt-3">
<label class="pb-2" for="city">Tỉnh thành</label>
<select
class="form-control form-select form-control-a"
id="city"
>
<option>Tất cả</option>
</select>
</div>
</div>
<div class="col-md-6 mb-2">
<div class="form-group mt-3">
<label class="pb-2" for="bathrooms">Diện tích</label>
<select
class="form-control form-select form-control-a"
id="bathrooms"
>
<option>Tất cả</option>
<option>0 - 100 m2</option>
<option>100 - 200 m2</option>
<option>Trên 200 m2</option>
</select>
</div>
</div>
<div class="col-md-6 mb-2">
<div class="form-group mt-3">
<label class="pb-2" for="price">Giá tiền</label>
<select
class="form-control form-select form-control-a"
id="price"
>
<option>Không giới hạn</option>
<option>0 - 500 M</option>
<option>500m - 1000m</option>
<option>1000m - 2000m</option>
<option>Trên 2000m</option>
</select>
</div>
</div>
<div class="col-md-12">
<button type="button btn-tim-kiem" class="btn btn-b">
Search Property
</button>
</div>
</div>
</form>
</div>
</div>
<!-- End Property Search Section -->>
<!-- ======= Header/Navbar ======= -->
<nav class="navbar navbar-default navbar-trans navbar-expand-lg fixed-top">
<div class="container">
<button
class="navbar-toggler collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarDefault"
aria-controls="navbarDefault"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span></span>
<span></span>
<span></span>
</button>
<a class="navbar-brand text-brand" href="index.html"
>Home<span class="color-b">24h</span></a
>
<div
class="navbar-collapse collapse justify-content-center"
id="navbarDefault"
>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="index.html">Trang chủ</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">Giới thiệu</a>
</li>
<li class="nav-item">
<a class="nav-link" href="property-grid.html">Danh mục</a>
</li>
<li class="nav-item">
<a class="nav-link" href="blog-grid.html">Đăng tin ngay</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="posted.html">Bài đã đăng</a>
</li>
</ul>
<div class="nav-item dropdown">
<button
class="btn"
id="dropdownUser"
type="button"
data-bs-toggle="dropdown"
aria-expanded="true"
>
<span id="user-name">Guest</span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownUser">
<li>
<a
class="btn btn-link btn-logout text-decoration-none"
type="button"
id="btn-nhap-xuat"
>Đăng xuất</a
>
</li>
<li>
<a
class="btn btn-link text-decoration-none"
href="/admin/index.html"
>Trang quản lý</a
>
</li>
<li>
<a
class="btn btn-link btn-logout text-decoration-none"
href="signup.html"
>Đăng ký</a
>
</li>
</ul>
</div>
</div>
<button
type="button"
class="btn btn-b-n navbar-toggle-box navbar-toggle-box-collapse"
data-bs-toggle="collapse"
data-bs-target="#navbarTogglerDemo01"
>
<i class="bi bi-search"></i>
</button>
</div>
</nav>
<!-- End Header/Navbar -->
<main id="main">
<!-- ======= Intro Single ======= -->
<section class="intro-single mb-5">
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-8">
<div class="title-single-box">
<h1 class="title-single">
Bài đã đăng của: <span id="span-username"></span>
</h1>
<span class="color-text-a"
><i class="bi bi-arrow-down-square"></i
></span>
</div>
</div>
<div class="col-md-12 col-lg-4">
<nav
aria-label="breadcrumb"
class="breadcrumb-box d-flex justify-content-lg-end"
>
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="index.html">Home</a>
</li>
<li class="breadcrumb-item active" aria-current="page">
Bài đã đăng
</li>
</ol>
</nav>
</div>
</div>
</div>
</section>
<!-- End Intro Single-->
<div id="div-user-post">
<!-- Start #List all posts of user -->
<div class="card m-4 col-sm-12">
<div class="row g-0">
<div class="card-header">
<h5 class="card-title text-center">123 ABC, Hoan Kiem, Ha Noi</h5>
</div>
<div class="col-sm-4 text-center my-auto">
<img
src="https://img.freepik.com/free-vector/empty-hallway-interior-with-elevator-sofa_107791-3264.jpg"
class="img-fluid rounded"
style="max-height: 300px"
alt="..."
/>
</div>
<div class="col-sm-5">
<div class="card-body text-center">
<p class="card-text">Loại: ${post.loaiNhaDat}</p>
<p class="card-text">Hình thức: ${post.hinhThuc}</p>
<p class="card-text">Giá tiền: ${post.giaTien}</p>
<p class="card-text">
Số điện thoại:
<button class="btn btn-link btn-link-phone">
${ post.user.soDienThoai }</button
><span class="badge bg-danger"
><i class="bi bi-arrow-left"></i> Gọi ngay</span
>
</p>
<p class="card-text">Dự án: ${post.duAn}</p>
<p class="card-text">Thông tin thêm: ${post.ghiChu}</p>
</div>
</div>
<div class="col-sm-3 text-center my-auto">
<button class="btn btn-info btn-edit-post">Chỉnh sửa</button>
</div>
<div class="card-footer">
<p class="card-text text-center">
<small class="text-muted"
>Đăng bởi: ${ post.user.username } | vào lúc: ${ post.ngayTao
? new Date(post.ngayTao).toLocaleString() : "N/A" }</small
>
</p>
</div>
</div>
</div>
</div>
<!-- End #List all posts of user -->
<div class="row my-5 d-none">
<div class="col-sm-12">
<nav class="pagination-a">
<ul class="pagination justify-content-center">
<li class="page-item next">
<button class="page-link link-a link-load-more" href>
<span>Tải thêm </span><span class="bi bi-chevron-down"></span>
</button>
</li>
</ul>
</nav>
</div>
</div>
<div class="col-sm-12 text-center div-end-list d-none">
<span class="text-muted">Đã tải hết danh sách</span>
</div>
</main>
<!-- End #main -->
<!-- ======= Footer ======= -->
<section class="section-footer">
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-4">
<div class="widget-a">
<div class="w-header-a">
<h3 class="w-title-a text-brand">Home24h</h3>
</div>
<div class="w-body-a">
<p class="w-text-a color-text-a">
Enim minim veniam quis nostrud exercitation ullamco laboris
nisi ut aliquip exea commodo consequat duis sed aute irure.
</p>
</div>
<div class="w-footer-a">
<ul class="list-unstyled">
<li class="color-a">
<span class="color-text-a">Phone .</span>
contact@example.com
</li>
<li class="color-a">
<span class="color-text-a">Email .</span> +54 356 945234
</li>
</ul>
</div>
</div>
</div>
<div class="col-sm-12 col-md-4 section-md-t3">
<div class="widget-a">
<div class="w-header-a">
<h3 class="w-title-a text-brand">The Company</h3>
</div>
<div class="w-body-a">
<div class="w-body-a">
<ul class="list-unstyled">
<li class="item-list-a">
<i class="bi bi-chevron-right"></i>
<a href="#">Site Map</a>
</li>
<li class="item-list-a">
<i class="bi bi-chevron-right"></i> <a href="#">Legal</a>
</li>
<li class="item-list-a">
<i class="bi bi-chevron-right"></i>
<a href="#">Agent Admin</a>
</li>
<li class="item-list-a">
<i class="bi bi-chevron-right"></i>
<a href="#">Careers</a>
</li>
<li class="item-list-a">
<i class="bi bi-chevron-right"></i>
<a href="#">Affiliate</a>
</li>
<li class="item-list-a">
<i class="bi bi-chevron-right"></i>
<a href="#">Privacy Policy</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-sm-12 col-md-4 section-md-t3">
<div class="widget-a">
<div class="w-header-a">
<h3 class="w-title-a text-brand">International sites</h3>
</div>
<div class="w-body-a">
<ul class="list-unstyled">
<li class="item-list-a">
<i class="bi bi-chevron-right"></i>
<a href="#">Venezuela</a>
</li>
<li class="item-list-a">
<i class="bi bi-chevron-right"></i> <a href="#">China</a>
</li>
<li class="item-list-a">
<i class="bi bi-chevron-right"></i>
<a href="#">Hong Kong</a>
</li>
<li class="item-list-a">
<i class="bi bi-chevron-right"></i>
<a href="#">Argentina</a>
</li>
<li class="item-list-a">
<i class="bi bi-chevron-right"></i>
<a href="#">Singapore</a>
</li>
<li class="item-list-a">
<i class="bi bi-chevron-right"></i>
<a href="#">Philippines</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="row">
<div class="col-md-12">
<nav class="nav-footer">
<ul class="list-inline">
<li class="list-inline-item">
<a href="#">Home</a>
</li>
<li class="list-inline-item">
<a href="#">About</a>
</li>
<li class="list-inline-item">
<a href="#">Property</a>
</li>
<li class="list-inline-item">
<a href="#">Blog</a>
</li>
<li class="list-inline-item">
<a href="#">Contact</a>
</li>
</ul>
</nav>
<div class="socials-a">
<ul class="list-inline">
<li class="list-inline-item">
<a href="#">
<i class="bi bi-facebook" aria-hidden="true"></i>
</a>
</li>
<li class="list-inline-item">
<a href="#">
<i class="bi bi-twitter" aria-hidden="true"></i>
</a>
</li>
<li class="list-inline-item">
<a href="#">
<i class="bi bi-instagram" aria-hidden="true"></i>
</a>
</li>
<li class="list-inline-item">
<a href="#">
<i class="bi bi-linkedin" aria-hidden="true"></i>
</a>
</li>
</ul>
</div>
<div class="copyright-footer">
<p class="copyright color-text-a">
© Copyright
<span class="color-a">EstateAgency</span> All Rights Reserved.
</p>
</div>
</div>
</div>
</div>
</footer>
<!-- End Footer -->
<div id="preloader"></div>
<a
href="#"
class="back-to-top d-flex align-items-center justify-content-center"
><i class="bi bi-arrow-up-short"></i
></a>
<!-- jquery -->
<script src="assets/js/jquery/jquery-3.6.1.min.js"></script>
<!-- Vendor JS Files -->
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.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>
<script src="assets/js/baiDangNguoiDung.js"></script>
</body>
<!-- Modal edit bai dang -->
<div
class="modal modal-lg fade"
id="modalPost"
tabindex="-1"
aria-labelledby="postModalLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Chi tiết bài đăng</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-6">
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalId"
class="form-control"
placeholder="Post ID"
disabled
/>
<label class="form-label">ID</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalLoaiNhaDat"
class="form-control"
placeholder="Loại nhà đất"
/>
<label class="form-label">Loại Nhà/Đất</label>
</div>
<div class="form-floating col-sm-12 my-2">
<select
type="text"
id="selectModalHinhThuc"
class="form-select"
>
<option value="sell">Bán</option>
<option value="rent">Cho thuê</option>
</select>
<label class="col-form-label">Hình thức</label>
</div>
<div class="form-floating col-sm-12 my-2">
<select id="selectModalTinhThanh" class="form-select"></select>
<label class="col-form-label">Tỉnh thành</label>
</div>
<div class="form-floating col-sm-12 my-2">
<select id="selectModalQuanHuyen" class="form-select"></select>
<label class="form-label">Quận/Huyện</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalDiaChi"
class="form-control"
placeholder="Địa chỉ"
/>
<label class="form-label">Địa chỉ</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalSoPhong"
class="form-control"
placeholder="Số phòng"
/>
<label class="form-label">Số phòng</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalSoTang"
class="form-control"
placeholder="Số tầng"
/>
<label class="form-label">Số tầng</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalNgayTao"
class="form-control"
placeholder="Ngày đăng"
disabled
/>
<label class="form-label">Ngày đăng</label>
</div>
</div>
<div class="col-sm-6">
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalDienTich"
class="form-control"
placeholder="Diện tích"
/>
<label class="form-label">Diện tích</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalDuAn"
class="form-control"
placeholder="Dự án"
/>
<label class="form-label">Dự án</label>
</div>
<div class="form-floating col-sm-12 my-2">
<select type="text" id="selectModalDaBan" class="form-select">
<option value="1" data-enabled="true">Đã bán</option>
<option value="0" data-enabled="false">Chưa bán</option>
</select>
<label class="col-form-label">Đã bán</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalImage"
class="form-control"
placeholder="Đường dẫn hình ảnh"
/>
<label class="form-label">Đường dẫn hình ảnh</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalGiaTien"
class="form-control"
placeholder="Giá tiền"
/>
<label class="form-label">Giá tiền</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalGhiChu"
class="form-control"
placeholder="Ghi chú"
/>
<label class="form-label">Ghi chú</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalNguoiDang"
class="form-control"
placeholder="Người đăng"
disabled
/>
<label class="form-label">Người đăng</label>
</div>
<div class="form-floating col-sm-12 my-2">
<input
type="text"
id="inpModalNgayCapNhat"
class="form-control"
placeholder="Ngày cập nhật"
disabled
/>
<label class="form-label">Ngày cập nhật</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-bs-dismiss="modal"
>
Đóng
</button>
<button type="button" class="btn btn-primary btn-modal-save">
Lưu
</button>
</div>
</div>
</div>
</div>
<!-- Toast Error -->
<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11">
<div
id="toastError"
class="toast hide"
role="alert"
aria-live="assertive"
aria-atomic="true"
>
<div class="toast-header bg-warning">
<strong class="me-auto"
><i class="bi bi-exclamation-triangle"></i> Lỗi đăng nhập</strong
>
<button
type="button"
class="btn-close"
data-bs-dismiss="toast"
aria-label="Close"
></button>
</div>
<div class="toast-body bg-warning">
<span id="textError"></span>
</div>
</div>
</div>
</html>