From 491fb84d8625858bcbd155d0e630586463e3dec4 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Tue, 23 Apr 2013 03:14:40 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B1=87=E4=BA=A4=E8=AE=A1=E5=88=92=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E9=A1=B9=E7=9B=AE=E5=BA=8F=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/HeiheController.php | 7 +++++-- .../default/views/scripts/heihe/project-index.phtml | 11 ++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) 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 "