mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Move pagination outside footer
This commit is contained in:
@@ -462,7 +462,6 @@ if (!$columns && support("table")) {
|
||||
}
|
||||
|
||||
if (!is_ajax()) {
|
||||
echo "<div class='footer'><div>\n";
|
||||
if ($rows || $page) {
|
||||
$exact_count = true;
|
||||
if ($_GET["page"] != "last") {
|
||||
@@ -513,10 +512,15 @@ if (!$columns && support("table")) {
|
||||
}
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
echo ($found_rows !== false ? "(" . ($exact_count ? "" : "~ ") . lang('%d row(s)', $found_rows) . ") " : "");
|
||||
}
|
||||
|
||||
echo "<div class='footer'><div>\n";
|
||||
if ($rows || $page) {
|
||||
echo "<fieldset>";
|
||||
echo "<legend>" . lang('whole result') . "</legend>";
|
||||
$display_rows = ($exact_count ? "" : "~ ") . $found_rows;
|
||||
echo checkbox("all", 1, 0, lang('whole result'), "var checked = formChecked(this, /check/); selectCount('selected', this.checked ? '$display_rows' : checked); selectCount('selected2', this.checked || !checked ? '$display_rows' : checked);") . "\n";
|
||||
echo checkbox("all", 1, 0, ($found_rows !== false ? ($exact_count ? "" : "~ ") . lang('%d row(s)', $found_rows) : ""), "var checked = formChecked(this, /check/); selectCount('selected', this.checked ? '$display_rows' : checked); selectCount('selected2', this.checked || !checked ? '$display_rows' : checked);") . "\n";
|
||||
echo "</fieldset>\n";
|
||||
|
||||
if ($adminer->selectCommandPrint()) {
|
||||
?>
|
||||
|
@@ -59,7 +59,7 @@ input.wayoff { left: -1000px; position: absolute; }
|
||||
.size { width: 6ex; }
|
||||
.help { cursor: help; }
|
||||
.footer { position: sticky; bottom: 0; border-top: 20px solid rgba(255, 255, 255, .7); border-image: linear-gradient(rgba(255, 255, 255, .2), #fff) 100% 0; }
|
||||
.footer > div { background: #fff; padding: 1px 0 .5em; }
|
||||
.footer > div { background: #fff; padding: 0 0 .5em; }
|
||||
.links a { white-space: nowrap; margin-right: 20px; }
|
||||
.logout { margin-top: .5em; position: absolute; top: 0; right: 0; }
|
||||
.loadmore { margin-left: 1ex; }
|
||||
|
Reference in New Issue
Block a user