添加了统计信息显示
This commit is contained in:
parent
159cdccb61
commit
c41269ef86
|
@ -20,6 +20,9 @@ class ReviewController extends Zend_Controller_Action
|
|||
//最新10个已审
|
||||
$sql="select m.uuid,m.title,s.ts_accepted from mdstatus s left join metadata m on m.uuid=s.uuid where s.status=5 order by s.ts_created desc limit 10";
|
||||
$this->view->mdreviewed = $this->db->fetchAll($sql);
|
||||
//统计数字
|
||||
$sql="select (select count(*) from mdexperts) as experts,(select count(*) from mdstatus where status=0) as draft,(select count(*) from mdstatus where status=1) as accept,(select count(*) from mdstatus where status in (2,3,4)) as inreview,(select count(*) from mdstatus where status=5) as reviewed,(select count(*) from mdreview) as openreview,(select count(distinct(userid)) from mdreview) as openreviewuser";
|
||||
$this->view->stat=$this->db->fetchRow($sql);
|
||||
}
|
||||
/*
|
||||
* 数据浏览
|
||||
|
|
|
@ -9,6 +9,7 @@ $this->breadcrumb('<a href="/review">元数据评审</a>');
|
|||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='rightPanel'>
|
||||
<h3>目前系统中专家库为<?php echo $this->stat['experts']; ?>人,新投稿元数据<?php echo $this->stat['draft']; ?>条,已接收元数据<?php echo $this->stat['accept']; ?>条,有<?php echo $this->stat['inreview']; ?>条元数据正在评审中,已完成评审元数据<?php echo $this->stat['reviewed']; ?>条,有<?php echo $this->stat['openreviewuser']; ?>个用户参与了<?php echo $this->stat['openreview']; ?>次评审。</h3>
|
||||
<ul>
|
||||
<div class="title"><a href="/review/received">元数据:最新收稿</a></div>
|
||||
<?php foreach($this->mdreceived as $md) : ?>
|
||||
|
|
Loading…
Reference in New Issue