<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_setting" %>
<%@ Register tagPrefix="Dvbbs" namespace="Dvbbs.Controls" assembly="Dvbbs.Web"%>
<%@ Register tagPrefix="bbs" tagName="AdminHeader" src="controls/admin_header.ascx"%>
<%@ Register tagPrefix="bbs" tagName="AdminFooter" src="controls/admin_footer.ascx"%>
<bbs:AdminHeader title="修改论坛设置(bbs.config)" runat="server"/>
<script language="javascript">
function chkPost()
{
	var f = document.forms[0];
	for (var i=0; i<f.elements.length; i++)
	{
		var element = f.elements[i];
		if (element.type.toLowerCase() != "text") continue;

		var pattern = element.getAttribute('pattern');
		if (pattern == '' || pattern == 'undefined') continue;
		
		var value = element.value.replace(/(^\s*)|(\s*$)/g,"");
		var evalStr = "value.search(/" + pattern + "/gi)";
		if ( eval(evalStr) < 0)
		{
			alert('配置项 ' + element.name + ' 不符合要求，请重新填写');
			element.focus();
			return false;
		}
	}
	return confirm('确定要修改吗?');
}
</script>
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table1">
<tr><th colspan="2">修改论坛设置 [请先阅读说明]</th></tr>
<tr>
<td>
<ul><li>请按各项说明进行配置，带*表示该项必填或必选。</li>
<li>该设置是修改bbs.Config文件的快捷方式，并且带有智能控件选择，但与直接修改bbs.Config的Value元素具有相同效果。</li>
<li>最好不要直接修改bbs.Config文件，更不能破坏其结构，否则会引起论坛错误。</li></ul></td>
</tr>
<tr>
  <td>
<a href="admin_setting.aspx#setting0" target="_self">[基本信息]</a> 
[<a href="admin_setting.aspx#setting1" target="_self">用户操作设置</a>] 
[<a href="admin_setting.aspx#setting2" target="_self">论坛外观设置]</a> 
[<a href="admin_setting.aspx#setting3" target="_self">附件参数设置</a>] 
[<a href="admin_setting.aspx#setting4" target="_self">水印功能设置</a>] 
[<a href="admin_setting.aspx#setting5" target="_self">统计相关设置</a>]
[<a href="admin_setting.aspx#SmtpServerAddress" target="_self">邮件选项</a>] 
[<a href="admin_setting.aspx#MaxReeditDelayHours" target="_self">用户与注册选项</a>] 
[<a href="admin_setting.aspx#setting8" target="_self">圈子管理选项</a>]<br/>  
[<a href="admin_setting.aspx#setting9" target="_self">验证码选项</a>] 
[<a href="admin_setting.aspx#setting10" target="_self">帖子开关</a>]
[<a href="admin_setting.aspx#setting11" target="_self">相册开关</a>]
[<a href="admin_setting.aspx#setting12" target="_self">商城开关</a>]
</td>
</tr>
</table>
<form id="configform" runat="server">
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table1">
<Dvbbs:Span id="items" runat="server"/>
<tr>
<td colspan="2" height="40" align="center"  class="bottom">
<input type="submit" value="保存设置" onclick="return chkPost()" class="button"  onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"/>
&nbsp; &nbsp;
<input type="reset" value="取消设置" onclick="return confirm('确定要取消所做的修改吗？')" class="button"  onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" /></td>
<a name='bottom'></a>
</td>
</tr>
</table>
</form>
<bbs:AdminFooter runat="server"/>