-
Notifications
You must be signed in to change notification settings - Fork 0
/
showUserList.php
44 lines (38 loc) · 1012 Bytes
/
showUserList.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
<?php require_once 'controllers/crudController.php';
require_once 'controllers/loginSessionController.php';?>
<?php
$users = getUsers();
echo ' <th class = "userHeader">Username</th>
<th class = "userHeader">E-mail</th>
<th class = "userHeader">Type</th>
<th class = "userHeader">ID</th>
<th class = "userHeader"> </th>
';
foreach($users as $user){
echo '<tr >
<td>
<div class="userName">
<p >'.$user["username"].'</p>
</div>
</td>
<td>
<div class="email">
<p >'.$user["email"].'</p>
</div>
</td>
<td>
<div class="type">
<p >'.$user["type"].'</p>
</div>
</td>
<td>
<div class="id">
<p >'.$user["id"].'</p>
</div>
</td>
<td>
<input class = "btnUser" onClick = "banUser('.$user["id"].')" type = "button" value = "Delete"> </button>
</td>
</tr>';
}
?>