+++ /dev/null
-<h2>Pages</h2>
-
-<ul class="admin">
- <li><a class="add" href="<?= $this->url("pages/admin/add") ?>">Nouvelle page</a></li>
-</ul>
-
-<form name="accueil_form" action="<?= $this->url("pages/admin/set_accueil") ?>" method="post">
-<ul class="admin">
- <li>Page d'accueil du site</li>
- <li>
- <select name="id">
- <option value=""<?= $this->config("start_action") ? "" : " selected=\"selected\"" ?>>Page par défaut du site</option>
- <?php echo pages_arbo_start_select_options($this, $this->out["arbo"], $this->config("start_action"), $this->config("start_action_params"), " "); ?>
- </select>
- </li>
- <li class="buttons">
- <input type="submit" value="Enregistrer" />
- </li>
-</ul>
-</form>
-
-<ul class="admin">
- <li>Page parente</li>
- <li>
- <select onchange="document.location=this.options[this.selectedIndex].value;">
- <option value="<?= $this->url("pages/admin") ?>"<?= isset($_GET[$this->param("parent")]) ? "" : " selected=\"selected\"" ?>>Afficher toutes les pages</option>
- <?php echo pages_arbo_list_select_options($this, "pages/admin", $this->out["arbo"], $_GET[$this->param("parent")], " "); ?>
- </select>
- </li>
-</ul>
-
-<?php if($this->out["pages"]["total"]) : ?>
-
-<?php if($this->out["pages"]["total"] > $this->config("max_list")) : ?>
-
-<?php $items = "pages"; $legend = "pages"; require $this->out_file("views/navig.php"); ?>
-
-<?php endif; ?>
-
-<form name="pages_form" action="<?= $this->url("pages/admin/edit_pages") ?>" method="post">
-<table class="admin">
- <tr>
- <th>titre</th>
- <th>date création</th>
- <th align="center">position</th>
- <th align="center">active</th>
- <th align="center" colspan="2">actions</th>
- </tr>
-<?php foreach($this->out["pages"]["list"] as $id_page => $page) : ?>
- <tr class="hl">
- <td><?= $page["title"] ?></td>
- <td><?= date("j M Y : G\hi", datetime2timestamp($page["date_creation"])) ?></td>
- <td class="action"><input type="text" size="3" name="position_<?= $id_page ?>" value="<?= $page["position"] ?>" /></td>
- <td class="action"><input type="checkbox" name="enabled_<?= $id_page ?>" <?= $page["enabled"] ? "checked=\"checked\"" : "" ?> /></td>
- <td class="action">
- <a href="<?= $this->url("pages/admin/edit", array("id" => $id_page)) ?>"
- class="admin_link"
- title="modifier cette page"><img src="<?= $this->out_file("icons/edit.gif") ?>" /></a>
- </td>
- <td class="action">
- <a href="<?= $this->url("pages/admin/del", array("id" => $id_page)) ?>"
- class="admin_link"
- title="supprimer cette page"><img src="<?= $this->out_file("icons/del.gif") ?>"
- onclick="return confirm('Supprimer cette page ?')"/></a>
- </td>
- </tr>
-<?php endforeach; ?>
- <tr class="hl">
- <td colspan="2"> </td>
- <td colspan="2" align="center"><input type="submit" value="Enregistrer" /></td>
- <td colspan="2"> </td>
- </tr>
-</table>
-</form>
-
-<?php else : ?>
-<p>Aucune page pour le moment.</p>
-<?php endif; ?>