bludit/admin/views/users.php

32 lines
947 B
PHP
Raw Normal View History

2015-07-04 00:36:37 +02:00
<h2 class="title"><i class="fa fa-users"></i> <?php $Language->p('Users') ?></h2>
2015-05-05 03:00:01 +02:00
<?php makeNavbar('users'); ?>
<table class="table-bordered table-stripped">
<thead>
<tr>
2015-07-04 00:36:37 +02: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 03:00:01 +02: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 23:41:16 +02:00
echo '<td>'.$field['role'].'</td>';
2015-05-05 03:00:01 +02:00
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-07-04 00:36:37 +02:00
</table>