17
yess ! problem is done !
Change in class/elementrenderer.php
le="color: #000000"><?php case 'checkbox': $selected = array(); $options = array(); $opt_count = 1; while( $i = each($ele_value) ){ $options[$opt_count] = $i['key']; if( $i['value'] > 0 ){ $selected[] = $opt_count; } $opt_count++; } $form_ele = new XoopsFormElementTray($ele_caption, $delimiter == 'b' ? '<br />' : ' '); while( $o = each($options) ){ $t =& new XoopsFormCheckBox( '', $form_ele_id.'[]', $selected ); $other = $this->optOther($o['value'], $form_ele_id); if( $other != false && !$admin ){ $t->addOption($o['key'], _xforms_OPT_OTHER.$other); }else{ $t->addOption($o['key'], $myts->stripSlashesGPC($o['value'])); } $form_ele->addElement($t); } break;
by
le="color: #000000"><?php case 'checkbox': $selected = array(); $options = array(); $opt_count = 1; while( $i = each($ele_value) ){ $options[$opt_count] = $i['key']; if( $i['value'] > 0 ){ $selected[] = $opt_count; } $opt_count++; } $form_ele = new XoopsFormElementTray($ele_caption, $delimiter == 'b' ? '<br />' : ' '); while( $o = each($options) ){ $t =& new XoopsFormCheckBox( '', $form_ele_id.'[]'.$o['value'], $selected ); $other = $this->optOther($o['value'], $form_ele_id); if( $other != false && !$admin ){ $t->addOption($o['key'], _xforms_OPT_OTHER.'</label><label>'.$other); }else{ $t->addOption($o['key'], $myts->stripSlashesGPC($o['value'])); } $form_ele->addElement($t); } break;
There are 10 categories of people in the world : Those who understand the binary code and the others.
http://www.68hc08.net