@@ 580-587 (lines=8) @@ | ||
577 | $this->misc->printVal($v), '</option>'.PHP_EOL; |
|
578 | } |
|
579 | $types->moveFirst(); |
|
580 | while (!$types->EOF) { |
|
581 | $typname = $types->fields['typname']; |
|
582 | $types_for_js[$typname] = 1; |
|
583 | echo "\t\t\t\t<option value=\"", htmlspecialchars($typname), '"', |
|
584 | (isset($_REQUEST['type'][$i]) && $_REQUEST['type'][$i] == $typname) ? ' selected="selected"' : '', '>', |
|
585 | $this->misc->printVal($typname), '</option>'.PHP_EOL; |
|
586 | $types->moveNext(); |
|
587 | } |
|
588 | echo "\t\t\t</select>\n\t\t\n"; |
|
589 | if (0 == $i) { |
|
590 | // only define js types array once |
@@ 456-462 (lines=7) @@ | ||
453 | htmlspecialchars($_REQUEST['field'][$i]), '" /></td>'.PHP_EOL; |
|
454 | echo "\t\t<td>\n\t\t\t<select name=\"type[{$i}]\">".PHP_EOL; |
|
455 | $types->moveFirst(); |
|
456 | while (!$types->EOF) { |
|
457 | $typname = $types->fields['typname']; |
|
458 | echo "\t\t\t\t<option value=\"", htmlspecialchars($typname), '"', |
|
459 | (isset($_REQUEST['type'][$i]) && $_REQUEST['type'][$i] == $typname) ? ' selected="selected"' : '', '>', |
|
460 | $this->misc->printVal($typname), '</option>'.PHP_EOL; |
|
461 | $types->moveNext(); |
|
462 | } |
|
463 | echo "\t\t\t</select>\n\t\t</td>".PHP_EOL; |
|
464 | ||
465 | // Output array type selector |