Minahito
minah****@users*****
2006年 1月 14日 (土) 21:23:12 JST
Index: xoops2jp/html/modules/legacyRender/admin/class/AbstractListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/class/AbstractListAction.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/class/AbstractListAction.class.php:1.1.2.3 --- xoops2jp/html/modules/legacyRender/admin/class/AbstractListAction.class.php:1.1.2.2 Sat Jan 14 21:14:41 2006 +++ xoops2jp/html/modules/legacyRender/admin/class/AbstractListAction.class.php Sat Jan 14 21:23:12 2006 @@ -5,6 +5,7 @@ var $mObjects = array(); var $mFilter = null; var $mActionForm = null; + var $mPageNavi = null; function &_getHandler() { @@ -20,6 +21,8 @@ function getDefaultView(&$controller, &$xoopsUser) { + $this->mPageNavi =& new XCube_PageNavigator($this->_getBaseUrl(), 0, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); + $this->mFilter =& $this->_getFilterForm(); $this->mFilter->fetch(); @@ -27,11 +30,9 @@ $total = $handler->getCount($this->mFilter->getCriteria()); - $this->mPageNavi =& new XCube_PageNavigator($this->_getBaseUrl(), $total, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); + $this->mPageNavi->setTotal($total); $this->mPageNavi->fetch(); - $this->mFilter->setNavi($this->mPageNavi); - $criteria = $this->mFilter->getCriteria($this->mPageNavi->getStart(), $this->mPageNavi->getPerpage()); $this->mObjects =& $handler->getObjects($criteria);