修改了时间字段,添加了时间调用
This commit is contained in:
parent
19f5ee1b3a
commit
0a7be3399b
|
@ -92,9 +92,9 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
else
|
||||
{
|
||||
if($status==1)
|
||||
{$sql = "update mdstatus set status='$status',ts_received='".date('Y-m-d H:i:s')."' where id in ($id)"; }
|
||||
{$sql = "update mdstatus set status='$status',ts_accepted='now()' where id in ($id)"; }
|
||||
else if($status==5)
|
||||
{$sql = "update mdstatus set status='$status',ts_finished='".date('Y-m-d H:i:s')."' where id in ($id)";}
|
||||
{$sql = "update mdstatus set status='$status',ts_finished='now()' where id in ($id)";}
|
||||
else
|
||||
{$sql = "update mdstatus set status='$status' where id in ($id)";}
|
||||
try{
|
||||
|
@ -134,7 +134,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
$keyword = $this->_request->getParam('keyword');
|
||||
if(!empty($keyword))
|
||||
{
|
||||
$sql = "select m.id,md.title,u.username,u.realname from mdstatus m
|
||||
$sql = "select m.*,u.username,u.realname from mdstatus m
|
||||
left join metadata md on md.uuid=m.uuid
|
||||
left join users u on u.id=m.userid
|
||||
where m.status=1
|
||||
|
@ -153,7 +153,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
}//搜索
|
||||
else
|
||||
{
|
||||
$sql = "select m.id,md.title,u.username,u.realname from mdstatus m
|
||||
$sql = "select m.*,md.title,u.username,u.realname from mdstatus m
|
||||
left join metadata md on md.uuid=m.uuid
|
||||
left join users u on u.id=m.userid
|
||||
where m.status=1";
|
||||
|
@ -461,7 +461,7 @@ 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 from mdstatus m
|
||||
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_created from mdstatus m
|
||||
left join metadata md on md.uuid=m.uuid
|
||||
left join users u on u.id=m.userid
|
||||
where status=0 $searchjoin";
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
<tr style="color:#FFF;background:#0a3e68;line-height:30px;">
|
||||
<td width='600'>元数据标题</td>
|
||||
<td width='120'>管理员</td>
|
||||
<td width='120'>接收时间</td>
|
||||
<td width='120'>操作</td>
|
||||
</tr>
|
||||
<?php if (count($this->paginator)): ?>
|
||||
|
@ -49,6 +50,7 @@
|
|||
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>>
|
||||
<td><?= $item['title']?></td>
|
||||
<td><?php echo $item['realname'].'['.$item['username'].']'; ?></td>
|
||||
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?></td>
|
||||
<td>
|
||||
<a href='/admin/review/accept/cancel/<?php echo $item['id'];?>' onclick="return confirm('是否确定取消评审')">取消评审</a>
|
||||
<a href='/admin/review/invite/?id=<?php echo $item['id'];?>'>邀请专家</a>
|
||||
|
|
Loading…
Reference in New Issue