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'); ?>