-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
58 lines (54 loc) · 2.65 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
<!-- Masthead-->
<header class="masthead">
<div class="container h-100">
<div class="row h-100 align-items-center justify-content-center text-center">
<div class="col-lg-10 align-self-end mb-4">
<div class="card" id="filter-book">
<div class="card-body">
<div class="container-fluid">
<form action="index.php?page=list" id="filter" method="POST">
<div class="row">
<div class="col-md-3">
<label for="">Chech-in Date</label>
<input type="text" class="form-control datepicker" name="date_in" autocomplete="off">
</div>
<div class="col-md-3">
<label for="">Chech-out Date</label>
<input type="text" class="form-control datepicker" name="date_out" autocomplete="off">
</div>
<div class="col-md-3">
<br>
<button class="btn-btn-block btn-primary mt-3">Check Availability</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<section class="page-section">
</section>
<div id="portfolio">
<div class="container-fluid p-0">
<div class="row no-gutters">
<?php
include'admin/db_connect.php';
$qry = $conn->query("SELECT * FROM room_categories order by rand() ");
while($row = $qry->fetch_assoc()):
?>
<div class="col-lg-4 col-sm-6">
<a class="portfolio-box" href="#">
<img class="img-fluid" src="assets/img/<?php echo $row['cover_img'] ?>" alt="" />
<div class="portfolio-box-caption">
<div class="project-category text-white-30"><?php echo "$ ".number_format($row['price'],2) ?> per day</div>
<div class="project-name"><?php echo $row['name'] ?></div>
</div>
</a>
</div>
<?php endwhile; ?>
</div>
</div>
</div>