function pageLink(IPaginator $paginator, $page, $isCurrent = false) { $url = $paginator->toURL($page); $ret = ''; $ret .= '<li' . ($isCurrent ? ' class="active"' : '') . '><a href="' . $url . '">' . $page . '</a></li>'; return $ret; }
function pageLink(IPaginator $paginator, $page, $isCurrent = false) { $url = $paginator->toURL($page); $ret = ''; if ($this->firstPage == null) { $this->firstPage = $page; $ret = '<a href="' . $paginator->toURL(1) . '">1</a> ... '; } if ($page != 1) { $ret .= ($isCurrent ? '<span class="selected">' : '<a href="' . $url . '">') . $page . ($isCurrent ? '</span>' : '</a>') . ' '; } return $ret; }
function outputLinks(Output\IPaginator $paginator, IPaginationTemplate $template) { $paginator->Output(ceil($this->totalRows / $this->perPage), $template); }