-
Notifications
You must be signed in to change notification settings - Fork 0
/
advanced.php
156 lines (140 loc) · 7.5 KB
/
advanced.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
session_start();
//Include database connection
require_once('includes/db.inc.php');
//Include remember me login
require_once('includes/remember_cookie.inc.php');
//Include CSRFToken generator
require_once('includes/csrf_token.inc.php');
//Print function to avoid XSS
require_once('includes/xss.inc.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="The Official Page of Engage Games">
<meta name="author" content="Szymon Bialkowski & Shane Doyle">
<link rel="icon" href="assets/img/favicon.ico">
<title>Engage Advanced Search</title>
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="assets/css/font-awesome.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="assets/css/advanced.css" rel="stylesheet">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Lato:300,300i,400,700" rel="stylesheet">
<!-- HTML5 shiv and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="loading"></div>
<?php
//Navbar
require_once('includes/navbar.inc.php');
?>
<div class="main-body">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="catalogue">
<div class="container">
<form class="main-form" method="get" action="advancedResults.php">
<h3>Advanced Search.</h3>
<div class="form-group row">
<label for="inputEmail3" class="col-sm-2 col-form-label">Title</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="game_title" placeholder="Name">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">Console</label>
<div class="col-sm-10">
<select class="form-control" name="console" id="exampleFormControlSelect1">
<option selected="" disabled>Console</option>
<option value="PC">PC</option>
<option value="PS4">Playstation 4</option>
<option value="XB1">Xbox One</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">Genre</label>
<div class="col-sm-10">
<select class="form-control" name="genre" id="exampleFormControlSelect1">
<option selected="" disabled>Genre</option>
<option>Action</option>
<option>Action role-playing</option>
<option>Action-Adventure</option>
<option>Fighting</option>
<option>FPS</option>
<option>Shooter</option>
<option>Sports</option>
<option>Stealth</option>
<option>Survival Horror</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">Age</label>
<div class="col-sm-10">
<select class="form-control" name="age" id="exampleFormControlSelect1">
<option selected="" disabled>Age</option>
<option>18+</option>
<option>16+</option>
<option>12+</option>
<option>7+</option>
<option>3+</option>
</select>
</div>
</div>
<div class="form-group row">
<label for="inputEmail3" class="col-sm-2 col-form-label">Year</label>
<div class="col-sm-10">
<input type="number" class="form-control" name="release_year" placeholder="Release Year">
</div>
</div>
<div class="form-group row">
<label for="inputEmail3" class="col-sm-2 col-form-label">Min Price</label>
<div class="col-sm-10">
<p class="slider-p" id="slider_output">0</p>
<input type="range" name="min_price" value="0" id="my_range" min="0" max="100">
</div>
</div>
<div class="form-group row">
<label for="inputEmail3" class="col-sm-2 col-form-label">Max Price</label>
<div class="col-sm-10">
<p class="slider-p" id="slider_output_2">0</p>
<input type="range" name="max_price" value="0" id="my_range_2" min="0" max="100">
</div>
</div>
<div class="form-group row">
<div class="col-sm-10">
<button type="submit" class="btn btn-primary">Search</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
//Print footer
require_once('includes/footer.inc.php');
?>
<!-- JQuery JavaScript -->
<script src="assets/js/jquery.min.js"></script>
<!-- Bootstrap JavaScript -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Custom JS -->
<script src="assets/js/custom.js"></script>
<!-- Custom Slider JS -->
<script src="assets/js/advanced_search.js"></script>
</body>