pagination fix
This commit is contained in:
parent
3c6edc5277
commit
44158a0b00
1 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ function nextButton($params) {
|
|||
function pageLinks() {
|
||||
global $page;
|
||||
global $cat;
|
||||
for ($i=0; $i < (intval(getRowCount($cat)/14)+1); $i++) {
|
||||
for ($i=0; $i < (intval(getRowCount($cat)/14)); $i++) {
|
||||
if ($page == $i+1) {
|
||||
echo("<td class='selectedpage'>");
|
||||
} else {
|
||||
|
|
@ -57,7 +57,7 @@ function pageButtons() {
|
|||
backButton(params($page-1));
|
||||
}
|
||||
pageLinks();
|
||||
if ($page < intval(getRowCount($cat)/14)+1) {
|
||||
if ($page < intval(getRowCount($cat)/14)) {
|
||||
nextButton(params($page+1));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue