From 00de4a35679237de3a982e9c65d23448566e9353 Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 27 Oct 2011 14:49:00 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=8A=B6=E6=80=81=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/ReviewController.php | 15 +++++++++------ .../default/views/scripts/review/search.phtml | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/application/default/controllers/ReviewController.php b/application/default/controllers/ReviewController.php index 7f2ceae8..b6af7f2d 100644 --- a/application/default/controllers/ReviewController.php +++ b/application/default/controllers/ReviewController.php @@ -66,7 +66,7 @@ class ReviewController extends Zend_Controller_Action foreach($rows as $k=>$v) { - $rows[$k]['status']=$this->rewiterstatus($v['status']); + $rows[$k]['status']=$this->rewritestatus($v['status']); } $paginator = Zend_Paginator::factory($rows); @@ -202,7 +202,7 @@ class ReviewController extends Zend_Controller_Action foreach($rows as $k=>$v) { - $rows[$k]['status']=$this->rewiterstatus($v['status']); + $rows[$k]['status']=$this->rewritestatus($v['status']); } $paginator = Zend_Paginator::factory($rows); @@ -265,13 +265,13 @@ class ReviewController extends Zend_Controller_Action }//已完成评审的元数据 - function rewiterstatus($status){ + function rewritestatus($status){ if($status==-1) {return "取消评审";} else if($status==0) - {return "初始状态";} + {return "投稿元数据";} else if($status==1) - {return "接受元数据评审";} + {return "接收元数据";} else if($status==2) {return "专家评审中";} else if($status==3) @@ -500,7 +500,10 @@ class ReviewController extends Zend_Controller_Action $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); $this->view->page=new Pagination($sum,$page,$this->limit); $this->view->key=$key; - $this->view->offset=$offset+1; + foreach($this->view->metadata as $k=>$v) + { + $this->view->metadata[$k]['statustext']=$this->rewritestatus($v['status']); + } } } } diff --git a/application/default/views/scripts/review/search.phtml b/application/default/views/scripts/review/search.phtml index e86cb9c0..6ea19a9a 100644 --- a/application/default/views/scripts/review/search.phtml +++ b/application/default/views/scripts/review/search.phtml @@ -25,7 +25,7 @@ $this->headScript()->appendFile('/js/pubfunc.js'); ?>