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