summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-17 06:26:54 +0100
committerAndrew Dolgov <[email protected]>2005-11-17 06:26:54 +0100
commit77e9671919d21b2b1d08c9da38520ba7a40592a1 (patch)
tree76a6f5f92d3d01daf35d5702fd8e6528b71ad100 /functions.php
parent541492a9ce6c251588f4a14cfc8fe6fc0df3e03f (diff)
preferences editor
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index d9d9c37fd..75fc8003c 100644
--- a/functions.php
+++ b/functions.php
@@ -454,4 +454,17 @@
return ((float)$usec + (float)$sec);
}
+ function print_radio($id, $default, $values, $attributes = "") {
+ foreach ($values as $v) {
+
+ if ($v == $default)
+ $sel = "checked value=\"1\"";
+ else
+ $sel = "value=\"0\"";
+
+ print "<input type=\"radio\" $sel $attributes name=\"$id\">&nbsp;$v&nbsp;";
+
+ }
+ }
+
?>