]> git.joonet.de Git - adminer.git/commitdiff
Display approx. number of last page in select
authorJakub Vrana <jakub@vrana.cz>
Thu, 25 Apr 2013 04:22:30 +0000 (21:22 -0700)
committerJakub Vrana <jakub@vrana.cz>
Thu, 25 Apr 2013 04:22:30 +0000 (21:22 -0700)
adminer/select.inc.php

index 5a0809eba1e15f4c01d310c19bba5d3641c6065d..dfb24f99bec114a3262b5e185deab54242a42382 100644 (file)
@@ -449,7 +449,11 @@ if (!$columns) {
                                        echo pagination($i, $page);
                                }
                                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 ? " ..." : "");
+                                       echo ($exact_count && $found_rows !== false
+                                               ? pagination($max_page, $page)
+                                               : " <a href='" . h(remove_from_uri("page") . "&page=last") . "' title='~$max_page'>" . 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>' : '');
                        }