<!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=Article.index" class="link">内管管理</a>
				<a href="index.php?r=SiteSet.articleset" class="nolink">属性设置</a>
				<a href="index.php?r=Layout.module&id=1" class="link">列表页布局</a>
				<a href="index.php?r=Layout.module&id=2" class="link">内容页布局</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent">
					<form id="articleSetForm" action="index.php?r=SiteSet.articleset" 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="ARTICLE_LOGIN_STATUS" id="ARTICLE_LOGIN_STATUS" value="1" <!--{if $ARTICLE_LOGIN_STATUS == '1'}-->checked="checked"<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="ARTICLE_LOGIN_STATUS" id="ARTICLE_LOGIN_STATUS" value="0" <!--{if $ARTICLE_LOGIN_STATUS == '0'}-->checked="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="ARTICLE_LIST_SHOW_COUNT" id="list_count" value="<!--{$ARTICLE_LIST_SHOW_COUNT}-->"/>&nbsp;条</span><img class="tiptip" title="文章列表页每页显示条数，1到30之间的正整数" src="images/quest.gif"/><span id="span_list_count"></td>
							</tr>
							<tr>
								<td class="td_name">列表页标题显示<span class="red">*</span></td>
								<td class="td_content"><input type="text" class="number" name="ARTICLE_LIST_TITLE_CHAR_COUNT" id="title_count" value="<!--{$ARTICLE_LIST_TITLE_CHAR_COUNT}-->"/>&nbsp;字<img class="tiptip" title="列表页标题显示的字数，大于此设置，显示“…”，设置0为标题默认字数，0到20之间的正整数" src="images/quest.gif"/><span id="span_title_count"></span></td>
							</tr>
							<tr>
								<td class="td_name">内容页每页显示<span class="red">*</span></td>
								<td class="td_content"><input type="text" class="number" name="ARTICLE_INFO_CHAR_COUNT" id="info_count" value="<!--{$ARTICLE_INFO_CHAR_COUNT}-->"/>&nbsp;字<img class="tiptip" title="内容页每页显示字数，大于此设置，则自动分页" src="images/quest.gif"/><span id="span_info_count"></span></td>
							</tr>
							<tr>
								<td class="td_name">是否开启用户评论</td>
								<td class="td_content"><input type="radio" name="ARTICLE_COMMENT_STATUS" id="ARTICLE_COMMENT_STATUS" value="1" <!--{if $ARTICLE_COMMENT_STATUS == '1'}-->checked="checked"<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="ARTICLE_COMMENT_STATUS" id="ARTICLE_COMMENT_STATUS" value="0" <!--{if $ARTICLE_COMMENT_STATUS == '0'}-->checked="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="ARTICLE_COMMENT_CHECK_STATUS" id="ARTICLE_COMMENT_CHECK_STATUS" value="1" <!--{if $ARTICLE_COMMENT_CHECK_STATUS == '1'}-->checked="checked"<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="ARTICLE_COMMENT_CHECK_STATUS" id="ARTICLE_COMMENT_CHECK_STATUS" value="0" <!--{if $ARTICLE_COMMENT_CHECK_STATUS == '0'}-->checked="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="ARTICLE_MESSAGEBOARD_MSG_INTERVAL" id="msg_interval" value="<!--{$ARTICLE_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">内容页评论显示<span class="red">*</span></td>
								<td class="td_content"><input type="text" class="number" name="ARTICLE_COMMENT_SHOW_COUNT" id="comment_count" value="<!--{$ARTICLE_COMMENT_SHOW_COUNT}-->"/>&nbsp;条<img class="tiptip" title="内容页评论显示条数，1到10之间的正整数" src="images/quest.gif"/><span id="span_comment_count"></span></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>
</body>
<script>
$(document).ready(function(){
	$("#articleSetForm").validate({
		rules: {
			"ARTICLE_LIST_SHOW_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 30]
			},
			"ARTICLE_LIST_TITLE_CHAR_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [0, 20]
			},
			"ARTICLE_INFO_CHAR_COUNT": {
				required: true,
				number: true,
				digits: true,
				min: 1
			},
			"ARTICLE_MESSAGEBOARD_MSG_INTERVAL": {
				required: true,
				number: true,
				digits: true,
				range: [0, 60]
			},
			"ARTICLE_COMMENT_SHOW_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 10]
			}
		},
		messages: {
			"ARTICLE_LIST_SHOW_COUNT": {
				required: "请输入列表页每页显示条数",
				number: "列表页每页显示条数必须为正整数",
				digits: "列表页每页显示条数必须为正整数",
				range: $.format("列表页每页显示条数必须在{0}到{1}之间")
			},
			"ARTICLE_LIST_TITLE_CHAR_COUNT": {
				required: "请输入列表页标题显示字数",
				number: "列表页标题显示字数必须为正整数",
				digits: "列表页标题显示字数必须为正整数",
				range: $.format("列表页标题显示字数必须在{0}到{1}之间")
			},
			"ARTICLE_INFO_CHAR_COUNT": {
				required: "请输入内容页每页显示字数",
				number: "内容页每页显示字数必须为正整数",
				digits: "内容页每页显示字数必须为正整数",
				min: $.format("内容页每页显示字数必须大于等于{0}")
			},
			"ARTICLE_MESSAGEBOARD_MSG_INTERVAL": {
				required: "请输入评论发布时间间隔",
				number: "评论发布时间间隔必须为正整数",
				digits: "评论发布时间间隔必须为正整数",
				range: $.format("评论发布时间间隔必须在{0}到{1}之间")
			},
			"ARTICLE_COMMENT_SHOW_COUNT": {
				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>
</html>