Rev | Line | |
---|
[1] | 1 | <h2>Les catégories de news</h2> |
---|
| 2 | <div class="bloc_content"> |
---|
| 3 | <ul> |
---|
| 4 | <li><a href="<?= $env->url(array("e" => "set_news_categories", "action" => "add_news_categorie")) ?>">Nouvelle catégorie</a></li> |
---|
| 5 | </ul> |
---|
| 6 | <?php if($env->out["news_categories"]["list"]) : ?> |
---|
| 7 | |
---|
| 8 | <?php |
---|
| 9 | |
---|
| 10 | echo navig |
---|
| 11 | ( $env->start, |
---|
| 12 | $env->out["news_categories"]["total"], |
---|
| 13 | $env->config("max_list"), |
---|
| 14 | $_SERVER["REQUEST_URI"], |
---|
| 15 | $env->param("start"), |
---|
| 16 | " catégories de news" |
---|
| 17 | ); |
---|
| 18 | |
---|
| 19 | ?> |
---|
| 20 | <br /><br /> |
---|
| 21 | <table class="admin"> |
---|
| 22 | <tr> |
---|
| 23 | <th>icone</th> |
---|
| 24 | <th>titre</th> |
---|
| 25 | <th colspan="2">actions</th> |
---|
| 26 | </tr> |
---|
| 27 | <?php foreach($env->out["news_categories"]["list"] as $id_news_categorie => $news_categorie) : ?> |
---|
| 28 | <tr class="hl"> |
---|
| 29 | <td> |
---|
| 30 | <?php if($news_categorie["icone"]) : ?> |
---|
| 31 | <img src="<?= $news_categorie["icone"] ?>" /> |
---|
| 32 | <?php else : ?> |
---|
| 33 | |
---|
| 34 | <?php endif; ?> |
---|
| 35 | </td> |
---|
| 36 | <td><?= $news_categorie["titre"] ?></td> |
---|
| 37 | <td align="center"> |
---|
| 38 | <a href="<?= $env->url(array("e" => "set_news_categories", "action" => "set_news_categorie", "categorie" => $id_news_categorie)) ?>" |
---|
| 39 | class="admin_link" |
---|
| 40 | title="modifier cette catégorie"><img src="<?= $env->out_file("icons/edit.gif") ?>" /></a> |
---|
| 41 | </td> |
---|
| 42 | <td align="center"> |
---|
| 43 | <a href="<?= $env->url(array("e" => "set_news_categories", "action" => "del_news_categorie", "categorie" => $id_news_categorie)) ?>" |
---|
| 44 | class="admin_link" |
---|
| 45 | title="supprimer cette catégorie" |
---|
| 46 | onclick="return confirm('supprimer cette catégorie ? Si la catégorie a une icone, elle sera aussi supprimée.')"><img src="<?= $env->out_file("icons/del.gif") ?>" /></a> |
---|
| 47 | </td> |
---|
| 48 | </tr> |
---|
| 49 | <?php endforeach; ?> |
---|
| 50 | </table> |
---|
| 51 | <?php else : ?> |
---|
| 52 | <p>Aucune catégorie pour le moment...</p> |
---|
| 53 | <?php endif; ?> |
---|
| 54 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.