Source for file LC_Page_Admin_Order_Mail.php
Documentation is available at LC_Page_Admin_Order_Mail.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(CLASS_PATH .
"pages/LC_Page.php");
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Admin_Order_Mail.php 16582 2007-10-29 03:06:29Z nanasess $
$this->tpl_subnavi =
'order/subnavi.tpl';
$this->tpl_subno =
'index';
$this->tpl_subtitle =
'受注管理';
$this->arrMAILTEMPLATE =
$masterData->getMasterData("mtb_mail_template");
foreach ($_POST as $key =>
$val) {
if (ereg("^search_", $key)) {
$this->arrSearchHidden[$key] =
$val;
$this->tpl_order_id =
$_POST['order_id'];
$objFormParam->setParam($_POST);
$objFormParam->setParam($_POST);
$objFormParam->convParam();
$this->arrErr =
$objFormParam->checkerror();
if (count($this->arrErr) ==
0) {
$objMail->sfSendOrderMail($_POST['order_id'], $_POST['template_id'], $_POST['subject'], $_POST['header'], $_POST['footer']);
$objFormParam->setParam($_POST);
$objFormParam->convParam();
$this->arrHidden =
$objFormParam->getHashArray();
$this->arrErr =
$objFormParam->checkerror();
if (count($this->arrErr) ==
0) {
$objSendMail =
$objMail->sfSendOrderMail($_POST['order_id'], $_POST['template_id'], $_POST['subject'], $_POST['header'], $_POST['footer'], false);
$this->tpl_subject =
$_POST['subject'];
$this->tpl_to =
$objSendMail->tpl_to;
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
$objFormParam->setValue('template_id', $_POST['template_id']);
$where =
"template_id = ?";
$arrRet =
$objQuery->select("subject, header, footer", "dtb_mailtemplate", $where, array($_POST['template_id']));
$objFormParam->setParam($arrRet[0]);
$col =
"send_date, subject, template_id, send_id";
$objQuery->setorder("send_date DESC");
$this->arrMailHistory =
$objQuery->select($col, "dtb_mail_history", $where, array($_POST['order_id']));
$this->arrForm =
$objFormParam->getFormParamList();
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
$objFormParam->addParam("テンプレート", "template_id", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$objFormParam->addParam("メールタイトル", "subject", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "SPTAB_CHECK"));
$objFormParam->addParam("ヘッダー", "header", LTEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "SPTAB_CHECK"));
$objFormParam->addParam("フッター", "footer", LTEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "SPTAB_CHECK"));
Documentation generated on Tue, 28 Apr 2009 18:11:25 +0900 by phpDocumentor 1.4.2