<!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=User.userlist" class="link">会员列表</a>
				<a href="index.php?r=SiteSet.userset" class="link">属性设置</a>
				<a href="index.php?r=User.honourlist" class="link">会员头衔</a>
				<a href="index.php?r=SiteSet.experienceset" class="link">会员经验</a>
				<a href="index.php?r=User.forumroleimg" class="link">管理员身份勋章</a>
				<a href="index.php?r=User.albumlist" class="link">会员相册</a>
				<a href="index.php?r=User.listphotoframe" class="link">会员相框</a>
				<a href="index.php?r=User.msglist" class="link">会员消息</a>
				<a href="index.php?r=SiteSet.msgboxset" class="nolink">信箱设置</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent">
					<form action="index.php?r=SiteSet.msgboxset" method="post" id="msgboxSetForm">
						<input type="hidden" name="action" value="do"/>
						<table class="tbl_edit" width="100%">
							<!--{foreach from=$honourList item=data name=list}-->
							<tr>
								<td class="td_name"><!--{$data.honour_name}-->信箱容量<span class="red">*</span></td>
								<td class="td_content">
									<input type="text" class="text" id="value<!--{$data.id}-->" name="value[]" value="<!--{$data.msgboxcount}-->"/>&nbsp;条
									<input type="hidden" name="label[]" value="MSG_BOX_COUNT_<!--{$data.id}-->"/>
									<span id="span_value<!--{$data.id}-->"></span>
								</td>
							</tr>
							<!--{/foreach}-->
							<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>
$().ready(function(){
	$("#msgboxSetForm").validate({
		rules:{
			<!--{foreach from=$honourList item=data name=list}-->
			'value[]':{
				'required' : true,
				'number' : true,
				'digits': true
			},
			<!--{/foreach}-->
			'':{
			}	
		},
		messages: {
			<!--{foreach from=$honourList item=data name=list}-->
			'value[]':{
				'required' : '不能为空',
				'number': '必须为正整数',
				'digits': "必须为正整数"
			},
			<!--{/foreach}-->
			'':{
			}
		},
		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>