-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
47 lines (34 loc) · 1.05 KB
/
index.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
<?php include("includes/views/header.php"); ?>
<?php
$genres = array();
//These are here so that htmlentities does not show errors, can be removed is the form is placed before it.
if (!isset($_GET['s'])) {
$search = "";
$users = User::find_all();
}
?>
<div>
<form id="game_search" >
<div class="">
<label>Game Search</label>
<input type="text" onkeyup="update_gamelist()" id="search" value="<?php echo htmlentities($search); ?>">
<select id="category" onchange="update_gamelist()">
<option value="" selected="selected">All</option>
<option value="title">Title</option>
<option value="creator">Creator</option>
</select>
<select id="genre" onchange="update_gamelist()">
<option value="" selected="selected">All</option>
<option value="action">Action</option>
<option value="comedy">Comedy</option>
<option value="slice of life">Slife Of Life</option>
</select>
</div>
</form>
<div id="gameslist">
<?php
include("includes/views/gamelist.php");
?>
</div>
</div>
<?php include("includes/views/footer.php"); ?>