2015-05-05 03:00:01 +02:00
|
|
|
<h2 class="title"><i class="fa fa-users"></i> Users</h2>
|
|
|
|
|
|
|
|
<?php makeNavbar('users'); ?>
|
|
|
|
|
|
|
|
<table class="table-bordered table-stripped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Username</th>
|
|
|
|
<th>First Name</th>
|
|
|
|
<th>Last Name</th>
|
|
|
|
<th>Role</th>
|
|
|
|
<th>Email</th>
|
|
|
|
<th>Registered</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
$users = $dbUsers->getAll();
|
|
|
|
foreach($users as $username=>$field)
|
|
|
|
{
|
|
|
|
echo '<tr>';
|
|
|
|
echo '<td><a href="'.HTML_PATH_ADMIN_ROOT.'edit-user/'.$username.'">'.$username.'</a></td>';
|
|
|
|
echo '<td>'.$field['firstName'].'</td>';
|
|
|
|
echo '<td>'.$field['lastName'].'</td>';
|
|
|
|
echo '<td>'.$field['role'].'</td>';
|
|
|
|
echo '<td>'.$field['email'].'</td>';
|
2015-06-27 03:47:12 +02:00
|
|
|
echo '<td>'.Date::format($field['registered'], '%d %B').'</td>';
|
2015-05-05 03:00:01 +02:00
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tbody>
|
2015-06-26 06:31:53 +02:00
|
|
|
</table>
|