Move <p> after a possible error

This commit is contained in:
Jakub Vrana 2019-08-21 15:05:02 +02:00
parent c6fc6b63e8
commit bce0e8d54a

View file

@ -51,7 +51,6 @@ if ($_POST) {
?>
<form action="" method="post">
<p>
<?php
$source = array_keys(fields($TABLE)); //! no text and blob
if ($row["db"] != "") {
@ -63,7 +62,7 @@ if ($row["ns"] != "") {
$target = ($TABLE === $row["table"] ? $source : array_keys(fields($row["table"])));
$referencable = array_keys(array_filter(table_status('', true), 'fk_support'));
$onchange = "this.form['change-js'].value = '1'; this.form.submit();";
echo lang('Target table') . ": " . html_select("table", $referencable, $row["table"], $onchange) . "\n";
echo "<p>" . lang('Target table') . ": " . html_select("table", $referencable, $row["table"], $onchange) . "\n";
if ($jush == "pgsql") {
echo lang('Schema') . ": " . html_select("ns", $adminer->schemas(), $row["ns"] ? $row["ns"] : $_GET["ns"], $onchange);
} elseif ($jush != "sqlite") {