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