1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

Let pagination function return

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@830 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-07-15 11:31:17 +00:00
parent 791ea4ff61
commit c565c5453c
2 changed files with 5 additions and 12 deletions

View File

@@ -335,18 +335,11 @@ if (!$columns) {
if (intval($limit) && $found_rows > $limit) {
// display first, previous 3, next 3 and last page
$max_page = floor(($found_rows - 1) / $limit);
echo lang('Page') . ":";
print_pagination(0);
if ($_GET["page"] > 3) {
echo " ...";
}
echo lang('Page') . ":" . pagination(0) . ($_GET["page"] > 3 ? " ..." : "");
for ($i = max(1, $_GET["page"] - 2); $i < min($max_page, $_GET["page"] + 3); $i++) {
print_pagination($i);
echo pagination($i);
}
if ($_GET["page"] + 3 < $max_page) {
echo " ...";
}
print_pagination($max_page);
echo ($_GET["page"] + 3 < $max_page ? " ..." : "") . pagination($max_page);
}
echo " (" . lang('%d row(s)', $found_rows) . ') <label><input type="checkbox" name="all" value="1">' . lang('whole result') . "</label>\n";