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