<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title><!--{$UUDEV_PAGE_TITLE}--></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--{include file=elements/header.css.html}-->
<!--{include file=elements/header.js.html type=common}-->
<!--{include file=elements/header.js.html type=valid}-->
</head>
<body>
<div id="outside">
	<!--{include file=frame/top.html}-->
	<div id="mainareaContent">
		<!--{include file=frame/left.html}-->
		<div id="rightContent">
			<div id="topContent">
				<div class="sitmap">
					<span class="r"><!--{include file="elements/uuadvad.html"}--></span>互动社区&nbsp;&gt;&nbsp;论坛管理&nbsp;&gt;&nbsp;属性设置
				</div>
			</div>
			<div class="tabcontent">
				<a href="index.php?r=Forum.postlist" class="link">帖子管理</a>
				<a href="index.php?r=SiteSet.forumset" class="nolink">属性设置</a>
				<a href="index.php?r=Forum.postallreplylist" class="link">回复信息审核</a>
				<a href="index.php?r=Forum.accusationlist" class="link">举报信息管理</a>
				<a href="index.php?r=Forum.shortcutreplylist" class="link">快速回复语</a>
				<a href="index.php?r=Forum.postloglist" class="link">日志管理</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent">
					<form id="forumsetForm" action="index.php?r=SiteSet.forumset" method="post">
						<input type="hidden" name="action" value="do"/>
						<table class="tbl_edit" width="100%">
						<tr>
							<td class="td_name">是否显示登录注册</td>
							<td class="td_content"><input type="radio" name="data[FORUM_LOGIN_STATUS]" id="FORUM_LOGIN_STATUS" value="1" <!--{if $FORUM_LOGIN_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="data[FORUM_LOGIN_STATUS]" id="FORUM_LOGIN_STATUS" value="0" <!--{if $FORUM_LOGIN_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="论坛频道顶部不显示“登录/注册“" src="images/quest.gif"/></td>
						</tr>
						<tr>
							<td class="td_name">列表页每页显示<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="256" type="text" class="number" name="data[FORUM_LIST_SHOW_COUNT]" id="FORUM_LIST_SHOW_COUNT" value="<!--{$FORUM_LIST_SHOW_COUNT}-->"/>&nbsp;条<img class="tiptip" title="论坛列表页每页显示条数，1到30之间的正整数" src="images/quest.gif"/><span id="span_FORUM_LIST_SHOW_COUNT"></span></td>
						</tr>
						<tr>
							<td class="td_name">列表页标题显示<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="256" type="text" class="number" name="data[FORUM_LIST_TITLE_CHAR_COUNT]" id="FORUM_LIST_TITLE_CHAR_COUNT" value="<!--{$FORUM_LIST_TITLE_CHAR_COUNT}-->"/>&nbsp;字<img class="tiptip" title="列表页标题显示的字数，大于此设置，显示“…”，设置0为标题默认字数，0到20之间的正整数" src="images/quest.gif"/><span id="span_FORUM_LIST_TITLE_CHAR_COUNT"></span></td>
						</tr>
						<tr>
							<td class="td_name">内容页每页显示<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="256" type="text" class="number" name="data[FORUM_INFO_CHAR_COUNT]" id="FORUM_INFO_CHAR_COUNT" value="<!--{$FORUM_INFO_CHAR_COUNT}-->"/>&nbsp;字<img class="tiptip" title="内容页每页显示字数，大于此设置，则自动分页" src="images/quest.gif"/><span id="span_FORUM_INFO_CHAR_COUNT"></span></td>
						</tr>
						<tr>
							<td class="td_name">内容页回帖每页显示<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="256" type="text" class="number" name="data[FORUM_REPLY_SHOW_COUNT]" id="FORUM_REPLY_SHOW_COUNT" value="<!--{$FORUM_REPLY_SHOW_COUNT}-->"/>&nbsp;条<img class="tiptip" title="内容页回帖每页显示字数，大于此设置，则自动分页" src="images/quest.gif"/><span id="span_FORUM_REPLY_SHOW_COUNT"></span></td>
						</tr>
						<tr>
							<td class="td_name">是否开启发帖审核<span class="red">*</span></td>
							<td class="td_content"><input type="radio" name="data[FORUM_POST_CHECK_STATUS]" id="FORUM_POST_CHECK_STATUS" value="1" <!--{if $FORUM_POST_CHECK_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="data[FORUM_POST_CHECK_STATUS]" id="FORUM_POST_CHECK_STATUS" value="0" <!--{if $FORUM_POST_CHECK_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="控制内容页面“开启发帖审核”是否显示" src="images/quest.gif"/></td>
						</tr>
						<tr>
							<td class="td_name">是否开启回帖审核<span class="red">*</span></td>
							<td class="td_content"><input type="radio" name="data[FORUM_REPLY_CHECK_STATUS]" id="FORUM_REPLY_CHECK_STATUS" value="1" <!--{if $FORUM_REPLY_CHECK_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="data[FORUM_REPLY_CHECK_STATUS]" id="FORUM_REPLY_CHECK_STATUS" value="0" <!--{if $FORUM_REPLY_CHECK_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="控制内容页面“开启回帖审核”是否显示" src="images/quest.gif"/></td>
						</tr>
						<tr>
							<td class="td_name">是否开启游客回帖</td>
							<td class="td_content"><input type="radio" name="data[FORUM_GUEST_REPLY_STATUS]" id="FORUM_GUEST_REPLY_STATUS" value="1" <!--{if $FORUM_GUEST_REPLY_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="data[FORUM_GUEST_REPLY_STATUS]" id="FORUM_GUEST_REPLY_STATUS" value="0" <!--{if $FORUM_GUEST_REPLY_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="控制内容页面“开启游客回帖”是否显示" src="images/quest.gif"/></td>
						</tr>
						<tr>
							<td class="td_name">发帖时间间隔<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="256" type="text" class="number" name="data[FORUM_POST_INTERVAL]" id="FORUM_POST_INTERVAL" value="<!--{$FORUM_POST_INTERVAL}-->"/>&nbsp;分钟<img class="tiptip" title="WAP前台用户发帖的时间间隔，设置0表示用户发帖不受时间限制，0到60之间的正整数" src="images/quest.gif"/><span id="span_FORUM_POST_INTERVAL"></span></td>
						</tr>
						<tr>
							<td class="td_name">回帖时间间隔<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="256" type="text" class="number" name="data[FORUM_REPLY_INTERVAL]" id="FORUM_REPLY_INTERVAL" value="<!--{$FORUM_REPLY_INTERVAL}-->"/>&nbsp;秒<img class="tiptip" title="WAP前台用户回帖的时间间隔，设置0表示用户回帖不受时间限制，0到60之间的正整数" src="images/quest.gif"/><span id="span_FORUM_REPLY_INTERVAL"></span></td>
						</tr>
						
						
						<tr>
							<td class="td_name">图片默认显示大小<span class="red">*</span></td>
							<td class="td_content">宽<input   maxlength="4" type="text" style="width:40px;" class="number" name="data[FORUM_IMG_WIDTH]" id="FORUM_IMG_WIDTH" value="<!--{$FORUM_IMG_WIDTH}-->"/>px&nbsp;高<input   maxlength="4" type="text" style="width:40px;" class="number" name="data[FORUM_IMG_HEIGHT]" id="FORUM_IMG_WIDTH" value="<!--{$FORUM_IMG_HEIGHT}-->"/>px<img class="tiptip" title="WAP前台用户回帖默认图片大小，为0时不进行缩放。" src="images/quest.gif"/><span id="span_FORUM_IMG_WIDTH"></span></td>
						</tr>
						
						<tr>
							<td class="td_name">会员注册?天后，才允许发帖<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="4" type="text" style="width:40px;" class="number" name="data[FORUM_POST_DAYS]" id="FORUM_POST_DAYS" value="<!--{$FORUM_POST_DAYS}-->"/>天<img class="tiptip" title="设置0，为会员注册后，立即可发帖回帖。否则，前台提示用户“新会员注册需要*天才可以发帖/回帖" src="images/quest.gif"/><span id="span_FORUM_POST_DAYS"></span></td>
						</tr>
						
						<tr>
							<td class="td_name">会员注册?天后，才允许回帖<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="4" type="text" style="width:40px;" class="number" name="data[FORUM_REPLY_DAYS]" id="FORUM_REPLY_DAYS" value="<!--{$FORUM_REPLY_DAYS}-->"/>天<img class="tiptip" title="设置0，为会员注册后，立即可发帖回帖。否则，前台提示用户“新会员注册需要*天才可以发帖/回帖" src="images/quest.gif"/><span id="span_FORUM_REPLY_DAYS"></span></td>
						</tr>
						
						<tr>
							<td class="td_name">发帖标题最低<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="4" type="text" style="width:40px;" class="number" name="data[FORUM_TITLE_MIN]" id="FORUM_TITLE_MIN" value="<!--{$FORUM_TITLE_MIN}-->"/>字<img class="tiptip" title="发帖标题最低字数" src="images/quest.gif"/><span id="span_FORUM_TITLE_MIN"></span></td>
						</tr>
						
						<tr>
							<td class="td_name">发帖内容最低<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="4" type="text" style="width:40px;" class="number" name="data[FORUM_POST_MIN]" id="FORUM_POST_MIN" value="<!--{$FORUM_POST_MIN}-->"/>字<img class="tiptip" title="发帖内容最低字数" src="images/quest.gif"/><span id="span_FORUM_POST_MIN"></span></td>
						</tr>
						
						<tr>
							<td class="td_name">回帖内容最低<span class="red">*</span></td>
							<td class="td_content"><input   maxlength="4" type="text" style="width:40px;" class="number" name="data[FORUM_REPLY_MIN]" id="FORUM_REPLY_MIN" value="<!--{$FORUM_REPLY_MIN}-->"/>字<img class="tiptip" title="回帖内容最低字数" src="images/quest.gif"/><span id="span_FORUM_REPLY_MIN"></span></td>
						</tr>
						<tr>
							<td class="td_name">会员发布UBB链接贴是否需要审核<span class="red">*</span></td>
							<td class="td_content"><input type="radio" name="data[FORUM_CHECK_UBB_LINK]" id="FORUM_CHECK_UBB_LINK" value="1" <!--{if $FORUM_CHECK_UBB_LINK == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="data[FORUM_CHECK_UBB_LINK]" id="FORUM_CHECK_UBB_LINK" value="0" <!--{if $FORUM_CHECK_UBB_LINK != '1'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="会员发布UBB链接贴是否需要审核" src="images/quest.gif"/></td>
						</tr>
						
						
						<tr>
							<td class="noborder"></td>
							<td class="noborder"><button type="submit" class="butsubmit">提交</button></td>
						</tr>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(document).ready(function(){
	$("#forumsetForm").validate({
		rules: {
			"data[FORUM_LIST_SHOW_COUNT]": {
				required: true,
				number: true,
				digits: true,
				range: [1, 30]
			},
			"data[FORUM_LIST_TITLE_CHAR_COUNT]": {
				required: true,
				number: true,
				digits: true,
				range: [0, 20]
			},
		
			"data[FORUM_INFO_CHAR_COUNT]": {
				required: true,
				number: true,
				digits: true,
			},
			"data[FORUM_REPLY_SHOW_COUNT]": {
				required: true,
				number: true,
				digits: true,
				range: [1, 10]
			},
			"data[FORUM_POST_INTERVAL]": {
				required: true,
				number: true,
				digits: true,
				range: [0,60]
			},
			"data[FORUM_REPLY_INTERVAL]": {
				required: true,
				number: true,
				digits: true,
				range: [0,60]
			},
			"data[FORUM_IMG_WIDTH]": {
				required:true,
				number: true,
				digits: true
			},
			"data[FORUM_IMG_HEIGHT]": {
				required:true,
				number: true,
				digits: true
			},
			"data[FORUM_POST_DAYS]": {
				required:true,
				number: true,
				digits: true
			},
			"data[FORUM_REPLY_DAYS]": {
				required: true,
				number: true,
				digits: true
			},
			"data[FORUM_TITLE_MIN]": {
				required: true,
				number: true,
				digits: true
			},
			"data[FORUM_POST_MIN]": {
				required: true,
				number: true,
				digits: true
			},
			"data[FORUM_REPLY_MIN]": {
				required: true,
				number: true,
				digits: true
			}
			
		},
		messages: {
			"data[FORUM_LIST_SHOW_COUNT]": {
				required: "请输入列表页每页显示条数",
				number: "列表页每页显示条数必须为正整数",
				digits: "列表页每页显示条数必须为正整数",
				range: $.format("列表页每页显示条数必须在{0}到{1}之间")
			},
			"data[FORUM_LIST_TITLE_CHAR_COUNT]": {
				required: "请输入列表页标题显示字数",
				number: "列表页标题显示字数必须为正整数",
				digits: "列表页标题显示字数必须为正整数",

			},
			"data[FORUM_INFO_CHAR_COUNT]": {
				required: "请输入内容页每页显示字数",
				number: "内容页每页显示必须为正整数",
				digits: "内容页每页显示必须为正整数",
				range: $.format("内容页每页显示必须在{0}到{1}之间")
			},
			"data[FORUM_REPLY_SHOW_COUNT]": {
				required: "请输入内容页评论显示条数",
				number: "内容页回帖每页显示条数必须为正整数",
				digits: "内容页回帖每页显示条数必须为正整数",
				range: $.format("内容页回帖每页显示条数必须在{0}到{1}之间")
			},
			"data[FORUM_POST_INTERVAL]": {
				required: "请输入发帖时间间隔",
				number: "发帖时间间隔必须为正整数",
				digits: "发帖时间间隔必须为正整数",
				range: $.format("发帖时间间隔必须在{0}到{1}之间")
			},
			"data[FORUM_REPLY_INTERVAL]": {
				required: "请输入回帖时间间隔",
				number: "回帖时间间隔必须为正整数",
				digits: "回帖时间间隔必须为正整数",
				range: $.format("回帖时间间隔必须在{0}到{1}之间")
			},
			
			"data[FORUM_IMG_WIDTH]": {
				required: "宽不能为空",
				number: "内容页回帖每页显示条数必须为正整数",
				digits: "内容页回帖每页显示条数必须为正整数"
			},
			"data[FORUM_IMG_HEIGHT]": {
				required: "高不能为空",
				number: "内容页回帖每页显示条数必须为正整数",
				digits: "内容页回帖每页显示条数必须为正整数"
			},
			"data[FORUM_POST_DAYS]": {
				required: "不能为空",
				number: "内容页回帖每页显示条数必须为正整数",
				digits: "内容页回帖每页显示条数必须为正整数"
			},
			"data[FORUM_REPLY_DAYS]": {
				required: "不能为空",
				number: "内容页回帖每页显示条数必须为正整数",
				digits: "内容页回帖每页显示条数必须为正整数"
			},
			"data[FORUM_TITLE_MIN]": {
				required: "不能为空",
				number: "内容页回帖每页显示条数必须为正整数",
				digits: "内容页回帖每页显示条数必须为正整数"
			},
			"data[FORUM_POST_MIN]": {
				required: "不能为空",
				number: "内容页回帖每页显示条数必须为正整数",
				digits: "内容页回帖每页显示条数必须为正整数"
			},
			"data[FORUM_REPLY_MIN]": {
				required: "不能为空",
				number: "内容页回帖每页显示条数必须为正整数",
				digits: "内容页回帖每页显示条数必须为正整数"
			}
		},
		errorPlacement: function(error, element){
			$("#span_" + element.attr("id")).html(error).attr("class", "error");
		},
		submitHandler: function(form){
			form.submit();
		},
		errorClass: "invalid",
		success: function(label){
			label.parent().html("&nbsp;").attr("class", "valid");
		},
		onkeyup:false
	});
});
</script>
</body>
</html>