diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index 397f61d0..001217bf 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -123,6 +123,24 @@ class Admin_ReviewController extends Zend_Controller_Action } }//changestatus 更改状态 + function editorAction() + { + include_once("helper/view.php"); + include_once("data/Review.php"); + + $this->view->keyword = $keyword = $this->_request->getParam('keyword'); + + $review = new Review(); + if(!empty($keyword)) + { + $filter['keyword'] = $keyword; + $data = $review->needEditor($filter); + }else{ + $data = $review->needEditor(); + } + + \view::addPaginator($data,$this,NULL,20); + } /* * acceptAction()待审元数据 @@ -191,16 +209,12 @@ class Admin_ReviewController extends Zend_Controller_Action $sql = "select m.*,md.title,u.username,u.realname from mdstatus m right join metadata md on md.uuid=m.uuid left join users u on u.id=m.userid - where m.status in (1,2,3,4) order by m.ts_created desc"; + where m.status in (1,2,3,4) + order by m.ts_created desc"; $re = $this->db->query($sql); $rows = $re->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; + \view::addPaginator($rows,$this,NULL,20); }//列表 }//acceptAction diff --git a/application/admin/views/scripts/review/accept.phtml b/application/admin/views/scripts/review/accept.phtml index 80f06c7c..4f44491d 100644 --- a/application/admin/views/scripts/review/accept.phtml +++ b/application/admin/views/scripts/review/accept.phtml @@ -48,7 +48,7 @@ table thead tr th {background:#EBF2F6;color:#444;}
msg; ?>
+ messages): foreach($this->messages as $msg): ?> + + +元数据标题 | +责任编辑 | +接收时间 | +操作 | +
---|---|---|---|
= $item['title']?> | ++ | + | + 分配编辑 + | +