pageTotal > 1) $limit = ' limit ' . ($this->pageID - 1) * $this->recPerPage . ", $this->recPerPage"; return $limit; } /** * Print show more link * * @access public * @return void */ public function showMore($class = 'pager-more') { $link = ''; if($this->recTotal === 0) $link = "{$this->lang->pager->noRecord}"; else if($this->pageTotal <= $this->pageID) $link = "" . sprintf($this->lang->pager->showTotal, $this->recTotal, $this->recTotal) . "   {$this->lang->pager->noMore}"; else { $this->setParams(); $this->params['pageID'] = $this->pageID + 1; $url = helper::createLink($this->moduleName, $this->methodName, $this->params); $link = "" . sprintf($this->lang->pager->showTotal, $this->recPerPage * $this->pageID, $this->recTotal) . "   {$this->lang->pager->showMore}"; } echo $link; } /** * 创建链接。 * Create link. * * @param string $title * @access public * @return string */ public function createLink($title) { return html::a(helper::createLink($this->moduleName, $this->methodName, $this->params), $title); } }