#484, 实现验证时间的更新

This commit is contained in:
wlx 2013-05-13 07:00:30 +00:00
parent 742de40d5e
commit 99435f5175
2 changed files with 9 additions and 1 deletions

View File

@ -3715,6 +3715,14 @@ class Admin_DataController extends Zend_Controller_Action
->setHeader('Content-Type','application/force-download')->setBody($doi); ->setHeader('Content-Type','application/force-download')->setBody($doi);
$this->db->query('update datadoi set ts_submitted=now() where uuid=?',array($uuid)); $this->db->query('update datadoi set ts_submitted=now() where uuid=?',array($uuid));
} }
else if ($ac=="verified") //成功申请
{
$sql="update datadoi set ts_published=now() where uuid=? and ts_published is null";
$this->db->query($sql,array($uuid));
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$this->jsonexit(array('success'=>'成功申请'));
}
}//doi }//doi
//发送邀请专家的邮件 //发送邀请专家的邮件

View File

@ -58,7 +58,7 @@ table thead tr th {background:#EBF2F6;}
<td> <td>
<a href="/admin/data/doi/ac/edit/uuid/<?= $item['uuid']?>">编辑</a> <a href="/admin/data/doi/ac/edit/uuid/<?= $item['uuid']?>">编辑</a>
<a href="/admin/data/doi/ac/convert/uuid/<?= $item['uuid']?>">导出</a> <a href="/admin/data/doi/ac/convert/uuid/<?= $item['uuid']?>">导出</a>
<a href="/admin/data/doi/ac/convert/uuid/<?= $item['uuid']?>">成功</a> <a href="/admin/data/doi/ac/verified/uuid/<?= $item['uuid']?>">成功</a>
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a> <a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
</td> </td>
</tr> </tr>