diff --git a/application/default/controllers/ReviewController.php b/application/default/controllers/ReviewController.php index 9c95ec0c..ef85f5d1 100644 --- a/application/default/controllers/ReviewController.php +++ b/application/default/controllers/ReviewController.php @@ -194,6 +194,51 @@ class ReviewController extends Zend_Controller_Action }//在审阶段的元数据 + function reviewedAction(){ + + $keyword = $this->_request->getParam('q'); + $search = $this->_request->getParam('search'); + + try{ + + $wheresql = array(); + $wheresql[]=" ms.status=5 "; + + if(!empty($keyword) && !empty($search)) + { + if (preg_match("/[<|>|#|$|%|^|*|(|)|{|}|'|\"|;|:]/i",$keyword) || !is_numeric($search)) + { + $this->messenger->addMessage('您的输入的搜索条件包含非法请求,请不要输入特殊符号'); + $this->_redirect('/review/reviewed'); + }//非法请求过滤 + $this->view->keyword = $keyword; + $wheresql[] = " md.title like '%$keyword%' "; + } + + $wheresql = join(' and ',$wheresql); + + $sql = "select ms.uuid,ms.status,ms.ts_created,ts_finished,md.title,md.author from mdstatus ms + left join metadata md on md.uuid=ms.uuid + where $wheresql"; + + $rs = $this->db->query($sql); + $rows = $rs->fetchAll(); + + $paginator = Zend_Paginator::factory($rows); + $paginator->setCurrentPageNumber($this->_getParam('page')); + $paginator->setItemCountPerPage($this->view->config->page->max); + $paginator->setView($this->view); + Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); + $this->view->paginator=$paginator; + + }catch(Exception $e){ + $this->messenger->addMessage('查询失败,请稍后重试 :('); + $this->_redirect('/review/reviewed'); + } + + }//已完成评审的元数据 + + function rewiterstatus($status){ if($status==-1) {return "取消评审";} diff --git a/application/default/views/scripts/review/reviewed.phtml b/application/default/views/scripts/review/reviewed.phtml new file mode 100644 index 00000000..827167b3 --- /dev/null +++ b/application/default/views/scripts/review/reviewed.phtml @@ -0,0 +1,61 @@ +headTitle($config->title->site); +$this->headTitle($config->title->mdreview); +$this->headTitle()->setSeparator(' - '); +$this->headLink()->appendStylesheet('/css/mdreview.css'); +$this->breadcrumb('首页'); +$this->breadcrumb('元数据评审'); +$this->breadcrumb()->setSeparator(' > '); +?> +
元数据标题 | +收稿时间 | +评审结束时间 | +
---|---|---|
+ | + + | ++ + | +