tpl_mainpage = 'order/mail_view.tpl'; $this->tpl_subtitle = '受注管理メール確認'; $this->httpCacheControl('nocache'); } /** * Page のプロセス. * * @return void */ function process() { $this->action(); $this->sendResponse(); } /** * Page のアクション. * * @return void */ function action() { $send_id = $_GET['send_id']; if(SC_Utils_Ex::sfIsInt($send_id)) { $mailHistory = $this->getMailHistory($send_id); $this->tpl_subject = $mailHistory[0]['subject']; $this->tpl_body = $mailHistory[0]['mail_body']; } $this->setTemplate($this->tpl_mainpage); } /** * * メールの履歴を取り出す。 * @param int $send_id */ function getMailHistory($send_id){ $objQuery =& SC_Query_Ex::getSingletonInstance(); $col = "subject, mail_body"; $where = "send_id = ?"; $mailHistory = $objQuery->select($col, "dtb_mail_history", $where, array($send_id)); return $mailHistory; } /** * デストラクタ. * * @return void */ function destroy() { parent::destroy(); } } ?>