server/admin/templates/users.php
François KUBLER bf815b3390 Fixed PHP syntax in template files.
* Full PHP tags
  * Alternative syntax for control structures
  * Semi-colon at the end of instructions
2011-03-09 21:57:00 +01:00

44 lines
670 B
PHP

<?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>