1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-20 13:21:30 +02:00

Show table links if driver supports indexes

This commit is contained in:
Jakub Vrana
2014-01-09 00:06:59 -08:00
parent 1c0c335d38
commit 4b6d02cdf8
4 changed files with 61 additions and 60 deletions

View File

@@ -448,7 +448,7 @@ if (!$columns && support("table")) {
? $page + (count($rows) >= $limit ? 2 : 1)
: floor(($found_rows - 1) / $limit)
);
if (support("table")) {
if ($jush != "simpledb") {
echo '<a href="' . h(remove_from_uri("page")) . "\" onclick=\"pageClick(this.href, +prompt('" . lang('Page') . "', '" . ($page + 1) . "'), event); return false;\">" . lang('Page') . "</a>:";
echo pagination(0, $page) . ($page > 5 ? " ..." : "");
for ($i = max(1, $page - 4); $i < min($max_page, $page + 5); $i++) {