sourceml devient un plugin mtweb
[mw_sourceml] / app / out / default / views / users / groupes / list.php
1 <h2>Groupes</h2>
2
3 <ul class="buttons">
4   <li><a class="add" href="<?php echo $this->url("users/groupes/add") ?>">Nouveau groupe</a></li>
5 </ul>
6
7 <?php if($this->out["groupes"]["list"]) : ?>
8
9 <?php $items = "groupes"; $legend = "groupes"; require $this->out_file("views/navig.php"); ?>
10
11 <table class="admin">
12   <tr>
13     <th>nom</th>
14     <th align="center" colspan="2">actions</th>
15   </tr>
16 <?php foreach($this->out["groupes"]["list"] as $id_groupe => $groupe) : ?>
17   <tr class="hl">
18     <td><?php echo $groupe["nom"] ?></td>
19     <td class="action">
20     <a href="<?php echo $this->url("users/groupes/edit", array("id" => $id_groupe)) ?>"
21        class="admin_link"
22        title="modifier ce groupe"><img src="<?php echo $this->out_url("icons/edit.gif") ?>" /></a>
23     </td>
24     <td class="action">
25     <a href="<?php echo $this->url("users/groupes/del", array("id" => $id_groupe)) ?>"
26        class="admin_link"
27        title="supprimer ce groupe"><img src="<?php echo $this->out_url("icons/del.gif") ?>"
28        onclick="return confirm('Supprimer ce groupe ?')"/></a>
29     </td>
30   </tr>
31 <?php endforeach; ?>
32 </table>
33
34 <?php $items = "groupes"; $legend = "groupes"; require $this->out_file("views/navig.php"); ?>
35
36 <?php else : ?>
37 <p>Aucun groupe pour le moment</p>
38 <?php endif; ?>