-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusers.php
More file actions
48 lines (33 loc) · 1.15 KB
/
users.php
File metadata and controls
48 lines (33 loc) · 1.15 KB
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
<!-- Denne siden kommer til å innholde en liste over brukerne og en søkemotor for dem. -->
<?php include("includes/views/header.php"); ?>
<?php if (!$session->is_signed_in() || !User::is_admin($session->user_id)) {redirect("login.php");} ?>
<div >
<?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['f'])) {
$search = "";
$users = User::find_all();
}
?>
<form id="user_search" >
<div class="">
<div>
<label>User Search</label>
<input type="text" onkeyup="update_userlist()" id="search" value="<?php echo htmlentities($search); ?>">
<select id="category" onchange="update_userlist()">
<option value="all" selected="selected">All</option>
<option value="first_name">First Name</option>
<option value="middle_name">Middle Name</option>
<option value="last_name">Last Name</option>
<option value="id">ID</option>
</select>
</div>
</form>
<div id="userlist">
<?php
include("includes/views/userlist.php");
?>
</div>
</div>
<?php include("includes/views/footer.php"); ?>