module config et role webmaster
[mtweb] / mw / app / out / default / views / config / templates / options.php
1 <h2>Options du template</h2>
2
3 <?php if($this->out["out_config"]) : ?>
4
5 <form name="out_config_form" action="<?php echo $this->url("config/templates/options"); ?>" method="post">
6   <input type="hidden" name="do_post" value="1" />
7   <fieldset>
8     <ul>
9       <?php foreach($this->out["out_config"] as $key => $config) : if($config["type"] == "checkbox") : ?>
10       <li>
11         <label for="<?php echo "out_".$key; ?>">&nbsp;</label>
12         <div class="form_input">
13           <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\"" : ""; ?> />
14           <?php echo $config["text"]; ?>
15         </div>
16       </li>
17       <?php endif; endforeach; ?>
18       <li>
19         <div class="form_buttons">
20           <input type="submit" value="Enregistrer" />
21         </div>
22       </li>
23     </ul>
24   </fieldset>
25
26 </form>
27
28 <?php else : ?>
29
30 <p>Aucune option pour ce template</p>
31
32 <?php endif; ?>