mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2026-03-28 03:00:22 +01:00
Initial commit
Functional, without SSO
This commit is contained in:
23
sources/app/admin/views/users.phtml
Normal file
23
sources/app/admin/views/users.phtml
Normal file
@@ -0,0 +1,23 @@
|
||||
<p><a href="?mod=admin&a=add-user">Nouvel utilisateur</a></p>
|
||||
<table style="width: 500px; text-align: left;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom d'utilisateur</th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($users AS $user) : ?>
|
||||
<tr>
|
||||
<td><?php echo htmlspecialchars($user->getUsername()); ?></td>
|
||||
<td>
|
||||
<?php if ($user->getUsername() != "admin") : ?>
|
||||
<a href="?mod=admin&a=delete-user&username=<?php echo urlencode($user->getUsername()); ?>">supprimer</a>
|
||||
<?php else: ?>
|
||||
-
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user