From e3a25bdf1d5f649c65af8b697462112c824b8376 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Wed, 16 Nov 2011 10:14:50 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E5=90=8E=E6=8E=A8=E9=80=81=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/DataController.php | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 825ca58b..ea7d1be0 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -632,6 +632,12 @@ class DataController extends Zend_Controller_Action $patt['uuid'] = $formdata['uuid']; $patt['title']= $this->view->metadata->title; $patt['content']= $content; + + $title = "收到新数据评论"; + $msg = "用户".$user->username."对元数据《".$patt['title']."》进行了评论,点击查看"; + include_once("message.php"); + message::post($this->db,0,-1,$title,$msg); + $mailtp=new EmailText($this->db,"data-comment-note",$patt); $mail=new WestdcMailer($this->view->config->smtp); $mail->setBodyText($mailtp->getBody()); @@ -647,15 +653,15 @@ class DataController extends Zend_Controller_Action $formdata['email']=$user->email; } $commentForm->populate($formdata); - $this->view->commentForm=$commentForm; - //自动跳转 - $sql="select s.* from datasource d left join source s on d.sourceid=s.id where d.uuid=?"; - $row=$this->db->fetchRow($this->db->quoteInto($sql,$uuid)); - $jump=(int)$this->_request->getParam('jump'); - if (empty($jump)) $jump=1;//默认跳转 - if (@$row->has_pages && ($jump!=0)) - { - $this->_helper->viewRenderer($row->code.'/view',null,true); + $this->view->commentForm=$commentForm; + //自动跳转 + $sql="select s.* from datasource d left join source s on d.sourceid=s.id where d.uuid=?"; + $row=$this->db->fetchRow($this->db->quoteInto($sql,$uuid)); + $jump=(int)$this->_request->getParam('jump'); + if (empty($jump)) $jump=1;//默认跳转 + if (@$row->has_pages && ($jump!=0)) + { + $this->_helper->viewRenderer($row->code.'/view',null,true); } } /*