Source for file LC_Page_Admin_Contents_CampaignDesign.php
Documentation is available at LC_Page_Admin_Contents_CampaignDesign.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2010 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_Contents_CampaignDesign.php 18734 2010-06-22 08:45:33Z nanasess $
$this->tpl_subnavi = 'contents/subnavi.tpl';
$this->tpl_subno = "campaign";
$this->contents_row = 13;
$this->tpl_subtitle = 'キャンペーンデザイン編集';
SC_Utils_Ex::sfIsSuccess($objSess);
if($_POST['mode'] != "") {
// 正しく値が取得できない場合はキャンペーンTOPへ
if($arrForm['campaign_id'] == "" || $arrForm['status'] == "") {
switch($arrForm['status']) {
$status = CAMPAIGN_TEMPLATE_ACTIVE;
$this->tpl_campaign_title = "キャンペーン中デザイン編集";
$status = CAMPAIGN_TEMPLATE_END;
$this->tpl_campaign_title = "キャンペーン終了デザイン編集";
$directory_name = $objQuery->get("dtb_campaign", "directory_name", "campaign_id = ?", array($arrForm['campaign_id']));
$campaign_dir = CAMPAIGN_TEMPLATE_PATH . $directory_name . "/" . $status;
SC_Utils_Ex::sfWriteFile($arrForm['header'], $campaign_dir. "header.tpl", "w");
SC_Utils_Ex::sfWriteFile($arrForm['contents'], $campaign_dir. "contents.tpl", "w");
SC_Utils_Ex::sfWriteFile($arrForm['footer'], $campaign_dir. "footer.tpl", "w");
$site_frame = $arrForm['header']. "\n";
$site_frame .= '<script type="text/javascript" src="<!--{$TPL_DIR}-->js/site.js"></script>'. "\n";
$site_frame .= '<script type="text/javascript" src="<!--{$TPL_DIR}-->js/navi.js"></script>'. "\n";
$site_frame .= '<!--{include file=$tpl_mainpage}-->'. "\n";
$site_frame .= $arrForm['footer']. "\n";
SC_Utils_Ex::sfWriteFile($site_frame, $campaign_dir. "site_frame.tpl", "w");
SC_Utils_Ex::sfWriteFile($arrForm['header'] . $arrForm['contents'] . $arrForm['footer'], $campaign_dir. "preview.tpl", "w");
$this->tpl_onload = "win02('./campaign_preview.php?status=". $arrForm['status'] . "&campaign_id=". $arrForm['campaign_id'] . "', 'preview', '600', '400');";
$this->header_data = $arrForm['header'];
$this->contents_data = $arrForm['contents'];
$this->footer_data = $arrForm['footer'];
if ($arrForm['header_row'] != ''){
$this->header_row = $arrForm['header_row'];
if ($arrForm['contents_row'] != ''){
$this->contents_row = $arrForm['contents_row'];
if ($arrForm['footer_row'] != ''){
$this->footer_row = $arrForm['footer_row'];
if($_POST['mode'] != 'preview') {
$this->arrForm = $arrForm;
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
Documentation generated on Fri, 24 Feb 2012 13:58:33 +0900 by Seasoft
|