-
Notifications
You must be signed in to change notification settings - Fork 1
/
restaurants.php
65 lines (60 loc) · 1.95 KB
/
restaurants.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
<?php
session_start();
require_once("templates/common.php");
require_once("database/connection.php");
require_once("database/restaurants.php");
output_header("restaurants",array("restaurants"));
?>
<h1 id="pageTitle">Restaurants</h1>
<menu>
<ul id="searchOptions">
<li>
<h3>Average review score</h3>
<span id="searchByReviewScore">
<div class="slider">
<div class="range"></div>
<input class='slideBar min' type="range" min="0" max="100" value="0" step="1" >
<input class='slideBar max' type="range" min="0" max="100" value="100" step="1">
<div class="minScore">0</div>
<div class="maxScore">100</div>
</div>
</span>
</li>
<li id="searchByPrice">
<h3>Price Range</h3>
<div class='prices'>
<button class = "price 0" type="radio">
€
</button>
<button class = "price 1" type="radio">
€€
</button>
<button class = "price 2" type="radio">
€€€
</button>
<button class = "price 3" type="radio">
€€€€
</button>
</div>
</li>
<li id="sortBy">
<h3>Sort By</h3>
<label>
<input class="sort sortByName" type="radio" checked name="sort">
Name (default)
</label>
<br>
<label>
<input class = "sort sortByRating" type="radio" name="sort">
Rating
</label>
<br>
<label>
<input class = "sort sortByMostPopular" type="radio" name="sort">
Most popular
</label>
</li>
</ul>
<ul id="restaurants">
</ul>
</menu>