radio button allow now to set the displayed readonly values to something different then X and empty

This commit is contained in:
Ralf Becker 2006-04-30 07:20:12 +00:00
parent fcfa0f81d5
commit e3ff7b9569

View File

@ -1013,8 +1013,9 @@
if (!$multiple) unset($set_val); // otherwise it will be added to the label
}
break;
case 'radio': // size: value if checked
$set_val = $this->expand_name($cell_options,$show_c,$show_row,$content['.c'],$content['.row'],$content);
case 'radio': // size: value if checked, readonly set, readonly unset
list($set_val,$ro_true,$ro_false) = explode(',',$cell_options);
$set_val = $this->expand_name($set_val,$show_c,$show_row,$content['.c'],$content['.row'],$content);
if ($value == $set_val)
{
@ -1025,7 +1026,8 @@
if ($readonly)
{
$html .= $value == $set_val ? $this->html->bold('x') : '';
if (!$ro_true && !$ro_false) $ro_true = 'x';
$html .= $value == $set_val ? $this->html->bold($ro_true) : $ro_false;
}
else
{