aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/pulldown.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/pulldown.php')
-rw-r--r--views/default/input/pulldown.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/views/default/input/pulldown.php b/views/default/input/pulldown.php
new file mode 100644
index 000000000..4dcffcc1d
--- /dev/null
+++ b/views/default/input/pulldown.php
@@ -0,0 +1,13 @@
+<select name="<?php echo $vars['internalname']; ?>" <?php echo $vars['js']; ?>>
+<?php
+
+ foreach($vars['options'] as $option) {
+ if ($option != $vars['value']) {
+ echo "<option>{$option}</option>";
+ } else {
+ echo "<option selected=\"selected\">{$option}</option>";
+ }
+ }
+
+?>
+</select> \ No newline at end of file