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