From e06547890c65c76215b2244deb8d8de4ed3a3e4e Mon Sep 17 00:00:00 2001 From: wlx Date: Sat, 3 Dec 2011 07:06:23 +0000 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=99=E6=88=91=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E7=9A=84JSON=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/ServiceController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php index cfa8d44b..a7752c2b 100644 --- a/application/default/controllers/ServiceController.php +++ b/application/default/controllers/ServiceController.php @@ -1056,17 +1056,17 @@ class ServiceController extends Zend_Controller_Action $paginator = Zend_Paginator::factory($rows); $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); + $paginator->setItemCountPerPage(5); $paginator->setView($this->view); Zend_View_Helper_PaginationControl::setDefaultViewPartial('data/pagination_recommend.phtml'); $this->config = Zend_Registry::get('config'); if ($paginator) - { + { + echo '
'.$paginator.'
'; foreach($paginator as $c) { - print '
  • '.$c['title']." [下载人数:".$c['downtimes']."]
  • \r\n"; - } - echo '
    '.$paginator.'
    '; + print '
  • '.$c['title'].''.$c['title'].'
  • '; + } } }//相关下载