[6] | 1 | <h3>News</h3> |
---|
| 2 | <ul> |
---|
| 3 | <li><a href="<?= $env->url |
---|
| 4 | ( array |
---|
| 5 | ( "e" => "set_artiste_news", |
---|
| 6 | "action" => "add_artiste_news", |
---|
| 7 | "artiste" => $_GET[$env->param("artiste")] |
---|
| 8 | ) |
---|
| 9 | ) ?>">Nouvelle news</a></li> |
---|
| 10 | </ul> |
---|
| 11 | <?php if($env->out["news"]["list"]) : ?> |
---|
| 12 | |
---|
| 13 | <?php |
---|
| 14 | |
---|
| 15 | echo navig |
---|
| 16 | ( $env->start, |
---|
| 17 | $env->out["news"]["total"], |
---|
| 18 | $env->config("max_list"), |
---|
| 19 | $_SERVER["REQUEST_URI"], |
---|
| 20 | $env->param("start"), |
---|
| 21 | " news" |
---|
| 22 | ); |
---|
| 23 | |
---|
| 24 | ?> |
---|
| 25 | <br /><br /> |
---|
| 26 | <table class="admin"> |
---|
| 27 | <tr> |
---|
| 28 | <th>titre</th> |
---|
| 29 | <th>date de publication</th> |
---|
| 30 | <th colspan="2">actions</th> |
---|
| 31 | </tr> |
---|
| 32 | <?php foreach($env->out["news"]["list"] as $id_news => $news) : ?> |
---|
| 33 | <tr class="hl"> |
---|
| 34 | <td><?= $news["titre"] ?></td> |
---|
| 35 | <td><?= $news["date_publication"] ?></td> |
---|
| 36 | <td align="center"> |
---|
| 37 | <a href="<?= $env->url |
---|
| 38 | ( array |
---|
| 39 | ( "e" => "set_artiste_news", |
---|
| 40 | "action" => "set_one_artiste_news", |
---|
| 41 | "news" => $id_news, |
---|
| 42 | "artiste" => $_GET[$env->param("artiste")] |
---|
| 43 | ) |
---|
| 44 | ) ?>" |
---|
| 45 | class="admin_link" |
---|
| 46 | title="modifier cette news"><img src="<?= $env->out_file("icons/edit.gif") ?>" /></a> |
---|
| 47 | </td> |
---|
| 48 | <td align="center"> |
---|
| 49 | <a href="<?= $env->url |
---|
| 50 | ( array |
---|
| 51 | ( "e" => "set_artiste_news", |
---|
| 52 | "action" => "del_artiste_news", |
---|
| 53 | "news" => $id_news, |
---|
| 54 | "artiste" => $_GET[$env->param("artiste")] |
---|
| 55 | ) |
---|
| 56 | ) ?>" |
---|
| 57 | class="admin_link" |
---|
| 58 | title="supprimer cette news" |
---|
| 59 | onclick="return confirm('supprimer cette news ?')"><img src="<?= $env->out_file("icons/del.gif") ?>" /></a> |
---|
| 60 | </td> |
---|
| 61 | </tr> |
---|
| 62 | <?php endforeach; ?> |
---|
| 63 | </table> |
---|
| 64 | <?php else : ?> |
---|
| 65 | <p>Aucune news pour le moment...</p> |
---|
| 66 | <?php endif; ?> |
---|