diff options
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 9df335188..1337b30f8 100644 --- a/functions.php +++ b/functions.php @@ -277,5 +277,17 @@ } + function print_select($id, $default, $values) { + print "<select id=\"$id\">"; + foreach ($values as $v) { + if ($v == $default) + $sel = " selected"; + else + $sel = ""; + + print "<option$sel>$v</option>"; + } + print "</select>"; + } ?> |