diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 6120353d..c8fda7af 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -3715,6 +3715,14 @@ class Admin_DataController extends Zend_Controller_Action ->setHeader('Content-Type','application/force-download')->setBody($doi); $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 //发送邀请专家的邮件 diff --git a/application/admin/views/scripts/data/doi.phtml b/application/admin/views/scripts/data/doi.phtml index 199bb385..9b26f39b 100644 --- a/application/admin/views/scripts/data/doi.phtml +++ b/application/admin/views/scripts/data/doi.phtml @@ -58,7 +58,7 @@ table thead tr th {background:#EBF2F6;}