<?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/inc/list.js?v='. OT_VERSION .'"></script>
<script language="javascript" type="text/javascript" src="js/infoType.js?v='. OT_VERSION .'"></script>
');


switch ($mudi){
	case 'add':
		$MB->IsSecMenuRight('alertBack',93,$dataType);
		AddOrRev();
		break;

	case 'rev':
		$MB->IsSecMenuRight('alertBack',94,$dataType);
		AddOrRev();
		break;

	case 'manage':
		$MB->IsSecMenuRight('alertBack',92,$dataType);
		manage();
		break;

	default:
		die('err');
}

$skin->WebBottom();

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





// 新增、修改
function AddOrRev(){
	global $DB,$MB,$skin,$mudi,$dataType,$dataTypeCN,$systemArr;

	$dataMode		= OT::GetStr('dataMode');
	$dataModeStr	= OT::GetStr('dataModeStr');
	$backURL		= OT::GetStr('backURL');
	$dataID			= OT::GetInt2( OT::ParaArr('id') );

	if ($mudi == 'rev'){
		$revexe = $DB->query('select * from '. OT_dbPref .'infoType where IT_ID='. $dataID);
			if (! $row = $revexe->fetch()){
				JS::AlertBackEnd('无该记录！');		
			}
		$IT_ID				= $row['IT_ID'];
		$IT_fatID			= $row['IT_fatID'];
		$IT_isTitle			= $row['IT_isTitle'];
		$IT_titleAddi		= $row['IT_titleAddi'];
		$IT_template		= $row['IT_template'];
		$IT_templateWap		= $row['IT_templateWap'];
		$IT_htmlName		= $row['IT_htmlName'];
		$IT_theme			= $row['IT_theme'];
		$IT_themeStyle		= $row['IT_themeStyle'];
		$IT_mode			= $row['IT_mode'];
		$IT_webKey			= $row['IT_webKey'];
		$IT_webDesc			= $row['IT_webDesc'];
		$IT_URL				= $row['IT_URL'];
		$IT_isEncUrl		= $row['IT_isEncUrl'];
		$IT_webID			= $row['IT_webID'];
		$IT_openMode		= $row['IT_openMode'];
		$IT_showMode		= $row['IT_showMode'];
		$IT_showNum			= $row['IT_showNum'];
		$IT_wapShowMode		= $row['IT_wapShowMode'];
		$IT_wapShowNum		= $row['IT_wapShowNum'];
		$IT_listInfo		= $row['IT_listInfo'];
		$IT_subNewNum		= $row['IT_subNewNum'];
		$IT_subRecomNum		= $row['IT_subRecomNum'];
		$IT_subHotNum		= $row['IT_subHotNum'];
		$IT_isRightMenu		= $row['IT_isRightMenu'];
		$IT_homeIco			= $row['IT_homeIco'];
		$IT_homeNum			= $row['IT_homeNum'];
		$IT_isHomeImg		= $row['IT_isHomeImg'];
		$IT_isItemDate		= $row['IT_isItemDate'];
		$IT_isItemType		= $row['IT_isItemType'];
		$IT_isUser			= $row['IT_isUser'];
		$IT_isAdminUser		= $row['IT_isAdminUser'];
		$IT_isMenu			= $row['IT_isMenu'];
		$IT_isSubMenu		= $row['IT_isSubMenu'];
		$IT_isWap			= $row['IT_isWap'];
		$IT_isWapHome		= $row['IT_isWapHome'];
		$IT_isWapHomeDate	= $row['IT_isWapHomeDate'];
		$IT_isWapHomeType	= $row['IT_isWapHomeType'];
		$IT_wapHomeIco		= $row['IT_wapHomeIco'];
		$IT_wapHomeMode		= $row['IT_wapHomeMode'];
		$IT_wapHomeImgNum	= $row['IT_wapHomeImgNum'];
		$IT_wapHomeNum		= $row['IT_wapHomeNum'];
		$IT_isHome			= $row['IT_isHome'];
		$IT_rank			= $row['IT_rank'];
		$IT_itemRank		= $row['IT_itemRank'];
		$IT_state			= $row['IT_state'];
		$IT_wapItemRank		= $row['IT_wapItemRank'];
		$IT_isWapSubMenu	= $row['IT_isWapSubMenu'];
		$IT_lookScore		= $row['IT_lookScore'];
		$IT_listMaxPage		= $row['IT_listMaxPage'];

		$IT_hiddenContent1	= $row['IT_hiddenContent1'];
		$IT_hiddenContent2	= $row['IT_hiddenContent2'];
		$IT_score1			= $row['IT_score1'];
		$IT_score2			= $row['IT_score2'];
		$IT_score3			= $row['IT_score3'];
		$IT_score4			= $row['IT_score4'];
		$IT_score5			= $row['IT_score5'];
		$IT_cutScore1		= $row['IT_cutScore1'];
		$IT_cutScore2		= $row['IT_cutScore2'];
		$IT_cutScore3		= $row['IT_cutScore3'];
		$IT_cutScore4		= $row['IT_cutScore4'];
		$IT_cutScore5		= $row['IT_cutScore5'];
		$IT_userGroupList	= $row['IT_userGroupList'];
		$IT_freeGroupList	= $row['IT_freeGroupList'];
		$IT_cutQuickMoney	= $row['IT_cutQuickMoney'];
		$IT_pwdAnswer		= $row['IT_pwdAnswer'];
		$IT_pwdImg			= $row['IT_pwdImg'];
		$IT_pwdNote			= $row['IT_pwdNote'];
		$IT_topAddiID		= $row['IT_topAddiID'];
		$IT_addiID			= $row['IT_addiID'];
		$IT_placeMode		= $row['IT_placeMode'];
		$IT_infoTypeMode	= $row['IT_infoTypeMode'];
		$IT_addition		= $row['IT_addition'];
		$IT_event			= $row['IT_event'];
		unset($revexe);
		$mudiCN = '修改';
	}else{
		if ($dataID>0){
			$revexe = $DB->query('select * from '. OT_dbPref .'infoType where IT_ID='. $dataID);
				if (! $row = $revexe->fetch()){
					JS::AlertBackEnd('无该记录！');		
				}
			$IT_ID				= $row['IT_ID'];
			$IT_fatID			= $row['IT_fatID'];
			$IT_isTitle			= $row['IT_isTitle'];
			$IT_titleAddi		= $row['IT_titleAddi'];
			$IT_template		= $row['IT_template'];
			$IT_templateWap		= $row['IT_templateWap'];
			$IT_htmlName		= '';
			$IT_theme			= '';
			$IT_themeStyle		= $row['IT_themeStyle'];
			$IT_mode			= $row['IT_mode'];
			$IT_webKey			= $row['IT_webKey'];
			$IT_webDesc			= $row['IT_webDesc'];
			$IT_URL				= '';
			$IT_isEncUrl		= 0;
			$IT_webID			= 0;
			$IT_openMode		= $row['IT_openMode'];
			$IT_showMode		= $row['IT_showMode'];
			$IT_showNum			= $row['IT_showNum'];
			$IT_wapShowMode		= $row['IT_wapShowMode'];
			$IT_wapShowNum		= $row['IT_wapShowNum'];
			$IT_listInfo		= $row['IT_listInfo'];
			$IT_subNewNum		= $row['IT_subNewNum'];
			$IT_subRecomNum		= $row['IT_subRecomNum'];
			$IT_subHotNum		= $row['IT_subHotNum'];
			$IT_isRightMenu		= $row['IT_isRightMenu'];
			$IT_isWapSubMenu	= $row['IT_isWapSubMenu'];
			$IT_homeIco			= $row['IT_homeIco'];
			$IT_homeNum			= $row['IT_homeNum'];
			$IT_isHomeImg		= $row['IT_isHomeImg'];
			$IT_isItemDate		= $row['IT_isItemDate'];
			$IT_isItemType		= $row['IT_isItemType'];
			$IT_isUser			= $row['IT_isUser'];
			$IT_isAdminUser		= $row['IT_isAdminUser'];
			$IT_isMenu			= $row['IT_isMenu'];
			$IT_isSubMenu		= $row['IT_isSubMenu'];
			$IT_isWap			= $row['IT_isWap'];
			$IT_isWapHome		= $row['IT_isWapHome'];
			$IT_isWapHomeDate	= $row['IT_isWapHomeDate'];
			$IT_isWapHomeType	= $row['IT_isWapHomeType'];
			$IT_wapHomeIco		= $row['IT_wapHomeIco'];
			$IT_wapHomeMode		= $row['IT_wapHomeMode'];
			$IT_wapHomeImgNum	= $row['IT_wapHomeImgNum'];
			$IT_wapHomeNum		= $row['IT_wapHomeNum'];
			$IT_isHome			= $row['IT_isHome'];
			if (AppBase::Jud()){
				$IT_lookScore	= $row['IT_lookScore'];
			}else{
				$IT_lookScore	= 5;
			}
			$IT_listMaxPage		= $row['IT_listMaxPage'];

			$IT_hiddenContent1	= $row['IT_hiddenContent1'];
			$IT_hiddenContent2	= $row['IT_hiddenContent2'];
			$IT_score1			= $row['IT_score1'];
			$IT_score2			= $row['IT_score2'];
			$IT_score3			= $row['IT_score3'];
			$IT_score4			= $row['IT_score4'];
			$IT_score5			= $row['IT_score5'];
			$IT_cutScore1		= $row['IT_cutScore1'];
			$IT_cutScore2		= $row['IT_cutScore2'];
			$IT_cutScore3		= $row['IT_cutScore3'];
			$IT_cutScore4		= $row['IT_cutScore4'];
			$IT_cutScore5		= $row['IT_cutScore5'];
			$IT_userGroupList	= $row['IT_userGroupList'];
			$IT_freeGroupList	= $row['IT_freeGroupList'];
			$IT_cutQuickMoney	= $row['IT_cutQuickMoney'];
			$IT_pwdAnswer		= $row['IT_pwdAnswer'];
			$IT_pwdImg			= $row['IT_pwdImg'];
			$IT_pwdNote			= $row['IT_pwdNote'];
			$IT_topAddiID		= $row['IT_topAddiID'];
			$IT_addiID			= $row['IT_addiID'];
			$IT_placeMode		= $row['IT_placeMode'];
			$IT_infoTypeMode	= $row['IT_infoTypeMode'];
			$IT_addition		= $row['IT_addition'];
			$IT_event			= $row['IT_event'];
			unset($revexe);
			$dataID = 0;
		}else{
			$IT_ID				= 0;
			$IT_fatID			= 0;
			$IT_isTitle			= 0;
			$IT_titleAddi		= '';
			$IT_template		= '';
			$IT_templateWap		= '';
			$IT_htmlName		= '';
			$IT_theme			= '';
			$IT_themeStyle		= '';
			$IT_mode			= 'item';
			$IT_webKey			= '*';
			$IT_webDesc			= '*';
			$IT_URL				= '';
			$IT_isEncUrl		= 0;
			$IT_webID			= 0;
			$IT_openMode		= '_self';
			$IT_showMode		= 2;
			$IT_showNum			= 10;
			$IT_wapShowMode		= 2;
			$IT_wapShowNum		= 10;
			$IT_listInfo		= '';
			$IT_subNewNum		= 10;
			$IT_subRecomNum		= 10;
			$IT_subHotNum		= 10;
			$IT_isRightMenu		= 0;
			$IT_isWapSubMenu	= 0;
			$IT_homeIco			= 0;
			$IT_homeNum			= 10;
			$IT_isHomeImg		= 1;
			$IT_isItemDate		= 1;
			$IT_isItemType		= 0;
			$IT_isUser			= 1;
			$IT_isAdminUser		= 1;
			$IT_isMenu			= 1;
			$IT_isSubMenu		= 1;
			$IT_isWap			= 1;
			$IT_isWapHome		= 1;
			$IT_isWapHomeDate	= 1;
			$IT_isWapHomeType	= 0;
			$IT_wapHomeIco		= 0;
			$IT_wapHomeMode		= 2;
			$IT_wapHomeImgNum	= 1;
			$IT_wapHomeNum		= 6;
			$IT_isHome			= 1;
			$IT_lookScore		= 5;
			$IT_listMaxPage		= 0;

			$IT_hiddenContent1	= '';
			$IT_hiddenContent2	= '';
			$IT_score1			= '';
			$IT_score2			= '';
			$IT_score3			= '';
			$IT_score4			= '';
			$IT_score5			= '';
			$IT_cutScore1		= '';
			$IT_cutScore2		= '';
			$IT_cutScore3		= '';
			$IT_cutScore4		= '';
			$IT_cutScore5		= '';
			$IT_userGroupList	= '';
			$IT_freeGroupList	= '';
			$IT_cutQuickMoney	= '';
			$IT_pwdAnswer		= '';
			$IT_pwdImg			= '';
			$IT_pwdNote			= '';
			$IT_topAddiID		= 0;
			$IT_addiID			= 0;
			$IT_placeMode		= 0;
			$IT_infoTypeMode	= 'title';
			$IT_addition		= '';
			$IT_event			= '';
		}
		$IT_rank			= intval($DB->GetOne("select max(IT_rank) from ". OT_dbPref ."infoType where IT_mode not in ('urlMessage','urlBbs')")) + 10;
		$IT_itemRank		= 0;
		$IT_wapItemRank		= 0;
		$IT_state			= 1;
		$mudiCN = '添加';
	}

	if (strlen($IT_URL) == 0){ $IT_URL='http://'; }

	$themeStyle_color	= Str::GetMark($IT_themeStyle,'color:',';');
	$themeStyle_b		= Str::GetMark($IT_themeStyle,'font-weight:',';');

	$icoOptionStr = '';
	for ($i=1; $i<=28; $i++){
		$icoOptionStr .= '<option value="'. $i .'" '. Is::Selected($IT_homeIco,$i) .'>图标'. $i .'</option>';
	}

	echo('
	<form id="dealForm" name="dealForm" method="post" action="infoType_deal.php?mudi='. $mudi .'&nohrefStr=close" onsubmit="return CheckForm()">
	<input type="hidden" id="dataID" name="dataID" value="'. $dataID .'" />
	<input type="hidden" id="dataTypeCN" name="dataTypeCN" value="'. $dataTypeCN .'" />
	<input type="hidden" id="dataType" name="dataType" value="'. $dataType .'" />
	<input type="hidden" id="dataMode" name="dataMode" value="'. $dataMode .'" />
	<input type="hidden" id="dataModeStr" name="dataModeStr" value="'. $dataModeStr .'" />
	<input type="hidden" id="htmlInfoTypeDir" name="htmlInfoTypeDir" value="'. $systemArr['SYS_htmlInfoTypeDir'] .'" />
	'. Area::BackUrlInput($backURL) .'

	<div class="tabMenu">
	<ul>
		<li rel="tabBase" class="selected">'. $mudiCN . $dataTypeCN .'</li>
		<li rel="tabInfo">文章设置覆盖</li>
		<li rel="tabPc">电脑版设置</li>
		<li id="wapBox" rel="tabWap" style="display:'. (AppWap::Jud() ? '' : 'none') .';">手机版设置'. Skin::PluSign('需要 WAP手机版','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 align="right">'. Skin::RedSign() .'栏目名称：</td>
			<td align="left">
				<input type="text" id="theme" name="theme" size="50" style="width:400px;'. $IT_themeStyle .'" value="'. $IT_theme .'" />
				'. AppBase::InfoTypeThemeB($themeStyle_b,$themeStyle_color) .'
			</td>
		</tr>
		'. AppBase::InfoTypeTrBox5($IT_titleAddi,$IT_isTitle) .'
		<tr>
			<td align="right">栏目所属：</td>
			<td align="left">
				<input type="hidden" id="oldFatID" name="oldFatID" value="'. $IT_fatID .'" />
				<select id="fatID" name="fatID" onchange="CheckFatID()">
				<option value="">作为顶级分类</option>
				');
				$typeNum = 0;
				$typeexe=$DB->query('select * from '. OT_dbPref .'infoType where IT_level=1 order by IT_rank ASC');
				while ($row = $typeexe->fetch()){
					$typeNum ++;
					echo('<option value="'. $row['IT_ID'] .'" '. Is::Selected($row['IT_ID'],$IT_fatID) .'>'. $typeNum .'、'. $row['IT_theme'] .'</option>');
				
				}
				unset($typeexe);
				echo('
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">打开方式：</td>
			<td align="left">
				<select id="openMode" name="openMode">
					<option value="_self" '. Is::Selected($IT_openMode,'_self') .'>_self（当前窗体打开）</option>
					<option value="_blank" '. Is::Selected($IT_openMode,'_blank') .'>_blank（新窗口打开）</option>
					<!-- <option value="_parent" '. Is::Selected($IT_openMode,'_parent') .'>_parent(在父窗体中打开链接)</option>
					<option value="_top" '. Is::Selected($IT_openMode,'_top') .'>_top(在当前窗体打开链接，并替换当前的整个窗体)</option> -->
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">模式：</td>
			<td>
				<select id="mode" name="mode" onchange="CheckMode()">
					<option value="item">栏目</option>
					<option value="url" '. Is::Selected($IT_mode,'url') .'>外部链接(http://)</option>
					<option value="web" '. Is::Selected($IT_mode,'web') .'>单篇页</option>
					'. AppTopic::InfoTypeOptionBox1($IT_mode) .'
					'. AppTaobaoke::InfoTypeOptionBox1($IT_mode) .'
					'. AppDomain::InfoTypeOptionBox1($IT_mode) .'
					'. AppIdcPro::InfoTypeOptionBox1($IT_mode) .'
					<option value="urlHome" '. Is::Selected($IT_mode,'urlHome') .'>●网站首页</option>
					<option value="urlMessage" '. Is::Selected($IT_mode,'urlMessage') .'>●留言板</option>
					'. AppGift::InfoTypeOptionBox1($IT_mode) .'
					'. AppBbs::InfoTypeOptionBox1($IT_mode) .'
					'. AppUserGroupWork::InfoTypeOptionBox1($IT_mode) .'
					'. AppQiandao::InfoTypeOptionBox1($IT_mode) .'
					'. AppTag::InfoTypeOptionBox1($IT_mode) .'
				</select>
			</td>
		</tr>
		<tr id="webBox">
			<td align="right">单篇页：</td>
			<td>
				<select id="webID" name="webID">
					<option value="">选择单篇页</option>
					<optgroup label="单篇页" style="font-weight:normal;"></optgroup>
					');
					$webexe=$DB->query("select IW_ID,IW_theme from ". OT_dbPref ."infoWeb where IW_type='newsWeb' and IW_mode='web' order by IW_rank ASC");
					if (! $row = $webexe->fetch()){
						echo('<option value="" style="color:#9d9d9d;">无记录，请到【常规设置】-【单篇页管理】里添加</option>');
					}else{
						do {
							echo('<option value="'. $row['IW_ID'] .'" '. Is::Selected($row['IW_ID'],$IT_webID) .'>&ensp;&ensp;'. $row['IW_theme'] .'</option>');
						}while ($row = $webexe->fetch());
					}
					unset($webexe);

					echo('
					<optgroup label="底部栏目" style="font-weight:normal;"></optgroup>
					');

					$webexe=$DB->query("select IW_ID,IW_theme from ". OT_dbPref ."infoWeb where IW_type='bottom' and IW_mode='web' order by IW_rank ASC");
					if (! $row = $webexe->fetch()){
						echo('<option value="" style="color:#9d9d9d;">无记录，请到【常规设置】-【底部栏目】里添加</option>');
					}else{
						do {
							echo('<option value="'. $row['IW_ID'] .'" '. Is::Selected($row['IW_ID'],$IT_webID) .'>&ensp;&ensp;'. $row['IW_theme'] .'</option>');
						}while ($row = $webexe->fetch());
					}
					unset($webexe);
				echo('
				</select>
			</td>
		</tr>
		<tbody id="topicBox">
		'. AppTopic::InfoTypeTrBox1($IT_webID) .'
		</tbody>
		<tbody id="taobaokeBox">
		'. AppTaobaoke::InfoTypeTrBox1($IT_webID) .'
		</tbody>
		<tbody id="idcProBox">
		'. AppIdcPro::InfoTypeTrBox1($IT_webID) .'
		</tbody>
		<tr id="urlBox">
			<td align="right" valign="top" style="padding-top:8px;">外部链接：</td>
			<td align="left">
				<input type="text" id="webURL" name="webURL" size="50" style="width:400px;" value="'. $IT_URL .'" />&ensp;
				'. AppTaobaoke::InfoTypeEncUrl($IT_isEncUrl) .'
				<!-- 快捷：
				<span class="pointer font1_2" onclick=\'InputToText("webURL","{%网站根路径%}bbs/")\'>[论坛]</span>&ensp; -->
				<div style="padding:3px;">
					<span class="pointer font2_2" onclick=\'InputAddText("webURL","{%网站根路径%}")\'>{%网站根路径%}</span>：前台网站根路径，如“./”&ensp;
				</div>
			</td>
		</tr>
		<tbody id="itemBox">
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">
				栏目关键字(Keywords)：<br />
				<span class="font2_2">（便于搜索引擎搜到）</span>
			</td>
			<td align="left"><textarea id="webKey" name="webKey" rows="5" cols="40" style="width:400px; height:60px;">'. $IT_webKey .'</textarea>&ensp;填星号*表示使用首页网站关键字'. $skin->TishiBox('多个用英文逗号“,”隔开') .'</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">
				栏目描述(Description)：<br />
				<span class="font2_2">（便于搜索引擎搜到）</span>
			</td>
			<td align="left"><textarea id="webDesc" name="webDesc" rows="5" cols="40" style="width:400px; height:60px;">'. $IT_webDesc .'</textarea>&ensp;填星号*表示使用首页网站描述'. $skin->TishiBox('星号“*”表示使用网站关键字/描述') .'</td>
		</tr>
		<tr>
			<td align="right">允许前台投稿：</td>
			<td align="left">
				<label><input type="radio" name="isUser" value="1" '. Is::Checked($IT_isUser,1) .' />是</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isUser" value="0" '. Is::Checked($IT_isUser,0) .' />否</label>&ensp;&ensp;&ensp;&ensp;
				'. $skin->TishiBox('如果有允许二级栏目，对应的一级栏目必须允许，不然不会显示二级栏目。') .'
			</td>
		</tr>
		<tr>
			<td align="right">允许后台投稿：</td>
			<td align="left">
				<label><input type="radio" name="isAdminUser" value="1" '. Is::Checked($IT_isAdminUser,1) .' />是</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isAdminUser" value="0" '. Is::Checked($IT_isAdminUser,0) .' />否</label>&ensp;&ensp;&ensp;&ensp;
				'. $skin->TishiBox('如果有允许二级栏目，对应的一级栏目必须允许，不然不会显示二级栏目。') .'
			</td>
		</tr>
		<tr>
			<td align="right">额外显示位置：</td>
			<td align="left">
				<label><input type="radio" name="placeMode" value="0" '. Is::Checked($IT_placeMode,0) .' />无</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="placeMode" value="1" '. Is::Checked($IT_placeMode,1) .' />会员中心 - 栏目文章【栏目】</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="placeMode" value="2" '. Is::Checked($IT_placeMode,2) .' />会员中心 - 栏目文章【子栏目】</label>&ensp;&ensp;&ensp;&ensp;
				<!-- <label><input type="radio" name="placeMode" value="50" '. Is::Checked($IT_placeMode,50) .' />微信中心（只有会员才能看到）</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="placeMode" value="51" '. Is::Checked($IT_placeMode,51) .' />会员中心&微信中心（只有会员才能看到）</label>&ensp;&ensp;&ensp;&ensp; -->
			</td>
		</tr>
		<tr>
			<td align="right">'. Skin::PluSign('商业版基础包') .'静态目录名：</td>
			<td align="left">
				<input type="hidden" id="htmlNameOld" name="htmlNameOld" value="'. $IT_htmlName .'" />
				<input type="text" id="htmlName" name="htmlName" size="50" style="width:160px;ime-mode:disabled;" maxlength="25" value="'. $IT_htmlName .'" onkeyup=\'if (this.value!=FiltAbcNum_(this.value)){this.value=FiltAbcNum_(this.value)}\' />
				<input type="button" value="栏目拼音" onclick=\'ToPinYinId("theme","htmlName","","")\' />
				<input type="button" value="拼音驼峰" onclick=\'ToPinYinId("theme","htmlName","ucfirst","")\' />
				<input type="button" value="头字母大写" onclick=\'ToPinYinId("theme","htmlName","headUpper","")\' />
				<input type="button" value="头字母小写" onclick=\'ToPinYinId("theme","htmlName","headLower","")\' />
				<span class="font2_2">&ensp;(网站参数设置-文章路径 内容页纯静态模式，并开启【分栏目目录存放】时用到。)'. $skin->TishiBox('仅限数字、字母、下划线，第一个字符必须是字母。') .'</span>
			</td>
		</tr>
		<tr>
			<td align="right">'. Skin::PluSign('商业版基础包') .'静态列表页最大页码：</td>
			<td align="left">
				<input type="text" id="listMaxPage" name="listMaxPage" size="50" style="width:50px;" maxlength="25" value="'. $IT_listMaxPage .'" onkeyup=\'if (this.value!=FiltNum(this.value)){this.value=FiltNum(this.value)}\' />&ensp;&ensp;
				<label><input type="checkbox" name="event[]" value="|listMaxPageEnd|" '. Is::InstrChecked($IT_event,'|listMaxPageEnd|') .' />只显示到最大页码</label>&ensp;&ensp;
				<span class="font2_2">&ensp;(0为不启用，列表纯静态才有效，最大页码内是静态页，后面是动态页，针对文章量大，减少生成静态页量)</span>
			</td>
		</tr>
		<!-- <tr>
			<td align="right">静态目录名改动影响：</td>
			<td align="left">
				<select name="isChangeHtmlName">
					<option value="0">仅对后期添加文章生效</option>
					<option value="1">所属的文章全部生效</option>
				</select>
				<span class="font2_2">&ensp;（后期修改静态目录名时，是让之前的文章保持原路径还是采用新静态目录名）</span>
			</td>
		</tr> -->
		'. AppBase::InfoTypeTrBox4($IT_lookScore) .'
		</tbody>
		<tr>
			<td align="right">排序：</td>
			<td align="left"><input type="text" id="rank" name="rank" size="50" style="width:80px;" value="'. $IT_rank .'" /></td>
		</tr>
		<tr>
			<td align="right">状态：</td>
			<td align="left">
				<label><input type="radio" name="state" value="1" '. Is::Checked($IT_state,1) .' />显示</label>&ensp;&ensp;
				<label><input type="radio" name="state" value="0" '. Is::Checked($IT_state,0) .' />隐藏</label>&ensp;&ensp;
			</td>
		</tr>
		</table>
		');

		$topAddiStr = $addiStr = '';
		$addiexe=$DB->query('select IW_ID,IW_theme,IW_state from '. OT_dbPref ."infoWeb where IW_type='news' order by IW_state DESC,IW_rank ASC");
		while ($row = $addiexe->fetch()){
			if ($row['IW_state']==1){ $stateStr=''; }else{ $stateStr=' (隐藏)'; }
			$topAddiStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($IT_topAddiID,$row['IW_ID']) .'>'. $row['IW_theme'] . $stateStr .'</option>';
			$addiStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($IT_addiID,$row['IW_ID']) .'>'. $row['IW_theme'] . $stateStr .'</option>';
		}
		unset($addiexe);

		$userSysArr = Cache::PhpFile('userSys');
		if ($userSysArr['US_isScore1'] == 1){ $score1Style = ''; }else{ $score1Style = 'display:none;'; }
		if ($userSysArr['US_isScore2'] == 1){ $score2Style = ''; }else{ $score2Style = 'display:none;'; }
		if ($userSysArr['US_isScore3'] == 1){ $score3Style = ''; }else{ $score3Style = 'display:none;'; }
		if ($userSysArr['US_isScore4'] == 1){ $score4Style = ''; }else{ $score4Style = 'display:none;'; }
		if ($userSysArr['US_isScore5'] == 1){ $score5Style = ''; }else{ $score5Style = 'display:none;'; }

		$freeGroupStr = $limitGroupStr = '';
		$groupexe = $DB->query('select UG_ID,UG_theme from '. OT_dbPref .'userGroup where UG_state=1 order by UG_rank ASC');
		while ($row = $groupexe->fetch()){
			$freeGroupStr .= '<label><input type="checkbox" name="freeGroupList[]" value="['. $row['UG_ID'] .']" '. Is::InstrChecked($IT_freeGroupList,'['. $row['UG_ID'] .']') .'>'. $row['UG_theme'] .'</label>&ensp;&ensp;';
			$limitGroupStr .= '<label><input type="checkbox" name="userGroupList[]" value="['. $row['UG_ID'] .']" '. Is::InstrChecked($IT_userGroupList,'['. $row['UG_ID'] .']') .'>'. $row['UG_theme'] .'</label>&ensp;&ensp;';
		}
		unset($groupexe);

		echo('
		<table id="tabInfo" 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:6px;">生效范围：</td>
			<td align="left">
				<label><input type="checkbox" name="addition[]" value="|act_hiddenContent1|" '. Is::InstrChecked($IT_addition,'|act_hiddenContent1|') .' />提示框头部公告</label>&ensp;&ensp;
				<label><input type="checkbox" name="addition[]" value="|act_hiddenContent2|" '. Is::InstrChecked($IT_addition,'|act_hiddenContent2|') .' />提示框尾部公告</label>&ensp;&ensp;
				<label><input type="checkbox" name="addition[]" value="|act_topAddiID|" '. Is::InstrChecked($IT_addition,'|act_topAddiID|') .' />正文头附加内容</label>&ensp;&ensp;
				<label><input type="checkbox" name="addition[]" value="|act_addiID|" '. Is::InstrChecked($IT_addition,'|act_addiID|') .' />正文尾附加内容</label>&ensp;&ensp;
				<div>
					<label><input type="checkbox" name="addition[]" value="|act_checkUser|" '. Is::InstrChecked($IT_addition,'|act_checkUser|') .' />仅限会员阅读</label>&ensp;&ensp;
					<label><input type="checkbox" name="addition[]" value="|act_checkReply|" '. Is::InstrChecked($IT_addition,'|act_checkReply|') .' />会员回复可见</label>&ensp;&ensp;
					<label><input type="checkbox" name="addition[]" value="|act_checkQuick|" '. Is::InstrChecked($IT_addition,'|act_checkQuick|') .' />直接在线支付</label>&ensp;&ensp;
					<label><input type="checkbox" name="addition[]" value="|act_checkPwd|" '. Is::InstrChecked($IT_addition,'|act_checkPwd|') .' />输入密码可见</label>&ensp;&ensp;
				</div>
				<div style="color:red;">（打钩才生效，对栏目下文章进行生效项目全局控制，如个别文章不想受该控制，文章【附加功能：栏目[文章设置覆盖]无效】打钩即可）</div>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">隐藏内容提示框头部公告：</td>
			<td>
				<textarea id="hiddenContent1" name="hiddenContent1" style="width:510px;height:60px;" onclick=\'LoadEditor("hiddenContent1",510,60,"|miniMenu|");\' title="点击开启编辑器模式">'. Str::MoreReplace($IT_hiddenContent1,'textarea') .'</textarea>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;" class="font1_2d">隐藏内容提示框尾部公告：</td>
			<td>
				<textarea id="hiddenContent2" name="hiddenContent2" style="width:510px;height:60px;" onclick=\'LoadEditor("hiddenContent2",510,60,"|miniMenu|");\' title="点击开启编辑器模式">'. Str::MoreReplace($IT_hiddenContent2,'textarea') .'</textarea>
			</td>
		</tr>
		<tr>
			<td align="right">正文头附加内容：</td>
			<td align="left">
				<select id="topAddiID" name="topAddiID">
				<option value="0">无</option>
				'. $topAddiStr .'
				</select>&ensp;
			</td>
		</tr>
		<tr>
			<td align="right">正文尾附加内容：</td>
			<td align="left">
				<select id="addiID" name="addiID">
				<option value="0">无</option>
				'. $addiStr .'
				</select>&ensp;
			</td>
		</tr>
		<tr class="infoBox">
			<td align="right">限制/付费阅读：</td>
			<td align="left">
				<label><input type="checkbox" id="addition_user" name="addition[]" value="|checkUser|" '. Is::InstrChecked($IT_addition,'|checkUser|') .' onclick="CheckCheckUser()" />仅限会员阅读</label>&ensp;&ensp;
				<label><input type="checkbox" id="addition_reply" name="addition[]" value="|checkReply|" '. Is::InstrChecked($IT_addition,'|checkReply|') .' onclick="CheckCheckUser()" />会员回复可见</label>&ensp;&ensp;
				'. AppMoneyQuick::InfoCheckItem($IT_addition) .'
				'. AppNewsPwd::InfoCheckItem($IT_addition) .'
				'. AppXcxAd::InfoCheckItem($IT_addition) .'
			</td>
		</tr>
		<tbody id="checkUserBox" style="display:none;">
		<tr><td align="left" colspan="2">
			<table align="left" cellpadding="0" cellspacing="0" summary="" class="infoBox padd3">
			<tr>
				<td class="tabLeftWidth"></td>
				<td align="left" colspan="4"><b>【仅限会员阅读】设置区</b></td>
			</tr>
			<tr>
				<td align="right"></td>
				<td align="center" style="width:55px;'. $score1Style .'">'. $userSysArr['US_score1Name'] .'</td>
				<td align="center" style="width:55px;'. $score2Style .'">'. $userSysArr['US_score2Name'] .'</td>
				<td align="center" style="width:55px;'. $score3Style .'">'. $userSysArr['US_score3Name'] .'</td>
				<td align="center" style="width:55px;'. $score4Style .'">'. $userSysArr['US_score4Name'] .'</td>
				<td align="center" style="width:55px;'. $score5Style .'">'. $userSysArr['US_score5Name'] .'</td>
				<td align="center"></td>
			</tr>
			<tr>
				<td align="right">限制阅读积分：</td>
				<td align="center" style="'. $score1Style .'"><input type="text" id="score1" name="score1" value="'. $IT_score1 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
				<td align="center" style="'. $score2Style .'"><input type="text" id="score2" name="score2" value="'. $IT_score2 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
				<td align="center" style="'. $score3Style .'"><input type="text" id="score3" name="score3" value="'. $IT_score3 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
				<td align="center" style="'. $score4Style .'"><input type="text" id="score4" name="score4" value="'. $IT_score4 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
				<td align="center" style="'. $score5Style .'"><input type="text" id="score5" name="score5" value="'. $IT_score5 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
				<td align="left">
				</td>
			</tr>
			<tr>
				<td align="right">付费阅读积分：</td>
				<td align="center" style="'. $score1Style .'"><input type="text" id="cutScore1" name="cutScore1" value="'. $IT_cutScore1 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
				<td align="center" style="'. $score2Style .'"><input type="text" id="cutScore2" name="cutScore2" value="'. $IT_cutScore2 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
				<td align="center" style="'. $score3Style .'"><input type="text" id="cutScore3" name="cutScore3" value="'. $IT_cutScore3 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
				<td align="center" style="'. $score4Style .'"><input type="text" id="cutScore4" name="cutScore4" value="'. $IT_cutScore4 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
				<td align="center" style="'. $score5Style .'"><input type="text" id="cutScore5" name="cutScore5" value="'. $IT_cutScore5 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
				<td align="left"></td>
			</tr>
			<tr>
				<td align="right" valign="top" style="padding-top:6px;">免费阅读组：</td>
				<td align="left" colspan="4">
					'. $freeGroupStr .'
					<span style="color:red;">(【免费阅读组】优先于【限制/付费阅读组】)</span>
				</td>
			</tr>
			<tr>
				<td align="right" valign="top" style="padding-top:6px;">限制/付费阅读组：</td>
				<td align="left" colspan="4">
					'. $limitGroupStr .'
					<span style="color:red;">(都不选，等于允许所有用户组)</span>
				</td>
			</tr>
			</table>
			
		</td></tr>
		</tbody>
		<tbody id="checkQuickBox" style="display:none;">
		'. AppMoneyQuick::InfoTrBox($IT_cutQuickMoney) .'
		</tbody>
		<tbody id="checkPwdBox" style="display:none;">
		'. AppNewsPwd::InfoTrBox($IT_pwdAnswer, $IT_pwdImg, $IT_pwdNote) .'
		</tbody>
		<tr>
			<td align="right">会员中心-栏目文章模式：</td>
			<td align="left">
				<label><input type="radio" name="infoTypeMode" value="def" '. Is::Checked($IT_infoTypeMode,'def') .' />默认</label>&ensp;&ensp;
				<label><input type="radio" name="infoTypeMode" value="title" '. Is::Checked($IT_infoTypeMode,'title') .' />标题</label>&ensp;&ensp;
				<label><input type="radio" name="infoTypeMode" value="imgTitle" '. Is::Checked($IT_infoTypeMode,'imgTitle') .' />上图+下标题</label>&ensp;&ensp;
			</td>
		</tr>
		</table>


		<table id="tabPc" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		<tr>
			<td align="right">主导航：</td>
			<td align="left">
				<label><input type="radio" name="isMenu" value="1" '. Is::Checked($IT_isMenu,1) .' />显示</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isMenu" value="0" '. Is::Checked($IT_isMenu,0) .' />隐藏</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>
		<tr id="subMenuBox" style="display:none;">
			<td align="right">二级导航：</td>
			<td align="left">
				<label><input type="radio" name="isSubMenu" value="1" '. Is::Checked($IT_isSubMenu,1) .' />显示</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isSubMenu" value="0" '. Is::Checked($IT_isSubMenu,0) .' />隐藏</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>

		'. Skin::ItemTrTop('首页','栏目') .'
		<tr>
			<td align="right">开关：</td>
			<td align="left">
				<label><input type="radio" id="isHome1" name="isHome" value="1" '. Is::Checked($IT_isHome,1) .' onclick="CheckHomeItme()" />显示</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" id="isHome0" name="isHome" value="0" '. Is::Checked($IT_isHome,0) .' onclick="CheckHomeItme()" />隐藏</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>
		<tr class="homeItemClass">
			<td align="right" class="font1_2d">图标：</td>
			<td align="left" class="newsListImg">
				<label>
				<select id="homeIco" name="homeIco">
					<option value="0">默认</option>
					<option value="99">无</option>
					'. $icoOptionStr .'
				</select>
				<span><img src="temp/ico.png" style="display:none;" /></span>
				</label>
				&ensp;&ensp;'. $skin->TishiBox('图标文件存放在 inc_img/ico/，可自行替换，图标宽高要一致') .'
			</td>
		</tr>
		<tr class="homeItemClass">
			<td align="right" class="font1_2d">图文数量：</td>
			<td align="left"><input type="text" id="isHomeImg" name="isHomeImg" size="50" style="width:50px;" value="'. $IT_isHomeImg .'" /></td>
		</tr>
		<tr class="homeItemClass">
			<td align="right" class="font1_2d">文章数量：</td>
			<td align="left"><input type="text" id="homeNum" name="homeNum" size="50" style="width:50px;" value="'. $IT_homeNum .'" /></td>
		</tr>
		<tr class="homeItemClass">
			<td align="right" class="font1_2d">日期：</td>
			<td align="left">
				<label><input type="radio" name="isItemDate" value="1" '. Is::Checked($IT_isItemDate,1) .' />显示</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isItemDate" value="0" '. Is::Checked($IT_isItemDate,0) .' />隐藏</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>
		<tr class="homeItemClass">
			<td align="right" class="font1_2d">分类：</td>
			<td align="left">
				<label><input type="radio" name="isItemType" value="1" '. Is::Checked($IT_isItemType,1) .' />显示</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isItemType" value="0" '. Is::Checked($IT_isItemType,0) .' />隐藏</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>
		<tr class="homeItemClass">
			<td align="right" class="font1_2d">排序：</td>
			<td align="left"><input type="text" id="itemRank" name="itemRank" size="50" style="width:50px;" value="'. $IT_itemRank .'" />&ensp;&ensp;'. $skin->TishiBox('值越小排越前，值相等，根据[排序]项升序。') .'</td>
		</tr>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('列表','页') .'
		'. AppBase::InfoTypeTrBox2($IT_template) .'
		'. AdmArea::ListMode('显示模式','showMode',$IT_showMode) .'
		<tr>
			<td align="right" class="font1_2d">每页数量：</td>
			<td align="left"><input type="text" id="showNum" name="showNum" size="50" style="width:50px;" value="'. $IT_showNum .'" />&ensp;&ensp;'. $skin->TishiBox('如显示样式为[分类列表]，该文本框则表示每个分类显示的数量。') .'</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">文章信息：</td>
			<td align="left">
				<label><input type="checkbox" name="listInfo[]" value="|noTime|" '. Is::InstrChecked($IT_listInfo,'|noTime|') .' />隐藏时间</label>&ensp;&ensp;
				<label><input type="checkbox" name="listInfo[]" value="|noReply|" '. Is::InstrChecked($IT_listInfo,'|noReply|') .' />隐藏评论数</label>&ensp;&ensp;
				<label><input type="checkbox" name="listInfo[]" value="|noRead|" '. Is::InstrChecked($IT_listInfo,'|noRead|') .' />隐藏阅读数</label>&ensp;&ensp;
				<label><input type="checkbox" name="listInfo[]" value="|noUser|" '. Is::InstrChecked($IT_listInfo,'|noUser|') .' />隐藏会员名</label>&ensp;&ensp;
				<label><input type="checkbox" name="listInfo[]" value="|noMark|" '. Is::InstrChecked($IT_listInfo,'|noMark|') .' />隐藏标签</label>&ensp;&ensp;
				<label><input type="checkbox" name="listInfo[]" value="|noInfoType|" '. Is::InstrChecked($IT_listInfo,'|noInfoType|') .' />隐藏栏目</label>&ensp;&ensp;
				<label><input type="checkbox" name="listInfo[]" value="|noWriter|" '. Is::InstrChecked($IT_listInfo,'|noWriter|') .' />隐藏作者</label>&ensp;&ensp;
				'. $skin->TishiBox('有些选项是针对特定模板') .'
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">右侧最新文章数：</td>
			<td align="left"><input type="text" id="subNewNum" name="subNewNum" size="50" style="width:50px;" value="'. $IT_subNewNum .'" />&ensp;'. $skin->TishiBox('值为0会隐藏该模块') .'</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">右侧推荐文章数：</td>
			<td align="left"><input type="text" id="subRecomNum" name="subRecomNum" size="50" style="width:50px;" value="'. $IT_subRecomNum .'" />&ensp;'. $skin->TishiBox('值为0会隐藏该模块') .'</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">右侧热门文章数：</td>
			<td align="left"><input type="text" id="subHotNum" name="subHotNum" size="50" style="width:50px;" value="'. $IT_subHotNum .'" />&ensp;'. $skin->TishiBox('值为0会隐藏该模块') .'</td>
		</tr>
		'. AppBase::InfoTypeTrBox3($IT_isRightMenu) .'
		'. Skin::ItemTrBottom() .'
		</table>


		<table id="tabWap" style="display:none;" cellpadding="0" cellspacing="0" summary="" class="padd3">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		<tr>
			<td align="right">'. Skin::ImgWap() .'主导航：</td>
			<td align="left">
				<label><input type="radio" name="isWap" value="1" '. Is::Checked($IT_isWap,1) .' />显示</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isWap" value="0" '. Is::Checked($IT_isWap,0) .' />隐藏</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>
		'. Skin::ItemTrTop('首页','栏目') .'
		<tr>
			<td align="right">'. Skin::ImgWap() .'开关：</td>
			<td align="left">
				<label><input type="radio" id="isWapHome1" name="isWapHome" value="1" '. Is::Checked($IT_isWapHome,1) .' onclick="CheckWapItme()" />显示</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" id="isWapHome0" name="isWapHome" value="0" '. Is::Checked($IT_isWapHome,0) .' onclick="CheckWapItme()" />隐藏</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>
		<tbody class="wapItemClass">
		'. AdmArea::WapListMode(Skin::ImgWap() .'显示模式','wapHomeMode',$IT_wapHomeMode) .'
		<tr>
			<td align="right" class="font1_2d">'. Skin::ImgWap() .'图文数量：</td>
			<td align="left"><input type="text" id="wapHomeImgNum" name="wapHomeImgNum" size="50" style="width:50px;" value="'. $IT_wapHomeImgNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">'. Skin::ImgWap() .'文章数量：</td>
			<td align="left"><input type="text" id="wapHomeNum" name="wapHomeNum" size="50" style="width:50px;" value="'. $IT_wapHomeNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">'. Skin::ImgWap() .'日期：</td>
			<td align="left">
				<label><input type="radio" name="isWapHomeDate" value="1" '. Is::Checked($IT_isWapHomeDate,1) .' />显示</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isWapHomeDate" value="0" '. Is::Checked($IT_isWapHomeDate,0) .' />隐藏</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">'. Skin::ImgWap() .'分类：</td>
			<td align="left">
				<label><input type="radio" name="isWapHomeType" value="1" '. Is::Checked($IT_isWapHomeType,1) .' />显示</label>&ensp;&ensp;&ensp;&ensp;
				<label><input type="radio" name="isWapHomeType" value="0" '. Is::Checked($IT_isWapHomeType,0) .' />隐藏</label>&ensp;&ensp;&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">'. Skin::ImgWap() .'排序：</td>
			<td align="left"><input type="text" id="wapItemRank" name="wapItemRank" size="50" style="width:50px;" value="'. $IT_wapItemRank .'" />&ensp;&ensp;'. $skin->TishiBox('值越小排越前，值相等，根据[排序]项升序。') .'</td>
		</tr>
		</tbody>
		'. Skin::ItemTrBottom() .'

		'. Skin::ItemTrTop('列表','页') .'
		'. AppWap::InfoTypeTrBox2($IT_templateWap) .'
		'. AdmArea::WapListMode(Skin::ImgWap() .'显示模式','wapShowMode',$IT_wapShowMode) .'
		<tr>
			<td align="right" class="font1_2d">'. Skin::ImgWap() .'每页数量：</td>
			<td align="left"><input type="text" id="wapShowNum" name="wapShowNum" size="50" style="width:50px;" value="'. $IT_wapShowNum .'" /></td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">'. Skin::ImgWap() .'文章信息：</td>
			<td align="left">
				<label><input type="checkbox" name="listInfo[]" value="|noWapTime|" '. Is::InstrChecked($IT_listInfo,'|noWapTime|') .' />隐藏时间</label>&ensp;&ensp;
				<label><input type="checkbox" name="listInfo[]" value="|noWapReply|" '. Is::InstrChecked($IT_listInfo,'|noWapReply|') .' />隐藏评论数</label>&ensp;&ensp;
				<label><input type="checkbox" name="listInfo[]" value="|noWapRead|" '. Is::InstrChecked($IT_listInfo,'|noWapRead|') .' />隐藏阅读数</label>&ensp;&ensp;
				<label><input type="checkbox" name="listInfo[]" value="|noWapUser|" '. Is::InstrChecked($IT_listInfo,'|noWapUser|') .' />隐藏会员名</label>&ensp;&ensp;
			</td>
		</tr>
		<tr>
			<td align="right" class="font1_2d">'. Skin::ImgWap() .'二级导航：</td>
			<td align="left">
				<label><input type="radio" name="isWapSubMenu" value="0" '. Is::Checked($IT_isWapSubMenu,0) .' />关闭</label>&ensp;&ensp;
				<label><input type="radio" name="isWapSubMenu" value="1" '. Is::Checked($IT_isWapSubMenu,1) .' />一行1个</label>&ensp;&ensp;
				<label><input type="radio" name="isWapSubMenu" value="2" '. Is::Checked($IT_isWapSubMenu,2) .' />一行2个</label>&ensp;&ensp;
				<label><input type="radio" name="isWapSubMenu" value="3" '. Is::Checked($IT_isWapSubMenu,3) .' />一行3个</label>&ensp;&ensp;
				<label><input type="radio" name="isWapSubMenu" value="4" '. Is::Checked($IT_isWapSubMenu,4) .' />一行4个</label>&ensp;&ensp;
				<label><input type="radio" name="isWapSubMenu" value="99" '. Is::Checked($IT_isWapSubMenu,99) .' />作为菜单不显示</label>&ensp;&ensp;
			</td>
		</tr>
		'. Skin::ItemTrBottom() .'
		</table>
	</div>
	<div class="clr"></div>

	<div class="tabMenuSubmit"><input type="image" src="'. AdmTpl::ImgSrc('button_'. $mudi) .'" /></div>

	</form>
	');

}



function manage(){
	global $DB,$MB,$skin,$mudi,$dataType,$dataTypeCN,$pageCount,$recordCount,$systemArr,$dbPathPart;

	$titleArr = array();
	$titleArr[] = array('width'=>'4%',	'name'=>'<input type="checkbox" id="selAll" name="selAll" onclick="CheckBoxAll()" />');
	$titleArr[] = array('width'=>'5%',	'name'=>'ID号');
	$titleArr[] = array('width'=>'20%',	'name'=>'名称');
	if (AppWap::Jud()){
		$app6StyleStr='display:;';
		$titleArr[] = array('width'=>'8%',	'name'=>'模式');
		$titleArr[] = array('width'=>'5%',	'name'=>'打开<br />方式');
		$titleArr[] = array('width'=>'6%',	'name'=>'前台/后台投稿');
		$titleArr[] = array('width'=>'5%',	'name'=>'主<br />导航');
		$titleArr[] = array('width'=>'5%',	'name'=>'二级<br />导航');
		$titleArr[] = array('width'=>'5%',	'name'=>'WAP<br />导航');
		$titleArr[] = array('width'=>'7%',	'name'=>'PC首页<br />栏目/排序');
		$titleArr[] = array('width'=>'7%',	'name'=>'WAP首页<br />栏目/排序');
		$titleArr[] = array('width'=>'6%',	'name'=>'排序');
		$titleArr[] = array('width'=>'5%',	'name'=>'状态');
		$titleArr[] = array('width'=>'11%',	'name'=>'预览　修改　删除');
	}else{
		$tabWidthStr = '4%,5%,20%,9%,5%,6%,6%,6%,6%,8%,5%,12%';
		$tabTitleStr = '<input type="checkbox" id="selAll" name="selAll" onclick="CheckBoxAll()" />,ID号,名称,模式,打开<br />方式,前台/后台投稿,主<br />导航,二级<br />导航,排序,首页<br />栏目/排序,状态,预览　修改　删除';
		$app6StyleStr='display:none;';
		$titleArr[] = array('width'=>'9%',	'name'=>'模式');
		$titleArr[] = array('width'=>'5%',	'name'=>'打开<br />方式');
		$titleArr[] = array('width'=>'6%',	'name'=>'前台/后台投稿');
		$titleArr[] = array('width'=>'6%',	'name'=>'主<br />导航');
		$titleArr[] = array('width'=>'6%',	'name'=>'二级<br />导航');
		$titleArr[] = array('width'=>'8%',	'name'=>'PC首页<br />栏目/排序');
		$titleArr[] = array('width'=>'6%',	'name'=>'排序');
		$titleArr[] = array('width'=>'5%',	'name'=>'状态');
		$titleArr[] = array('width'=>'12%',	'name'=>'预览　修改　删除');
	}

	echo('
	<div class="padd5">
		<input type="button" id="infoType2Btn" value="隐藏二级栏目" onclick="CheckInfoType(2)" />
	</div>

	<form id="listForm" name="listForm" method="post" action="infoType_deal.php?mudi=moreDel" onsubmit="return CheckListForm()">
	<script language="javascript" type="text/javascript">document.write (\'<input type="hidden" name="backURL" value="\'+ document.location.href +\'" />\')</script>
	<input type="hidden" name="dataType" value="'. $dataType .'" />
	<input type="hidden" name="dataTypeCN" value="'. $dataTypeCN .'" />
	');

	$skin->TableTop2('share_list.gif','',''. $dataTypeCN .'管理');
	$skin->TableTitleArr($titleArr);

	$infoTypeStr = '';
	$infoTypeNum = 0;
	$dataNum = $showNum = 0;
	$showexe=$DB->query('select * from '. OT_dbPref .'infoType where IT_level=1 order by IT_rank ASC');
	echo('
	<tbody class="tabBody padd3">
	<tr>
		<td align="center" class="selCheckbox"><input type="checkbox" name="selDataID[]" value="-1" /></td>
		<td align="center"><br /></td>
		<td align="left">0、网站公告('. $systemArr['SYS_announName'] .')&ensp;<span id="infoType_1" class="font2_2"></span><br /></td>
		<td align="center">栏目</td>
		<td align="center" colspan="11">名称修改：网站参数设置-页面设置-网站公告名称；栏目归属：新增/修改文章-栏目项；</td>
	</tr>
	</tbody>
	');
	while ($row = $showexe->fetch()){
		if ($infoTypeNum % 2 == 1){ $bgcolor='class="tabColorTr"'; }else{ $bgcolor=''; }
		$infoTypeStr .= ','. $row['IT_ID'];
		$infoTypeNum ++;
		$dataNum ++;
		$showNum ++;

		$modeArr = InfoTypeMode($row['IT_mode'], $row['IT_showMode'], $row['IT_ID'], $row['IT_webID'], $row['IT_URL']);
		echo('
		<tbody class="tabBody padd3">
		<tr id="data'. $row['IT_ID'] .'" '. $bgcolor .'>
			<td align="center" class="selCheckbox"><input type="checkbox" name="selDataID[]" value="'. $row['IT_ID'] .'" /></td>
			<td align="center">'. $row['IT_ID'] .'</td>
			<td align="left">
				'. $showNum .'、<span style="'. $row['IT_themeStyle'] .'" title="静态名：'. $row['IT_htmlName'] .'，静态列表页最大页码：'. $row['IT_listMaxPage'] .'；&#13;&#10;PC首页栏目图文数：'. $row['IT_isHomeImg'] .'，文章数：'. $row['IT_homeNum'] .'；列表每页：'. $row['IT_showNum'] .'；&#13;&#10;WAP首页栏目图文数：'. $row['IT_wapHomeImgNum'] .'，文章数：'. $row['IT_wapHomeNum'] .'；列表每页：'. $row['IT_wapShowNum'] .'；">'. $row['IT_theme'] .'</span>
				<div style="float:right;padding-right:5px;">
					&ensp;<label style="color:#979797;" id="fatLabel'. $row['IT_ID'] .'" title="快捷选择二级栏目全选/不选"><input type="checkbox" id="fatSel'. $row['IT_ID'] .'" onclick=\'if (this.checked){ $(".fat'. $row['IT_ID'] .'").prop("checked",true); }else{ $(".fat'. $row['IT_ID'] .'").prop("checked",false); }\' />全选</label>
					&ensp;<label style="color:#979797;" id="fatBtn'. $row['IT_ID'] .'" title="快捷显示/隐藏二级栏目"><input type="checkbox" id="fatHidden'. $row['IT_ID'] .'" onclick=\'if (this.checked){ $(".fatTr'. $row['IT_ID'] .'").css("display","none"); }else{ $(".fatTr'. $row['IT_ID'] .'").css("display",""); }\' />隐藏</label>
					&ensp;<span id="infoType'. $row['IT_ID'] .'" class="font2_2"></span>
				</div>
				'. ($row['IT_placeMode'] >= 1 ? '<div style="color:blue;">【'. PlaceModeCN($row['IT_placeMode']) .'】</div>' : '') .'
			</td>
			<td align="center">'. $modeArr['modeCN'] .'</td>
			<td align="center">'. InfoTypeOpenMode($row['IT_openMode']) .'</td>
			<td align="center">
				'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isUser'],'isUser') .','. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isAdminUser'],'isAdminUser','isRunCode') .'
			</td>
			<td align="center">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isMenu'],'isMenu') .'</td>
			<td align="center"></td>
			<td align="center" style="'. $app6StyleStr .'">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isWap'],'isWap') .'</td>
			<td align="center">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isHome'],'isHome') .','. $row['IT_itemRank'] .'</td>
			<td align="center" style="'. $app6StyleStr .'">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isWapHome'],'isWapHome') .','. $row['IT_wapItemRank'] .'</td>
			<td align="center">'. $row['IT_rank'] .'</td>
			<td align="center">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_state'],'state') .'</td>
			<td align="center">
				<img src="images/img_det.gif" style="cursor:pointer" onclick=\'window.open("'. $modeArr['hrefStr'] .'")\' alt="" />&ensp;&ensp;
				<img src="images/img_rev.gif" class="pointer" onclick=\'document.location.href="infoType.php?mudi=rev&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&dataID='. $row['IT_ID'] .'&backURL="+ encodeURIComponent(document.location.href)\' alt="修改" />&ensp;&ensp;
				<img src="images/img_del.gif" class="pointer" onclick=\'if(confirm("确定删除？")==true){DataDeal.location.href="infoType_deal.php?mudi=del&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&theme='. urlencode($row['IT_theme']) .'&dataID='. $row['IT_ID'] .'"}\' alt="删除" />
			</td>
		</tr>
		</tbody>
		');

		$show2exe=$DB->query('select * from '. OT_dbPref .'infoType where IT_fatID='. $row['IT_ID'] .' order by IT_rank ASC');
		while ($row2 = $show2exe->fetch()){
			if ($infoTypeNum % 2 == 1){ $bgcolor='class="tabColorTr"'; }else{ $bgcolor=''; }
			$infoTypeStr .= ','. $row2['IT_ID'];
			$infoTypeNum ++;
			$dataNum ++;
			$modeArr = InfoTypeMode($row2['IT_mode'], $row2['IT_showMode'], $row2['IT_ID'], $row2['IT_webID'], $row2['IT_URL']);
			echo('
			<tbody class="infoType2 tabBody padd3">
			<tr id="data'. $row2['IT_ID'] .'" class="fatTr'. $row['IT_ID'] .'" '. $bgcolor .'>
				<td align="center" class="selCheckbox"><input type="checkbox" name="selDataID[]" value="'. $row2['IT_ID'] .'" class="fat'. $row['IT_ID'] .'" /></td>
				<td align="center">'. $row2['IT_ID'] .'</td>
				<td align="left">
					&ensp;&ensp;&ensp;┣&ensp;<span style="'. $row2['IT_themeStyle'] .'" title="静态名：'. $row2['IT_htmlName'] .'，静态列表页最大页码：'. $row2['IT_listMaxPage'] .'；&#13;&#10;PC首页栏目图文数：'. $row2['IT_isHomeImg'] .'，文章数：'. $row2['IT_homeNum'] .'；列表每页：'. $row2['IT_showNum'] .'；&#13;&#10;WAP首页栏目图文数：'. $row2['IT_wapHomeImgNum'] .'，文章数：'. $row2['IT_wapHomeNum'] .'；列表每页：'. $row2['IT_wapShowNum'] .'；">'. $row2['IT_theme'] .'</span>&ensp;<span id="infoType'. $row2['IT_ID'] .'" class="font2_2"></span>
					'. ($row2['IT_placeMode'] >= 1 ? '<div style="color:blue;">【'. PlaceModeCN($row2['IT_placeMode']) .'】</div>' : '') .'
				</td>
				<td align="center">'. $modeArr['modeCN'] .'</td>
				<td align="center">'. InfoTypeOpenMode($row2['IT_openMode']) .'</td>
				<td align="center">
					'. Adm::SwitchBtn('infoType',$row2['IT_ID'],$row2['IT_isUser'],'isUser') .','. Adm::SwitchBtn('infoType',$row2['IT_ID'],$row2['IT_isAdminUser'],'isAdminUser','isRunCode') .'
				</td>
				<td align="center">'. Adm::SwitchBtn('infoType',$row2['IT_ID'],$row2['IT_isMenu'],'isMenu') .'</td>
				<td align="center">'. Adm::SwitchBtn('infoType',$row2['IT_ID'],$row2['IT_isSubMenu'],'isSubMenu') .'</td>
				<td align="center" style="'. $app6StyleStr .'">'. Adm::SwitchBtn('infoType',$row2['IT_ID'],$row2['IT_isWap'],'isWap') .'</td>
				<td align="center">'. Adm::SwitchBtn('infoType',$row2['IT_ID'],$row2['IT_isHome'],'isHome') .','. $row2['IT_itemRank'] .'</td>
				<td align="center" style="'. $app6StyleStr .'">'. Adm::SwitchBtn('infoType',$row2['IT_ID'],$row2['IT_isWapHome'],'isWapHome') .','. $row2['IT_wapItemRank'] .'</td>
				<td align="center">'. $row2['IT_rank'] .'</td>
				<td align="center">'. Adm::SwitchBtn('infoType',$row2['IT_ID'],$row2['IT_state'],'state') .'</td>
				<td align="center">
					<img src="images/img_det.gif" style="cursor:pointer" onclick=\'window.open("'. $modeArr['hrefStr'] .'")\' alt="" />&ensp;&ensp;
					<img src="images/img_rev.gif" style="cursor:pointer;" onclick=\'document.location.href="infoType.php?mudi=rev&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&dataID='. $row2['IT_ID'] .'&backURL="+ encodeURIComponent(document.location.href)\' alt="修改" />&ensp;&ensp;
					<img src="images/img_del.gif" style="cursor:pointer;" onclick=\'if(confirm("确定删除？")==true){DataDeal.location.href="infoType_deal.php?mudi=del&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&theme='. urlencode($row2['IT_theme']) .'&dataID='. $row2['IT_ID'] .'"}\' alt="删除" />
				</td>
			</tr>
			<tbody>
			');
		}
		unset($show2exe);

	}
	unset($showexe);

	if ($infoTypeNum < $DB->GetOne('select count(IT_ID) from '. OT_dbPref .'infoType')){
		echo('
		<tr class="tabColor1">
			<td align="left" colspan="20" class="padd8">被遗弃的栏目</td>
		</tr>
		<tbody class="padd3">
		');
		$showexe=$DB->query('select * from '. OT_dbPref .'infoType where IT_ID not in ('. substr($infoTypeStr,1) .')');
		while ($row = $showexe->fetch()){
			$dataNum ++;

			$modeArr = InfoTypeMode($row['IT_mode'], $row['IT_showMode'], $row['IT_ID'], $row['IT_webID'], $row['IT_URL']);
			echo('
			<tbody class="tabBody padd3">
			<tr id="data'. $row['IT_ID'] .'" '. $bgcolor .'>
				<td align="center" class="selCheckbox"><input type="checkbox" name="selDataID[]" value="'. $row['IT_ID'] .'" /></td>
				<td align="center">'. $row['IT_ID'] .'</td>
				<td align="left">'. $row['IT_theme'] .'&ensp;<span id="infoType'. $row['IT_ID'] .'" class="font2_2"></span></td>
				<td align="center">'. $modeArr['modeCN'] .'</td>
				<td align="center">'. InfoTypeOpenMode($row['IT_openMode']) .'</td>
				<td align="center">
					'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isUser'],'isUser') .','. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isAdminUser'],'isAdminUser','isRunCode') .'
				</td>
				<td align="center">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isMenu'],'isMenu') .'</td>
				<td align="center">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isSubMenu'],'isSubMenu') .'</td>
				<td align="center" style="'. $app6StyleStr .'">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isWap'],'isWap') .'</td>
				<td align="center">'. $row['IT_rank'] .'</td>
				<td align="center">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isHome'],'isHome') .','. $row['IT_itemRank'] .'</td>
				<td align="center" style="'. $app6StyleStr .'">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_isWapHome'],'isWapHome') .','. $row['IT_itemRank'] .'</td>
				<td align="center">'. Adm::SwitchBtn('infoType',$row['IT_ID'],$row['IT_state'],'state') .'</td>
				<td align="center">
					<img src="images/img_det.gif" style="cursor:pointer" onclick=\'window.open("'. $modeArr['hrefStr'] .'")\' alt="" />&ensp;&ensp;
					<img src="images/img_rev.gif" class="pointer" onclick=\'document.location.href="infoType.php?mudi=rev&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&dataID='. $row['IT_ID'] .'&backURL="+ encodeURIComponent(document.location.href)\' alt="修改" />&ensp;&ensp;
					<img src="images/img_del.gif" class="pointer" onclick=\'if(confirm("确定删除？")==true){DataDeal.location.href="infoType_deal.php?mudi=del&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&theme='. urlencode($row['IT_theme']) .'&dataID='. $row['IT_ID'] .'"}\' alt="删除" />
				</td>
			</tr>
			</tbody>
			');
		}
		unset($showexe);
		echo('
		</tbody>
		');
	}
	if ($dataNum == 0){
		$skin->TableNoData('<span style="color:#000;">（如要栏目ID重置为1，请到【管理员专区】→【程序文件检查】-[SQL语句调试] 快捷指令：◆栏目ID重置为1）</span>');
	}
	echo('
	<tr class="tabColorB padd5">
		<td align="left" colspan="20">
			<input type="button" value="全选" class="tabBottomBtn allSel" onclick="AllSelBox()" />
			<input type="button" value="反选" class="tabBottomBtn revSel" onclick="RevSelBox()" />
			<input type="submit" value="提交" class="display" />
			&ensp;&ensp;
			<select id="moreSetTo" name="moreSetTo" onchange="MoreSetTo()" style="width:150px;">
				<option value="">选项批量设置...</option>
				<option value="isUser1" style="color:#0066CC;">前台投稿√</option>
				<option value="isUser0" style="color:#707070;">前台投稿ㄨ</option>
				<option value="isAdminUser1" style="color:#0066CC;">后台投稿√</option>
				<option value="isAdminUser0" style="color:#707070;">后台投稿ㄨ</option>
				<option value="isMenu1" style="color:#0066CC;">主导航√</option>
				<option value="isMenu0" style="color:#707070;">主导航ㄨ</option>
				<option value="isSubMenu1" style="color:#0066CC;">二级导航√</option>
				<option value="isSubMenu0" style="color:#707070;">二级导航ㄨ</option>
				<option value="isWap1" style="color:#0066CC;">WAP导航√</option>
				<option value="isWap0" style="color:#707070;">WAP导航ㄨ</option>
				<option value="isHome1" style="color:#0066CC;">PC首页栏目√</option>
				<option value="isHome0" style="color:#707070;">PC首页栏目ㄨ</option>
				<option value="isItemDate1" style="color:#0066CC;">PC首页栏目日期√</option>
				<option value="isItemDate0" style="color:#707070;">PC首页栏目日期ㄨ</option>
				<option value="isItemType1" style="color:#0066CC;">PC首页栏目分类√</option>
				<option value="isItemType0" style="color:#707070;">PC首页栏目分类ㄨ</option>
				<option value="isRightMenu0">PC列表二级导航：关闭</option>
				<option value="isRightMenu2">PC列表二级导航：一行1个</option>
				<option value="isRightMenu1">PC列表二级导航：一行2个</option>
				<option value="isRightMenu99">PC列表二级导航：作为菜单不显示</option>
				<option value="showMode7">PC列表显示模式：标题</option>
				<option value="showMode1">PC列表显示模式：标题+摘要</option>
				<option value="showMode2">PC列表显示模式：图+摘要1</option>
				<option value="showMode4">PC列表显示模式：图+摘要2</option>
				<option value="showMode3">PC列表显示模式：图+标题</option>
				<option value="showMode5">PC列表显示模式：分类列表</option>
				<option value="showMode6">PC列表显示模式：分类列表2</option>
				<option value="isWapHome1" style="color:#0066CC;">WAP首页栏目√</option>
				<option value="isWapHome0" style="color:#707070;">WAP首页栏目ㄨ</option>
				<option value="isWapHomeDate1" style="color:#0066CC;">WAP首页栏目日期√</option>
				<option value="isWapHomeDate0" style="color:#707070;">WAP首页栏目日期ㄨ</option>
				<option value="isWapHomeType1" style="color:#0066CC;">WAP首页栏目分类√</option>
				<option value="isWapHomeType0" style="color:#707070;">WAP首页栏目分类ㄨ</option>
				<option value="wapHomeMode7">WAP首页栏目显示模式：标题</option>
				<option value="wapHomeMode1">WAP首页栏目显示模式：标题+摘要</option>
				<option value="wapHomeMode2">WAP首页栏目显示模式：图+摘要1</option>
				<option value="wapHomeMode4">WAP首页栏目显示模式：图+摘要2</option>
				<option value="wapHomeMode3">WAP首页栏目显示模式：图+标题</option>
				<option value="isWapSubMenu0">WAP列表二级导航：关闭</option>
				<option value="isWapSubMenu1">WAP列表二级导航：一行1个</option>
				<option value="isWapSubMenu2">WAP列表二级导航：一行2个</option>
				<option value="isWapSubMenu3">WAP列表二级导航：一行3个</option>
				<option value="isWapSubMenu4">WAP列表二级导航：一行4个</option>
				<option value="isWapSubMenu99">WAP列表二级导航：作为菜单不显示</option>
				<option value="wapShowMode7">WAP列表显示模式：标题</option>
				<option value="wapShowMode1">WAP列表显示模式：标题+摘要</option>
				<option value="wapShowMode2">WAP列表显示模式：图+摘要1</option>
				<option value="wapShowMode4">WAP列表显示模式：图+摘要2</option>
				<option value="wapShowMode3">WAP列表显示模式：图+标题</option>
				<option value="placeMode0">额外显示位置：无</option>
				<option value="placeMode1">额外显示位置：会员中心 - 栏目文章【栏目】</option>
				<option value="placeMode2">额外显示位置：会员中心 - 栏目文章【子栏目】</option>
				<!-- <option value="placeMode50">额外显示位置：微信中心</option>
				<option value="placeMode51">额外显示位置：会员中心&微信中心</option> -->
				<option value="infoTypeMode_def">会员中心-栏目文章模式：默认</option>
				<option value="infoTypeMode_title">会员中心-栏目文章模式：标题</option>
				<option value="infoTypeMode_imgTitle">会员中心-栏目文章模式：上图+下标题</option>
				<option value="state1" style="color:#0066CC;">状态：显示√</option>
				<option value="state0" style="color:#707070;">状态：隐藏ㄨ</option>
			</select>
			<input type="hidden" id="moreSetToCN" name="moreSetToCN" value="" />

			&ensp;
			<select id="moreTxtSel" name="moreTxtSel" onchange="CheckMoreTxt();">
				<option value="">文本框批量设置成...</option>
				<option value="listMaxPage">静态列表页最大页码</option>
				<option value="isHomeImg">PC首页栏目图文数量</option>
				<option value="homeNum">PC首页栏目文章数量</option>
				<option value="showNum">PC列表页每页数量</option>
				<option value="subNewNum">PC列表页右侧最新文章数</option>
				<option value="subRecomNum">PC列表页右侧推荐文章数</option>
				<option value="subHotNum">PC列表页右侧热门文章数</option>
				<option value="wapHomeImgNum">WAP首页栏目图文数量</option>
				<option value="wapHomeNum">WAP首页栏目文章数量</option>
				<option value="wapShowNum">WAP列表页每页数量</option>
			</select>'.
			'<span id="moreTxtBox" style="display:none;">：<input type="text" id="moreTxtVal" name="moreTxtVal" style="width:60px;" /><input type="button" onclick="MoreTxtTo()" value="设置" /></span>

			&ensp;&ensp;&ensp;&ensp;
			<input type="button" value="批量统计栏目文章总数" onclick="MoreCountInfo()" />
			'. AppBase::InfoTypeStrBox1() .'
		</td>
	</tr>
	</form>
	</table>
	<div class="padd5 font2_2" style="color:red;">提醒：1、网站首页、留言板 菜单添加方式，新增栏目-模式。<br />　　　2、[首页栏目排序]仅针对电脑版和手机版的首页栏目，升序排序；如果[首页栏目排序]值相同，按照[排序]升序排列。</div>
	');

}


function InfoTypeOpenMode($str){
	switch ($str){
		case '_self':	return '<span class="font1_2d">默认</span>';
		case '_blank':	return '新窗口';
		default :		return $str;
	}
}


function InfoTypeMode($mode, $showMode, $id, $webID, $url){
	global $dbPathPart;

	$modeCN = $hrefStr = '';
	switch ($mode){
		case 'item':		$modeCN = '栏目'. ShowModeCN($showMode);	$hrefStr = '../news/?list_'. $id .'.html';	break;
		case 'url':			$modeCN = '外部链接';		$hrefStr = Url::ListUrl($mode,$url,0,0,$dbPathPart);		break;
		case 'web':			$modeCN = '单篇页';			$hrefStr = '../news/?web_'. $webID .'.html';				break;
		case 'topic':		$modeCN = '专题';			$hrefStr = '../news/?list_topic-'. $webID .'.html';			break;
		case 'taobaoke':	$modeCN = '淘客商品';		$hrefStr = '../goods/?list_'. $webID .'.html';				break;
		case 'idcPro':		$modeCN = 'IDC产品';		$hrefStr = Url::IdcProList($webID, 0, '../');				break;
		case 'domain':		$modeCN = '域名页';			$hrefStr = '../domain.php';									break;
		case 'domainHtml':	$modeCN = '域名静态页';		$hrefStr = '../domain.html';								break;
		case 'urlHome':		$modeCN = '网站首页';		$hrefStr = Url::ListUrl($mode,$url,0,0,$dbPathPart);		break;
		case 'urlMessage':	$modeCN = '留言板';			$hrefStr = Url::ListUrl($mode,$url,0,0,$dbPathPart);		break;
		case 'urlBbs':		$modeCN = '论坛';			$hrefStr = Url::ListUrl($mode,$url,0,0,$dbPathPart);		break;
		case 'urlGift':		$modeCN = '积分商城';		$hrefStr = Url::ListUrl($mode,$url,0,0,$dbPathPart);		break;
		case 'urlUserWork': $modeCN = '领工资';			$hrefStr = Url::ListUrl($mode,$url,0,0,$dbPathPart);		break;
		case 'urlQiandao':	$modeCN = '签到';			$hrefStr = Url::ListUrl($mode,$url,0,0,$dbPathPart);		break;
		case 'urlTag':		$modeCN = 'tag标签';		$hrefStr = Url::ListUrl($mode,$url,0,0,$dbPathPart);		break;
		default: 			$modeCN = '['. $mode .']';	$hrefStr = Url::ListUrl($mode,$url,0,0,$dbPathPart);		break;
	}

	return array('modeCN'=>$modeCN, 'hrefStr'=>$hrefStr);
}

function ShowModeCN($showMode){
	$retStr = '';
	switch ($showMode){
		case 1:		$retStr = '标+摘';	break;
		case 2:		$retStr = '图+摘1';	break;
		case 3:		$retStr = '图+标';	break;
		case 4:		$retStr = '图+摘2';	break;
		case 5:		$retStr = '分类';	break;
		case 6:		$retStr = '分类2';	break;
		case 7:		$retStr = '标题';	break;
	}
	if (strlen($retStr) > 0){
		return '<span style="color:#9a9999;">('. $retStr .')</span>';
	}
}

function PlaceModeCN($str){
	switch ($str){
		case 0:		return '';
		case 1:		return '会员-栏目';
		case 2:		return '会员-子栏目';
		case 50:	return '微信中心';
		case 51:	return '会员&微信中心';
		default :	return '['. $str .']';
	}
}
?>