<h2>Configuration</h2>
-<form name="config_form" action="<?php echo $this->url("admin/config"); ?>" method="post">
+<form name="config_form" action="<?php echo $this->url("config"); ?>" method="post">
<fieldset>
<legend>Configuration générale</legend>
<input type="text" name="max_list" id="max_list" value="<?php echo $this->out["config"]["max_list"]; ?>" />
</div>
</li>
- </ul>
- </fieldset>
-
- <?php if($this->out["out_pathes"]) : ?>
- <fieldset>
- <legend>Affichage du site</legend>
- <ul>
- <li>
- <label for="out">template</label>
- <?php
-
- $template = $this->config("out");
- $FOUND = false;
- foreach($this->out["out_pathes"] as $out_path) { if($template == $out_path) { $FOUND = true; break; } }
- if(!$FOUND) $template = $this->config("default_out");
-
- ?>
- <div class="form_input">
- <select name="out" id="out">
- <?php foreach($this->out["out_pathes"] as $out_path) : ?>
- <option value="<?php echo $out_path; ?>"<?php echo $template == $out_path ? " selected=\"selected\"" : ""; ?>><?php echo $out_path; ?></option>
- <?php endforeach; ?>
- </select>
- </div>
- </li>
- <?php foreach($this->out["out_config"] as $key => $config) : if($config["type"] == "checkbox") : ?>
- <li>
- <label for="<?php echo "out_".$key; ?>"> </label>
- <div class="form_input">
- <input type="checkbox" name="<?php echo "out_".$key; ?>" id="<?php echo "out_".$key; ?>"<?php echo (isset($this->out["config"]["out_".$key]) ? $this->out["config"]["out_".$key] : $config["default"]) ? " checked=\"checked\"" : ""; ?> />
- <?php echo $config["text"]; ?>
- </div>
- </li>
- <?php endif; endforeach; ?>
<li>
<div class="form_buttons">
<input type="submit" value="Enregistrer" />
</li>
</ul>
</fieldset>
- <?php endif; ?>
</form>