<?php
require(dirname(__FILE__) .'/check.php');
$skin->CheckIframe();

/* **** 版权所有 ****

 程序开发：网钛科技
 网钛CMS官网：http://otcms.com
 网钛IDC官网：http://idccms.com
 ＱＱ：877873666
 微信：QQ877873666
 邮箱：877873666@qq.com

 **** 版权所有 **** */


//打开用户表，并检测用户是否登录
$MB->Open('','login');

$skin->WebTop();


echo('
<script language="javascript" type="text/javascript" src="js/tplSys.js?v='. OT_VERSION .'"></script>
');


switch($mudi){
	case 'setInfo':
		$MB->IsSecMenuRight('alertBack',229,$dataType);
		SetInfo();
		break;

	default:
		die('err');
}

$skin->WebBottom();

$MB->Close();
$DB->Close();





// 设置
function SetInfo(){
	global $DB,$skin,$mudi,$dataType,$dataTypeCN,$sysAdminArr,$systemArr;

	$revexe = $DB->query('select * from '. OT_dbPref .'tplSys');
		if ($row = $revexe->fetch()){
			$TS_skinName		= $row['TS_skinName'];
			$TS_skinColor		= $row['TS_skinColor'];
			$TS_skinPopup		= $row['TS_skinPopup'];

			$TS_topLogoMode		= $row['TS_topLogoMode'];
			$TS_logo			= $row['TS_logo'];
			$TS_fullLogo		= $row['TS_fullLogo'];
			$TS_logoExt			= $row['TS_logoExt'];
			$TS_logoW			= $row['TS_logoW'];
				if ($TS_logoW <= 0){ $TS_logoW = 200; }
			$TS_logoH			= $row['TS_logoH'];
				if ($TS_logoH<=0){ $TS_logoH=60; }
			$TS_isRss			= $row['TS_isRss'];
			$TS_isTopAd			= $row['TS_isTopAd'];
			$TS_topAdCode		= $row['TS_topAdCode'];
			$TS_searchArea		= $row['TS_searchArea'];

			$TS_isLogoAdd		= $row['TS_isLogoAdd'];
			$TS_logoAddAnnoun	= $row['TS_logoAddAnnoun'];
			$TS_logoAreaStr		= $row['TS_logoAreaStr'];
			$TS_logoListMode	= $row['TS_logoListMode'];
			$TS_TCP				= $row['TS_TCP'];
			$TS_beianName		= $row['TS_beianName'];
			$TS_beianUrl		= $row['TS_beianUrl'];
			$TS_copyright		= $row['TS_copyright'];
			$TS_isStati			= $row['TS_isStati'];
			$TS_statiCode		= $row['TS_statiCode'];

			$TS_homeAboutID			= $row['TS_homeAboutID'];
			$TS_homeAboutMoreID		= $row['TS_homeAboutMoreID'];
			$TS_homeContactID		= $row['TS_homeContactID'];
			$TS_homeContactMoreID	= $row['TS_homeContactMoreID'];
			$TS_homeNewsID			= $row['TS_homeNewsID'];
			$TS_homeNewsNum			= $row['TS_homeNewsNum'];
			$TS_homeProID			= $row['TS_homeProID'];
			$TS_homeProNum			= $row['TS_homeProNum'];
			$TS_homeInfoTypeID		= $row['TS_homeInfoTypeID'];

			$TS_navWidthMode	= $row['TS_navWidthMode'];
			$TS_jieriImg		= $row['TS_jieriImg'];
			$TS_jieriHeight		= $row['TS_jieriHeight'];
			$TS_navMode			= $row['TS_navMode'];
			$TS_navCode			= $row['TS_navCode'];
			$TS_navNum			= $row['TS_navNum'];
			$TS_navPadd			= $row['TS_navPadd'];
			$TS_navSubWidth		= $row['TS_navSubWidth'];

			$TS_homeItemMode		= $row['TS_homeItemMode'];
			$TS_redTimeDay			= $row['TS_redTimeDay'];
			$TS_rankUserMode		= $row['TS_rankUserMode'];
			$TS_marInfoNum			= $row['TS_marInfoNum'];
			$TS_isHomeFlash			= $row['TS_isHomeFlash'];
			$TS_homeFlashMode		= $row['TS_homeFlashMode'];
			$TS_isHomeFlashTheme	= $row['TS_isHomeFlashTheme'];
			$TS_homeFlashNum		= $row['TS_homeFlashNum'];
			$TS_isHomeAnnoun		= $row['TS_isHomeAnnoun'];
			$TS_homeAnnounName		= $row['TS_homeAnnounName'];
			$TS_homeAnnounNum		= $row['TS_homeAnnounNum'];
			$TS_homeAnnounListNum	= $row['TS_homeAnnounListNum'];
			$TS_isHomeNew			= $row['TS_isHomeNew'];
			$TS_homeNewIsType		= $row['TS_homeNewIsType'];
			$TS_homeNewIsDate		= $row['TS_homeNewIsDate'];
			$TS_homeNewTopMode		= $row['TS_homeNewTopMode'];
			$TS_homeNewTopNum		= $row['TS_homeNewTopNum'];
			$TS_homeNewNum			= $row['TS_homeNewNum'];
			$TS_homeNewListNum		= $row['TS_homeNewListNum'];
			$TS_homeNewMoreNum		= $row['TS_homeNewMoreNum'];
			$TS_homeNewBoxH			= $row['TS_homeNewBoxH'];
			$TS_isHomeRecom			= $row['TS_isHomeRecom'];
			$TS_homeRecomImgNum		= $row['TS_homeRecomImgNum'];
			$TS_homeRecomNum		= $row['TS_homeRecomNum'];
			$TS_homeRecomBoxH		= $row['TS_homeRecomBoxH'];
			$TS_isHomeHot			= $row['TS_isHomeHot'];
			$TS_homeHotName			= $row['TS_homeHotName'];
			$TS_homeHotSort			= $row['TS_homeHotSort'];
			$TS_homeHotIsDate		= $row['TS_homeHotIsDate'];
			$TS_homeHotImgNum		= $row['TS_homeHotImgNum'];
			$TS_homeHotNum			= $row['TS_homeHotNum'];
			$TS_isHomeMarImg		= $row['TS_isHomeMarImg'];
			$TS_homeMarImgMode		= $row['TS_homeMarImgMode'];
			$TS_homeMarImgW			= $row['TS_homeMarImgW'];
			$TS_homeMarImgH			= $row['TS_homeMarImgH'];
			$TS_homeMarImgNum		= $row['TS_homeMarImgNum'];
			$TS_isHomeMessage		= $row['TS_isHomeMessage'];
			$TS_homeMessageName		= $row['TS_homeMessageName'];
			$TS_homeMessageNum		= $row['TS_homeMessageNum'];
			$TS_homeMessageLen		= $row['TS_homeMessageLen'];
			$TS_homeMessageHmode	= $row['TS_homeMessageHmode'];
			$TS_homeMessageH		= $row['TS_homeMessageH'];
			$TS_isHomeReply			= $row['TS_isHomeReply'];
			$TS_homeReplyName		= $row['TS_homeReplyName'];
			$TS_homeReplyNum		= $row['TS_homeReplyNum'];
			$TS_homeReplyLen		= $row['TS_homeReplyLen'];
			$TS_homeReplyHmode		= $row['TS_homeReplyHmode'];
			$TS_homeReplyH			= $row['TS_homeReplyH'];
			$TS_isHomeBbs			= $row['TS_isHomeBbs'];
			$TS_homeBbsName			= $row['TS_homeBbsName'];
			$TS_homeBbsNum			= $row['TS_homeBbsNum'];
			$TS_homeBbsLen			= $row['TS_homeBbsLen'];
			$TS_homeBbsHmode		= $row['TS_homeBbsHmode'];
			$TS_homeBbsH			= $row['TS_homeBbsH'];

			$TS_isHomeNewUsers		= $row['TS_isHomeNewUsers'];
			$TS_homeNewUsersName	= $row['TS_homeNewUsersName'];
			$TS_homeNewUsersNum		= $row['TS_homeNewUsersNum'];
			$TS_isHomeRankUsers		= $row['TS_isHomeRankUsers'];
			$TS_homeRankUsersName	= $row['TS_homeRankUsersName'];
			$TS_homeRankUsersType	= $row['TS_homeRankUsersType'];
			$TS_homeRankUsersNum	= $row['TS_homeRankUsersNum'];
			$TS_isHomeQiandao		= $row['TS_isHomeQiandao'];
			$TS_homeQiandaoName		= $row['TS_homeQiandaoName'];
			$TS_isQiandaoRank		= $row['TS_isQiandaoRank'];
			$TS_qiandaoRankName		= $row['TS_qiandaoRankName'];
			$TS_qiandaoRankType		= $row['TS_qiandaoRankType'];
			$TS_qiandaoRankNum		= $row['TS_qiandaoRankNum'];

			$TS_subWebLR			= $row['TS_subWebLR'];
			$TS_messageMode			= $row['TS_messageMode'];

			$TS_isImgBanner			= $row['TS_isImgBanner'];
			$TS_imgBannerH			= $row['TS_imgBannerH'];

			$TS_replyMode			= $row['TS_replyMode'];
			$TS_userListNum			= $row['TS_userListNum'];
			$TS_userListMode		= $row['TS_userListMode'];
			$TS_searchListMode		= $row['TS_searchListMode'];
			$TS_markListMode		= $row['TS_markListMode'];
			$TS_announListMode		= $row['TS_announListMode'];
			$TS_newListMode			= $row['TS_newListMode'];

			$TS_subWeb404			= $row['TS_subWeb404'];
			$TS_searchAllowStr		= $row['TS_searchAllowStr'];
			$TS_searchListNum		= $row['TS_searchListNum'];
			$TS_searchBadStr		= $row['TS_searchBadStr'];
			$TS_isMark				= $row['TS_isMark'];
			$TS_markListNum			= $row['TS_markListNum'];
			$TS_markBadStr			= $row['TS_markBadStr'];

			$TS_isMessage			= $row['TS_isMessage'];
			$TS_messageName			= $row['TS_messageName'];
			$TS_messageWebKey		= $row['TS_messageWebKey'];
			$TS_messageWebDesc		= $row['TS_messageWebDesc'];
			$TS_messageCloseNote	= $row['TS_messageCloseNote'];
			$TS_messageNum			= $row['TS_messageNum'];
			$TS_messageSecond		= $row['TS_messageSecond'];
			$TS_messageAudit		= $row['TS_messageAudit'];
			$TS_messageOnly			= $row['TS_messageOnly'];
			$TS_messageMaxLen		= $row['TS_messageMaxLen'];
			$TS_messageAdminName	= $row['TS_messageAdminName'];
			$TS_messageBadWord		= $row['TS_messageBadWord'];
			$TS_messageRndMd5		= $row['TS_messageRndMd5'];
			$TS_messageVoteNum		= $row['TS_messageVoteNum'];
			$TS_messageHotNum		= $row['TS_messageHotNum'];
			$TS_messageEvent		= $row['TS_messageEvent'];
			$TS_event				= $row['TS_event'];
			$TS_logoNote			= $row['TS_logoNote'];
			$TS_homeItemName		= $row['TS_homeItemName'];
			$TS_homeNewName			= $row['TS_homeNewName'];
			$TS_homeRecomName		= $row['TS_homeRecomName'];
			$TS_homeMarImgName		= $row['TS_homeMarImgName'];
			$TS_isQqServer			= $row['TS_isQqServer'];
			$TS_qqServerCode		= $row['TS_qqServerCode'];

			$TS_isHomeTag			= $row['TS_isHomeTag'];
			$TS_homeTagName			= $row['TS_homeTagName'];
			$TS_homeTagType			= $row['TS_homeTagType'];
			$TS_homeTagNum			= $row['TS_homeTagNum'];
			$TS_isListTag			= $row['TS_isListTag'];
			$TS_listTagName			= $row['TS_listTagName'];
			$TS_listTagType			= $row['TS_listTagType'];
			$TS_listTagNum			= $row['TS_listTagNum'];
			$TS_isHomeLogin			= $row['TS_isHomeLogin'];
			$TS_homeLoginName		= $row['TS_homeLoginName'];
			$TS_homeLoginBoxH		= $row['TS_homeLoginBoxH'];

			$TS_isSearch			= $row['TS_isSearch'];
			$TS_isHomeDomain		= $row['TS_isHomeDomain'];
			$TS_homeDomainList		= $row['TS_homeDomainList'];
			$TS_homeDomainAnnoun	= $row['TS_homeDomainAnnoun'];
			$TS_homeDomainEvent		= $row['TS_homeDomainEvent'];
			$TS_isJsAd				= $row['TS_isJsAd'];
			$TS_homeLoginStr1		= $row['TS_homeLoginStr1'];
			$TS_homeLoginStr2		= $row['TS_homeLoginStr2'];
			$TS_siteMapInfoNum		= $row['TS_siteMapInfoNum'];
			$TS_siteCss				= $row['TS_siteCss'];
			$TS_siteWapCss			= $row['TS_siteWapCss'];
			$TS_isFuncDesc			= $row['TS_isFuncDesc'];	// 开启模块功能描述
			$TS_isOutUrl			= $row['TS_isOutUrl'];
			$TS_titleHome			= $row['TS_titleHome'];
			$TS_titleList			= $row['TS_titleList'];
			$TS_titleShow			= $row['TS_titleShow'];
			$TS_titleWeb			= $row['TS_titleWeb'];
			$TS_titleSearch			= $row['TS_titleSearch'];
			$TS_titleMark			= $row['TS_titleMark'];
			$TS_titleTopic			= $row['TS_titleTopic'];
			$TS_titleBbsHome		= $row['TS_titleBbsHome'];
			$TS_titleBbsList		= $row['TS_titleBbsList'];
			$TS_titleBbsShow		= $row['TS_titleBbsShow'];
			$TS_titleBbsSearch		= $row['TS_titleBbsSearch'];

			$TS_isJieri		= $row['TS_isJieri'];
			$TS_metaTag		= $row['TS_metaTag'];
			$TS_homeJumpUrl	= $row['TS_homeJumpUrl'];
			$TS_outUrlList	= $row['TS_outUrlList'];
		}
	unset($revexe);

	$beforeURL = GetUrl::CurrDir(1);

	$searchArea1		= '';
	$searchArea1_title	= '站内搜索(标题)';
	$searchArea1_rank	= '';
	$searchArea2		= '';
	$searchArea2_title	= '站内搜索(正文)';
	$searchArea2_rank	= '';
	$searchArea3		= '';
	$searchArea3_title	= '站内搜索(来源)';
	$searchArea3_rank	= '';
	$searchArea4		= '';
	$searchArea4_title	= '站内搜索(作者)';
	$searchArea4_rank	= '';
	$searchArea5		= '';
	$searchArea5_title	= '百度站内搜索';
	$searchArea5_rank	= '';
	$searchArea5_addi1	= '';
	$searchArea5_addi2	= '';
	$searchArea6		= '';
	$searchArea6_title	= '360站内搜索';
	$searchArea6_rank	= '';
	$searchArea6_addi1	= '';
	$searchArea6_addi2	= '';
	$searchAreaArr = explode('<arr>',$TS_searchArea);
	if (count($searchAreaArr) >= 5){
		$searchOneArr		= explode('|',$searchAreaArr[0]);
		$searchArea1		= $searchOneArr[0];
		$searchArea1_rank	= $searchOneArr[1];
		$searchArea1_title	= $searchOneArr[3];
		$searchOneArr		= explode('|',$searchAreaArr[1]);
		$searchArea2		= $searchOneArr[0];
		$searchArea2_rank	= $searchOneArr[1];
		$searchArea2_title	= $searchOneArr[3];
		$searchOneArr		= explode('|',$searchAreaArr[2]);
		$searchArea3		= $searchOneArr[0];
		$searchArea3_rank	= $searchOneArr[1];
		$searchArea3_title	= $searchOneArr[3];
		$searchOneArr		= explode('|',$searchAreaArr[3]);
		$searchArea4		= $searchOneArr[0];
		$searchArea4_rank	= $searchOneArr[1];
		$searchArea4_title	= $searchOneArr[3];
		$searchOneArr		= explode('|',$searchAreaArr[4]);
		$searchArea5		= $searchOneArr[0];
		$searchArea5_rank	= $searchOneArr[1];
		$searchArea5_title	= $searchOneArr[3];
		$searchArea5_addi1	= $searchOneArr[4];
		$searchArea5_addi2	= $searchOneArr[5];
	}
	if (count($searchAreaArr) >= 6){
		$searchOneArr		= explode('|',$searchAreaArr[5]);
		$searchArea6		= $searchOneArr[0];
		$searchArea6_rank	= $searchOneArr[1];
		$searchArea6_title	= $searchOneArr[3];
		$searchArea6_addi1	= $searchOneArr[4];
	}

	$eventStr = '';
	$itemArr = array(
		'homeItemModeIsImg'	=> true,
		'homeItemMode_2'	=> '左两栏右热门文章',
		'homeItemMode_3'	=> '全三栏',
		);

	
	$wapNoteArr = array('isMessage'=>'', 'messageName'=>'', 'messageMode'=>'', 'messageNum'=>'', 'messageSecond'=>'', 'messageAudit'=>'', 'messageMaxLen'=>'', 'messageAdminName'=>'', 'messageRndMd5'=>'', 'messageEvent'=>'', 'messageWebKey'=>'', 'messageWebDesc'=>'', 'messageCloseNote'=>'', 'messageBadWord'=>'');
	if (AppWap::Jud()){
		$wapArr = Cache::PhpFile('wap');
		$wapNoteArr['isMessage']		= Adm::WapValInfo(Adm::ValCN('isMessage', $wapArr['WAP_isMessage']));
		$wapNoteArr['messageName']		= Adm::WapValInfo($wapArr['WAP_messageName']);
		$wapNoteArr['messageMode']		= Adm::WapValInfo(Adm::ValCN('messageMode', $wapArr['WAP_messageMode']));
		$wapNoteArr['messageNum']		= Adm::WapValInfo($wapArr['WAP_messageNum']);
		$wapNoteArr['messageSecond']	= Adm::WapValInfo($wapArr['WAP_messageSecond'] .' 秒');
		$wapNoteArr['messageAudit']		= Adm::WapValInfo(Adm::ValCN('messageAudit', $wapArr['WAP_messageAudit']));
		$wapNoteArr['messageMaxLen']	= Adm::WapValInfo($wapArr['WAP_messageMaxLen']);
		$wapNoteArr['messageAdminName'] = Adm::WapValInfo($wapArr['WAP_messageAdminName']);
		$wapNoteArr['messageRndMd5']	= Adm::WapValInfo(Adm::ValCN('messageRndMd5', $wapArr['WAP_messageRndMd5']));
		$wapNoteArr['messageEvent']		= Adm::WapValInfo(Adm::ValCN('messageEvent', $wapArr['WAP_messageEvent']));
		if (strlen($wapArr['WAP_messageWebKey']) > 0){
			$wapNoteArr['messageWebKey'] = Adm::WapValInfo($wapArr['WAP_messageWebKey'], '手机版：', '');
		}
		if (strlen($wapArr['WAP_messageWebDesc']) > 0){
			$wapNoteArr['messageWebDesc'] = Adm::WapValInfo($wapArr['WAP_messageWebDesc'], '手机版：', '');
		}
		if (strlen($wapArr['WAP_messageCloseNote']) > 0){
			$wapNoteArr['messageCloseNote'] = Adm::WapValInfo($wapArr['WAP_messageCloseNote'], '手机版：', '');
		}
		if (strlen($wapArr['WAP_messageBadWord']) > 0){
			$wapNoteArr['messageBadWord'] = Adm::WapValInfo($wapArr['WAP_messageBadWord'], '手机版：', '');
		}
	}

	$cspArr = array();
	$cspArr[] = array('name' => 'default',	'title' => '全局默认值(default-src)',	'alt' => '针对所有类型（js/image/css/web font/ajax/iframe/多媒体等）资源的默认加载策略，某类型资源如果没有单独定义策略，就使用默认。');
	$cspArr[] = array('name' => 'script',	'title' => '外部脚本(script-src)',		'alt' => '针对JavaScript的加载策略');
	$cspArr[] = array('name' => 'style',	'title' => '样式表(style-src)',			'alt' => '针对CSS样式的加载策略');
	$cspArr[] = array('name' => 'img',		'title' => '图像(img-src)',				'alt' => '针对图片的加载策略');
	$cspArr[] = array('name' => 'media',	'title' => '媒体[音频视频](media-src)',	'alt' => '针对音频和视频的加载策略');
	$cspArr[] = array('name' => 'frame',	'title' => '框架(frame-src)',			'alt' => '针对iframe的加载策略');
	$cspArr[] = array('name' => 'font',		'title' => '字体(font-src)',			'alt' => '针对Web Font的加载策略');
	$cspArr[] = array('name' => 'object',	'title' => '对象/插件(object-src)',		'alt' => '');
	$cspArr[] = array('name' => 'child',	'title' => '子窗口源(child-src)',		'alt' => '限制子窗口的源(iframe、弹窗等),取代frame-src（CSP2），主要防御 frame、iframe');

	/*
	$cspArr[] = array('name' => 'ancestors','title' => '调用资源(frame-ancestors)',	'alt' => '限制了当前页面可以被哪些页面以iframe,frame,object,embed,applet等方式加载（CSP2）');
	$cspArr[] = array('name' => 'connect',	'title' => 'HTTP连接(connect-src)',		'alt' => '通过 XHR、WebSockets、EventSource等');
	$cspArr[] = array('name' => 'connect',	'title' => '连接(connect-src)',			'alt' => '针对Ajax、WebSocket等请求的加载策略。不允许的情况下，浏览器会模拟一个状态为400的响应');
	$cspArr[] = array('name' => 'worker',	'title' => 'worker脚本(worker-src)',	'alt' => '');
	$cspArr[] = array('name' => 'manifest',	'title' => 'manifest文件(manifest-src)','alt' => '');
	*/
	$cspListStr = '';
	foreach ($cspArr as $val){
		$cspVal = Str::GetMark($TS_metaTag, $val['name'] .'-src ', ';');
		$cspListStr .= '
			<tr>
				<td align="right">'. $val['title'] .'：</td>
				<td>
					<input type="text" id="csp_'. $val['name'] .'" name="csp_'. $val['name'] .'" style="width:310px;" value="'. $cspVal .'" onblur="CheckMetaCSP()" />
					<select id="cspSel_'. $val['name'] .'" onchange="InputToText(\'csp_'. $val['name'] .'\',this.value);CheckMetaCSP();">
						<option value="">预设值选择</option>
						<option value="*">允许任何内容</option>
						<option value="\'none\'">禁止任何内容</option>
						<option value="\'self\'">仅限当前域名</option>
						<option value="\'self\' data:">当前域名+data:数据流</option>
					</select>
					'. (strlen($val['alt']) > 0 ? ''. $skin->TishiBox($val['alt']) .'' : '') .'
				</td>
			</tr>
			';
	}
	
	echo('
	<form id="dealForm" name="dealForm" method="post" action="tplSys_deal.php?mudi=deal" onsubmit="return CheckForm()">
	<input type="hidden" id="dataType" name="dataType" value="'. $dataType .'" />
	<input type="hidden" id="dataTypeCN" name="dataTypeCN" value="'. $dataTypeCN .'" />
	<script language="javascript" type="text/javascript">document.write(\'<input type="hidden" name="backURL" value="\'+ document.location.href +\'" />\')</script>

	
	<div class="tabMenu">
	<ul>
		<li rel="tabBase" class="selected">基本信息</li>
		<li rel="tabTop">页头</li>
		<li rel="tabBottm">页尾</li>
		<li rel="tabHome">首页</li>
		<li rel="tabList">列表页</li>
		<li rel="tabDet">内容页</li>
		<li rel="tabMessage">评论/留言</li>
		<li rel="tabSeo">网页标题SEO</li>
		<li id="buyBox" rel="tabBuy" style="display:;">商业版专属'. Skin::PluSign('商业版基础包','bottom') .'</li>
	</ul>
	</div>

	<div class="tabMenuArea">
		<table id="tabBase" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		<tr><td colspan="2" style="color:red;padding-bottom:10px;">提醒：所有参数设置项仅对默认模板有效（除企业站专属菜单），其他模板由于结构不同，部分选项无效或位置不同。</td></tr>
		<tr>
			<td align="right" class="font1_2">几天内文章日期加红：</td>
			<td><input type="text" id="redTimeDay" name="redTimeDay" size="50" style="width:50px;" value="'. $TS_redTimeDay .'" /> 天</td>
		</tr>
		<tr>
			<td align="right" class="font1_2">网站地图html文章数：</td>
			<td><input type="text" id="siteMapInfoNum" name="siteMapInfoNum" size="50" style="width:50px;" value="'. $TS_siteMapInfoNum .'" /></td>
		</tr>
		<tr>
			<td align="right">广告调用方式：</td>
			<td>
				<select id="isJsAd" name="isJsAd">
					<option value="1" '. Is::Selected($TS_isJsAd,1) .'>JS调用（广告变动后无需重新生成静态页，但容易被手机浏览器拦截过滤）</option>
					<option value="0" '. Is::Selected($TS_isJsAd,0) .'>直接写在页面上（如有用纯静态，广告变动后需要重新生成静态页）</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">外部网址超链接：</td>
			<td>
				<select id="isOutUrl" name="isOutUrl">
					<option value="0" '. Is::Selected($TS_isOutUrl,0) .'>无</option>
					<option value="1" '. Is::Selected($TS_isOutUrl,1) .'>经过【外部网址温馨提醒】页跳转</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">
				外部网址白名单：
				<div style="padding-top:6px;" class="font2_2">(不拦截名单)</div>
			</td>
			<td>
				<textarea id="outUrlList" name="outUrlList" style="width:510px; height:120px;" placeholder="例如：&#10;otcms.com&#10;www.otcms.net&#10;idccms.com">'. $TS_outUrlList .'</textarea>
				&ensp;<span class="font2_2">（一行一个域名，该内容前台有JS缓存）</span>
			</td>
		</tr>
		<!-- <tr>
			<td align="right">前台各板块说明：</td>
			<td>
				<select id="isFuncDesc" name="isFuncDesc">
					<option value="0" '. Is::Selected($TS_isFuncDesc,0) .'>关闭</option>
					<option value="1" '. Is::Selected($TS_isFuncDesc,1) .'>开启（各版块内容被功能说明代替）</option>
				</select>
			</td>
		</tr> -->
		<tr>
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">PC端附加全站CSS样式：</td>
			<td>
				<textarea id="siteCss" name="siteCss" style="width:510px; height:120px;">'. $TS_siteCss .'</textarea>
				&ensp;<span class="font2_2">（没有请留空，不要乱填）</span>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">其他附加项：</td>
			<td style="line-height:1.6;">
				'. $eventStr .'
			</td>
		</tr>

		'. Skin::ItemTrTop('meta标签','设置区域') .'
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">内容安全策略快捷设置：</td>
			<td>
				<table cellpadding="0" cellspacing="0">
				<tr>
					<td align="right" style="color:red;">快捷选择：</td>
					<td>
						<select id="cspPlan" style="width:310px;" onchange="PlanMetaCSP();CheckMetaCSP();">
							<option value=""></option>
							<option value="safe">安全设置推荐</option>
							<option value="self">更严格，仅限加载当前域名资源（第三方脚本、统计代码等都会失效）</option>
						</select>
					</td>
				</tr>
				'. $cspListStr .'
				<tr>
					<td align="right" style="color:red;"><b>该功能说明网址：</b></td>
					<td><a href="http://otcms.com/news/8498.html" target="_blank" class="font1_2">http://otcms.com/news/8498.html</a></td>
				</tr>
				</table>
				<div id="metaCSPdiv" style="padding:5px 0;color:blue;"></div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">PC端meta标签区域：</td>
			<td>
				<textarea id="metaTag" name="metaTag" style="width:510px; height:180px;">'. $TS_metaTag .'</textarea>
				&ensp;<span class="font2_2">（没有请留空，不要乱填）</span>
			</td>
		</tr>
		'. Skin::ItemTrBottom() .'
		</table>

		<table id="tabTop" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td style="color:red;">'. AppWap::Show('<b>（WAP手机版的页头，请到【移动端管理→WAP手机版】-[页头]设置）</b>') .'</td></tr>
		<tr id="logoBox">
			<td align="right" class="font1_2d"><span id="logoFontSpan1">图片</span>型logo：</td>
			<td>
				<input type="text" id="logo" name="logo" size="50" style="width:500px;" value="'. $TS_logo .'" />
				<input type="button" id="logoFontBtn1" onclick=\'OT_OpenUpImg("input","logo","images","&isWatermark=false")\' value="上传图片" />
				<span style="color:red;">&ensp;（默认模板：宽≤200px，高≤60px）</span>
			</td>
		</tr>
		'. AppRss::TplSys($TS_isRss) .'
		</table>


		<table id="tabBottm" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td style="color:red;">'. AppWap::Show('<b>（WAP手机版的页尾，请到【移动端管理→WAP手机版】-[页尾]设置）</b>') .'</td></tr>
		<tr>
			<td align="right">TCP/IP备案号：</td>
			<td><input type="text" id="TCP" name="TCP" size="50" style="width:300px;" value="'. $TS_TCP .'" />&ensp;<span class="font2_2">如：闽ICP备12010380号</span></td>
		</tr>
		<tr>
			<td align="right">公安备案号：</td>
			<td><input type="text" id="beianName" name="beianName" size="50" style="width:300px;" value="'. $TS_beianName .'" />&ensp;<span class="font2_2">如：闽公网安备35010302000189号</span></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">公安备案号数字：</td>
			<td><input type="text" id="beianUrl" name="beianUrl" size="50" style="width:300px;" value="'. $TS_beianUrl .'" />&ensp;<span class="font2_2">如：35010302000189</span></td>
		</tr>
		<tr>
			<td align="right" valign="top">网站版权：</td>
			<td>
				<textarea id="copyright" name="copyright" cols="40" rows="4" style="width:510px;height:120px;" class="text" onclick=\'LoadEditor("copyright",510,120,"|miniMenu|");\' title="点击开启编辑器模式">'. Str::MoreReplace($TS_copyright,'textarea') .'</textarea>
				<input type="hidden" id="upImgStr" name="upImgStr" value="" />
				<div><input type="button" onclick=\'OT_OpenUpImg("editor","copyright","","")\' value="上传图片载入编辑器" /></div>
			</td>
		</tr>
		<tr>
			<td align="right">统计代码：</td>
			<td>
				<label><input type="radio" id="isStati1" name="isStati" value="1" '. Is::Checked($TS_isStati,1) .' onclick="CheckStati();" />启用</label>&ensp;&ensp;
				<label><input type="radio" id="isStati0" name="isStati" value="0" '. Is::Checked($TS_isStati,0) .' onclick="CheckStati();" />禁用</label>&ensp;&ensp;
			</td>
		</tr>
		<tr id="statiBox" style="display:none;">
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">统计代码内容：</td>
			<td><textarea id="statiCode" name="statiCode" style="width:510px; height:120px;">'. $TS_statiCode .'</textarea></td>
		</tr>
		</table>


		<table id="tabHome" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td style="color:red;">'. AppWap::Show('<b>（WAP手机版的首页，请到【移动端管理→WAP手机版】-[首页]设置）</b>') .'</td></tr>
		<tr>
			<td align="right">首页跳转网址：</td>
			<td align="left">
				<input type="text" id="homeJumpUrl" name="homeJumpUrl" size="50" style="width:510px;" value="'. $TS_homeJumpUrl .'" />
				<select onchange="$id(\'homeJumpUrl\').value = this.value; this.value = \'\';">
					<option value="" style="color:#ccc;">快捷可选项</option>
					<option value="wap/users/">会员中心</option>
				</select>
				<span class="font2_2">（如无请留空）</span>
			</td>
		</tr>
		<tr>
		'. Skin::ItemTrTop('首页','栏目') .'
		<tr>
			<td align="right">布局：</td>
			<td class="itemMode">
				<label><input type="radio" name="homeItemMode" value="2" '. Is::Checked($TS_homeItemMode,2) .'/>'. $itemArr['homeItemMode_2'] .'<span>'. ($itemArr['homeItemModeIsImg'] ? '<img src="temp/itemMode2.gif" style="display:none;" />' : '') .'</span></label>&ensp;&ensp;
				<label><input type="radio" name="homeItemMode" value="3" '. Is::Checked($TS_homeItemMode,3) .'/>'. $itemArr['homeItemMode_3'] .'<span>'. ($itemArr['homeItemModeIsImg'] ? '<img src="temp/itemMode3.gif" style="display:none;" />' : '') .'</span></label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td>
				<input type="text" id="homeItemName" name="homeItemName" value="'. $TS_homeItemName .'" style="width:110px;" />
				&ensp;<span style="color:red;">（默认模板无效，仅对部分模板有效）</span>
			</td>
		</tr>
		'. Skin::ItemTrBottom() .'
		'. Skin::ItemTrTop('网站','公告') .'
		<tr>
			<td align="right">网站公告：</td>
			<td>
				<label><input type="radio" id="isHomeAnnoun1" name="isHomeAnnoun" value="1" '. Is::Checked($TS_isHomeAnnoun,1) .' onclick="CheckHomeAnnoun();" />显示</label>&ensp;&ensp;
				<label><input type="radio" id="isHomeAnnoun0" name="isHomeAnnoun" value="0" '. Is::Checked($TS_isHomeAnnoun,0) .' onclick="CheckHomeAnnoun();" />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="homeAnnounBox" style="display:none;">
		<tr>
			<td align="right" class="font1_2d">名称：</td>
			<td>
				<input type="text" id="homeAnnounName" name="homeAnnounName" size="50" style="width:110px;" value="'. $TS_homeAnnounName .'" />
				&ensp;&ensp;<span class="font2_2">（通用公告名称设置在【常规设置】-【网站参数设置】[基本信息]）</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">显示数量：</td>
			<td align="left"><input type="text" id="homeAnnounNum" name="homeAnnounNum" size="50" style="width:50px;" value="'. $TS_homeAnnounNum .'" /></td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'
		'. AppDomain::TplSys($TS_isHomeDomain, $TS_homeDomainList, $TS_homeDomainAnnoun, $TS_homeDomainEvent) .'
		</table>


		<table id="tabSeo" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;"></td>
			<td style="color:red;font-size:14px;padding:5px 0;">没特殊要求，这块SEO设置请不要动，设置不对会严重影响SEO，默认的就是官方觉得最适合的。</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">首页网页title：</td>
			<td>
				<input type="text" id="titleHome" name="titleHome" size="50" style="width:500px;" value="'. $TS_titleHome .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleHome").value="{%网站标题%}{%网站标题附加%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleHome","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleHome","{%网站标题附加%}")\'>{%网站标题附加%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">列表页网页title：</td>
			<td>
				<input type="text" id="titleList" name="titleList" size="50" style="width:500px;" value="'. $TS_titleList .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleList").value="{%栏目名称%}{%父栏目名称%}{%栏目名称附加%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%栏目名称%}")\'>{%栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%父栏目名称%}")\'>{%父栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%栏目名称附加%}")\'>{%栏目名称附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleList","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">内容页网页title：</td>
			<td>
				<input type="text" id="titleShow" name="titleShow" size="50" style="width:500px;" value="'. $TS_titleShow .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleShow").value="{%文章标题%}_{%栏目名称%}{%父栏目名称%}{%文章标题附加%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%栏目名称%}")\'>{%栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%父栏目名称%}")\'>{%父栏目名称%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%文章标题%}")\'>{%文章标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%文章标题附加%}")\'>{%文章标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleShow","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">单篇页网页title：</td>
			<td>
				<input type="text" id="titleWeb" name="titleWeb" size="50" style="width:500px;" value="'. $TS_titleWeb .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleWeb").value="{%标题%}_{%网站标题%}{%标题附加%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%标题%}")\'>{%标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleWeb","{%标题附加%}")\'>{%标题附加%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">搜索页网页title：</td>
			<td>
				<input type="text" id="titleSearch" name="titleSearch" size="50" style="width:500px;" value="'. $TS_titleSearch .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleSearch").value="搜索({%搜索类型%})：{%搜索词%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%搜索词%}")\'>{%搜索词%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%搜索类型%}")\'>{%搜索类型%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleSearch","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">标签页网页title：</td>
			<td>
				<input type="text" id="titleMark" name="titleMark" size="50" style="width:500px;" value="'. $TS_titleMark .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleMark").value="标签：{%标签%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%标签%}")\'>{%标签%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleMark","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:8px;">专题页网页title：</td>
			<td>
				<input type="text" id="titleTopic" name="titleTopic" size="50" style="width:500px;" value="'. $TS_titleTopic .'" />
				<div class="font3_2" style="padding-bottom:5px;">
					<span class="font1_2d pointer" onclick=\'$id("titleTopic").value="专题：{%专题%}{%专题附加%}{%页码%}_{%网站标题%}";\'>[默认]</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%网站标题%}")\'>{%网站标题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%网站标题附加%}")\'>{%网站标题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%专题%}")\'>{%专题%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%专题附加%}")\'>{%专题附加%}</span>&ensp;
					<span class="pointer" onclick=\'InputAddText("titleTopic","{%页码%}")\'>{%页码%}</span>
				</div>
			</td>
		</tr>
		'. AppBbs::SystemBox2($TS_titleBbsList,$TS_titleBbsShow,$TS_titleBbsSearch) .'
		</table>



		<table id="tabList" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td style="color:red;">'. AppWap::Show('<b>（WAP手机版的列表页/内容页，请到【移动端管理→WAP手机版】-[列表页]设置）</b>') .'</td></tr>
		<tr>
			<td align="right">错误页面跳转：</td>
			<td align="left">
				<label><input type="radio" name="subWeb404" onclick="CheckSubWeb404()" value="" '. Is::Checked($TS_subWeb404,'') .' />首页</label>&ensp;&ensp;
				<label><input type="radio" name="subWeb404" onclick="CheckSubWeb404()" value="404err.html" '. Is::Checked($TS_subWeb404,'404err.html') .' />404err.html</label>&ensp;&ensp;
				<label><input type="radio" name="subWeb404" onclick="CheckSubWeb404()" value="404.php" '. Is::Checked($TS_subWeb404,'404.php') .' />404.php<span style="color:red;">(推荐)</span></label>&ensp;&ensp;
				<label><input type="radio" id="subWeb404Other" name="subWeb404" onclick="CheckSubWeb404()" value="-1" />其他页面</label><span id="subWeb404NewBox" style="display:none;"><input type="text" style="width:80px;" id="subWeb404New" name="subWeb404New" value="'. $TS_subWeb404 .'" /><span class="font2_2">(请确保前台目录下有该文件)</span></span>&ensp;&ensp;
				<span style="color:red;">（仅对动态路径有效，其他地方需要空间里或服务器设置）</span>
			</td>
		</tr>
		'. AppTag::TplSys2($TS_isListTag, $TS_listTagName, $TS_listTagType, $TS_listTagNum) .'

		'. Skin::ItemTrTop('最新消','息列表页') .'
		'. AdmArea::ListMode('显示模式','newListMode',$TS_newListMode) .'
		<tr>
			<td align="right" class="font1_2d">每页条数：</td>
			<td align="left"><input type="text" id="homeNewListNum" name="homeNewListNum" size="50" style="width:50px;" value="'. $TS_homeNewListNum .'" /></td>
		</tr>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('网站公','告列表页') .'
		'. AdmArea::ListMode('显示模式','announListMode',$TS_announListMode) .'
		<tr>
			<td align="right" class="font1_2d">每页条数：</td>
			<td align="left"><input type="text" id="homeAnnounListNum" name="homeAnnounListNum" size="50" style="width:50px;" value="'. $TS_homeAnnounListNum .'" /></td>
		</tr>
		'. Skin::ItemTrBottom() .'

		<tbody style="display:none;">
		'. AdmArea::ListMode('会员文章显示模式','userListMode',$TS_userListMode) .'
		<tr>
			<td align="right" class="font1_2d">会员文章每页条数：</td>
			<td align="left"><input type="text" id="userListNum" name="userListNum" size="50" style="width:50px;" value="'. $TS_userListNum .'" /></td>
		</tr>
		</tbody>

		'. Skin::ItemTrTop('搜索','列表页') .'
		<tr>
			<td align="right">搜索页：</td>
			<td>
				<label><input type="radio" id="isSearch1" name="isSearch" value="1" '. Is::Checked($TS_isSearch,1) .' onclick="CheckSearch();" />开启</label>&ensp;&ensp;
				<label title="搜索页开启，但搜索页不被搜索引擎追踪，采用nofollow属性"><input type="radio" id="isSearch2" name="isSearch" value="2" '. Is::Checked($TS_isSearch,2) .' onclick="CheckSearch();" />开启（但不被搜索引擎追踪）</label>&ensp;&ensp;
				<label><input type="radio" id="isSearch0" name="isSearch" value="0" '. Is::Checked($TS_isSearch,0) .' onclick="CheckSearch();" />关闭</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="searchBox">
		'. AdmArea::ListMode('显示模式','searchListMode',$TS_searchListMode) .'
		<tr>
			<td align="right" class="font1_2d">每页条数：</td>
			<td align="left"><input type="text" id="searchListNum" name="searchListNum" size="50" style="width:50px;" value="'. $TS_searchListNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">搜索词允许特殊字符：</td>
			<td align="left" colspan="4">
				<label><input type="checkbox" name="searchAllowStr[]" value="[(]" '. Is::InstrChecked($TS_searchAllowStr,'[(]') .'>“(”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[)]" '. Is::InstrChecked($TS_searchAllowStr,'[)]') .'>“)”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[-]" '. Is::InstrChecked($TS_searchAllowStr,'[-]') .'>“-”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[/]" '. Is::InstrChecked($TS_searchAllowStr,'[/]') .'>“/”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[<]" '. Is::InstrChecked($TS_searchAllowStr,'[<]') .'>“<”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[>]" '. Is::InstrChecked($TS_searchAllowStr,'[>]') .'>“>”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[ ]" '. Is::InstrChecked($TS_searchAllowStr,'[ ]') .'>“ ”(空格)</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[%]" '. Is::InstrChecked($TS_searchAllowStr,'[%]') .'>“%”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[_]" '. Is::InstrChecked($TS_searchAllowStr,'[_]') .'>“_”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[[]" '. Is::InstrChecked($TS_searchAllowStr,'[[]') .'>“[”</label>&ensp;&ensp;
				<label><input type="checkbox" name="searchAllowStr[]" value="[]]" '. Is::InstrChecked($TS_searchAllowStr,'[]]') .'>“]”</label>&ensp;&ensp;
				<span style="color:red;">(建议不要打钩，特殊字符会提高网站被SQL注入危险性)</span>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				搜索禁止词：<br />
				<span class="font2_2">（多个用竖杆“|”隔开）</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="searchBadStr" name="searchBadStr" rows="5" cols="40" style="width:500px; height:65px;">'. $TS_searchBadStr .'</textarea></td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('标签','列表页') .'
		<tr>
			<td align="right">标签页：</td>
			<td>
				<label><input type="radio" id="isMark1" name="isMark" value="1" '. Is::Checked($TS_isMark,1) .' onclick="CheckMark();" />开启</label>&ensp;&ensp;
				<label title="标签页开启，但标签的超链接不被搜索引擎追踪，采用nofollow属性"><input type="radio" id="isMark2" name="isMark" value="2" '. Is::Checked($TS_isMark,2) .' onclick="CheckMark();" />开启（但不被搜索引擎追踪）</label>&ensp;&ensp;
				<label><input type="radio" id="isMark0" name="isMark" value="0" '. Is::Checked($TS_isMark,0) .' onclick="CheckMark();" />关闭</label>&ensp;&ensp;
			</td>
		</tr>
		<tbody id="markBox">
		'. AdmArea::ListMode('显示模式','markListMode',$TS_markListMode,'font1_2d') .'
		<tr>
			<td align="right" class="font1_2d">每页条数：</td>
			<td align="left"><input type="text" id="markListNum" name="markListNum" size="50" style="width:50px;" value="'. $TS_markListNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				标签页禁止词：<br />
				<span class="font2_2">（多个用竖杆“|”隔开）</span>
			</td>
			<td style="padding-bottom:4px;"><textarea id="markBadStr" name="markBadStr" rows="5" cols="40" style="width:500px; height:65px;">'. $TS_markBadStr .'</textarea></td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'
		</table>


		<table id="tabDet" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td style="color:red;"></td></tr>
		<tr>
			<td align="right" class="fontRed">文章内容页：</td>
			<td align="left" class="fontRed">请到【文章管理→文章参数设置】-[前台文章内容页设置]选项卡 设置</td>
		</tr>
		</table>


		<table id="tabMessage" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr>
			<td class="tabLeftWidth"></td>
			<td style="color:red;">
				'. AppWap::Show('<b>（WAP手机版的留言版，请到【移动端管理→WAP手机版】-[评论/留言]设置）</b>') .'
			</td>
		</tr>
		<tr>
			<td align="right">留言板：</td>
			<td>
				<label><input type="radio" id="isMessage1" name="isMessage" value="1" '. Is::Checked($TS_isMessage,1) .' onclick="CheckMessage();" />启用</label>&ensp;&ensp;
				<label><input type="radio" id="isMessage10" name="isMessage" value="10" '. Is::Checked($TS_isMessage,10) .' onclick="CheckMessage();" />仅限会员</label>&ensp;&ensp;
				<label><input type="radio" id="isMessage0" name="isMessage" value="0" '. Is::Checked($TS_isMessage,0) .' onclick="CheckMessage();" />禁用</label>&ensp;&ensp;
				'. $wapNoteArr['isMessage'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言板名称：</td>
			<td>
				<input type="text" id="messageName" name="messageName" value="'. $TS_messageName .'" style="width:110px;" />
				'. $wapNoteArr['messageName'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				留言板页面关键字：<br />
				<span class="font3_2">多个用英文逗号“,”隔开</span>
			</td>
			<td style="padding-bottom:4px;">
				<textarea id="messageWebKey" name="messageWebKey" rows="5" cols="40" style="width:510px; height:30px;">'. $TS_messageWebKey .'</textarea>
				<div>'. $wapNoteArr['messageWebKey'] .'</div>
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d" valign="top" style="padding-top:6px;">
				留言板页面描述：<br />
				<span class="font3_2">（便于搜索引擎搜到）</span>
			</td>
			<td style="padding-bottom:4px;">
				<textarea id="messageWebDesc" name="messageWebDesc" rows="5" cols="40" style="width:510px; height:45px;">'. $TS_messageWebDesc .'</textarea>
				<div>'. $wapNoteArr['messageWebDesc'] .'</div>
			</td>
		</tr>
		<tr id="messageCloseBox">
			<td align="right" class="font1_2d" valign="top">留言板关闭信息：</td>
			<td>
				<textarea id="messageCloseNote" name="messageCloseNote" cols="40" rows="4" style="width:510px;height:120px;" class="text" onclick=\'LoadEditor("messageCloseNote",510,120,"|miniMenu|");\' title="点击开启编辑器模式">'. Str::MoreReplace($TS_messageCloseNote,'textarea') .'</textarea>
				<div>'. $wapNoteArr['messageCloseNote'] .'</div>
			</td>
		</tr>
		<tbody id="messageBox" style="display:none;">
		<tr>
			<td align="right">留言板填写框位置：</td>
			<td>
				<label><input type="radio" name="messageMode" value="0" '. Is::Checked($TS_messageMode,0) .' />底部</label>&ensp;&ensp;
				<label><input type="radio" name="messageMode" value="1" '. Is::Checked($TS_messageMode,1) .' />头部</label>&ensp;&ensp;
				'. $wapNoteArr['messageMode'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言板每页显示数量：</td>
			<td align="left">
				<input type="text" id="messageNum" name="messageNum" size="50" style="width:50px;" value="'. $TS_messageNum .'" />
				'. $wapNoteArr['messageNum'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言连续发言间隔秒数：</td>
			<td align="left">
				<input type="text" id="messageSecond" name="messageSecond" size="50" style="width:50px;" value="'. $TS_messageSecond .'" /> 秒
				'. $wapNoteArr['messageSecond'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言审核：</td>
			<td>
				<label><input type="radio" name="messageAudit" value="0" '. Is::Checked($TS_messageAudit,0) .' />需审核</label>&ensp;&ensp;
				<label><input type="radio" name="messageAudit" value="1" '. Is::Checked($TS_messageAudit,1) .' />无需审核</label>&ensp;&ensp;
				'. $wapNoteArr['messageAudit'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言最大字数：</td>
			<td align="left">
				<input type="text" id="messageMaxLen" name="messageMaxLen" size="50" style="width:50px;" value="'. $TS_messageMaxLen .'" />
				'. $wapNoteArr['messageMaxLen'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言回复称呼：</td>
			<td>
				<input type="text" id="messageAdminName" name="messageAdminName" size="50" style="width:110px;" value="'. $TS_messageAdminName .'" />
				'. $wapNoteArr['messageAdminName'] .'
			</td>
		</tr>
		</tbody>
		<tr style="display:none;" class="font1_2d">
			<td align="right">留言/评论热门评论：</td>
			<td align="left">
				显示数量：<input type="text" id="messageHotNum" name="messageHotNum" size="50" style="width:50px;" value="'. $TS_messageHotNum .'" />，
				要求“顶”投票数至少<input type="text" id="messageVoteNum" name="messageVoteNum" size="50" style="width:50px;" value="'. $TS_messageVoteNum .'" />个
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">
				留言/评论/回帖禁止词：<br />
				<span class="font2_2">（多个用竖杆“|”隔开）</span>
			</td>
			<td style="padding-bottom:4px;">
				<textarea id="messageBadWord" name="messageBadWord" rows="5" cols="40" style="width:500px; height:65px;">'. $TS_messageBadWord .'</textarea>
				'. $wapNoteArr['messageBadWord'] .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">留言/评论/回帖跟随验证：</td>
			<td>
				<label><input type="radio" name="messageRndMd5" value="1" '. Is::Checked($TS_messageRndMd5,1) .' />开启</label>&ensp;&ensp;
				<label><input type="radio" name="messageRndMd5" value="2" '. Is::Checked($TS_messageRndMd5,2) .' />开启(过期自动更新)</label>&ensp;&ensp;
				<label><input type="radio" name="messageRndMd5" value="0" '. Is::Checked($TS_messageRndMd5,0) .' />关闭</label>&ensp;&ensp;
				'. $wapNoteArr['messageRndMd5'] .'
				&ensp;&ensp;<span class="font2_2">（建议开启，可以一定程度防止机器灌水）</span>
			</td>
		</tr>
		<tr>
			<td align="right">留言/评论附加功能：</td>
			<td>
				<label><input type="checkbox" name="messageEvent[]" value="|filterUrl|" '. Is::InstrChecked($TS_messageEvent,'|filterUrl|') .'/>过滤网址</label>&ensp;&ensp;
				<label><input type="checkbox" name="messageEvent[]" value="|noRevName|" '. Is::InstrChecked($TS_messageEvent,'|noRevName|') .'/>游客不能编辑昵称</label>&ensp;&ensp;
				<label><input type="checkbox" name="messageEvent[]" value="|IP|" '. Is::InstrChecked($TS_messageEvent,'|IP|') .'/>显示IP地址</label>&ensp;&ensp;
				'. $wapNoteArr['messageEvent'] .'
			</td>
		</tr>
		</table>
		');

		if (! AppBase::Jud()){
			$skin->PaySoftBox('tabBuy', $skin->TixingNoApp('商业版基础包'));
			echo('<input type="hidden" id="authState" name="authState" value="false" />');
			
		}elseif ($sysAdminArr['SA_isLan'] == 1 && $sysAdminArr['SA_sendUrlMode'] == 0){
			$skin->PaySoftBox('tabBuy', $skin->TixingLan());
			echo('<input type="hidden" id="authState" name="authState" value="false" />');
			
		}else{

			$paraArr = array(
				'TS_navWidthMode'		=> $TS_navWidthMode ,
				'TS_isTopAd'			=> $TS_isTopAd ,
				'TS_topAdCode'			=> $TS_topAdCode ,
				'searchArea1'			=> $searchArea1 ,
				'searchArea1_title'		=> $searchArea1_title ,
				'searchArea1_rank'		=> $searchArea1_rank ,
				'searchArea2'			=> $searchArea2 ,
				'searchArea2_title'		=> $searchArea2_title ,
				'searchArea2_rank'		=> $searchArea2_rank ,
				'searchArea3'			=> $searchArea3 ,
				'searchArea3_title'		=> $searchArea3_title ,
				'searchArea3_rank'		=> $searchArea3_rank ,
				'searchArea4'			=> $searchArea4 ,
				'searchArea4_title'		=> $searchArea4_title ,
				'searchArea4_rank'		=> $searchArea4_rank ,
				'searchArea5'			=> $searchArea5 ,
				'searchArea5_title'		=> $searchArea5_title ,
				'searchArea5_rank'		=> $searchArea5_rank ,
				'searchArea5_addi1'		=> $searchArea5_addi1 ,
				'searchArea5_addi2'		=> $searchArea5_addi2 ,
				'searchArea6'			=> $searchArea6 ,
				'searchArea6_title'		=> $searchArea6_title ,
				'searchArea6_rank'		=> $searchArea6_rank ,
				'searchArea6_addi1'		=> $searchArea6_addi1 ,
				'searchArea6_addi2'		=> $searchArea6_addi2 ,
				'TS_subWebLR'			=> $TS_subWebLR ,
				'TS_messageMode'		=> $TS_messageMode ,
				'TS_messageEvent'		=> $TS_messageEvent ,
				'TS_replyMode'			=> $TS_replyMode ,
				'TS_logoAreaStr'		=> $TS_logoAreaStr ,
				'TS_isLogoAdd'			=> $TS_isLogoAdd ,
				'TS_logoAddAnnoun'		=> $TS_logoAddAnnoun ,
				'TS_logoListMode'		=> $TS_logoListMode ,
				'TS_logoNote'			=> $TS_logoNote ,
				'TS_isImgBanner'		=> $TS_isImgBanner ,
				'TS_imgBannerH'			=> $TS_imgBannerH ,
				'TS_isQqServer'			=> $TS_isQqServer ,
				'TS_qqServerCode'		=> $TS_qqServerCode ,
				'judBbs'				=> AppBbs::Jud() ? 1 : 0 ,
				'judLogo'				=> AppLogoAdd::Jud() ? 1 : 0 ,
				'isCloseStudyUrl'		=> strpos($sysAdminArr['SA_infoCloseArea'],'|tplSys|') === false ? 0 : 1,
				);

			$getWebHtml = OTauthWeb('tplSys', 'tplSysIdc_V1.00.php', $paraArr);
			if (strpos($getWebHtml,'(OTCMS)') === false){
				$authAlertStr = $skin->TixingNoGet($getWebHtml);
				$getWebHtml = ''.
					$skin->PaySoftBox('tabBuy', $authAlertStr, false, true) .
					'<input type="hidden" id="authState" name="authState" value="false" />';
			}else{
				echo('
				<script language="javascript" type="text/javascript">
				$id("buyBox").style.display = "";
				</script>
				');
			}
			echo($getWebHtml);
		}

		echo('
		<div class="tabMenuSubmit"><input type="image" src="'. AdmTpl::ImgSrc('button_save') .'" /></div>
	</div>

	</form>
	');

}

?>