-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
executable file
·87 lines (75 loc) · 2.39 KB
/
search.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
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
$page_title = "Search";
include "partials/header.php";
?>
<link rel="stylesheet" href="css/datepicker.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://use.fontawesome.com/5ca19d8c97.js" defer></script>
</head>
<body>
<div class="container-fluid">
<?php
include "partials/navbar.php";
include "partials/notifications.php";
include "partials/searchbar.php";
?>
<div class="col-md-3">
<div data-spy="affix" data-offset-top="60" class="sidebar">
<h4>Search filters</h4>
<p>Room features:</p>
<input type="checkbox" id="wifi" name="wifi" />
<label for="wifi">Wireless internet</label>
<br />
<input type="checkbox" id="tv" name="tv" />
<label for="tv">Premium TV channels</label>
<br />
<p>Smoking options:</p>
<input type="radio" name="smoking" value="nosmoking"/>
<label for="smoking">Non-smoking</label>
<br />
<input type="radio" name="smoking" value="smoking"/>
<label for="smoking">Smoking</label>
<br />
<p>Sort:</p>
<label>Price:</label>
<ul>
<li>
<input type="radio" name="sort" value="price-asc" />
<label>Low to high</label>
</li>
<li>
<input type="radio" name="sort" value="price-desc" />
<label>High to low</label>
</li>
<li>
<label for="price-min price-max">Range:</label>
<input class="form-control input-sm input-small-num" type="text" name="price-min" id="price-min" />
<label>to</label>
<input class="form-control input-sm input-small-num" type="text" name="price-max" id="price-max" />
</li>
</ul>
<button id="apply-filters" class="btn btn-primary">Apply Filters</button>
<button id="clear-filters" class="btn btn-default">Clear Filters</button>
</div>
</div>
<div class="col-md-9">
<div id="searchresults"></div>
<div id="pagebuttons"></div>
</div>
</div>
<?php if ($_SESSION["is_admin"]) { ?>
<a id="stickyBtnAddRoom" href="admin-add-room.php" class="btn btn-success btn-lg">
<i class="glyphicon glyphicon-plus"></i> Add Room
</a>
?> <?php } ?>
<?php
include "partials/footer.php";
?>
<script src="js/bootstrap-datepicker.js"></script>
<script src="js/search.js"></script>
</body>
</html>