<!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=Report.basic" class="link">流量概况</a>
				<a href="index.php?r=Report.channelmodule" class="link">流量明细</a>
				<a href="index.php?r=Report.channel" class="link">频道PV分析</a>
				<a href="index.php?r=Report.visitlog" class="link">访问记录</a>
				<a href="index.php?r=Report.flowcontrol" class="nolink">流量控制</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent">
					<form id="flowForm" action="index.php?r=Report.flowcontrol" 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="STREAM_STATISTICS_STATUS" id="STREAM_STATISTICS_STATUS" value="1" <!--{if $STREAM_STATISTICS_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="STREAM_STATISTICS_STATUS" id="STREAM_STATISTICS_STATUS" value="0" <!--{if $STREAM_STATISTICS_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否</td>
							</tr>
							<tr>
								<td class="td_name">流量统计是否屏闭非手机访问</td>
								<td class="td_content"><input type="radio" name="STREAM_STATISTICS_FILTER_MOBILE_STATUS" id="STREAM_STATISTICS_FILTER_MOBILE_STATUS" value="1" <!--{if $STREAM_STATISTICS_FILTER_MOBILE_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="STREAM_STATISTICS_FILTER_MOBILE_STATUS" id="STREAM_STATISTICS_FILTER_MOBILE_STATUS" value="0" <!--{if $STREAM_STATISTICS_FILTER_MOBILE_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否</td>
							</tr>
							<tr>
								<td class="td_name">访问记录保留</td>
								<td class="td_content"><input type="text" class="number" name="VISIT_LOG_SAVE_DAYS" id="VISIT_LOG_SAVE_DAYS" value="<!--{$VISIT_LOG_SAVE_DAYS}-->"/>&nbsp;天<span id="span_VISIT_LOG_SAVE_DAYS"></span></td>
							</tr>
							<tr>
								<td class="td_name">同一IP不重复统计时间间隔</td>
								<td class="td_content"><input type="text" class="number" name="SAME_IP_STATISTICS_INTERVAL" id="SAME_IP_STATISTICS_INTERVAL" value="<!--{$SAME_IP_STATISTICS_INTERVAL}-->"/>&nbsp;小时<span id="span_SAME_IP_STATISTICS_INTERVAL"></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>
$("#flowForm").validate({
	rules: {
		"VISIT_LOG_SAVE_DAYS" : {
			required: true,
			number: true,
			digits: true,
			range: [1, 7]
		},
		"SAME_IP_STATISTICS_INTERVAL" : {
			required: true,
			number: true,
			digits: true,
			range: [1, 24]
		}
	},
	messages: {
		"VISIT_LOG_SAVE_DAYS" : {
			required: "请输入访问记录保留天数",
			number: "访问记录保留天数必须为正整数",
			digits: "访问记录保留天数必须为正整数",
			range: $.format("访问记录保留天数必须在{0}到{1}之间")
		},
		"SAME_IP_STATISTICS_INTERVAL" : {
			required: "请输入同一IP不重复统计时间间隔",
			number: "不重复统计时间间隔必须为正整数",
			digits: "不重复统计时间间隔必须为正整数",
			range: $.format("时间间隔必须在{0}到{1}之间")
		}
	},
	errorPlacement: function(error, element){
		$("#span_" + element.attr("id")).html(error).attr("class", "error");
	},
	submitHandler: function(form){
		setDisabled(":button",window.document);
		form.submit();
	},
	errorClass: "invalid",
	success: function(label){
		label.parent().html("&nbsp;").attr("class", "valid");
	},
	onkeyup: false
});
</script>
</html>