diff --git a/application/default/controllers/ReviewController.php b/application/default/controllers/ReviewController.php index 6a098113..7c7df588 100644 --- a/application/default/controllers/ReviewController.php +++ b/application/default/controllers/ReviewController.php @@ -453,11 +453,11 @@ class ReviewController extends Zend_Controller_Action function allreviewAction(){ - $this->_helper->layout->disableLayout(); - $this->_helper->viewRenderer->setNoRender(); - + $page = $this->_getParam('page'); $uuid = $this->_request->getParam('uuid'); + $offset = 5; + $sql = "select r.uuid,r.userid,r.ts_created,u.realname,r.mdcomment,r.conclusion from mdreview r left join users u on u.id=r.userid where r.uuid='$uuid'"; @@ -467,9 +467,9 @@ class ReviewController extends Zend_Controller_Action $paginator = Zend_Paginator::factory($rows); $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(5); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); + //$paginator->setItemCountPerPage(5); + //$paginator->setView($this->view); + Zend_View_Helper_PaginationControl::setDefaultViewPartial('review/pagination_ajax.phtml'); $list = ""; foreach($rows as $k=>$v) @@ -486,6 +486,10 @@ class ReviewController extends Zend_Controller_Action $stringbuffer = "