source: trunk/web/app/out/dist/content/set_pages/e_pages.php @ 1

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

import initial

File size: 1.5 KB
RevLine 
[1]1<h2>Les pages</h2>
2<div class="bloc_content">
3  <ul>
4    <li><a href="<?= $env->url(array("e" => "set_pages", "action" => "add_page")) ?>">Nouvelle page</a></li>
5  </ul>
6<?php if($env->out["pages"]["list"]) : ?>
7
8<?php
9
10  echo navig
11  ( $env->start,
12    $env->out["pages"]["total"],
13    $env->config("max_list"),
14    $_SERVER["REQUEST_URI"],
15    $env->param("start"),
16         " pages"
17  );
18
19?>
20<br /><br />
21<table class="admin">
22  <tr>
23    <th>titre</th>
24    <th>url</th>
25    <th colspan="2">actions</th>
26  </tr>
27<?php foreach($env->out["pages"]["list"] as $id_page => $page) : ?>
28  <tr class="hl">
29    <td><?= $page["titre"] ?></td>
30    <td>
31      <a href="<?= "http://".$_SERVER["SERVER_NAME"].$env->url(array("e" => "page", "id" => $id_page)) ?>">
32        <?= "http://".$_SERVER["SERVER_NAME"].$env->url(array("e" => "page", "id" => $id_page)) ?>
33      </a>
34    </td>
35    <td align="center">
36    <a href="<?= $env->url(array("e" => "set_pages", "action" => "set_page", "id" => $id_page)) ?>"
37       class="admin_link"
38       title="modifier cette page"><img src="<?= $env->out_file("icons/edit.gif") ?>" /></a>
39    </td>
40    <td align="center">
41    <a href="<?= $env->url(array("e" => "set_pages", "action" => "del_page", "id" => $id_page)) ?>"
42       class="admin_link"
43       title="supprimer cette page"
44       onclick="return confirm('supprimer cette page ?')"><img src="<?= $env->out_file("icons/del.gif") ?>" /></a>
45    </td>
46  </tr>
47<?php endforeach; ?>
48</table>
49<?php else : ?>
50  <p>Aucune page pour le moment...</p>
51<?php endif; ?>
52</div>
Note: See TracBrowser for help on using the repository browser.