]> git.joonet.de Git - adminer.git/commitdiff
Move pagination outside footer
authorJakub Vrana <jakub@vrana.cz>
Fri, 9 Feb 2018 22:28:19 +0000 (23:28 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 9 Feb 2018 22:28:19 +0000 (23:28 +0100)
adminer/select.inc.php
adminer/static/default.css

index 426eda3c6dd7ad105f3d71d318e8ecf28fefecfd..51da597035a7acc466dfc0378204fd6235fef90e 100644 (file)
@@ -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()) {
                                        ?>
index 0c6bb372cf46ede75be505daa3412cd05a57119d..d6a4340b367ae7f61885fefe8c750d0e2fe35b4b 100644 (file)
@@ -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; }