openrat-cms

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

commit f9d0b3ab93606b7d0c64b42073ce806bb7413cde
parent 8e3cdf8a24113f8f91a569e34b13a67fbd0662e2
Author: dankert <devnull@localhost>
Date:   Sat, 20 Jan 2007 17:54:08 +0100

Vereinfachung.

Diffstat:
themes/default/include/html/checkbox.inc.php | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/themes/default/include/html/checkbox.inc.php b/themes/default/include/html/checkbox.inc.php @@ -1,10 +1,9 @@ <?php - $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; - $attr_readonly = ( $attr_readonly == 'true' ); - $attr_default = ( $attr_default == 'true' ); + $attr_default = ( $attr_default == true ); if ( isset($$attr_name) ) - $checked = isset($$$attr_name)&& $$$attr_name==true; + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_name==true; else - $checked = $attr_default; -?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> />- \ No newline at end of file + $checked = $attr_default == true; +?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr_name); unset($attr_readonly); unset($attr_default); ?>+ \ No newline at end of file