Lines Matching refs:currentpage
347 $currentpage = floor($query['offset'] / $limit) + 1;
356 $this->htmlPagination($query, $currentpage, $count, $limit);
369 $this->htmlPagination($query, $currentpage, $count, $limit);
377 * @param int $currentpage number of current page
383 private function htmlPagination($query, $currentpage, $maximum, $limit) { argument
388 $pages[] = $currentpage; // current page always
396 if($currentpage-1 > 0) $pages[] = $currentpage-1;
397 if($currentpage-2 > 0) $pages[] = $currentpage-2;
398 if($currentpage-3 > 0) $pages[] = $currentpage-3;
399 if($currentpage+1 < $lastpage) $pages[] = $currentpage+1;
400 if($currentpage+2 < $lastpage) $pages[] = $currentpage+2;
401 if($currentpage+3 < $lastpage) $pages[] = $currentpage+3;
408 if($currentpage > 1) {
409 … $this->htmlPaginationurl($query, ($currentpage - 2) * $limit, '«', $currentpage - 1);
417 if($page == $currentpage) {
425 if($currentpage < $lastpage) {
426 $this->htmlPaginationurl($query, $currentpage * $limit, '»', $currentpage + 1);