diff options
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 13 |
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\"> $v "; + + } + } + ?> |