From 77e9671919d21b2b1d08c9da38520ba7a40592a1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 Nov 2005 06:26:54 +0100 Subject: preferences editor --- functions.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'functions.php') 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 " $v "; + + } + } + ?> -- cgit v1.2.3-54-g00ecf