openrat-cms

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

commit 4bf6dd2497ffde71a3139011cd1a91ef533dcc7c
parent 4244f0ec8e5dfc621ecda514365cd33f3044a579
Author: dankert <devnull@localhost>
Date:   Mon,  5 Mar 2007 23:39:37 +0100

ID-Attribut mit Unterstrich.

Diffstat:
themes/default/include/html/checkbox.inc.php | 4++--
themes/default/include/html/input.inc.php | 4++--
themes/default/include/html/label.inc.php | 4++--
themes/default/include/html/radio.inc.php | 5++---
themes/default/include/html/selectbox.inc.php | 2+-
5 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/themes/default/include/html/checkbox.inc.php b/themes/default/include/html/checkbox.inc.php @@ -6,4 +6,4 @@ // $checked = isset($$$attr_name)&& $$$attr_name==true; else $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 +?><input type="checkbox" id="id_<?php echo $attr_name ?>" 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 diff --git a/themes/default/include/html/input.inc.php b/themes/default/include/html/input.inc.php @@ -1 +1 @@ -<input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" onxxxMouseOver="this.focus();" />- \ No newline at end of file +<input id="id_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" onxxxMouseOver="this.focus();" />+ \ No newline at end of file diff --git a/themes/default/include/html/label.inc.php b/themes/default/include/html/label.inc.php @@ -1 +1 @@ -<label for="id<?php echo $attr_for ?>">- \ No newline at end of file +<label for="id_<?php echo $attr_for ?><?php if (!empty($attr_value)) echo '_' ?><?php echo $attr_value ?>">+ \ No newline at end of file diff --git a/themes/default/include/html/radio.inc.php b/themes/default/include/html/radio.inc.php @@ -1,2 +1 @@ -<?php -?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if( $attr_value == $$attr_name ) echo 'checked="checked"' ?> />- \ No newline at end of file +<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==$default) echo 'checked="checked"' ?> />+ \ No newline at end of file diff --git a/themes/default/include/html/selectbox.inc.php b/themes/default/include/html/selectbox.inc.php @@ -1,4 +1,4 @@ -<select size="1" id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php +<select size="1" id="id_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php if (count($$attr_list)==1) echo ' disabled="disabled"' ?>><?php foreach( $$attr_list as $box_key=>$box_value )