summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-03 08:22:29 +0100
committerAndrew Dolgov <[email protected]>2005-09-03 08:22:29 +0100
commita0d5388913ca8f9a97fa1ef257517230412bafdd (patch)
tree6c331d48d6a8a93d612875564c3a273b7b9a84bb /functions.php
parentf92db4f5e750358bf49f4aa81d6f91b00e006494 (diff)
reworked preferences dialog, start work on post filters (schema updated)
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php12
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>";
+ }
?>