openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 23252e21e2a76cab2f7231f36398bf7f5709c3dd
parent e77aad7890a5338b2a253602a4bfb4ed087763e3
Author: dankert <devnull@localhost>
Date:   Tue,  3 Jul 2007 23:08:44 +0200

Bessere Ermittlung des Default-Wertes f?r Radio-Knopf.

Diffstat:
themes/default/include/html/radio.inc.php | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/themes/default/include/html/radio.inc.php b/themes/default/include/html/radio.inc.php @@ -1 +1,9 @@ -<input type="radio" id="id_<?php echo $attr_name.'_'.$attr_value ?>" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if($attr_value==$attr_default) echo 'checked="checked"' ?> />- \ No newline at end of file +<?php + if ( isset($$attr_name) ) + $attr_tmp_default = $$attr_name; + elseif ( isset($attr_default) ) + $attr_tmp_default = $attr_default; + else + $attr_tmp_default = ''; + + ?><input type="radio" id="id_<?php echo $attr_name.'_'.$attr_value ?>" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if($attr_value==$attr_tmp_default) echo 'checked="checked"' ?> />+ \ No newline at end of file