From 94768c5986194a4e66a7df69b909be4b01ddca3d Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Thu, 24 Nov 2011 03:30:48 +0000 Subject: [PATCH] =?UTF-8?q?Ticket=20#259=20=E4=BF=AE=E6=94=B9=E4=BA=86heih?= =?UTF-8?q?e=20view=E4=B8=ADajax=E5=88=86=E9=A1=B5=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/DataController.php | 2 +- .../scripts/data/pagination_literature.phtml | 26 +++++++++++++++++++ .../default/views/scripts/heihe/view.phtml | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 application/default/views/scripts/data/pagination_literature.phtml 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('加载中');} }); };