2015-10-19 00:45:58 +02:00
|
|
|
<?php
|
2015-05-05 03:00:01 +02:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
HTML::title(array('title'=>$L->g('Users'), 'icon'=>'users'));
|
2015-05-05 03:00:01 +02:00
|
|
|
|
2015-10-29 19:30:26 +01:00
|
|
|
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'add-user"><i class="uk-icon-plus"></i> '.$L->g('add-a-new-user').'</a>';
|
2015-10-19 00:45:58 +02:00
|
|
|
|
|
|
|
echo '
|
|
|
|
<table class="uk-table uk-table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>'.$L->g('Username').'</th>
|
|
|
|
<th>'.$L->g('First name').'</th>
|
|
|
|
<th>'.$L->g('Last name').'</th>
|
|
|
|
<th>'.$L->g('Email').'</th>
|
2017-09-23 15:15:29 +02:00
|
|
|
<th class="uk-text-center">'.$L->g('Status').'</th>
|
2015-10-19 00:45:58 +02:00
|
|
|
<th class="uk-text-center">'.$L->g('Role').'</th>
|
|
|
|
<th class="uk-text-center">'.$L->g('Registered').'</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
';
|
|
|
|
|
2017-09-23 15:15:29 +02:00
|
|
|
// Get all users objects
|
|
|
|
$users = $dbUsers->getAllUsers();
|
|
|
|
foreach ($users as $username=>$User) {
|
2015-10-19 00:45:58 +02:00
|
|
|
echo '<tr>';
|
|
|
|
echo '<td><a href="'.HTML_PATH_ADMIN_ROOT.'edit-user/'.$username.'">'.$username.'</a></td>';
|
2017-09-23 15:15:29 +02:00
|
|
|
echo '<td>'.$User->firstName().'</td>';
|
|
|
|
echo '<td>'.$User->lastName().'</td>';
|
|
|
|
echo '<td>'.$User->email().'</td>';
|
|
|
|
echo '<td class="uk-text-center">'.($User->enabled()?'<b>'.$L->g('Enabled').'</b>':$L->g('Disabled')).'</td>';
|
2017-09-29 19:05:36 +02:00
|
|
|
echo '<td class="uk-text-center">'.($User->role()=='admin'?$L->g('Administrator'):$L->g('Editor')).'</td>';
|
2017-12-20 00:09:47 +01:00
|
|
|
echo '<td class="uk-text-center">'.Date::format($User->registered(), DB_DATE_FORMAT, ADMIN_PANEL_DATE_FORMAT).'</td>';
|
2015-10-19 00:45:58 +02:00
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-11-28 15:47:03 +01:00
|
|
|
';
|