Source for file LC_Page_Admin_Design_Header.php
Documentation is available at LC_Page_Admin_Design_Header.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.
$this->tpl_subnavi =
'design/subnavi.tpl';
$this->tpl_subno =
"header";
$this->tpl_subtitle =
'ヘッダー・フッター編集';
$division = isset
($_POST['division']) ?
$_POST['division'] :
"";
$pre_DIR =
USER_INC_PATH .
'preview/';
$fp =
fopen($pre_DIR.
$division.
'.tpl',"w"); // TODO
fwrite($fp, $_POST[$division]);
// 登録時はプレビュー用テンプレートをコピーする
if ($_POST['mode'] ==
'confirm'){
copy($pre_DIR.
$division.
".tpl", USER_PATH .
USER_PACKAGE_DIR .
TEMPLATE_NAME .
"/" .
$division .
".tpl");
// テキストエリアの幅を元に戻す(処理の統一のため)
$_POST['header_row'] =
"";
$_POST['footer_row'] =
"";
}else if ($_POST['mode'] ==
'preview'){
if ($division ==
"header") $this->header_prev =
"on";
if ($division ==
"footer") $this->footer_prev =
"on";
// ヘッダーファイルの読み込み(プレビューデータ)
// フッターファイルの読み込み(プレビューデータ)
// postでデータが渡されなければ新規読み込みと判断をし、プレビュー用データを正規のデータで上書きする
// ユーザーパスにテンプレートが存在しなければ,
$header_tpl =
USER_PATH .
USER_PACKAGE_DIR .
TEMPLATE_NAME .
"/" .
"header.tpl";
$header_tpl =
TEMPLATE_DIR .
"header.tpl";
$footer_tpl =
USER_PATH .
USER_PACKAGE_DIR .
TEMPLATE_NAME .
"/" .
"footer.tpl";
$footer_tpl =
TEMPLATE_DIR .
"footer.tpl";
copy($header_tpl, $pre_DIR .
"header.tpl");
copy($footer_tpl, $pre_DIR .
"footer.tpl");
$this->header_data =
$header_data;
$this->footer_data =
$footer_data;
if (isset
($_POST['header_row']) &&
$_POST['header_row'] !=
''){
$this->header_row =
$_POST['header_row'];
if (isset
($_POST['footer_row']) &&
$_POST['footer_row'] !=
''){
$this->footer_row =
$_POST['footer_row'];
isset
($_POST['browser_type']) ?
$_POST['browser_type'] :
"";
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
Documentation generated on Tue, 28 Apr 2009 18:11:06 +0900 by phpDocumentor 1.4.2