Display pagination on a fixed position
This commit is contained in:
parent
79b61855e5
commit
5739e03e97
|
@ -436,8 +436,8 @@ if (!$columns) {
|
||||||
$exact_count = false;
|
$exact_count = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "<p class='pages'>";
|
|
||||||
if (+$limit && ($found_rows === false || $found_rows > $limit || $page)) {
|
if (+$limit && ($found_rows === false || $found_rows > $limit || $page)) {
|
||||||
|
echo "<p class='pages'>";
|
||||||
// display first, previous 4, next 4 and last page
|
// display first, previous 4, next 4 and last page
|
||||||
$max_page = ($found_rows === false
|
$max_page = ($found_rows === false
|
||||||
? $page + (count($rows) >= $limit ? 2 : 1)
|
? $page + (count($rows) >= $limit ? 2 : 1)
|
||||||
|
@ -451,10 +451,11 @@ if (!$columns) {
|
||||||
if ($max_page > 0) {
|
if ($max_page > 0) {
|
||||||
echo ($page + 5 < $max_page ? " ..." : "") . ($exact_count && $found_rows !== false ? pagination($max_page, $page) : ' <a href="' . h(remove_from_uri("page") . "&page=last") . '">' . lang('last') . "</a>");
|
echo ($page + 5 < $max_page ? " ..." : "") . ($exact_count && $found_rows !== false ? pagination($max_page, $page) : ' <a href="' . h(remove_from_uri("page") . "&page=last") . '">' . lang('last') . "</a>");
|
||||||
}
|
}
|
||||||
|
echo (($found_rows === false ? count($rows) + 1 : $found_rows - $page * $limit) > $limit ? ' <a href="' . h(remove_from_uri("page") . "&page=" . ($page + 1)) . '" onclick="return !selectLoadMore(this, ' . (+$limit) . ', \'' . lang('Loading') . '\');">' . lang('Load more data') . '</a>' : '');
|
||||||
}
|
}
|
||||||
echo ($found_rows !== false ? " (" . ($exact_count ? "" : "~ ") . lang('%d row(s)', $found_rows) . ")" : "");
|
echo "<p>\n";
|
||||||
echo (+$limit && ($found_rows === false ? count($rows) + 1 : $found_rows - $page * $limit) > $limit ? ' <a href="' . h(remove_from_uri("page") . "&page=" . ($page + 1)) . '" onclick="return !selectLoadMore(this, ' . (+$limit) . ', \'' . lang('Loading') . '\');">' . lang('Load more data') . '</a>' : '');
|
echo ($found_rows !== false ? "(" . ($exact_count ? "" : "~ ") . lang('%d row(s)', $found_rows) . ") " : "");
|
||||||
echo " " . checkbox("all", 1, 0, lang('whole result')) . "\n";
|
echo checkbox("all", 1, 0, lang('whole result')) . "\n";
|
||||||
|
|
||||||
if ($adminer->selectCommandPrint()) {
|
if ($adminer->selectCommandPrint()) {
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -46,6 +46,7 @@ input[type=image] { vertical-align: middle; }
|
||||||
.sqlarea { width: 98%; }
|
.sqlarea { width: 98%; }
|
||||||
.icon { width: 18px; height: 18px; }
|
.icon { width: 18px; height: 18px; }
|
||||||
.size { width: 6ex; }
|
.size { width: 6ex; }
|
||||||
|
.pages { position: fixed; bottom: 0; left: 21em; padding: 5px; background: #ddf; border: 1px solid #999; }
|
||||||
#menu { position: absolute; margin: 10px 0 0; padding: 0 0 30px 0; top: 2em; left: 0; width: 19em; }
|
#menu { position: absolute; margin: 10px 0 0; padding: 0 0 30px 0; top: 2em; left: 0; width: 19em; }
|
||||||
#menu p { padding: .8em 1em; margin: 0; border-bottom: 1px solid #ccc; }
|
#menu p { padding: .8em 1em; margin: 0; border-bottom: 1px solid #ccc; }
|
||||||
#dbs { overflow: hidden; }
|
#dbs { overflow: hidden; }
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
Adminer 3.6.4-dev:
|
Adminer 3.6.4-dev:
|
||||||
|
Display pagination on a fixed position
|
||||||
Order by auto_increment column by default
|
Order by auto_increment column by default
|
||||||
Display select SQL edit form inline
|
Display select SQL edit form inline
|
||||||
Compatibility with MySQL 5.6
|
Compatibility with MySQL 5.6
|
||||||
|
|
Loading…
Reference in a new issue