Source for file LC_Page_Admin_Mail_Preview.php
Documentation is available at LC_Page_Admin_Mail_Preview.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.
if (!isset
($_POST['body'])) $_POST['body'] =
"";
if (!isset
($_REQUEST['method'])) $_REQUEST['method'] =
"";
if (!isset
($_REQUEST['id'])) $_REQUEST['id'] =
"";
if (!isset
($_GET['send_id'])) $_GET['send_id'] =
"";
$this->body =
$_POST['body'];
} elseif ($_REQUEST["method"] ==
"template"
$sql =
"SELECT * FROM dtb_mailmaga_template WHERE template_id = ?";
$result =
$conn->getAll($sql, array($_REQUEST["id"]));
$this->list_data =
$result[0];
$objUpFile->addFile("メール担当写真", 'charge_image', array('jpg'), IMAGE_SIZE, true, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$objUpFile->setDBFileList($this->list_data);
$this->arrFile =
$objUpFile->getFormFileList(IMAGE_TEMP_URL, IMAGE_SAVE_URL);
$sql =
"SELECT name, main_image, point_rate, deliv_fee, price01_min, price01_max, price02_min, price02_max FROM vw_products_allclass AS allcls WHERE product_id = ?";
$main =
$conn->getAll($sql, array($this->list_data["main_product_id"]));
$this->list_data["main"] =
$main[0];
$sql =
"SELECT product_id, name, main_list_image, price01_min, price01_max, price02_min, price02_max FROM vw_products_allclass WHERE product_id = ?";
for ($i =
1; $i <=
12; $i ++
) {
if ($i >
0 &&
$i <
5 ) $k =
0;
if ($i >
4 &&
$i <
9 ) $k =
1;
if ($i >
8 &&
$i <
13 ) $k =
2;
if (is_numeric($this->list_data["sub_product_id" .
$j])) {
$result =
$conn->getAll($sql, array($this->list_data["sub_product_id" .
$j]));
$this->list_data["sub"][$k][$l] =
$result[0];
$this->list_data["sub"][$k]["data_exists"] =
"OK"; //当該段にデータが1つ以上存在するフラグ
} elseif (SC_Utils_Ex::sfCheckNumLength($_GET['send_id'])
$sql =
"SELECT body, mail_method FROM dtb_send_history WHERE send_id = ?";
$sql =
"SELECT body, mail_method FROM dtb_mailmaga_template WHERE template_id = ?";
$result =
$conn->getAll($sql, array($id));
if ( $result[0]["mail_method"] ==
2 ){
$this->body =
$result[0]["body"];
$objView->assignobj($this);
Documentation generated on Tue, 28 Apr 2009 18:11:17 +0900 by phpDocumentor 1.4.2