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'].'
  • '; + } } }//相关下载