aboutsummaryrefslogtreecommitdiffstats
path: root/admin/templates/users.php
blob: 6ad10cafc46d5da67690357893de5f0291554b3f (plain)
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
/*
 * Template for admin pages
 */
?>
<h1>Administration</h1>
<h2>Users</h2>

<table>
	<thead>
		<tr>
			<th></th>
			<th>Name</th>
			<th>Groups</th>
		</tr>
	<thead>
	<tbody>
		<?php foreach($_["users"] as $user): ?>
			<tr>
				<td><input type="checkbox"></td>
				<td><?php echo $user["name"] ?></td>
				<td><?php echo $user["groups"] ?></td>
			</tr>
		<?php endforeach; ?>
	</tbody>
</table>

<h2>Groups</h2>
<table>
	<thead>
		<tr>
			<th>Name</th>
			<th></th>
		</tr>
	<thead>
	<tbody>
		<?php foreach($_["groups"] as $group): ?>
			<tr>
				<td><?php echo $group["name"] ?></td>
				<td>remove</td>
			</tr>
		<?php endforeach; ?>
	</tbody>
</table>