hide navigation if only a single page exists

This commit is contained in:
Roland Gruber 2010-12-19 13:25:01 +00:00
parent cea3fdd67b
commit 4227b01756
1 changed files with 35 additions and 32 deletions

View File

@ -274,6 +274,7 @@ class lamList {
printf($this->labels['nav'], $count);
echo("</td>");
if ($count > $this->maxPageEntries) {
echo("<td class=\"" . $this->type . "nav-activepage\" align=\"right\">");
if ($this->page != 1) {
echo("<a title=\"" . _('Jump to first page') . "\" href=\"list.php?type=" . $this->type . "&amp;norefresh=true&amp;page=1" .
@ -310,7 +311,9 @@ class lamList {
"&amp;sort=" . $this->sortColumn . "&amp;sortdirection=" . $this->sortDirection . $this->filterText . "\">" .
"<img class=\"align-middle\" alt=\"\" src=\"../../graphics/go-last.png\"></a>\n");
}
echo("</td></tr></table>\n");
echo "</td>";
}
echo "</tr></table>\n";
}
/**