<!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=MessageBoard.messagelist" class="link">内管管理</a>
				<a href="index.php?r=SiteSet.messageboardset" class="nolink">属性设置</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent">
					<form id="messageForm" action="index.php?r=SiteSet.messageboardset" 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="MESSAGEBOARD_LOGIN_STATUS" id="MESSAGEBOARD_LOGIN_STATUS" value="1" <!--{if $MESSAGEBOARD_LOGIN_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="MESSAGEBOARD_LOGIN_STATUS" id="MESSAGEBOARD_LOGIN_STATUS" value="0" <!--{if $MESSAGEBOARD_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 type="text" class="number" name="MESSAGEBOARD_LIST_SHOW_COUNT" id="show_count" value="<!--{$MESSAGEBOARD_LIST_SHOW_COUNT}-->"/>&nbsp;条<img class="tiptip" title="留言列表页每页显示条数，1到30之间的正整数" src="images/quest.gif"/><span id="span_show_count"></span></td>
							</tr>
							<tr>
								<td class="td_name">网站留言时间间隔<span class="red">*</span></td>
								<td class="td_content"><input type="text" class="number" name="MESSAGEBOARD_MSG_INTERVAL" id="msg_interval" value="<!--{$MESSAGEBOARD_MSG_INTERVAL}-->"/>&nbsp;分钟<img class="tiptip" title="WAP前台网站留言的时间间隔，设置0表示前台网站留言不受时间限制，0到60之间的正整数" src="images/quest.gif"/><span id="span_msg_interval"></span></td>
							</tr>
							<tr>
								<td class="td_name">用户留言是否开启审核</td>
								<td class="td_content"><input type="radio" name="MESSAGEBOARD_CHECK_STATUS" id="MESSAGEBOARD_CHECK_STATUS" value="1" <!--{if $MESSAGEBOARD_CHECK_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="MESSAGEBOARD_CHECK_STATUS" id="MESSAGEBOARD_CHECK_STATUS" value="0" <!--{if $MESSAGEBOARD_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="MESSAGEBOARD_GUEST_MSG_STATUS" id="MESSAGEBOARD_GUEST_MSG_STATUS" value="1" <!--{if $MESSAGEBOARD_GUEST_MSG_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="MESSAGEBOARD_GUEST_MSG_STATUS" id="MESSAGEBOARD_GUEST_MSG_STATUS" value="0" <!--{if $MESSAGEBOARD_GUEST_MSG_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="控制留言页面“游客留言”是否开启" 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(){
	$("#messageForm").validate({
		rules: {
			"MESSAGEBOARD_LIST_SHOW_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 30]
			},
			"MESSAGEBOARD_MSG_INTERVAL": {
				required: true,
				number: true,
				digits: true,
				range: [0, 60]
			}
		},
		messages: {
			"MESSAGEBOARD_LIST_SHOW_COUNT": {
				required: "请输入列表页每页显示条数",
				number: "列表页每页显示条数必须为正整数",
				digits: "列表页每页显示条数必须为正整数",
				range: $.format("列表页每页显示条数必须在{0}到{1}之间")
			},
			
			"MESSAGEBOARD_MSG_INTERVAL": {
				required: "请输入发表评论时间间隔",
				number: "网站留言时间间隔必须为正整数",
				digits: "网站留言时间间隔必须为正整数",
				range: $.format("网站留言时间间隔必须在{0}到{1}之间")
			}
			
		},
		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>