module config et role webmaster
[mtweb] / mw / app / out / default / views / config / templates / index.php
1 <h2>Template</h2>
2
3 <?php if($this->out["out_pathes"]) : ?>
4
5 <form name="config_form" action="<?php echo $this->url("config/templates"); ?>" method="post">
6
7   <fieldset>
8     <ul>
9       <li>
10         <label for="out">template</label>
11         <?php
12   
13           $template = $this->config("out");
14           $FOUND = false;
15           foreach($this->out["out_pathes"] as $out_path) { if($template == $out_path) { $FOUND = true; break; } }
16           if(!$FOUND) $template = $this->config("default_out");
17         
18         ?>
19         <div class="form_input">
20           <select name="out" id="out">
21             <?php foreach($this->out["out_pathes"] as $out_path) : ?>
22             <option value="<?php echo $out_path; ?>"<?php echo $template == $out_path ? " selected=\"selected\"" : ""; ?>><?php echo $out_path; ?></option>
23             <?php endforeach; ?>
24           </select>
25         </div>
26       </li>
27       <?php if($this->out["out_config"]) : ?>
28       <li>
29         <label>&nbsp;</label>
30         <div class="form_input">
31           Ce template a des <a href="<?php echo $this->url("config/templates/options"); ?>">options</a>
32         </div>
33       </li>
34       <?php endif; ?>
35       <li>
36         <div class="form_buttons">
37           <input type="submit" value="Enregistrer" />
38         </div>
39       </li>
40     </ul>
41   </fieldset>
42
43 </form>
44
45 <?php else : ?>
46
47 <p>Aucun template</p>
48
49 <?php endif; ?>