From 99435f5175e1f1de183202c238a5f9367b3faeba Mon Sep 17 00:00:00 2001 From: wlx Date: Mon, 13 May 2013 07:00:30 +0000 Subject: [PATCH] =?UTF-8?q?#484,=20=E5=AE=9E=E7=8E=B0=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E7=9A=84=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DataController.php | 8 ++++++++ application/admin/views/scripts/data/doi.phtml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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;} 编辑 导出 - 成功 + 成功 删除