forked from tallsmallone/osu_hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplace.php
32 lines (30 loc) · 938 Bytes
/
place.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
<?php
require_once("frames/head.php");
require_once("php/functions.php");
?>
<input id="search" type="text" list="suggestions" class="form-control search_small" value="<?php if (isset($_GET['s'])) echo $_GET['s']; ?>" placeholder="Where would you like to eat?" data-toggle="dropdown">
<datalist id="suggestions"></datalist>
<?php
if (isset($_GET['id'])) {
getPlaceInfo(is_numeric($_GET['id']) ? $_GET['id'] : 0, "id");
}
elseif (isset($_GET['s'])) {
getPlaceInfo($_GET['s'], "search");
}
elseif (isset($_GET['name'])) {
getPlaceInfo($_GET['name'], "name");
}
elseif (isset($_GET['tags'])) {
getPlaceInfo($_GET['tags'], "tags");
}
elseif (isset($_GET['types'])) {
getPlaceInfo($_GET['types'], "types");
}
else getPlaceInfo(0);
?>
<br>
<script type="text/javascript" src='js/autocomplete.js'></script>
<script type="text/javascript" src='js/search.js'></script>
<?php
require_once("frames/footer.php");
?>