@@ 548-555 (lines=8) @@ | ||
545 | $misc->printVal($v), "</option>\n"; |
|
546 | } |
|
547 | $types->moveFirst(); |
|
548 | while (!$types->EOF) { |
|
549 | $typname = $types->fields['typname']; |
|
550 | $types_for_js[$typname] = 1; |
|
551 | echo "\t\t\t\t<option value=\"", htmlspecialchars($typname), '"', |
|
552 | (isset($_REQUEST['type'][$i]) && $typname == $_REQUEST['type'][$i]) ? ' selected="selected"' : '', '>', |
|
553 | $misc->printVal($typname), "</option>\n"; |
|
554 | $types->moveNext(); |
|
555 | } |
|
556 | echo "\t\t\t</select>\n\t\t\n"; |
|
557 | if ($i == 0) { |
|
558 | // only define js types array once |
@@ 457-463 (lines=7) @@ | ||
454 | htmlspecialchars($_REQUEST['field'][$i]), "\" /></td>\n"; |
|
455 | echo "\t\t<td>\n\t\t\t<select name=\"type[{$i}]\">\n"; |
|
456 | $types->moveFirst(); |
|
457 | while (!$types->EOF) { |
|
458 | $typname = $types->fields['typname']; |
|
459 | echo "\t\t\t\t<option value=\"", htmlspecialchars($typname), '"', |
|
460 | (isset($_REQUEST['type'][$i]) && $typname == $_REQUEST['type'][$i]) ? ' selected="selected"' : '', '>', |
|
461 | $misc->printVal($typname), "</option>\n"; |
|
462 | $types->moveNext(); |
|
463 | } |
|
464 | echo "\t\t\t</select>\n\t\t</td>\n"; |
|
465 | ||
466 | // Output array type selector |