correction notices et modifs css
[mw_pages] / app / out / default / views / pages / admin / list.php
1 <h2>Pages</h2>
2
3 <form name="accueil_form" action="<?php echo $this->url("pages/admin/set_accueil"); ?>" method="post">
4   <fieldset>
5     <ul>
6       <li>
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&eacute;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"), "&nbsp;&nbsp;"); ?>
12           </select>
13         </div>
14       </li>
15       <li>
16         <div class="form_single_button">
17           <input type="submit" value="Enregistrer" />
18         </div>
19       </li>
20     </ul>
21   </fieldset>
22 </form>
23
24 <ul class="buttons">
25   <li><a class="add" href="<?php echo $this->url("pages/admin/add"); ?>">Nouvelle page</a></li>
26 </ul>
27
28 <ul class="filters">
29   <li>Page parente</li>
30   <li>
31     <select onchange="document.location=this.options[this.selectedIndex].value;">
32       <option value="<?php echo $this->url("pages/admin"); ?>"<?php echo isset($_GET[$this->param("parent")]) ? "" : " selected=\"selected\""; ?>>Afficher toutes les pages</option>
33       <?php echo pages_arbo_list_select_options($this, "pages/admin", $this->out["arbo"], $_GET[$this->param("parent")], "&nbsp;&nbsp;"); ?>
34     </select>
35   </li>
36 </ul>
37
38 <?php if($this->out["pages"]["total"]) : ?>
39
40 <?php $items = "pages"; $legend = "pages"; require $this->out_file("views/navig.php"); ?>
41
42 <form name="pages_form" action="<?php echo $this->url("pages/admin/edit_pages"); ?>" method="post">
43 <table class="admin">
44   <tr>
45     <th>titre</th>
46     <th>date cr&eacute;ation</th>
47     <th align="center">position</th>
48     <th align="center">active</th>
49     <th align="center" colspan="2">actions</th>
50   </tr>
51 <?php foreach($this->out["pages"]["list"] as $id_page => $page) : ?>
52   <tr class="hl">
53     <td><?php echo $page["title"]; ?></td>
54     <td><?php echo date("j M Y : G\hi", datetime2timestamp($page["date_creation"])); ?></td>
55     <td class="action"><input type="text" size="3" name="position_<?php echo $id_page; ?>" value="<?php echo $page["position"]; ?>" /></td>
56     <td class="action"><input type="checkbox" name="enabled_<?php echo $id_page; ?>" <?php echo $page["enabled"] ? "checked=\"checked\"" : ""; ?> /></td>
57     <td class="action">
58     <a href="<?php echo $this->url("pages/admin/edit", array("id" => $id_page)); ?>"
59        class="admin_link"
60        title="modifier cette page"><img src="<?php echo $this->out_url("icons/edit.gif"); ?>" /></a>
61     </td>
62     <td class="action">
63     <a href="<?php echo $this->url("pages/admin/del", array("id" => $id_page)); ?>"
64        class="admin_link"
65        title="supprimer cette page"><img src="<?php echo $this->out_url("icons/del.gif"); ?>"
66        onclick="return confirm('Supprimer cette page ?')"/></a>
67     </td>
68   </tr>
69 <?php endforeach; ?>
70   <tr class="hl">
71     <td colspan="2">&nbsp;</td>
72     <td colspan="2" align="center"><input type="submit" value="Enregistrer" /></td>
73     <td colspan="2">&nbsp;</td>
74   </tr>
75 </table>
76 </form>
77
78 <?php else : ?>
79 <p>Aucune page pour le moment.</p>
80 <?php endif; ?>