2015-09-07 21:51:48 -03:00
|
|
|
<h2 class="title"><i class="fa fa-users"></i><?php $Language->p('Users') ?></h2>
|
2015-05-05 01:00:01 +00:00
|
|
|
|
|
|
|
<?php makeNavbar('users'); ?>
|
|
|
|
|
|
|
|
<table class="table-bordered table-stripped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2015-07-03 19:36:37 -03:00
|
|
|
<th><?php $Language->p('Username') ?></th>
|
|
|
|
<th><?php $Language->p('First name') ?></th>
|
|
|
|
<th><?php $Language->p('Last name') ?></th>
|
|
|
|
<th><?php $Language->p('Role') ?></th>
|
|
|
|
<th><?php $Language->p('Email') ?></th>
|
|
|
|
<th><?php $Language->p('Registered') ?></th>
|
2015-05-05 01:00:01 +00:00
|
|
|
</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>';
|
2015-08-13 18:41:16 -03:00
|
|
|
echo '<td>'.$field['role'].'</td>';
|
2015-05-05 01:00:01 +00:00
|
|
|
echo '<td>'.$field['email'].'</td>';
|
2015-08-26 00:42:32 -03:00
|
|
|
echo '<td>'.Date::format($field['registered'], DB_DATE_FORMAT, DB_DATE_FORMAT).'</td>';
|
2015-05-05 01:00:01 +00:00
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tbody>
|
2015-07-03 19:36:37 -03:00
|
|
|
</table>
|