<h2>Pages</h2>
<ul class="admin">
- <li><a class="add" href="<?= $this->url("pages/admin/add") ?>">Nouvelle page</a></li>
+ <li><a class="add" href="<?php echo $this->url("pages/admin/add"); ?>">Nouvelle page</a></li>
</ul>
-<form name="accueil_form" action="<?= $this->url("pages/admin/set_accueil") ?>" method="post">
+<form name="accueil_form" action="<?php echo $this->url("pages/admin/set_accueil"); ?>" method="post">
<ul class="admin">
<li>Page d'accueil du site</li>
<li>
<select name="id">
- <option value=""<?= $this->config("start_action") ? "" : " selected=\"selected\"" ?>>Page par défaut du site</option>
+ <option value=""<?php echo $this->config("start_action") ? "" : " selected=\"selected\""; ?>>Page par défaut du site</option>
<?php echo pages_arbo_start_select_options($this, $this->out["arbo"], $this->config("start_action"), $this->config("start_action_params"), " "); ?>
</select>
</li>
<li>Page parente</li>
<li>
<select onchange="document.location=this.options[this.selectedIndex].value;">
- <option value="<?= $this->url("pages/admin") ?>"<?= isset($_GET[$this->param("parent")]) ? "" : " selected=\"selected\"" ?>>Afficher toutes les pages</option>
+ <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")], " "); ?>
</select>
</li>
<?php if($this->out["pages"]["total"]) : ?>
-<?php if($this->out["pages"]["total"] > $this->config("max_list")) : ?>
-
<?php $items = "pages"; $legend = "pages"; require $this->out_file("views/navig.php"); ?>
-<?php endif; ?>
-
-<form name="pages_form" action="<?= $this->url("pages/admin/edit_pages") ?>" method="post">
+<form name="pages_form" action="<?php echo $this->url("pages/admin/edit_pages"); ?>" method="post">
<table class="admin">
<tr>
<th>titre</th>
</tr>
<?php foreach($this->out["pages"]["list"] as $id_page => $page) : ?>
<tr class="hl">
- <td><?= $page["title"] ?></td>
- <td><?= date("j M Y : G\hi", datetime2timestamp($page["date_creation"])) ?></td>
- <td class="action"><input type="text" size="3" name="position_<?= $id_page ?>" value="<?= $page["position"] ?>" /></td>
- <td class="action"><input type="checkbox" name="enabled_<?= $id_page ?>" <?= $page["enabled"] ? "checked=\"checked\"" : "" ?> /></td>
+ <td><?php echo $page["title"]; ?></td>
+ <td><?php echo date("j M Y : G\hi", 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">
- <a href="<?= $this->url("pages/admin/edit", array("id" => $id_page)) ?>"
+ <a href="<?php echo $this->url("pages/admin/edit", array("id" => $id_page)); ?>"
class="admin_link"
- title="modifier cette page"><img src="<?= $this->out_file("icons/edit.gif") ?>" /></a>
+ title="modifier cette page"><img src="<?php echo $this->out_url("icons/edit.gif"); ?>" /></a>
</td>
<td class="action">
- <a href="<?= $this->url("pages/admin/del", array("id" => $id_page)) ?>"
+ <a href="<?php echo $this->url("pages/admin/del", array("id" => $id_page)); ?>"
class="admin_link"
- title="supprimer cette page"><img src="<?= $this->out_file("icons/del.gif") ?>"
+ title="supprimer cette page"><img src="<?php echo $this->out_url("icons/del.gif"); ?>"
onclick="return confirm('Supprimer cette page ?')"/></a>
</td>
</tr>