Rev | Line | |
---|
[6] | 1 | <h2>Les spotlights</h2> |
---|
| 2 | <div class="bloc_content"> |
---|
| 3 | <ul> |
---|
| 4 | <li><a href="<?= $env->url(array("e" => "set_spotlights", "action" => "add_spotlight")) ?>">Nouveau spotlight</a></li> |
---|
| 5 | </ul> |
---|
| 6 | <?php if($env->out["spotlights"]["list"]) : ?> |
---|
| 7 | |
---|
| 8 | <?php |
---|
| 9 | |
---|
| 10 | echo navig |
---|
| 11 | ( $env->start, |
---|
| 12 | $env->out["spotlights"]["total"], |
---|
| 13 | $env->config("max_list"), |
---|
| 14 | $_SERVER["REQUEST_URI"], |
---|
| 15 | $env->param("start"), |
---|
| 16 | " spotlights" |
---|
| 17 | ); |
---|
| 18 | |
---|
| 19 | ?> |
---|
| 20 | <br /><br /> |
---|
| 21 | <table class="admin"> |
---|
| 22 | <tr> |
---|
| 23 | <th>titre</th> |
---|
| 24 | <th>date de publication</th> |
---|
| 25 | <th>auteur</th> |
---|
| 26 | <th colspan="2">actions</th> |
---|
| 27 | </tr> |
---|
| 28 | <?php foreach($env->out["spotlights"]["list"] as $id_spotlight => $spotlight) : ?> |
---|
| 29 | <tr class="hl"> |
---|
| 30 | <td><?= $spotlight["titre"] ?></td> |
---|
| 31 | <td><?= $spotlight["date_publication"] ?></td> |
---|
| 32 | <td><?= $spotlight["auteur"] ?></td> |
---|
| 33 | <td align="center"> |
---|
| 34 | <a href="<?= $env->url(array("e" => "set_spotlights", "action" => "set_spotlight", "spotlight" => $id_spotlight)) ?>" |
---|
| 35 | class="admin_link" |
---|
| 36 | title="modifier ce spotlight"><img src="<?= $env->out_file("icons/edit.gif") ?>" /></a> |
---|
| 37 | </td> |
---|
| 38 | <td align="center"> |
---|
| 39 | <a href="<?= $env->url(array("e" => "set_spotlights", "action" => "del_spotlight", "spotlight" => $id_spotlight)) ?>" |
---|
| 40 | class="admin_link" |
---|
| 41 | title="supprimer ce spotlight" |
---|
| 42 | onclick="return confirm('supprimer ce spotlight ?')"><img src="<?= $env->out_file("icons/del.gif") ?>" /></a> |
---|
| 43 | </td> |
---|
| 44 | </tr> |
---|
| 45 | <?php endforeach; ?> |
---|
| 46 | </table> |
---|
| 47 | <?php else : ?> |
---|
| 48 | <p>Aucun spotlight pour le moment...</p> |
---|
| 49 | <?php endif; ?> |
---|
| 50 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.