diff --git a/application/default/controllers/HeiheController.php b/application/default/controllers/HeiheController.php index f15f8c87..1f984a11 100644 --- a/application/default/controllers/HeiheController.php +++ b/application/default/controllers/HeiheController.php @@ -724,6 +724,9 @@ class HeiheController extends DataController $this->view->user_email = $user_email = $user->email; } + $this->view->page = $this->_getParam('page'); + $this->view->pagelimit = 15; + if(empty($ac) || $ac == "index" || $ac == 'my') { $this->_helper->viewRenderer('project-index'); @@ -777,11 +780,11 @@ class HeiheController extends DataController $paginator = Zend_Paginator::factory($rows); $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(15); + $paginator->setItemCountPerPage($this->view->pagelimit); $paginator->setView($this->view); Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); $this->view->paginator=$paginator; - + }//ac == index if($ac == "submitting") diff --git a/application/default/views/scripts/heihe/project-index.phtml b/application/default/views/scripts/heihe/project-index.phtml index e8edfa42..6ffd2a36 100644 --- a/application/default/views/scripts/heihe/project-index.phtml +++ b/application/default/views/scripts/heihe/project-index.phtml @@ -27,9 +27,9 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
searchLink)){ ?> @@ -44,12 +44,17 @@ $this->headLink()->appendStylesheet('/css/colorbox.css'); paginator)): echo "编号: | 负责人:= $item['name'];?> |