1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-27 10:22:22 +00:00
plateforme-corres2math/server_files/views/admins.php

67 lines
1.6 KiB
PHP
Raw Normal View History

2019-10-23 10:17:17 +00:00
<?php
require_once "header.php";
?>
<div class="mt-4 mb-4">
<h1 class="display-4">Liste des administrateurs</h1>
</div>
<hr />
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th scope="col">
Nom
</th>
<th scope="col">
Prénom
</th>
<th scope="col">
Adresse e-mail
</th>
</tr>
</thead>
<tbody>
<?php
/** @var User $admin */
foreach ($admins as $admin) {
?>
<tr>
<td>
<a href="/informations/<?= $admin->getId() ?>/<?= $admin->getFirstName() . " " . $admin->getSurname() ?>">
<?= $admin->getSurname() ?>
</a>
</td>
<td>
<a href="/informations/<?= $admin->getId() ?>/<?= $admin->getFirstName() . " " . $admin->getSurname() ?>">
<?= $admin->getFirstName() ?>
</a>
</td>
<td>
<a href="mailto:<?= $admin->getEmail() ?>">
<?= $admin->getEmail() ?>
</a>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<th>
Nom
</th>
<th>
Prénom
</th>
<th>
2019-10-23 19:33:27 +00:00
Adresse e-mail
2019-10-23 10:17:17 +00:00
</th>
</tr>
</tfoot>
</table>
<?php
require_once "footer.php";