module config et role webmaster
[mtweb] / mw / app / out / default / views / config / templates / options.php
diff --git a/mw/app/out/default/views/config/templates/options.php b/mw/app/out/default/views/config/templates/options.php
new file mode 100644 (file)
index 0000000..3c7f19a
--- /dev/null
@@ -0,0 +1,32 @@
+<h2>Options du template</h2>
+
+<?php if($this->out["out_config"]) : ?>
+
+<form name="out_config_form" action="<?php echo $this->url("config/templates/options"); ?>" method="post">
+  <input type="hidden" name="do_post" value="1" />
+  <fieldset>
+    <ul>
+      <?php foreach($this->out["out_config"] as $key => $config) : if($config["type"] == "checkbox") : ?>
+      <li>
+        <label for="<?php echo "out_".$key; ?>">&nbsp;</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" />
+        </div>
+      </li>
+    </ul>
+  </fieldset>
+
+</form>
+
+<?php else : ?>
+
+<p>Aucune option pour ce template</p>
+
+<?php endif; ?>