@@ 446-452 (lines=7) @@ | ||
443 | , '<fieldset', $s_html); |
|
444 | ||
445 | // Label as legend |
|
446 | if (isset($elt['label'])) |
|
447 | $s_html = str_replace('/>' |
|
448 | , '>' . "\n " . '<legend>' . $elt['label'] |
|
449 | . '</legend>' . "\n" |
|
450 | , $s_html); |
|
451 | else |
|
452 | $s_html = str_replace('/>', ">\n", $s_html); |
|
453 | ||
454 | return $s_html; |
|
455 | } // end of func GetElementFieldset |
|
@@ 557-566 (lines=10) @@ | ||
554 | if (empty($elt['attrib']['multiple'])) { |
|
555 | $s_html = str_replace('/>', '>', $s_html); |
|
556 | } |
|
557 | else { |
|
558 | $s_html = str_replace('/>', 'multiple="multiple" size="' |
|
559 | . $elt['attrib']['multiple'] . '">', $s_html); |
|
560 | // Set name to array format |
|
561 | $s_html = str_replace('<select type="select" name="' |
|
562 | . $elt['name'] . '"' |
|
563 | , '<select type="select" name="' |
|
564 | . $elt['name'] . '[]"' |
|
565 | , $s_html); |
|
566 | } |
|
567 | ||
568 | // Options |
|
569 | $s_option = ''; |