优化后台评审的展示,将管理员信息显示出来

This commit is contained in:
wlx 2013-05-10 01:55:46 +00:00
parent 81d22f6475
commit f1ea306649
3 changed files with 11 additions and 6 deletions

View File

@ -282,9 +282,10 @@ class Admin_ReviewController extends Zend_Controller_Action
$this->view->keyword = $keyword; $this->view->keyword = $keyword;
} }
$sql = "select m.id,md.title,m.status,m.uuid from mdstatus m $sql = "select m.id,md.title,m.status,m.uuid,u.username,u.realname from mdstatus m
right join metadata md on md.uuid=m.uuid right join metadata md on md.uuid=m.uuid
where m.status in (2,3,4) $searchjoin"; left join users u on u.id=m.userid
where m.status in (2,3,4) $searchjoin order by m.ts_accepted desc";
$rs = $this->db->query($sql); $rs = $this->db->query($sql);
$rows = $rs->fetchAll(); $rows = $rs->fetchAll();
@ -591,7 +592,7 @@ class Admin_ReviewController extends Zend_Controller_Action
$sql = "select m.id,md.uuid,md.title,u.username,u.realname,m.status from mdstatus m $sql = "select m.id,md.uuid,md.title,u.username,u.realname,m.status from mdstatus m
right join metadata md on md.uuid=m.uuid right join metadata md on md.uuid=m.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
where m.status in (0,1,2,3,4) and u.id='$userid' $searchjoin order by m.status desc"; where m.status in (0,1,2,3,4) and u.id='$userid' $searchjoin order by m.status desc,m.ts_accepted desc";
$re = $this->db->query($sql); $re = $this->db->query($sql);
$rows = $re->fetchAll(); $rows = $re->fetchAll();

View File

@ -33,8 +33,9 @@
<table class="stylized"><thead> <table class="stylized"><thead>
<tr> <tr>
<td width='600'>标题</td> <td>标题</td>
<td width='100'>状态</td> <td width='100'>状态</td>
<td width='100'>管理员</td>
<td width="180">操作</td> <td width="180">操作</td>
</tr></thead> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
@ -43,6 +44,7 @@
<tr> <tr>
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td> <td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
<td><?php echo $item['status']; ?></td> <td><?php echo $item['status']; ?></td>
<td><?php echo $item['realname'].'['.$item['username'].']'; ?></td>
<td><a href="/admin/review/inreview/show/<?php echo $item['id']; ?>">查看详细</a> <td><a href="/admin/review/inreview/show/<?php echo $item['id']; ?>">查看详细</a>
<a href="/admin/review/invite/?id=<?php echo $item['id'];?>">邀请专家</a> <a href="/admin/review/invite/?id=<?php echo $item['id'];?>">邀请专家</a>
<a href="/admin/review/changeadmin/?id=<?php echo $item['id'];?>">更改管理员</a> <a href="/admin/review/changeadmin/?id=<?php echo $item['id'];?>">更改管理员</a>

View File

@ -32,7 +32,8 @@
</div><!-- search DIV --> </div><!-- search DIV -->
<table class="stylized"><thead> <table class="stylized"><thead>
<tr> <tr>
<td width='550'>标题</td> <td>标题</td>
<td width='100'>管理员</td>
<td width='120'>结束时间</td> <td width='120'>结束时间</td>
<td width="150">操作</td> <td width="150">操作</td>
</tr></thead> </tr></thead>
@ -41,6 +42,7 @@
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<tr> <tr>
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td> <td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
<td><?php echo $item['realname'].'['.$item['username'].']'; ?></td>
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_finished']));?></td> <td><?php echo date("Y-m-d H:i",strtotime($item['ts_finished']));?></td>
<td><a href="/admin/review/comments/ac/list/uuid/<?php echo $item['uuid'];?>">查看评审意见</a> <a href="/admin/review/rollback/id/<?php echo $item['id'];?>" onclick="return confirm('是否确定重审该元数据?')">重新评审</a></td> <td><a href="/admin/review/comments/ac/list/uuid/<?php echo $item['uuid'];?>">查看评审意见</a> <a href="/admin/review/rollback/id/<?php echo $item['id'];?>" onclick="return confirm('是否确定重审该元数据?')">重新评审</a></td>
</tr> </tr>