4 <li><a class="add" href="<?= $this->url("pages/admin/add") ?>">Nouvelle page</a></li>
7 <form name="accueil_form" action="<?= $this->url("pages/admin/set_accueil") ?>" method="post">
9 <li>Page d'accueil du site</li>
12 <option value=""<?= $this->config("start_action") ? "" : " selected=\"selected\"" ?>>Page par défaut du site</option>
13 <?php echo pages_arbo_start_select_options($this, $this->out["arbo"], $this->config("start_action"), $this->config("start_action_params"), " "); ?>
17 <input type="submit" value="Enregistrer" />
25 <select onchange="document.location=this.options[this.selectedIndex].value;">
26 <option value="<?= $this->url("pages/admin") ?>"<?= isset($_GET[$this->param("parent")]) ? "" : " selected=\"selected\"" ?>>Afficher toutes les pages</option>
27 <?php echo pages_arbo_list_select_options($this, "pages/admin", $this->out["arbo"], $_GET[$this->param("parent")], " "); ?>
32 <?php if($this->out["pages"]["total"]) : ?>
34 <?php if($this->out["pages"]["total"] > $this->config("max_list")) : ?>
36 <?php $items = "pages"; $legend = "pages"; require $this->out_file("views/navig.php"); ?>
40 <form name="pages_form" action="<?= $this->url("pages/admin/edit_pages") ?>" method="post">
44 <th>date création</th>
45 <th align="center">position</th>
46 <th align="center">active</th>
47 <th align="center" colspan="2">actions</th>
49 <?php foreach($this->out["pages"]["list"] as $id_page => $page) : ?>
51 <td><?= $page["title"] ?></td>
52 <td><?= date("j M Y : G\hi", datetime2timestamp($page["date_creation"])) ?></td>
53 <td class="action"><input type="text" size="3" name="position_<?= $id_page ?>" value="<?= $page["position"] ?>" /></td>
54 <td class="action"><input type="checkbox" name="enabled_<?= $id_page ?>" <?= $page["enabled"] ? "checked=\"checked\"" : "" ?> /></td>
56 <a href="<?= $this->url("pages/admin/edit", array("id" => $id_page)) ?>"
58 title="modifier cette page"><img src="<?= $this->out_file("icons/edit.gif") ?>" /></a>
61 <a href="<?= $this->url("pages/admin/del", array("id" => $id_page)) ?>"
63 title="supprimer cette page"><img src="<?= $this->out_file("icons/del.gif") ?>"
64 onclick="return confirm('Supprimer cette page ?')"/></a>
69 <td colspan="2"> </td>
70 <td colspan="2" align="center"><input type="submit" value="Enregistrer" /></td>
71 <td colspan="2"> </td>
77 <p>Aucune page pour le moment.</p>