更新后台评审的投稿操作

This commit is contained in:
wlx 2014-01-09 02:34:33 +00:00
parent 55df6a1352
commit dd9a48ddd3
2 changed files with 5 additions and 3 deletions

View File

@ -805,9 +805,10 @@ class Admin_ReviewController extends Zend_Controller_Action
$this->view->keyword = $keyword;
}
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_created from mdstatus m
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_created,gn.id as gnid from mdstatus m
right join metadata md on md.uuid=m.uuid
left join users u on u.id=m.userid
left join geonetworkmetadata gn on m.uuid=gn.uuid
where status=0 $searchjoin order by m.ts_created desc";
$re = $this->db->query($sql);

View File

@ -44,9 +44,10 @@ table thead tr th {background:#EBF2F6;color:#444;}
<?php foreach ($this->paginator as $item): ?>
<tr>
<td><input type="checkbox" name="update[]" value="<?php echo $item['id']; ?>"/></td>
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
<td><?php echo $item['title']; ?><a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['gnid'];?>">GeoNetwork查看</a></td>
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?></td>
<td><a href="/admin/review/draft/update/<?php echo $item['id']; ?>">接收</a>
<td><a href="/admin/review/draft/update/<?php echo $item['id']; ?>">接收</a> |
<a href="/admin/review/accept/cancel/<?php echo $item['id']; ?>">取消评审</a>
</td>
</tr>
<?php endforeach; ?>