commit ce5ea4c54aed6615653a1fbee9a2b72bc7ca1201
parent c9fda9413037fa332555b3b46ba5cb7d7a1432e8
Author: Jan Dankert <devnull@localhost>
Date: Sat, 21 Jul 2012 01:38:41 +0200
Neues Attribut \"checked\" für Radioboxen.
Diffstat:
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/themes/default/include/html/radio.inc.php b/themes/default/include/html/radio.inc.php
@@ -8,7 +8,7 @@
else
$attr_tmp_default = '';
- ?><input onclick="" class="radio" 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"' ?><?php if (in_array($attr_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> />
+ ?><input onclick="" class="radio" 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||@$attr_checked) echo ' checked="checked"' ?><?php if (in_array($attr_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> />
<?php /* #IF-ATTR deactivated-children# */ ?>
<script name="Javascript" type="text/javascript">
diff --git a/themes/default/templates/template.xsd b/themes/default/templates/template.xsd
@@ -29,11 +29,14 @@
</xsd:complexType>
<xsd:complexType name="cellType">
<xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element ref="part" maxOccurs="unbounded" minOccurs="0">
+ <xsd:element ref="part" maxOccurs="unbounded"
+ minOccurs="0">
</xsd:element>
- <xsd:element ref="image" maxOccurs="unbounded" minOccurs="0">
+ <xsd:element ref="image" maxOccurs="unbounded"
+ minOccurs="0">
</xsd:element>
- <xsd:element ref="text" maxOccurs="unbounded" minOccurs="0">
+ <xsd:element ref="text" maxOccurs="unbounded"
+ minOccurs="0">
</xsd:element>
<xsd:element ref="fieldset" maxOccurs="unbounded"
minOccurs="0">
@@ -41,6 +44,7 @@
<xsd:element ref="button" maxOccurs="unbounded"
minOccurs="0">
</xsd:element>
+ <xsd:element ref="link" maxOccurs="unbounded" minOccurs="0"></xsd:element>
</xsd:choice>
<xsd:attribute name="width" type="xsd:int" />
<xsd:attributeGroup ref="universal"></xsd:attributeGroup>
@@ -335,6 +339,7 @@
<xsd:attribute name="name" type="xsd:string"></xsd:attribute>
<xsd:attributeGroup ref="universal"></xsd:attributeGroup>
<xsd:attribute name="value" type="xsd:string"></xsd:attribute>
+ <xsd:attribute name="checked" type="xsd:boolean"></xsd:attribute>
</xsd:complexType>
<xsd:element name="inputarea" type="inputareaType"></xsd:element>