-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHotels.php
34 lines (34 loc) · 845 Bytes
/
Hotels.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
<?php
$menu = "hotel";
if(isset($_GET['s']) AND $_GET['s'] == "offer")
$menu = "offers";
$page_title = "Hotels";
include("header.php");
?>
<!--/process-->
<section class="banner-rs-bottom py-lg-5 py-3" id="plats">
<div class="container py-lg-4 py-3">
<div class="row inner-sec-agileits-w3ls">
<div class="row t-in" style="width: 100%;">
<?php
$db = new DB();
$rsGlobal = new RsGlobal($db->con,"hotel");
if(isset($_GET['s'])){
$allHotels = $rsGlobal->Query("SELECT * FROM hotel WHERE offer != ''");
}
else{
$allHotels = $rsGlobal->Query("SELECT * FROM hotel");
}
while ($row = $allHotels->fetch_assoc()) {
$hotel = $row;
include('inc/template/hotel_loop.php');
}
?>
</div>
</div>
</div>
</section>
<!--//preocess-->
<?php
include("footer.php");
?>