236 |
jpm |
1 |
<h2>Liste des administrateurs</h2>
|
|
|
2 |
<?php if (isset($admin)) : ?>
|
|
|
3 |
<table class="liste_admin">
|
|
|
4 |
<thead>
|
|
|
5 |
<tr>
|
|
|
6 |
<th>Identifiant d'admin</th>
|
|
|
7 |
<th>Nom</th>
|
|
|
8 |
<th>Prénom</th>
|
|
|
9 |
<th>Langue</th>
|
|
|
10 |
<th></th>
|
|
|
11 |
<th></th>
|
|
|
12 |
</tr>
|
|
|
13 |
</thead>
|
|
|
14 |
<tbody>
|
|
|
15 |
<?php foreach ($admin as $element) : ?>
|
|
|
16 |
<tr>
|
|
|
17 |
<td><?=$element['ga_id_administrateur'] ?></td>
|
|
|
18 |
<td><?=$element['ga_nom'] ?></td>
|
|
|
19 |
<td><?=$element['ga_prenom'] ?></td>
|
|
|
20 |
<td><?=$element['ga_ce_i18n'] ?></td>
|
|
|
21 |
<td><a href="<?php $url->setVariablesRequete(array('m' => 'modif_admin', 'id_admin' => $element['ga_id_administrateur']));
|
|
|
22 |
echo $url; ?>">Modifier</a></td>
|
|
|
23 |
<td><a href="<?php $url->setVariableRequete('m','supp_admin');
|
|
|
24 |
echo $url; ?>">Supprimer</a></td>
|
|
|
25 |
</tr>
|
|
|
26 |
<?php endforeach; ?>
|
|
|
27 |
</tbody>
|
|
|
28 |
</table>
|
|
|
29 |
<?php if (isset($erreurs['supp'])): ?>
|
|
|
30 |
<p><span class="symbole_obligatoire"> <?=$erreurs['supp'];?> </span></p>
|
|
|
31 |
<?php endif; ?>
|
|
|
32 |
<?php endif; ?>
|
|
|
33 |
<p><a href="<?php $url->setVariableRequete('m','ajout_admin') ; echo $url ;?>"> Ajouter un administrateur </a></p>
|