source: trunk/web/app/out/dist/content/set_news_categories/e_news_categories.php @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 12 years ago

import initial

File size: 1.7 KB
Line 
1<h2>Les cat&eacute;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&eacute;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&eacute;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      &nbsp;
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&eacute;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&eacute;gorie"
46       onclick="return confirm('supprimer cette cat&eacute;gorie ? Si la cat&eacute;gorie a une icone, elle sera aussi supprim&eacute;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&eacute;gorie pour le moment...</p>
53<?php endif; ?>
54</div>
Note: See TracBrowser for help on using the repository browser.