Skip to content

Commit

Permalink
Move import out of footer
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Feb 13, 2018
1 parent 30d0060 commit c8fd73d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions adminer/select.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,18 +558,22 @@

}

$adminer->selectEmailPrint(array_filter($email_fields, 'strlen'), $columns);
echo "<input type='hidden' name='token' value='$token'>\n";
echo "</div></div>\n";

if ($adminer->selectImportPrint()) {
print_fieldset("import", lang('Import'), !$rows);
echo "<div>";
echo "<a href='#import'>" . lang('Import') . "</a>";
echo script("qsl('a').onclick = partial(toggle, 'import');", "");
echo "<span id='import'" . ($rows ? " class='hidden'" : "") . ">: ";
echo "<input type='file' name='csv_file'> ";
echo html_select("separator", array("csv" => "CSV,", "csv;" => "CSV;", "tsv" => "TSV"), $adminer_import["format"], 1); // 1 - select
echo " <input type='submit' name='import' value='" . lang('Import') . "'>";
echo "</div></fieldset>\n";
echo "</span>";
echo "</div>";
}

$adminer->selectEmailPrint(array_filter($email_fields, 'strlen'), $columns);
echo "<input type='hidden' name='token' value='$token'>\n";
echo "</div></div>\n";

echo "</form>\n";
echo (!$group && $select ? "" : script("tableCheck();"));
}
Expand Down

0 comments on commit c8fd73d

Please sign in to comment.