From 1cbbb12f8ff3d55326ea65108b5dee544301adc7 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Wed, 25 Sep 2013 09:30:39 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E6=88=90=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E6=93=8D=E4=BD=9C=E8=BF=9B=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=BC=A0=E9=80=92?= =?UTF-8?q?=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DownController.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/application/admin/controllers/DownController.php b/application/admin/controllers/DownController.php index a5b7c830..6ae58608 100644 --- a/application/admin/controllers/DownController.php +++ b/application/admin/controllers/DownController.php @@ -5,6 +5,7 @@ use Files\Output; use Files\Listener\FileListener; use Order\Manager\Offlineapp; use data\DataService; +use Mail\Mail; class Admin_DownController extends Zend_Controller_Action { @@ -118,6 +119,8 @@ class Admin_DownController extends Zend_Controller_Action //拒绝 if($ac == "deny") { + $this->_helper->viewRenderer('offlineapps-deny'); + if(empty($offlineappid)) { view::Post($this,"参数错误",-1); @@ -127,6 +130,15 @@ class Admin_DownController extends Zend_Controller_Action if(empty($submit)) { $offlineapp = new Offlineapp(); + $this->view->data = $offlineapp->getOneAppInfo($offlineappid); + $mail = new Mail(); + $data = array( + 'user' => $this->view->data[0]['username'], + 'datalist' => $this->view->data[0]['datalist'], + ); + $mail->loadTemplate("offline-deny",$data); + $this->view->mail_body = $mail->body; + $this->view->mail_subject = $mail->subject; } return;