diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index fe32c9ac..c5ea8bfd 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -645,7 +645,7 @@ class DataController extends Zend_Controller_Action $paginator->setCurrentPageNumber($this->_getParam('page')); $paginator->setItemCountPerPage(5); $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('data/pagination_ajax.phtml'); + Zend_View_Helper_PaginationControl::setDefaultViewPartial('data/pagination_literature.phtml'); $this->config = Zend_Registry::get('config'); if ($paginator) { diff --git a/application/default/views/scripts/data/pagination_literature.phtml b/application/default/views/scripts/data/pagination_literature.phtml new file mode 100644 index 00000000..a4d31531 --- /dev/null +++ b/application/default/views/scripts/data/pagination_literature.phtml @@ -0,0 +1,26 @@ +pageCount): ?> +
+ +previous)): ?> + < Previous + + < Previous + + + +pagesInRange as $page): ?> + current): ?> + + + + + + + +next)): ?> + Next > + + Next > + +
+ \ No newline at end of file diff --git a/application/default/views/scripts/heihe/view.phtml b/application/default/views/scripts/heihe/view.phtml index 96d09b68..17f1a581 100755 --- a/application/default/views/scripts/heihe/view.phtml +++ b/application/default/views/scripts/heihe/view.phtml @@ -347,7 +347,7 @@ function literature(page){ type:"GET", url:"/data/literature/uuid/uuid; ?>", data:'page='+page, - success:function(html){$('#literature').html('');$('#literature .paginationControl a').attr('onclick',$('#literature .paginationControl a').attr('onclick').replace(/ajaxpage/i,"literature"));}, + success:function(html){$('#literature').html('');}, beforeSend:function(){$('#literature').html('加载中');} }); };