修改生成数据的操作进行的流程,修改传递的参数

This commit is contained in:
Li Jianxuan 2013-09-25 09:30:39 +00:00
parent 1fbbafd719
commit 1cbbb12f8f
1 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,7 @@ use Files\Output;
use Files\Listener\FileListener; use Files\Listener\FileListener;
use Order\Manager\Offlineapp; use Order\Manager\Offlineapp;
use data\DataService; use data\DataService;
use Mail\Mail;
class Admin_DownController extends Zend_Controller_Action class Admin_DownController extends Zend_Controller_Action
{ {
@ -118,6 +119,8 @@ class Admin_DownController extends Zend_Controller_Action
//拒绝 //拒绝
if($ac == "deny") if($ac == "deny")
{ {
$this->_helper->viewRenderer('offlineapps-deny');
if(empty($offlineappid)) if(empty($offlineappid))
{ {
view::Post($this,"参数错误",-1); view::Post($this,"参数错误",-1);
@ -127,6 +130,15 @@ class Admin_DownController extends Zend_Controller_Action
if(empty($submit)) if(empty($submit))
{ {
$offlineapp = new Offlineapp(); $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; return;