show a total of 10 pages
This commit is contained in:
parent
404bd217ac
commit
b374423342
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@
|
|||
if ($page > 1)
|
||||
printf("<a href='%s&page=1'><<</a> <a href='%s&page=%d'><</a> ",
|
||||
$_SERVER['REQUEST_URI'], $_SERVER['REQUEST_URI'], $page - 1);
|
||||
for ($i = $page; $i <= ($res[1]["pages"] > $page + 10 ? $page + 10 : $res[1]["pages"]); $i++)
|
||||
for ($i = $page; $i <= ($res[1]["pages"] > $page + 9 ? $page + 9 : $res[1]["pages"]); $i++)
|
||||
printf("<a href='%s&page=%d'>%d</a> ", $_SERVER['REQUEST_URI'], $i, $i);
|
||||
if ($page != $res[1]["pages"])
|
||||
printf("<a href='%s&page=%s'>></a> <a href='%s&page=%s'>>></a> ",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue