<%@Page Language="C#" Inherits="IWMS.Admin.SetConfig" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<!--#include file="inc/tiny_mce.inc" -->
	<script type="text/javascript" src="inc/html_preview.js"></script>
	<script type="text/javascript" src="inc/md5.js"></script>
	<script type="text/javascript">
	<!--
	function checkpower(ele){
		iwms.ajSrc=ele;
		$.post('ajax.aspx',{act:'ajax',cmd:'serverSet'},function(r){
			var s="";
			if (!r.dir){
				s = "·网站目录aspnet用户无权建立目录<br/>";
			}
			if (!r.iis){
				s += "·从服务器80端口无法访问到本网站";
			}
			if (s.length>0){
				s = "由于以下原因无法生成静态网页：<br/>" + s;
			}else{
				s = "你的空间可以正常生成静态网页";
			}
			iwms.popMsg('server',ele,s);
			iwms.hideMsg('server',5000);
		},'json');
	}
	
	$(function(){
		spin.add([
			<%if(tab1.Visible){%>
			{input:'<%=postTitlePage.ClientID%>',min:1,max:500,readonly:1},
			{input:'<%=postPageSize.ClientID%>',min:1,max:500,readonly:1},
			{input:'<%=postReplySize.ClientID%>',min:1,max:500,readonly:1},
			{input:'<%=postInterval.ClientID%>',min:0,max:1000,step:5,readonly:1}
			<%}else if(tab2.Visible){%>
			{input:'<%=navBarCols.ClientID%>',min:1,max:100,readonly:1},
			{input:'<%=navCols.ClientID%>',min:1,max:20,readonly:1},
			{input:'<%=navCols2.ClientID%>',min:1,max:20,readonly:1}
			<%}else if(tab3.Visible){%>
			{input:'<%=pageSize.ClientID%>',min:1,max:500,readonly:1},
			{input:'<%=bindNum.ClientID%>',min:1,max:500,readonly:1},
			{input:'<%=searchInterval.ClientID%>',min:0}
			<%}else if(tab4.Visible){%>
			{input:'<%=regVMoney.ClientID%>',min:0},
			{input:'<%=regMark.ClientID%>',min:0},
			{input:'<%=memberMaxFriends.ClientID%>',min:0,max:500},
			{input:'<%=msgMaxLength.ClientID%>',min:50},
			{input:'<%=msgKeepNum.ClientID%>',min:0},
			{input:'<%=addVMoney.ClientID%>',min:0},
			{input:'<%=addMark.ClientID%>',min:0},
			{input:'<%=mark2Money.ClientID%>',min:1}
			<%}else if(tab5.Visible){%>
			{input:'<%=staticInterval.ClientID%>',min:30,max:2000,step:10,readonly:1}
			<%}%>
		]);
	});
	-->
	</script>
</asp:Content>
<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<form id="myForm" runat="server">
		<asp:ValidationSummary 
			 DisplayMode="BulletList" 
			 EnableClientScript="true"
			 ShowSummary="false"
			 ShowMessageBox="true"
			 HeaderText="请正确填写以下内容"
			 runat="server"/>
	
	
	<div class="mframe">
	<div style="float:right"><a href="http://www.iwms.net/help/" target="_blank"><img src="pic/admin_help.gif" alt="帮助" width="46" height="16"/></a></div>
	<div class="tabs" style="width:90%;">
		<asp:LinkButton CommandName="show" CommandArgument="1" OnCommand="tab_Command" CausesValidation="false" runat="server" id="link1" Text="系统设置"/>
		<asp:LinkButton CommandName="show" CommandArgument="2" OnCommand="tab_Command" CausesValidation="false" runat="server" id="link2" Text="界面显示"/>
		<asp:LinkButton CommandName="show" CommandArgument="3" OnCommand="tab_Command" CausesValidation="false" runat="server" id="link3" Text="内容相关"/>
		<asp:LinkButton CommandName="show" CommandArgument="4" OnCommand="tab_Command" CausesValidation="false" runat="server" id="link4" Text="会员相关"/>
		<asp:LinkButton CommandName="show" CommandArgument="5" OnCommand="tab_Command" CausesValidation="false" runat="server" id="link5" Text="空间与静态"/>
		<asp:LinkButton CommandName="show" CommandArgument="6" OnCommand="tab_Command" CausesValidation="false" runat="server" id="link6" Text="广告信息"/>
		<asp:LinkButton CommandName="show" CommandArgument="7" OnCommand="tab_Command" CausesValidation="false" runat="server" id="link7" Text="语言设置"/>
		<asp:LinkButton CommandName="show" CommandArgument="8" OnCommand="tab_Command" CausesValidation="false" runat="server" id="link8" Text="支付设置"/>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
	<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
	<asp:PlaceHolder id="tab1" runat="server">
		<fieldset>
			<legend>网站信息设置</legend>
		<table align="center" width="100%" cellspacing="1" cellpadding="3">
		<tr>
		<th width="200">网站名称：</th>
		<td>
			<asp:TextBox id="siteName" 
				Columns="30"
				runat="server"
				/>
		</td></tr>
		<tr>
		<th>网站网址：</th>
		<td>
			<asp:TextBox id="siteUrl" 
				Columns="30"
				runat="server"
				/>
		</td></tr>
		<tr>
		<th>网站Email：</th>
		<td>
			<asp:TextBox id="siteEmail" 
				Columns="30"
				runat="server"
				/>
		</td></tr>
		<tr>
		<th>首页名称：</th>
		<td>
			<asp:TextBox id="homeName" 
				Columns="30"
				runat="server"
				/>
		</td></tr>
		<tr>
		<th>首页地址：</th>
		<td>
			<asp:TextBox id="homeUrl" 
				Columns="30"
				runat="server"
				/>
		</td></tr>
		<tr><th valign="top">网站Logo：<br/>
			<asp:CheckBox id="logoHeredity" Text="应用到全站" Checked="true" runat="server"/>
		</th>
		<td>
			<asp:TextBox id="logo" TextMode="multiline" CssClass="mceEditor" runat="server"/>
		</td></tr>
		<tr><th valign="top">网站底部版权：
		</th>
		<td>
			<asp:TextBox id="footer" TextMode="multiline" CssClass="mceEditor" runat="server"/>
		</td></tr>
		<tr>
		<th>网站首页meta描述：</th>
		<td>
			<asp:TextBox id="metaDescription" 
				Columns="50"
				maxLength="250"
				runat="server"
				/>
			<asp:CheckBox id="metaDescriptionHeredity" Text="传递给所有分类" runat="server"/>
		</td></tr>
		<tr>
		<th>网站首页meta关键字：</th>
		<td>
			<asp:TextBox id="metaKeyword" 
				Columns="50"
				maxLength="250"
				runat="server"
				/>
			<asp:CheckBox id="metaKeywordHeredity" Text="传递给所有分类" runat="server"/>
		</td></tr>
		<tr><th>rss提供内容全文：</th>
		<td>
			<asp:RadioButtonList id="rssFullContent" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem value="0">是</asp:ListItem>
				<asp:ListItem value="1">否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr>
		<th>整合接口安全验证码：</th>
		<td>
			<asp:TextBox id="conformityCode" 
				Columns="35"
				maxLength="255"
				runat="server"
				/>
			<script type="text/javascript">
				function cCode()
				{
					var s = (new Date()).toGMTString();
					s += location.href;
					s += navigator.appVersion;
					document.getElementById("<%=conformityCode.ClientID%>").value = hex_md5(s);
				}
				function copyCcode()
				{
					var obj = document.getElementById("<%=conformityCode.ClientID%>");
					obj.focus();
					obj.select();
					document.execCommand("copy");
				}
				function clearCcode()
				{
					var obj = document.getElementById("<%=conformityCode.ClientID%>");
					obj.value="";
				}
			</script>
			<a href="javascript:cCode();">生成安全验证码</a> <a href="javascript:copyCcode();">复制</a> <a href="javascript:clearCcode();">清除</a>
		</td></tr>
		</table>
		</fieldset>
		
		<fieldset>
		<legend>留言讨论区设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">讨论区名称：</th>
		<td>
			<asp:TextBox id="postName"
				size="50"
				MaxLength="50"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="postName"
				Display="None"
				ErrorMessage="讨论区名称必须填写"
				runat="server"/>
		</td></tr>
		<tr><th>是否限会员发帖：</th>
		<td>
			<asp:RadioButtonList id="postMemberOnly" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem value="0">限制</asp:ListItem>
				<asp:ListItem value="1">不限</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>发帖是否需审核：</th>
		<td>
			<asp:RadioButtonList id="postCheck" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem value="0">需审核</asp:ListItem>
				<asp:ListItem value="1">不需审核</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>列表显示方式：</th>
		<td>
			<asp:RadioButtonList id="postListType" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem value="0">显示内容</asp:ListItem>
				<asp:ListItem value="1">只显示标题</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>列表页显示内容时每页帖数：</th>
		<td>
			<asp:TextBox id="postPageSize"
				size="4"
				MaxLength="4"
				Style="text-align:right"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="postPageSize"
				Display="None"
				ErrorMessage="显示内容时每页帖数必须填写"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="postPageSize"
				ValidationExpression="\d+"
				Display="None"
				ErrorMessage="显示内容时每页帖数应为数字"
				runat="server"/>
		</td></tr>
		<tr><th>列表页只显示标题时每页帖数：</th>
		<td>
			<asp:TextBox id="postTitlePage"
				size="4"
				MaxLength="4"
				Style="text-align:right"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="postTitlePage"
				Display="None"
				ErrorMessage="只显示标题时每页帖数必须填写"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="postTitlePage"
				ValidationExpression="\d+"
				Display="None"
				ErrorMessage="只显示标题时每页帖数应为数字"
				runat="server"/>
			
		</td></tr>
		<tr><th>每页显示回复数：</th>
		<td>
			<asp:TextBox id="postReplySize"
				size="4"
				MaxLength="4"
				Style="text-align:right"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="postReplySize"
				Display="None"
				ErrorMessage="每页回复数必须填写"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="postReplySize"
				ValidationExpression="\d+"
				Display="None"
				ErrorMessage="每页回复数应为数字"
				runat="server"/>
		</td></tr>
		<tr><th>内容字数限制为：</th>
		<td>
			<asp:TextBox id="postMaxLength"
				size="5"
				MaxLength="5"
				Style="text-align:right"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="postMaxLength"
				Display="None"
				ErrorMessage="内容字数限制必须填写"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="postMaxLength"
				ValidationExpression="\d+"
				Display="None"
				ErrorMessage="内容字数限制应为数字"
				runat="server"/>
		</td></tr>
		<tr><th>发帖时间间隔限制：</th>
		<td>
			<asp:TextBox id="postInterval"
				size="4"
				MaxLength="4"
				Style="text-align:right"
				runat="server"/> 秒
			<asp:RequiredFieldValidator
				ControlToValidate="postInterval"
				Display="None"
				ErrorMessage="发帖时间间隔限制必须填写"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="postInterval"
				ValidationExpression="\d+"
				Display="None"
				ErrorMessage="发帖时间间隔限制应为数字"
				runat="server"/>
		</td></tr>
		<tr><th valign="top">讨论区与评论过滤词：<br/>
			<span class="explain">格式为“过滤词|替换词”，多个用英文逗号分隔</span>
		</th>
		<td>
			<asp:TextBox id="postInvalidWords" TextMode="multiline" Columns="40" Rows="3" runat="server"/> 
		</td></tr>
		</table>
		</fieldset>	
		<fieldset>
		
		<legend>友情链接设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">申请友情链接限制：</th>
		<td>
			<asp:RadioButtonList id="linkAllowApply" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem value="0">不可申请</asp:ListItem>
				<asp:ListItem value="1">限会员申请</asp:ListItem>
				<asp:ListItem value="2">不必注册可申请</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>链接logo宽度：</th>
		<td>
			<asp:TextBox id="linkLogoWidth"
				size="4"
				MaxLength="4"
				Style="text-align:right"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="linkLogoWidth"
				Display="None"
				ErrorMessage="链接logo宽度必填"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="linkLogoWidth"
				ValidationExpression="\d+"
				Display="None"
				ErrorMessage="链接logo宽度应为数字"
				runat="server"/>
			
		</td></tr>
		<tr><th>链接logo高度：</th>
		<td>
			<asp:TextBox id="linkLogoHeight"
				size="4"
				MaxLength="4"
				Style="text-align:right"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="linkLogoHeight"
				Display="None"
				ErrorMessage="链接logo高度必填"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="linkLogoHeight"
				ValidationExpression="\d+"
				Display="None"
				ErrorMessage="链接logo高度应为数字"
				runat="server"/>
			(0为不限制)
		</td></tr>
		<tr><th>链接申请要求：</th>
		<td>
			<asp:TextBox id="linkRequest"
				TextMode="Multiline"
				Rows="3"
				Columns="40"
				runat="server"/>
		</td></tr>
		</table>
		</fieldset>
	</asp:PlaceHolder>
		
		
	<asp:PlaceHolder id="tab2" runat="server">
		<fieldset>
		<legend>网站界面设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">
			网站风格： <span class="explain"><a href="http://www.iwms.net/buy/resources.aspx?type=2" target="_blank">更多风格...</a></span>
		</th>
		<td>
			<asp:DropDownList id="styleID"
				runat="server"
				/>
			<a href="#" onclick="previewStyle()">预览</a>
			<a href="admin_style.aspx" target="_blank">设计</a>
			<asp:CheckBox id="styleIdHeredity" Text="传递给所有分类" runat="server"/>
			<script type="text/javascript">
				function previewStyle(){
					var sid=$("#<%=styleID.ClientID%>").val();
					window.open("default.aspx?styleid="+sid);
				}
			</script>
		</td></tr>
		<tr><th>
			首页模板： <span class="explain"><a href="http://www.iwms.net/buy/resources.aspx?type=1" target="_blank">更多模板...</a></span>
		</th>
		<td>
			<asp:DropDownList id="templateIndex"
				runat="server"/>
			
		</td></tr>
		<tr><th>分类页模板：</th>
		<td>
			<asp:DropDownList id="templateList"
				runat="server"/>
			<asp:CheckBox id="templateListHeredity" Text="传递给所有分类" runat="server"/>
		</td></tr>
		<tr><th>新闻页模板：</th>
		<td>
			<asp:DropDownList id="templateShow"
				runat="server"/>
			<asp:CheckBox id="templateShowHeredity" Text="传递给所有分类" runat="server"/>
		</td></tr>
		<tr class="trSplit"><th>导航条每行显示分类数：</th>
		<td>
			<asp:TextBox id="navBarCols"
				size="3"
				MaxLength="3"
				Style="text-align:right"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="navBarCols"
				ValidationExpression="[1-9]\d*"
				Display="None"
				ErrorMessage="导航条每行分类数必须正整数"
				runat="server"/>
		</td></tr>
		<tr><th>首页网站导航每行一级分类数：</th>
		<td>
			<asp:TextBox id="navCols"
				size="3"
				MaxLength="3"
				Style="text-align:right"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="navCols"
				ValidationExpression="[1-9]\d*"
				Display="None"
				ErrorMessage="首页网站导航每行一级分类数必须正整数"
				runat="server"/>
		</td></tr>
		<tr><th>首页网站导航每行二级分类数：</th>
		<td>
			<asp:TextBox id="navCols2"
				size="3"
				MaxLength="3"
				Style="text-align:right"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="navCols2"
				ValidationExpression="[1-9]\d*"
				Display="None"
				ErrorMessage="首页网站导航每行二级分类数必须正整数"
				runat="server"/>
		</td></tr>
		<tr><th>是否显示分类下拉菜单：</th>
		<td>
			<asp:RadioButtonList id="popMenu" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>用户可选简/繁体显示：</th>
		<td>
			<asp:RadioButtonList id="userConvBig5" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		</table>
		</fieldset>
		
	</asp:PlaceHolder>
	
	<asp:PlaceHolder id="tab3" runat="server">
		<fieldset>
		<legend>新闻相关设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr>
		<th width="200">每页显示新闻数：</th>
		<td>
			<asp:TextBox id="pageSize" 
				Columns="3"
				MaxLength="2"
				Style="text-align:right"
				runat="server"
				/>
			<asp:CheckBox id="pageSizeHeredity" Text="传递给所有分类" runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="pageSize"
				ErrorMessage="分页大小必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="pageSize"
				ValidationExpression="\d+"
				ErrorMessage="分页大小只能是数字"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><th>新闻打开方式：</th>
		<td>
			<asp:RadioButtonList id="openNews" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>新窗口</asp:ListItem>
				<asp:ListItem>本窗口</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
	
		<tr><th>自动截取简介最大长度：</th>
		<td>
			<asp:TextBox id="summaryLength"
				size="5"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="summaryLength"
				ErrorMessage="自动截取简介长度必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="summaryLength"
				ValidationExpression="\d+"
				ErrorMessage="自动截取简介长度只能是数字"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><th>新闻标题缓存时长：</th>
		<td>
			<asp:TextBox id="cacheTime" size="5" MaxLength="5" Style="text-align:right" runat="server"/> 秒
			<asp:RequiredFieldValidator
				ControlToValidate="cacheTime"
				ErrorMessage="缓存时长必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="cacheTime"
				ValidationExpression="\d+"
				ErrorMessage="缓存时长只能是数字"
				Display="None"
				runat="server"/>
			 <span class="explain">各页面头条或排行新闻缓存时间</span>
		</td></tr>
		<tr><th>站外链接新闻使用原始Url：</th>
		<td>
			<asp:RadioButtonList id="directOut" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>　
		</td></tr>
		<tr class="trSplit"><th>分类页简介显示新闻信息：</th>
		<td>
			<asp:CheckBox id="showDate" Text="日期" runat="server"/>
			<asp:CheckBox id="showAuthor" Text="作者" runat="server"/>
			<asp:CheckBox id="showHits" Text="点击数" runat="server"/>&nbsp;
		</td></tr>
		<tr><th>分类页每几条新闻加分隔行：</th>
		<td>
			<asp:DropDownList id="listSpaceLines"
				runat="server">
				<asp:ListItem value="0">不分隔</asp:ListItem>
				<asp:ListItem value="4">每4条</asp:ListItem>
				<asp:ListItem value="5">每5条</asp:ListItem>
				<asp:ListItem value="6">每6条</asp:ListItem>
				<asp:ListItem value="7">每7条</asp:ListItem>
				<asp:ListItem value="8">每8条</asp:ListItem>
			</asp:DropDownList>
		</td></tr>
		<tr><th>分类页新闻排序方式：</th>
		<td>
			<asp:DropDownList id="listDesc" 
				runat="server">
				<asp:ListItem>新添加的在前</asp:ListItem>
				<asp:ListItem>新添加的在后</asp:ListItem>
			</asp:DropDownList>
		</td></tr>
		<tr><th>新闻内容乱序-反采集：</th>
		<td>
			<asp:RadioButtonList id="obfuscateContent" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			<span class="explain">新闻内容中需使用多次中文句号才可生效</span>
		</td></tr>
		</table>
		</fieldset>
		
		<fieldset>
		<legend>内容显示设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">标题后是否显示new图标：</th>
		<td>
			<asp:RadioButtonList id="showNew" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>　
			图标1为<asp:TextBox id="newHours1" size="3" MaxLength="3" runat="server"/>小时内更新，
			<asp:RequiredFieldValidator
				ControlToValidate="newHours1"
				ErrorMessage="new图片1小时数必须填写"
				Display="None"
				runat="server"/>
			图标2为<asp:TextBox id="newHours2" size="3" MaxLength="3" runat="server"/>小时内更新，
			<asp:RequiredFieldValidator
				ControlToValidate="newHours2"
				ErrorMessage="new图片2小时数必须填写"
				Display="None"
				runat="server"/>
			图标3为<asp:TextBox id="newHours3" size="3" MaxLength="3" runat="server"/>小时内更新
			<asp:RequiredFieldValidator
				ControlToValidate="newHours3"
				ErrorMessage="new图片3小时数必须填写"
				Display="None"
				runat="server"/>
			<asp:CompareValidator
			     ControlToValidate="newHours2"
			     ControlToCompare="newHours1"  
			     Type="Integer" 
			     Operator="GreaterThan" 
			     ErrorMessage="new图片2的小时数应大于图片1"
				Display="None"
			     runat="server" />
			<asp:CompareValidator
			     ControlToValidate="newHours3"
			     ControlToCompare="newHours2"  
			     Type="Integer" 
			     Operator="GreaterThan" 
			     ErrorMessage="new图片3的小时数应大于图片2"
				Display="None"
			     runat="server" />
		</td></tr>
		<tr><th>标题图片大小：</th>
		<td>
			宽度 <asp:TextBox id="titleImgWidth"
				size="5"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="titleImgWidth"
				ErrorMessage="标题图片宽度必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="titleImgWidth"
				ValidationExpression="\d+"
				ErrorMessage="标题图片宽度只能是数字"
				Display="None"
				runat="server"/>
			高度 <asp:TextBox id="titleImgHeight"
				size="5"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="titleImgHeight"
				ErrorMessage="标题图片高度必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="titleImgHeight"
				ValidationExpression="\d+"
				ErrorMessage="标题图片高度只能是数字"
				Display="None"
				runat="server"/>
			<asp:CheckBox id="titleImgCrop" Text="自动生成标题图片" runat="server"/>
		</td></tr>
		<tr><th>头条标题图片大小：</th>
		<td>
			宽度 <asp:TextBox id="headlineImgWidth"
				size="5"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="headlineImgWidth"
				ErrorMessage="头条标题图片宽度必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="headlineImgWidth"
				ValidationExpression="\d+"
				ErrorMessage="头条标题图片宽度只能是数字"
				Display="None"
				runat="server"/>
			高度 <asp:TextBox id="headlineImgHeight"
				size="5"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="headlineImgHeight"
				ErrorMessage="头条标题图片高度必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="headlineImgHeight"
				ValidationExpression="\d+"
				ErrorMessage="头条标题图片高度只能是数字"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><th>图片简介显示时图片位置：</th>
		<td>
			<asp:DropDownList id="picAlign"
				runat="server">
				<asp:ListItem value="left" >居左</asp:ListItem>
				<asp:ListItem value="right" >居右</asp:ListItem>
			</asp:DropDownList>
		</td></tr>
		<tr class="trSplit"><th>首页分类栏目新闻条数：</th>
		<td>
			<asp:TextBox id="bindNum"
				size="3"
				MaxLength="2"
				Style="text-align:right"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="bindNum"
				ErrorMessage="分类栏目新闻数必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="bindNum"
				ValidationExpression="\d{1,2}"
				ErrorMessage="分类栏目新闻数只能是数字"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><th valign="top">
			显示在首页的分类栏目：<br/>
			<span class="explain">左侧为显示在首页分类栏目</span>
		</th>
		<td>
			<input type="hidden" id="bindSorts" value="" runat="server"/>
			<div>
				<div id="bCon1" style="width:200px;height:160px;overflow-y:scroll;float:left"></div>
				<div style="width:30px;float:left;height:160px;"></div>
				<div id="bCon2" style="margin-left:20px;width:200px;height:160px;overflow-y:scroll;"></div>
			</div>
			<script type="text/javascript" src="inc/admin_sort.js"></script>
			<script type="text/javascript">
			var s_a=<asp:Literal id="ltBindSorts" runat="server"/>
			initBindSort('<%=bindSorts.ClientID%>');
			</script>
		</td></tr>
		</table>
		</fieldset>
		
		<fieldset>
		<legend>图片水印设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">上传图片加水印：</th>
		<td>
			<asp:RadioButtonList id="imgWithMark" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>水印图片地址：</th>
		<td>
			<asp:TextBox id="markLoc"
				size="50"
				MaxLength=250
				runat="server"/>
		</td></tr>
		<tr><th>水印在图片中位置：</th>
		<td>
			<asp:DropDownList id="markAlign"
				runat="server">
				<asp:ListItem value="LT">左上</asp:ListItem>
				<asp:ListItem value="LB">左下</asp:ListItem>
				<asp:ListItem value="RT">右上</asp:ListItem>
				<asp:ListItem value="RB" Selected="true">右下</asp:ListItem>
				<asp:ListItem value="CT">居中</asp:ListItem>
			</asp:DropDownList>
		</td></tr>
		</table>
		</fieldset>
	
		
		<fieldset>
		<legend>下载相关设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">软件上传目录：</th>
		<td>
			<asp:TextBox id="softPath"
				size="10"
				runat="server"
				/>
			<asp:RequiredFieldValidator
				ControlToValidate="softPath"
				ErrorMessage="软件上传目录必须填写"
				Display="None"
				runat="server"/>
			/
			<asp:DropDownList id="softDateFolder"
				runat="server">
				<asp:ListItem value="yyyy-MM">2006-07</asp:ListItem>
				<asp:ListItem value="yyyyMM">200607</asp:ListItem>
				<asp:ListItem value="yyyy-MM\/dd">2006-07/08</asp:ListItem>
				<asp:ListItem value="yyyyMM\/dd">200607/08</asp:ListItem>
				<asp:ListItem value="yyyy\/MM">2006/07</asp:ListItem>
				<asp:ListItem value="yyyy\/MM\/dd">2006/07/08</asp:ListItem>
			</asp:DropDownList>
			<span class="explain">以2006年7月8日为例</span>
		</td></tr>
		<tr><th>软件运行环境：</th>
		<td>
			<asp:TextBox id="softEnviroment" size="60" runat="server"/>
			<span class="explain">多个用,分隔</span>
		</td></tr>
		<tr><th>软件授权形式：</th>
		<td>
			<asp:TextBox id="softLicense" size="60" runat="server"/>
			<span class="explain">多个用,分隔</span>
		</td></tr>
		<tr><th>软件默认下载点：</th>
		<td>
			<asp:TextBox id="softPoint" size="60" runat="server"/>
			<span class="explain">多个用,分隔</span>
		</td></tr>
		</table>
		</fieldset>	
		
		<fieldset>
		<legend>日期显示格式</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">新闻日期显示格式：</th>
		<td>
			<asp:TextBox id="dateFormat" size="15" MaxLength="20" runat="server"/>
			 (yyyy年,MM月,dd日,HH时,mm分)
		</td></tr>
		<tr><th>当日新闻日期显示格式：</th>
		<td>
			<asp:TextBox id="dateFormatToday" size="15" MaxLength="20" runat="server"/>
		</td></tr>
		<tr><th>昨日新闻日期显示格式：</th>
		<td>
			<asp:TextBox id="dateFormatYestoday" size="15" MaxLength="20" runat="server"/>
		</td></tr>
		<tr><th>本年新闻日期显示格式：</th>
		<td>
			<asp:TextBox id="dateFormatThisYear" size="15" MaxLength="20" runat="server"/>
		</td></tr>
		<tr><th>新闻内日期显示格式：</th>
		<td>
			<asp:TextBox id="dateFormatShow" size="15" MaxLength="20" runat="server"/>
		</td></tr>
		</table>
		</fieldset>
	
		<fieldset>
		<legend>自动下载设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">自动下载新闻内图片：</th>
		<td>
			<asp:RadioButtonList id="downImage" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			<span class="explain">需服务器IIS能访问网络，内网可能需设代理</span>
		</td></tr>
		<tr><th>自动下载图片同时下载Flash：</th>
		<td>
			<asp:RadioButtonList id="downSwf" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			<span class="explain">flash通常比较大，可能会使新闻添加时间变长甚至无法下载）</span>
		</td></tr>
		<tr><th>不下载图片的服务器：</th>
		<td>
			<asp:TextBox id="localDomains"
				size="50"
				MaxLength="250"
				runat="server"/>
		</td></tr>
		</table>
		</fieldset>
		
		<fieldset>
		<legend>搜索相关设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">可搜索内容：</th>
		<td>
			<asp:CheckBoxList id="searchCol" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem value="title">标题</asp:ListItem>
				<asp:ListItem value="content">内容</asp:ListItem>
				<asp:ListItem value="author">作者</asp:ListItem>
			</asp:CheckBoxList>
		</td></tr>
		<tr><th>是否限会员搜索：</th>
		<td>
			<asp:RadioButtonList id="memberSearchOnly" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>搜索间隔时间：</th>
		<td>
			<asp:TextBox id="searchInterval"
				size="3"
				Style="text-align:right"
				MaxLength="5"
				runat="server"/> 秒
		</td></tr>
		<tr><th>默认搜索时间范围：</th>
		<td>
			<asp:DropDownList id="searchSinceYear"
				runat="server">
				<asp:ListItem value="0">&nbsp;</asp:ListItem>
				<asp:ListItem value="1">1</asp:ListItem>
				<asp:ListItem value="2">2</asp:ListItem>
				<asp:ListItem value="3">3</asp:ListItem>
				<asp:ListItem value="4">4</asp:ListItem>
				<asp:ListItem value="5">5</asp:ListItem>
			</asp:DropDownList>年
			<asp:DropDownList id="searchSinceMonth"
				runat="server">
				<asp:ListItem value="0">&nbsp;</asp:ListItem>
				<asp:ListItem value="1">1</asp:ListItem>
				<asp:ListItem value="2">2</asp:ListItem>
				<asp:ListItem value="3">3</asp:ListItem>
				<asp:ListItem value="4">4</asp:ListItem>
				<asp:ListItem value="5">5</asp:ListItem>
				<asp:ListItem value="6">6</asp:ListItem>
				<asp:ListItem value="7">7</asp:ListItem>
				<asp:ListItem value="8">8</asp:ListItem>
				<asp:ListItem value="9">9</asp:ListItem>
				<asp:ListItem value="10">10</asp:ListItem>
				<asp:ListItem value="11">11</asp:ListItem>
			</asp:DropDownList>月前
			
			至今
		</td></tr>
		<asp:PlaceHolder id="ph_fulltext" runat="server">
		<tr><th>是否使用全文检索：</th>
		<td>
			<asp:RadioButtonList id="sqlFulltext" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			<span class="explain"><a href="http://www.iwms.net/n1771c18.aspx" target="_blank">如何启用全文索引</a></span>
		</td></tr>
		</asp:PlaceHolder>
		</table>
		</fieldset>
	
	</asp:PlaceHolder>
	
	<asp:PlaceHolder id="tab4" runat="server">
		<fieldset>
		<legend>会员相关设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">是否暂停会员注册：</th>
		<td>
			<asp:RadioButtonList id="memberRegStop" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>会员注册默认会员组：</th>
		<td>
			<asp:CheckBoxList id="regGroup"
				RepeatColumns="4"
				RepeatDirection="Horizontal"
				RepeatLayout="Table"
				runat="server">
			</asp:CheckBoxList>
		</td></tr>
		<tr><th>注册会员名长度限制：</th>
		<td>
			大于 <asp:TextBox id="userNameMin" size="2" runat="server"/> 小于 <asp:TextBox id="userNameMax" size="2" runat="server"/>
		</td></tr>
		<tr><th valign="top">注册会员名不可包含字符：<br/>
			<span class="explain">英文逗号分隔</span>
		</th>
		<td>
			<asp:TextBox TextMode="multiline" id="nameInvalidWord" Columns="40" Rows="3" runat="server"/>
		</td></tr>
		<tr><th>会员注册验证邮箱：</th>
		<td>
			<asp:RadioButtonList id="memberRegVerifyMail" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			<span class="explain">必须填写smtp服务器才可用</span>
		</td></tr>
		<tr><th>会员注册是否审核：</th>
		<td>
			<asp:RadioButtonList id="memberCheck" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th valign="top">暂停会员注册说明：<br/>
		
		</th>
		<td>
			<asp:TextBox id="memberRegStopWords" TextMode="multiline" Columns="40" Rows="3" runat="server"/>
		</td></tr>
		<tr><th>会员添加好友上限数：</th>
		<td>
			<asp:TextBox id="memberMaxFriends"
				size="4"
				Style="text-align:right"
				runat="server">
			</asp:TextBox>
		</td></tr>
		<tr><th>会员间消息保留数：</th>
		<td>
			<asp:TextBox id="msgKeepNum"
				size="4"
				Style="text-align:right"
				runat="server">
			</asp:TextBox>
		</td></tr>	
		<tr><th>会员消息字数限制：</th>
		<td>
			<asp:TextBox id="msgMaxLength"
				size="4"
				Style="text-align:right"
				runat="server">
			</asp:TextBox>
		</td></tr>
		<tr><th valign="top">
			非会员可推荐新闻分类：<br/>
			<span class="explain">按ctrl多选或取消选择</span>
		</th>
		<td>
			<asp:ListBox id="notRegAllowSorts"
				Rows="5"
				SelectionMode="Multiple"
				runat="server"/>
			<script type="text/javascript">
			function setOptionColor()
			{
				var obj=document.getElementById("<%=notRegAllowSorts.ClientID%>");
				for (var i=obj.options.length-1;i>=0;i--)
				{
					var id = parseInt(obj.options[i].value);
					if (id==0)
					{
						obj.options[i].style.color="gray";
					}
				}
			}
			setOptionColor();
			</script>
		</td></tr>
		<tr><th>推荐新闻不可包含字符：</th>
		<td>
			<asp:TextBox id="newsInvalidWord" size=40 runat="server"/>
		</td></tr>
		</table>
		</fieldset>
		
		<fieldset>
		<legend>评论相关设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">限会员发表评论：</th>
		<td>
			<asp:RadioButtonList id="remarkMemberOnly" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>评论是否审核：</th>
		<td>
			<asp:RadioButtonList id="remarkCheck" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>发表评论间隔时间：</th>
		<td>
			<asp:TextBox id="remarkInterval"
				size="3"
				MaxLength="2"
				Style="text-align:right"
				runat="server"/> 秒
			<asp:RequiredFieldValidator
				ControlToValidate="remarkInterval"
				ErrorMessage="发表评论间隔必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="remarkInterval"
				ValidationExpression="\d{1,3}"
				ErrorMessage="发表评论间隔只能是数字"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><th>评论字数限制：</th>
		<td>
			<asp:TextBox id="remarkSize" size="5" runat="server"/> 字,最多5000字
			<asp:RangeValidator
		           ControlToValidate="remarkSize"
		           MinimumValue="1"
		           MaximumValue="5000"
		           Type="Integer"
		           Display="None"
		           ErrorMessage="评论字数应为1到5000的数字"
		           runat="server"/>
		</td></tr>
		</table>
		</fieldset>
	</asp:PlaceHolder>
	
		
	<asp:PlaceHolder id="tab5" runat="server">
		<fieldset>
		<legend>空间相关设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr><th width="200">启用网页Gzip压缩<span class="explain">限aspx</span>：</th>
		<td>
			<asp:RadioButtonList id="gzipCompress" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			| 压缩静态文件：
			<asp:CheckBoxList id="gzipStatic" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem value="js">js脚本</asp:ListItem>
				<asp:ListItem value="jpg">jpg图片</asp:ListItem>
				<asp:ListItem value="gif">gif图片</asp:ListItem>
				<asp:ListItem value="swf">flash文件</asp:ListItem>
				<asp:ListItem value="css">css样式表</asp:ListItem>
			</asp:CheckBoxList>
			<br/>
			<span class="explain">启用静态文件压缩将使相应格式文件的防盗链失效)</span>
		</td></tr>
		<tr><th>使用google提供的jQuery：</th>
		<td>
			<asp:RadioButtonList id="googleApis" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			<br/>
			<span class="explain"><a href="http://code.google.com/apis/ajaxlibs/" target="_blank">google AJAX Libraries</a>提供的CDN jQuery文件可减少服务器流量提高访问者浏览速度,只可在internet使用</span>
		</td></tr>
		<tr><th>显示执行性能数据：<span class="explain">静态无效</span></th>
		<td>
			<asp:RadioButtonList id="dispPerformance" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr class="trSplit"><th>启用静态页面模拟： <span class="explain"><a href="http://www.iwms.net/n1037c48.aspx" target="_blank">帮助</a></span>
		</th>
		<td>
			<asp:RadioButtonList id="urlRewrite" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			&nbsp; 模拟静态页面类型：
			<asp:DropDownList id="urlRewriteExt"
				runat="server">
				<asp:ListItem value="aspx" >aspx</asp:ListItem>
				<asp:ListItem value="html" >html</asp:ListItem>
				<asp:ListItem value="htm" >htm</asp:ListItem>
				<asp:ListItem value="shtml" >shtml</asp:ListItem>
				<asp:ListItem value="shtm" >shtm</asp:ListItem>
			</asp:DropDownList>
		</td></tr>
		<tr><th>生成静态页面：<span class="explain"><a href="###" onclick="javascript:checkpower(this);">测试空间权限</a></span></th>
		<td>
			<asp:RadioButtonList id="makeStatic" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			（<a href="http://www.iwms.net/n1614c48.aspx" target="_blank">帮助</a>）
			生成速度：每分钟
			<asp:TextBox id="staticInterval" size="4" runat="server"/> 页
			<span class="explain">除非你使用独立主机否则请别设置到200以上</span>
		</td></tr>
		<tr><th>发布内容同时生成：</th>
		<td>
			首页静态页面<asp:RadioButtonList id="homeStatic" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			　相关新闻静态页面
			<asp:RadioButtonList id="relateStatic" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>发表评论重生成新闻页面：</th>
		<td>
			<asp:RadioButtonList id="remarkStatic" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>静态页面目录：</th>
		<td>
			<asp:TextBox id="sDir"
				size="10"
				runat="server"
				/>
			<asp:RegularExpressionValidator
				runat="server"
				ControlToValidate="sDir"
				ValidationExpression="(([a-z0-9A-Z][\w_\-]*[a-z0-9A-Z]|\w+)/?)+"
				ErrorMessage="静态页面目录只能由字母数字_-/构成"
				Display="None" />
			<span class="explain">用于存放专题静态页</span>
		</td></tr>
		<tr><th>内容静态页放分类静态目录下：</th>
		<td>
			<asp:RadioButtonList id="staticInSortDir" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
		</td></tr>
		<tr><th>内容页静态目录结构：</th>
		<td>
			<asp:DropDownList id="newsDateFolder"
				runat="server">
				<asp:ListItem value="yyyy-MM">2006-07</asp:ListItem>
				<asp:ListItem value="yyyyMM">200607</asp:ListItem>
				<asp:ListItem value="yyyy-MM\/dd">2006-07/08</asp:ListItem>
				<asp:ListItem value="yyyyMM\/dd">200607/08</asp:ListItem>
				<asp:ListItem value="yyyy\/MM">2006/07</asp:ListItem>
				<asp:ListItem value="yyyy\/MM\/dd">2006/07/08</asp:ListItem>
				<asp:ListItem value="">不分日期存放</asp:ListItem>
			</asp:DropDownList>
			<span class="explain">以2006年7月8日为例,保存新闻静态页于分类目录下</span>
		</td></tr>
		<tr><th>静态首页文件名：</th>
		<td>
			<asp:DropDownList id="defaultFile"
				runat="server">
				<asp:ListItem value="default" >default</asp:ListItem>
				<asp:ListItem value="index" >index</asp:ListItem>
				<asp:ListItem value="home" >home</asp:ListItem>
			</asp:DropDownList>
			<span class="explain">请设置为IIS默认文档名,一般为Default.htm</span>
		</td></tr>
		<tr><th>静态页面扩展名：</th>
		<td>
			<asp:DropDownList id="sExt"
				runat="server">
				<asp:ListItem value="htm" >htm</asp:ListItem>
				<asp:ListItem value="html" >html</asp:ListItem>
				<asp:ListItem value="shtml" >shtml</asp:ListItem>
				<asp:ListItem value="shtm" >shtm</asp:ListItem>
				<asp:ListItem value="asp" >asp</asp:ListItem>
			</asp:DropDownList>
		</td></tr>
		<tr class="trSplit"><th>文件上传目录：</th>
		<td>
			<asp:TextBox id="uploadPath"
				size="10"
				runat="server"
				/>
			<asp:RequiredFieldValidator
				ControlToValidate="uploadPath"
				ErrorMessage="上传目录必须填写"
				Display="None"
				runat="server"/>
			/
			<asp:DropDownList id="uploadDateFolder"
				runat="server">
				<asp:ListItem value="yyyy-MM">2006-07</asp:ListItem>
				<asp:ListItem value="yyyyMM">200607</asp:ListItem>
				<asp:ListItem value="yyyy-MM\/dd">2006-07/08</asp:ListItem>
				<asp:ListItem value="yyyyMM\/dd">200607/08</asp:ListItem>
				<asp:ListItem value="yyyy\/MM">2006/07</asp:ListItem>
				<asp:ListItem value="yyyy\/MM\/dd">2006/07/08</asp:ListItem>
			</asp:DropDownList>
			<span class="explain">以2006年7月8日为例</span>
		</td></tr>
		<tr><th>可上传文件类型：</th>
		<td>
			<asp:TextBox id="uploadType"
				size="40"
				runat="server"
				/>
			<asp:RequiredFieldValidator
				ControlToValidate="uploadType"
				ErrorMessage="可上传文件类型必须填写"
				Display="None"
				runat="server"/>
		</td></tr>
		<tr><th>上传文件大小限制：</th>
		<td>
			<asp:TextBox id="uploadSize"
				size="6"
				Style="text-align:right"
				runat="server"
				/> KBytes
			<asp:RequiredFieldValidator
				ControlToValidate="uploadSize"
				ErrorMessage="上传文件大小限制必须填写"
				Display="None"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="uploadSize"
				ValidationExpression="\d+"
				ErrorMessage="上传文件大小限制只能是数字"
				Display="None"
				runat="server"/>
				<span class="explain">大于2m请同时修改web.config中的maxRequestLength="2048"</span>
		</td></tr>
		<tr class="trSplit"><th>启用防盗链：</th>
		<td>
			<asp:RadioButtonList id="antiLeechEnabled" RepeatDirection="Horizontal" RepeatLayout="Flow"
				runat="server">
				<asp:ListItem>是</asp:ListItem>
				<asp:ListItem>否</asp:ListItem>
			</asp:RadioButtonList>
			<span class="explain">服务器IIS需添加文件类型映射</span>
		</td></tr>
		<tr><th>防盗链文件类型：
		</th>
		<td>
			<asp:TextBox id="antiLeechExts"
				Columns="20"
				runat="server"
				/>
			（多种类型“,”分隔）
		</td></tr>
		<tr><th>防盗链不限制域名：
		</th>
		<td>
			<asp:TextBox id="antiLeechDomains"
				Columns="40"
				runat="server"
				/>
			<span class="explain">多个域名“,”分隔,一站多域名时添加</span>
		</td></tr>
		<tr><th>限制访问IP：
		</th>
		<td>
			<asp:TextBox id="antiLeechBanIps"
				Columns="40"
				runat="server"
				/>
			<span class="explain">多个IP“,”分隔,填对方服务器IP用于防采集</span>
		</td></tr>
		<tr class="trSplit"><th>代理服务器：
		</th>
		<td>
			<asp:TextBox id="proxy"
				Columns="15"
				title="如:http://proxyadress.com:8080"
				runat="server"
				/>
			用户名 <asp:TextBox id="proxyUsername" Columns="10" runat="server"/>
			密码  <asp:TextBox id="proxyPassword" Columns="10" runat="server"/>
			<span class="explain">下载站外图片使用,无代理不用设置</span>
		</td></tr>
		<tr><th>smtp服务器：</th>
		<td>
			<asp:TextBox id="smtpServer"
				Columns="20"
				runat="server"
				/>
				<span class="explain">格式 <u>user:pass@</u>www.iwms.net<u>:25</u>,下划线为可选项,建议自己搭建smtp</span>
		</td></tr>
		<tr><th>服务器时差：</th>
		<td>
			<asp:DropDownList  id="timeDiff" runat="server">
			<asp:ListItem value="-12" >(GMT -12:00) Eniwetok, Kwajalein</asp:ListItem>
			<asp:ListItem value="-11">(GMT -11:00) Midway Island, Samoa</asp:ListItem>
			<asp:ListItem value="-10">(GMT -10:00) Hawaii</asp:ListItem>
			<asp:ListItem value="-9">(GMT -09:00) Alaska</asp:ListItem>
			<asp:ListItem value="-8">(GMT -08:00) Pacific Time (US &amp; Canada), Tijuana</asp:ListItem>
			<asp:ListItem value="-7">(GMT -07:00) Mountain Time (US &amp; Canada), Arizona</asp:ListItem>
			<asp:ListItem value="-6">(GMT -06:00) Central Time (US &amp; Canada), Mexico City</asp:ListItem>
			<asp:ListItem value="-5">(GMT -05:00) Eastern Time (US &amp; Canada), Bogota, Lima, Quito</asp:ListItem>
			<asp:ListItem value="-4">(GMT -04:00) Atlantic Time (Canada), Caracas, La Paz</asp:ListItem>
			<asp:ListItem value="-3.5">(GMT -03:30) Newfoundland</asp:ListItem>
			<asp:ListItem value="-3">(GMT -03:00) Brassila, Buenos Aires, Georgetown, Falkland Is</asp:ListItem>
			<asp:ListItem value="-2">(GMT -02:00) Mid-Atlantic, Ascension Is., St. Helena</asp:ListItem>
			<asp:ListItem value="-1">(GMT -01:00) Azores, Cape Verde Islands</asp:ListItem>
			<asp:ListItem value="0">(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</asp:ListItem>
			<asp:ListItem value="1">(GMT +01:00) Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</asp:ListItem>
			<asp:ListItem value="2">(GMT +02:00) Cairo, Helsinki, Kaliningrad, South Africa</asp:ListItem>
			<asp:ListItem value="3">(GMT +03:00) Baghdad, Riyadh, Moscow, Nairobi</asp:ListItem>
			<asp:ListItem value="3.5">(GMT +03:30) Tehran</asp:ListItem>
			<asp:ListItem value="4">(GMT +04:00) Abu Dhabi, Baku, Muscat, Tbilisi</asp:ListItem>
			<asp:ListItem value="4.5">(GMT +04:30) Kabul</asp:ListItem>
			<asp:ListItem value="5">(GMT +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent</asp:ListItem>
			<asp:ListItem value="5.5">(GMT +05:30) Bombay, Calcutta, Madras, New Delhi</asp:ListItem>
			<asp:ListItem value="5.75">(GMT +05:45) Katmandu</asp:ListItem>
			<asp:ListItem value="6">(GMT +06:00) Almaty, Colombo, Dhaka, Novosibirsk</asp:ListItem>
			<asp:ListItem value="6.5">(GMT +06:30) Rangoon</asp:ListItem>
			<asp:ListItem value="7">(GMT +07:00) Bangkok, Hanoi, Jakarta</asp:ListItem>
			<asp:ListItem value="8">(GMT +08:00) Beijing, Hong Kong, Perth, Singapore, Taipei</asp:ListItem>
			<asp:ListItem value="9">(GMT +09:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</asp:ListItem>
			<asp:ListItem value="9.5">(GMT +09:30) Adelaide, Darwin</asp:ListItem>
			<asp:ListItem value="10">(GMT +10:00) Canberra, Guam, Melbourne, Sydney, Vladivostok</asp:ListItem>
			<asp:ListItem value="11">(GMT +11:00) Magadan, New Caledonia, Solomon Islands</asp:ListItem>
			<asp:ListItem value="12">(GMT +12:00) Auckland, Wellington, Fiji, Marshall Island</asp:ListItem>
			</asp:DropDownList>
		</td></tr>
		<tr><th valign="top">
		<asp:DropDownList id="ipLimit" runat="server">
			<asp:ListItem>不可访问</asp:ListItem>
			<asp:ListItem>可以访问</asp:ListItem>
		</asp:DropDownList>
		网站IP：<br/><br/>
		<span class="explain">不设置则所有ip可访问</span>
		</th>
		<td>
			<asp:TextBox id="ipLimited" TextMode="MultiLine" Columns="20" Rows="4" runat="server"/>
			<span class="explain">格式如：61.188.10.*或61.188.*，每行一条。生成静态页面将不限制。</span>
		</td></tr>
		</table>
		</fieldset>
	</asp:PlaceHolder>
		
	
	<asp:PlaceHolder id="tab6" runat="server">
		<fieldset>
		<legend>广告信息设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr class="tdbg"><th valign="top">网站顶部广告：<br/>
			<asp:CheckBoxList id="headAdHeredity"
				RepeatLayout="Flow"
				runat="server">
				<asp:ListItem Selected="true">应用到首页　</asp:ListItem>
				<asp:ListItem>应用到分类页</asp:ListItem>
			</asp:CheckBoxList>
		</th>
		<td>
			<asp:TextBox id="headAd" TextMode="multiline" CssClass="mceEditor" runat="server"/>
		</td></tr>
		<tr><th valign="top">新闻内广告：<br/>
			<asp:CheckBox id="newsAdHeredity" Text="应用到全站　" runat="server"/>
		</th>
		<td>
			<asp:TextBox id="newsAd" TextMode="multiline" CssClass="mceEditor" runat="server"/>
		</td></tr>
		<tr><th valign="top">网站侧栏广告：<br/>
			<asp:CheckBoxList id="sideAdHeredity"
				RepeatLayout="Flow"
				runat="server">
				<asp:ListItem selected="true">应用到首页　</asp:ListItem>
				<asp:ListItem>应用到分类页</asp:ListItem>
				<asp:ListItem>应用到内容页</asp:ListItem>
			</asp:CheckBoxList><br/>
		</th>
		<td>
			<asp:TextBox id="sideAd" TextMode="multiline" CssClass="mceEditor" runat="server"/>
		</td></tr>
		<tr><th valign="top">分类内容前广告：<br/>
			<asp:CheckBoxList id="topAdHeredity"
				RepeatLayout="Flow"
				runat="server">
				<asp:ListItem Selected="true">应用到首页　</asp:ListItem>
				<asp:ListItem>应用到分类页</asp:ListItem>
				<asp:ListItem>应用到内容页</asp:ListItem>
			</asp:CheckBoxList><br/>
		</th>
		<td>
			<asp:TextBox id="topAd" TextMode="multiline" CssClass="mceEditor" runat="server"/>
		</td></tr>
		<tr><th valign="top">分类内容后广告：<br/>
			<asp:CheckBoxList id="footAdHeredity"
				RepeatLayout="Flow"
				runat="server">
				<asp:ListItem Selected="true">应用到首页　</asp:ListItem>
				<asp:ListItem>应用到分类页</asp:ListItem>
				<asp:ListItem>应用到内容页</asp:ListItem>
			</asp:CheckBoxList><br/>
		</th>
		<td>
			<asp:TextBox id="footAd" TextMode="multiline" CssClass="mceEditor" runat="server"/>
		</td></tr>
		</table>
		</fieldset>
	</asp:PlaceHolder>
	
	
	<asp:PlaceHolder id="tab7" runat="server">
		<fieldset>
		<legend>基础语言设置(支持html，更多语言请修改language/language.xml)</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr>	<th width="150">new图标alt：</th>
		<td>
			<asp:TextBox id="lang_addHoursAlt" 
				Columns="20"
				runat="server"
				/>
				[n]代表小时数
		</td></tr>
		<tr>	<th>无相关内容：</th>
		<td>
			<asp:TextBox id="lang_noMatch" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>Digg名称：</th>
		<td>
			<asp:TextBox id="lang_diggIt" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>简介列表日期：</th>
		<td>
			<asp:TextBox id="lang_summaryDate" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>简介列表作者：</th>
		<td>
			<asp:TextBox id="lang_summaryAuthor" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>简介列表点击：</th>
		<td>
			<asp:TextBox id="lang_summaryHits" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>分页前一页：</th>
		<td>
			<asp:TextBox id="lang_pagePrev" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>分页后一页：</th>
		<td>
			<asp:TextBox id="lang_pageNext" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>分页第一页：</th>
		<td>
			<asp:TextBox id="lang_pageFirst" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>分页最后页：</th>
		<td>
			<asp:TextBox id="lang_pageLast" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>分页跳转：</th>
		<td>
			<asp:TextBox id="lang_pageGo" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>标题分页：</th>
		<td>
			<asp:TextBox id="lang_pageTitle" 
				Columns="20"
				runat="server"
				/>
				[n]代表页码
		</td></tr>
		<tr>	<th>查看全文链接：</th>
		<td>
			<asp:TextBox id="lang_readDetail" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>标题后评论链接：</th>
		<td>
			<asp:TextBox id="lang_remarkLink" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>标题后省略号：</th>
		<td>
			<asp:TextBox id="lang_ellipsis" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>分类递进箭头：</th>
		<td>
			<asp:TextBox id="lang_rightwardArrow" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>提交投票：</th>
		<td>
			<asp:TextBox id="lang_pollSubmit" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>查看投票：</th>
		<td>
			<asp:TextBox id="lang_pollView" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>虚拟币名称：</th>
		<td>
			<asp:TextBox id="lang_vMoney" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		<tr>	<th>积分名称：</th>
		<td>
			<asp:TextBox id="lang_totalMark" 
				Columns="20"
				runat="server"
				/>
		</td></tr>
		</table>
		</fieldset>
	</asp:PlaceHolder>
	
	<asp:PlaceHolder id="tab8" runat="server">
		<fieldset>
		<legend>会员在线支付与消费设置</legend>
		<table align="center" width="95%" cellspacing="1" cellpadding="3">
		<tr>	<th width="150">启用支付功能：</th>
		<td>
			<asp:DropDownList id="ali_enabled" runat="server">
				<asp:ListItem>启用在线支付</asp:ListItem>
				<asp:ListItem>关闭在线支付</asp:ListItem>
			</asp:DropDownList>
		</td></tr>
		<tr>	<th>支付宝合作商户ID：</th>
		<td>
			<asp:TextBox id="ali_partner" runat="server" Columns="20"/><span class="explain">支持支付宝即时到账接口</span>
		</td></tr>
		<tr>	<th>密钥：</th>
		<td>
			<asp:TextBox id="ali_key" runat="server" Columns="20"/>
		</td></tr>
		<tr>	<th>商户email：</th>
		<td>
			<asp:TextBox id="ali_sellerEmail" runat="server" Columns="20"/>
		</td></tr>
		<tr>	<th>商品展示地址：</th>
		<td>
			<asp:TextBox id="ali_showUrl" runat="server" Columns="20"/>
		</td></tr>
		<tr>	<th>支付通知地址：</th>
		<td>
			<asp:TextBox id="ali_notifyUrl" runat="server" Columns="20"/>
			<script type="text/javascript">
				function aliCheck(event){
					$("#<%=ali_showUrl.ClientID%>").val("memberCharges.aspx");
					$("#<%=ali_notifyUrl.ClientID%>").val("alipay_notify.aspx");
					if($i("<%=ali_enabled.ClientID%>").selectedIndex==0){
						var partner = $("#<%=ali_partner.ClientID%>").val();
						var key = $("#<%=ali_key.ClientID%>").val();
						var sellerEmail = $("#<%=ali_sellerEmail.ClientID%>").val();
						if(partner.length==0 || key.length==0 || sellerEmail.length==0){
							alert("开启支付功能需填写完整资料");
							return false;
						}
					}
					return true;
				}
				$(function(){
					$("#<%=myForm.ClientID%>").submit(aliCheck);
				});
			</script>
		</td></tr>
		<tr>	<th>会员可充值金额数：</th>
		<td>
			<asp:TextBox id="payAmount" runat="server" Columns="20"/>
			<asp:RegularExpressionValidator
				ControlToValidate="payAmount"
				ValidationExpression="\d+\.?\d{0,2}(,\d+\.?\d{0,2})*"
				Display="None"
				ErrorMessage="可充值金额格式错误"
				runat="server"/>
			<span class="explain">使用逗号分隔,非企业版最高支付金额10元,<a href="http://www.iwms.net/buy/" target="_blank">注册企业版</a></span>
		</td></tr>
		<tr>	<th>转换率：</th>
		<td>
			充值1元=
			<asp:DropDownList id="payConvertRate" runat="server">
				<asp:ListItem value="1">1</asp:ListItem>
				<asp:ListItem value="5">5</asp:ListItem>
				<asp:ListItem value="10">10</asp:ListItem>
				<asp:ListItem value="50">50</asp:ListItem>
				<asp:ListItem value="100">100</asp:ListItem>
			</asp:DropDownList>
			<%=lang["vMoney"]%>
		</td></tr>
		
		<tr><th></th>
		<td>
			
		</td></tr>
		<tr class="trSplit"><th>新注册会员<%=lang["vMoney"]%>数：</th>
		<td>
			<asp:TextBox id="regVMoney"
				size="4"
				Style="text-align:right"
				runat="server">
			</asp:TextBox>
		</td></tr>
		<tr><th>新注册会员积分：</th>
		<td>
			<asp:TextBox id="regMark"
				size="4"
				Style="text-align:right"
				runat="server">
			</asp:TextBox>
		</td></tr>
		<tr><th>推荐新闻增加<%=lang["vMoney"]%>数：</th>
		<td>
			<asp:TextBox id="addVMoney"
				size="4"
				Style="text-align:right"
				runat="server">
			</asp:TextBox>
			<asp:CheckBox id="addVMoneyHeredity" Text="传递给所有分类" runat="server"/>
		</td></tr>
		<tr><th>推荐新闻增加积分：</th>
		<td>
			<asp:TextBox id="addMark"
				size="4"
				Style="text-align:right"
				runat="server">
			</asp:TextBox>
			<asp:CheckBox id="addMarkHeredity" Text="传递给所有分类" runat="server"/>
		</td></tr>
		<tr><th>积分转<%=lang["vMoney"]%>比率：</th>
		<td>
			<asp:TextBox id="mark2Money"
				size="4"
				Style="text-align:right"
				runat="server">
			</asp:TextBox>
			积分转换1<%=lang["vMoney"]%>
		</td></tr>
		</table>
		</fieldset>
	</asp:PlaceHolder>
	
		<div align="center">
			<a name="bottom"/>
			<asp:Button id="Submit"
				Text="修改"
				OnClick="setConst"
				runat="server"
				/>
		</div><br/>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	</form>
</asp:Content>