<!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=FriendSite.friendsitelist" class="link">内管管理</a>
				<a href="index.php?r=SiteSet.friendsiteset" class="nolink">属性设置</a>
				<a href="index.php?r=Layout.module&id=15" class="link">列表页布局</a>
				<a href="index.php?r=Layout.module&id=16" class="link">内容页布局</a>
				<a href="index.php?r=FriendSite.realtimereport" class="link">实时数据分析</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent">
				<form id="friendsiteSetForm" action="index.php?r=SiteSet.friendsiteset" 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="FRIENDSITE_LOGIN_STATUS" id="FRIENDSITE_LOGIN_STATUS" value="1" <!--{if $FRIENDSITE_LOGIN_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="FRIENDSITE_LOGIN_STATUS" id="FRIENDSITE_LOGIN_STATUS" value="0" <!--{if $FRIENDSITE_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="FRIENDSITE_LIST_SHOW_COUNT" id="show_count" value="<!--{$FRIENDSITE_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="FRIENDSITE_LIST_TITLE_CHAR_COUNT" id="char_count" value="<!--{$FRIENDSITE_LIST_TITLE_CHAR_COUNT}-->"/>&nbsp;字<img class="tiptip" title="列表页标题显示的字数，大于此设置，显示“…”，设置0为标题默认字数，0到20之间的正整数" src="images/quest.gif"/><span id="span_char_count"></span></td>
						</tr>
						<tr>
							<td class="td_name">前台申请时间间隔<span class="red">*</span></td>
						  <td class="td_content"><input type="text" class="number" name="FRIENDSITE_REGISTER_INTERVAL" id="register" value="<!--{$FRIENDSITE_REGISTER_INTERVAL}-->"/>&nbsp;分钟<img class="tiptip" title="WAP前台申请的时间间隔，设置0表示前台申请不受时间限制，0到60之间的正整数" src="images/quest.gif"/><span id="span_register"></span></td>
						</tr>
						<tr>
							<td class="td_name">是否开启前台申请审核</td>
							<td class="td_content"><input type="radio" name="FRIENDSITE_CHECK_STATUS" id="FRIENDSITE_CHECK_STATUS" value="1" <!--{if $FRIENDSITE_CHECK_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="FRIENDSITE_CHECK_STATUS" id="FRIENDSITE_CHECK_STATUS" value="0" <!--{if $FRIENDSITE_CHECK_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="控制wap前台“申请审核“是否显示" src="images/quest.gif"/></td>
						</tr>
						<tr>
							<td class="td_name">是否显示排行状态</td>
							<td class="td_content"><input type="radio" name="FRIENDSITE_CHECK_RANKING" id="FRIENDSITE_CHECK_RANKING" value="1" checked/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="FRIENDSITE_CHECK_RANKING" id="FRIENDSITE_CHECK_RANKING" value="0" <!--{if $FRIENDSITE_CHECK_RANKING == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="控制wap前台“排行状态”是否显示" src="images/quest.gif"/></td>
						</tr>
						<tr>
							<td class="td_name">是否显示合作申请</td>
							<td class="td_content"><input type="radio" name="FRIENDSITE_CHECK_COOPERATION" id="FRIENDSITE_CHECK_COOPERATION" value="1" checked/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="FRIENDSITE_CHECK_COOPERATION" id="FRIENDSITE_CHECK_COOPERATION" value="0" <!--{if $FRIENDSITE_CHECK_COOPERATION == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="控制wap前台“合作申请”是否显示" src="images/quest.gif"/></td>
						</tr>
						<tr>
							<td class="td_name">前台默认排序</td>
							<td class="td_content"><input type="radio" name="FRIENDSITE_FRONT_ORDERBY" id="FRIENDSITE_FRONT_ORDERBY" value="1" <!--{if $FRIENDSITE_FRONT_ORDERBY == '1'}-->checked<!--{/if}-->/>&nbsp;动态排行&nbsp;&nbsp;<input type="radio" name="FRIENDSITE_FRONT_ORDERBY" id="FRIENDSITE_FRONT_ORDERBY" value="2" <!--{if $FRIENDSITE_FRONT_ORDERBY == '2'}-->checked<!--{/if}-->/>&nbsp;人气排行<br/><input type="radio" name="FRIENDSITE_FRONT_ORDERBY" id="FRIENDSITE_FRONT_ORDERBY" value="3" <!--{if $FRIENDSITE_FRONT_ORDERBY == '3'}-->checked<!--{/if}-->/>&nbsp;最新加入&nbsp;&nbsp;<input type="radio" name="FRIENDSITE_FRONT_ORDERBY" id="FRIENDSITE_FRONT_ORDERBY" value="4" <!--{if $FRIENDSITE_FRONT_ORDERBY == '4'}-->checked<!--{/if}-->/>&nbsp;链入排行&nbsp;&nbsp;<input type="radio" name="FRIENDSITE_FRONT_ORDERBY" id="FRIENDSITE_FRONT_ORDERBY" value="5" <!--{if $FRIENDSITE_FRONT_ORDERBY == '5'}-->checked<!--{/if}-->/>&nbsp;昨日链入排行</td>
						</tr>
						<tr>
							<td class="td_name">前台链出跳转时间<span class="red">*</span></td>
						  <td class="td_content"><input type="text" class="number" name="FRIENDSITE_OUT_INTERVAL" id="out_interval" value="<!--{$FRIENDSITE_OUT_INTERVAL}-->"/>&nbsp;秒<img class="tiptip" title="WAP前台链出跳转的时间间隔，设置0表示前台链出跳转不受时间限制，0到60之间的正整数" src="images/quest.gif"/><span id="span_out_interval"></span></td>
						</tr>
						<tr>
							<td class="td_name">是否显示链入次数</td>
							<td class="td_content"><input type="radio" name="FRIENDSITE_FRONT_IN_PV" id="FRIENDSITE_FRONT_IN_PV" value="1" <!--{if $FRIENDSITE_FRONT_IN_PV == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="FRIENDSITE_FRONT_IN_PV" id="FRIENDSITE_FRONT_IN_PV" value="0" <!--{if $FRIENDSITE_FRONT_IN_PV == '0'}-->checked<!--{/if}-->/>&nbsp;否</td>
						</tr>
						<tr>
							<td class="td_name">是否显示链出次数</td>
							<td class="td_content"><input type="radio" name="FRIENDSITE_FRONT_OUT_PV" id="FRIENDSITE_FRONT_OUT_PV" value="1" <!--{if $FRIENDSITE_FRONT_OUT_PV == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="FRIENDSITE_FRONT_OUT_PV" id="FRIENDSITE_FRONT_OUT_PV" value="0" <!--{if $FRIENDSITE_FRONT_OUT_PV == '0'}-->checked<!--{/if}-->/>&nbsp;否</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(){
	$("#friendsiteSetForm").validate({
		rules: {
			"FRIENDSITE_LIST_SHOW_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 30]
			},
			"FRIENDSITE_LIST_TITLE_CHAR_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [0, 20]
			},
			"FRIENDSITE_REGISTER_INTERVAL": {
				required: true,
				number: true,
				digits: true,
				range: [0, 60]
			},
			"FRIENDSITE_OUT_INTERVAL": {
				required: true,
				number: true,
				digits: true,
				range: [0, 60]
			}
		},
		messages: {
			"FRIENDSITE_LIST_SHOW_COUNT": {
				required: "请输入列表页默认显示条数",
				number: "列表页默认显示条数必须为正整数",
				digits: "列表页默认显示条数必须为正整数",
				range: $.format("列表页默认显示条数必须在{0}到{1}之间")
			},
			"FRIENDSITE_LIST_TITLE_CHAR_COUNT": {
				required: "请输入列表页标题显示字数",
				number: "列表页标题显示字数必须为正整数",
				digits: "列表页标题显示字数必须为正整数",
				range: $.format("列表页标题显示字数必须在{0}到{1}之间")
			},
			"FRIENDSITE_REGISTER_INTERVAL": {
				required: "请输入前台申请时间间隔",
				number: "前台申请时间间隔必须为正整数",
				digits: "前台申请时间间隔必须为正整数",
				range: $.format("前台申请时间间隔必须在{0}到{1}之间")
			},
			"FRIENDSITE_OUT_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>