Source for file LC_Page_Admin_Basis_Seo.php
Documentation is available at LC_Page_Admin_Basis_Seo.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_Basis_Seo.php 16741 2007-11-08 00:43:24Z adachi $
$this->tpl_subnavi =
'basis/subnavi.tpl';
$this->tpl_subno =
'seo';
$this->tpl_subtitle =
'SEO管理';
$this->arrPref =
$masterData->getMasterData("mtb_pref", array("pref_id", "pref_name", "rank"));
$this->arrTAXRULE =
$masterData->getMasterData("mtb_taxrule");
$this->arrPageData =
$objLayout->lfgetPageData(" edit_flg = 2 ");
if (isset
($_POST['page_id'])) {
$page_id =
$_POST['page_id'];
if (!isset
($_POST['mode'])) $_POST['mode'] =
"";
if($_POST['mode'] ==
"confirm") {
$arrUpdData =
array($arrMETA['author'], $arrMETA['description'], $arrMETA['keyword'], $page_id);
$arrPageData =
$this->lfSetData($arrPageData, $_POST['meta']);
$this->arrPageData =
$arrPageData;
$arrPageData =
$objLayout->lfgetPageData(" edit_flg = 2 ");
$this->arrPageData =
$arrPageData;
foreach($arrPageData as $key =>
$val){
$arrDisp_flg[$val['page_id']] =
$_POST['disp_flg'.
$val['page_id']];
$this->disp_flg =
$arrDisp_flg;
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
* @param array $arrUpdData 更新データ
$sql .=
" dtb_pagelayout ";
$sql .=
" author = ? , ";
$sql .=
" description = ? , ";
$ret =
$objQuery->query($sql, $arrUpdData);
* @param array $array エラーチェック対象データ
$objErr->doFunc(array("メタタグ:Author", "author", STEXT_LEN), array("MAX_LENGTH_CHECK"));
$objErr->doFunc(array("メタタグ:Description", "description", STEXT_LEN), array("MAX_LENGTH_CHECK"));
$objErr->doFunc(array("メタタグ:Keywords", "keyword", STEXT_LEN), array("MAX_LENGTH_CHECK"));
function lfSetData($arrPageData, $arrDispData){
foreach($arrPageData as $key =>
$val){
$page_id =
$val['page_id'];
$arrPageData[$key]['author'] =
$arrDispData[$page_id]['author'];
$arrPageData[$key]['description'] =
$arrDispData[$page_id]['description'];
$arrPageData[$key]['keyword'] =
$arrDispData[$page_id]['keyword'];
* K : 「半角(ハンカク)片仮名」を「全角片仮名」に変換
* C : 「全角ひら仮名」を「全角かた仮名」に変換
* V : 濁点付きの文字を一文字に変換。"K","H"と共に使用します
* n : 「全角」数字を「半角(ハンカク)」に変換
$arrConvList['author'] =
"KVa";
$arrConvList['description'] =
"KVa";
$arrConvList['keyword'] =
"KVa";
foreach ($arrConvList as $key =>
$val) {
if(isset
($array[$key])) {
Documentation generated on Tue, 28 Apr 2009 18:10:47 +0900 by phpDocumentor 1.4.2