aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/pulldown.php
blob: 4dcffcc1d3021b384ddd87f83e24d0b140155e51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>