diff --git a/application/default/controllers/ReviewController.php b/application/default/controllers/ReviewController.php
index bc337291..e13a0c05 100644
--- a/application/default/controllers/ReviewController.php
+++ b/application/default/controllers/ReviewController.php
@@ -123,15 +123,61 @@ class ReviewController extends Zend_Controller_Action
* mdstatus 中 status 字段值为 2,3,4 的元数据为正在进行评审的元数据
*/
function inreviewAction(){
- $this->view->pageID = "review-inreview";
- $page=@(int)$this->_request->getParam('page');
- if (empty($page)) $page=1;
- $offset=$this->limit*($page-1);
- $row=$this->db->fetchAll("select count(s.*) from mdstatus s right join normalmetadata m on s.uuid=m.uuid where s.status in (2,3,4)");
- $sum=$row[0]['count'];
- $sql="select m.uuid,m.title,m.id,m.description,s.status,s.ts_accepted,g.id as gid,t.filename from mdstatus s right join normalmetadata m on s.uuid=m.uuid left join geonetworkmetadata g on g.uuid=m.uuid left join thumbnail t on t.id=m.id where s.status in (2,3,4) order by s.ts_created desc,m.title limit ? offset ?";
- $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
- $this->view->page=new Pagination($sum,$page,$this->limit);
+
+ include_once("helper/view.php");
+ $ac = $this->_getParam('ac');
+
+ if(empty($ac))
+ {
+ $this->view->pageID = "review-inreview";
+ $page=@(int)$this->_request->getParam('page');
+ if (empty($page)) $page=1;
+ $offset=$this->limit*($page-1);
+ $row=$this->db->fetchAll("select count(s.*) from mdstatus s right join normalmetadata m on s.uuid=m.uuid where s.status in (2,3,4)");
+ $sum=$row[0]['count'];
+ $sql="select m.uuid,m.title,m.id,m.description,s.status,s.ts_accepted,g.id as gid,t.filename from mdstatus s right join normalmetadata m on s.uuid=m.uuid left join geonetworkmetadata g on g.uuid=m.uuid left join thumbnail t on t.id=m.id where s.status in (2,3,4) order by s.ts_created desc,m.title limit ? offset ?";
+ $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
+ $this->view->page = new Pagination($sum,$page,$this->limit);
+ }
+
+ if($ac == "require")
+ {
+ $this->_helper->viewRenderer('inreview-require');
+ $this->view->pageID = "review-inreview-require";
+ $uid = view::User('id');
+
+ $sql = "select m.uuid,m.title,m.id,m.description,s.status,s.ts_accepted,g.id as gid,t.filename,r.ts_created,r.id,e.id as eid
+ from mdstatus s
+ right join normalmetadata m on s.uuid=m.uuid
+ left join geonetworkmetadata g on g.uuid=m.uuid
+ left join thumbnail t on t.id=m.id
+ left join mdreview r ON m.uuid=r.uuid
+ left join mdexpertreview e ON (e.id = s.userid AND e.uuid=m.uuid)
+ WHERE s.status in (2,3,4) AND s.userid=8018 AND r.id IS NULL
+ GROUP BY m.uuid,m.title,m.id,m.description,s.status,s.ts_accepted,g.id,t.filename,s.ts_created,r.ts_created,r.id,e.id
+ order by e.id DESC,s.ts_created desc,m.title";
+ $rs = $this->db->query($sql);
+ view::addPaginator($rs->fetchAll(),$this,NULL,$this->limit);
+ }
+
+ if($ac == "reviewed")
+ {
+ $this->_helper->viewRenderer('inreview-reviewed');
+ $this->view->pageID = "review-inreview-reviewed";
+ $uid = view::User('id');
+ $sql = "select m.uuid,m.title,m.id,m.description,s.status,s.ts_accepted,g.id as gid,t.filename,r.ts_created
+ from mdstatus s
+ right join normalmetadata m on s.uuid=m.uuid
+ left join geonetworkmetadata g on g.uuid=m.uuid
+ left join thumbnail t on t.id=m.id
+ left join mdreview r ON m.uuid=r.uuid
+ WHERE s.status in (2,3,4) AND s.userid=8018 AND r.userid=8018
+ GROUP BY m.uuid,m.title,m.id,m.description,s.status,s.ts_accepted,g.id,t.filename,s.ts_created,r.ts_created
+ order by s.ts_created desc,m.title";
+ $rs = $this->db->query($sql);
+ view::addPaginator($rs->fetchAll(),$this,NULL,$this->limit);
+ }
+
}//在审阶段的元数据
diff --git a/application/default/views/scripts/review/inreview-require.phtml b/application/default/views/scripts/review/inreview-require.phtml
new file mode 100644
index 00000000..d02f262f
--- /dev/null
+++ b/application/default/views/scripts/review/inreview-require.phtml
@@ -0,0 +1,53 @@
+headTitle($this->config->title->site);
+$this->headTitle($this->config->title->review);
+$this->headTitle('在审元数据');
+$this->headTitle()->setSeparator(' - ');
+$this->headLink()->appendStylesheet('/css/mdreview.css');
+$this->breadcrumb('首页');
+$this->breadcrumb(''.$this->config->title->review.'');
+$this->breadcrumb('在审元数据');
+$this->breadcrumb()->setSeparator(' > ');
+?>
+
+
+
+ = $this->partial('review/navi.phtml'); ?>
+
+
+ paginator)): ?>
+
+
+
+ 名称 |
+ 接收时间 |
+ 操作 |
+
+
+
+ paginator as $item):
+ $autoindex++;?>
+
+ = $item['title'] ?>= empty($item['eid']) ? "":"[受邀评审]"?> |
+ = date("Y-m-d",strtotime($item['ts_accepted'])) ?> |
+
+ 评审
+ |
+
+
+
+
+
+ md)) { ?>
+ 暂无数据,点击标题右侧添加按钮为此数据添加项目
+
+ 暂无数据
+
+
+
= $this->paginator; ?>
+
+
+
\ No newline at end of file
diff --git a/application/default/views/scripts/review/inreview-reviewed.phtml b/application/default/views/scripts/review/inreview-reviewed.phtml
new file mode 100644
index 00000000..0b1fa8d0
--- /dev/null
+++ b/application/default/views/scripts/review/inreview-reviewed.phtml
@@ -0,0 +1,55 @@
+headTitle($this->config->title->site);
+$this->headTitle($this->config->title->review);
+$this->headTitle('在审元数据');
+$this->headTitle()->setSeparator(' - ');
+$this->headLink()->appendStylesheet('/css/mdreview.css');
+$this->breadcrumb('首页');
+$this->breadcrumb(''.$this->config->title->review.'');
+$this->breadcrumb('在审元数据');
+$this->breadcrumb()->setSeparator(' > ');
+?>
+
+
+
+ = $this->partial('review/navi.phtml'); ?>
+
+
+ paginator)): ?>
+
+
+
+ 名称 |
+ 接收时间 |
+ 评审时间 |
+ 操作 |
+
+
+
+ paginator as $item):
+ $autoindex++;?>
+
+ = $item['title'] ?> |
+ = date("Y-m-d",strtotime($item['ts_accepted'])) ?> |
+ = date("Y-m-d",strtotime($item['ts_created'])) ?> |
+
+ 查看
+ |
+
+
+
+
+
+ md)) { ?>
+ 暂无数据,点击标题右侧添加按钮为此数据添加项目
+
+ 暂无数据
+
+
+
= $this->paginator; ?>
+
+
+
\ No newline at end of file
diff --git a/application/default/views/scripts/review/navi.phtml b/application/default/views/scripts/review/navi.phtml
index 7391019d..16a0b12a 100644
--- a/application/default/views/scripts/review/navi.phtml
+++ b/application/default/views/scripts/review/navi.phtml
@@ -3,14 +3,16 @@
我参审的元数据
投稿元数据
已接收元数据
- 评审中元数据
+ 等待我评审的元数据
+ 我评审过的元数据
+ 所有评审中元数据
已通过元数据
元数据评审说明
-
-
\ No newline at end of file