mise a jour pour mtweb.0.9.0
[mw_pages] / app / out / default / views / pages / admin / list.php
index 4259512..e9b30bf 100644 (file)
@@ -1,3 +1,8 @@
+<?php
+
+  $pages_helper = $this->helper("mw_helper_pages");
+
+?>
 <h2>Pages</h2>
 
 <form name="accueil_form" action="<?php echo $this->url("pages/admin/set_accueil"); ?>" method="post">
@@ -8,7 +13,7 @@
         <div class="form_input">
           <select id="id" name="id">
             <option value=""<?php echo $this->config("start_action") ? "" : " selected=\"selected\""; ?>>Page par d&eacute;faut du site</option>
-            <?php echo pages_arbo_start_select_options($this, $this->out["arbo"], $this->config("start_action"), $this->config("start_action_params"), "&nbsp;&nbsp;"); ?>
+            <?php echo $pages_helper->pages_arbo_start_select_options($this, $this->out["arbo"], $this->config("start_action"), $this->config("start_action_params"), "&nbsp;&nbsp;"); ?>
           </select>
         </div>
       </li>
@@ -30,7 +35,7 @@
   <li>
     <select onchange="document.location=this.options[this.selectedIndex].value;">
       <option value="<?php echo $this->url("pages/admin"); ?>"<?php echo 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")], "&nbsp;&nbsp;"); ?>
+      <?php echo $pages_helper->pages_arbo_list_select_options($this, "pages/admin", $this->out["arbo"], $_GET[$this->param("parent")], "&nbsp;&nbsp;"); ?>
     </select>
   </li>
 </ul>
@@ -51,7 +56,7 @@
 <?php foreach($this->out["pages"]["list"] as $id_page => $page) : ?>
   <tr class="hl">
     <td><?php echo $page["title"]; ?></td>
-    <td><?php echo date("j M Y : G\hi", datetime2timestamp($page["date_creation"])); ?></td>
+    <td><?php echo date("j M Y : G\hi", $pages_helper->datetime2timestamp($page["date_creation"])); ?></td>
     <td class="action"><input type="text" size="3" name="position_<?php echo $id_page; ?>" value="<?php echo $page["position"]; ?>" /></td>
     <td class="action"><input type="checkbox" name="enabled_<?php echo $id_page; ?>" <?php echo $page["enabled"] ? "checked=\"checked\"" : ""; ?> /></td>
     <td class="action">