<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>会员注册 - {aspmps:global.cfg_sitename} - Powered by Aspmps</title>
<meta name="generator" content="aspmps v{aspmps:global.cfg_version}" />
<meta name="author" content="www.aspmps.com" />
<link rel="stylesheet" href="{aspmps:global.cfg_skindir}/style/common.css" type="text/css" />
<link rel="stylesheet" href="{aspmps:global.cfg_skindir}/style/member.css" type="text/css" />
<script type="text/javascript" src="{aspmps:global.cfg_baseurl}/file/js/config.js"></script>
<script type="text/javascript" src="{aspmps:global.cfg_baseurl}/file/js/jquery.js"></script>
<script type="text/javascript" src="{aspmps:global.cfg_baseurl}/file/js/jquery.thickbox.js"></script>
<script type="text/javascript" src="{aspmps:global.cfg_sitedir}/file/js/jquery.validate.js"></script>
<script type="text/javascript" src="{aspmps:global.cfg_skindir}/js/common.js"></script>
<script type="text/javascript"> 
$(document).ready(function() {

		var v = jQuery("#form").validate({
			submitHandler: function(form) {
				form.submit()			
			},
		rules: {
			username: {
				required: true,
				rangelength:[{aspmps:global.cfg_member_username_min},{aspmps:global.cfg_member_username_max}],
				remote:"register.asp?action=checkusername"
			},
			password: {
				required: true,
				rangelength:[{aspmps:global.cfg_member_password_min},{aspmps:global.cfg_member_password_max}]
			},
			password2: {
				required: true,
				rangelength:[{aspmps:global.cfg_member_password_min},{aspmps:global.cfg_member_password_max}],
				equalTo: "#password"
			},
			email: {
				required: true,
				email: true
			},
			checkcode: {
				required: true,
				remote:"../include/aspmps.checkcode.asp?action=ajaxcheck"
			},
			agree: "required"
		},
		messages: {
			username: {
				required: "请输入帐号",
				rangelength: "帐号输入错误",
				remote: "帐号已经被占用"
			},
			password: {
				required: "请输入密码",
				rangelength: "密码输入错误"
			},
			password2: {
				required: "请再次输入密码",
				rangelength: "密码重复输入错误",
				equalTo: "2次输入不一致"
			},
			email: "请输入有效的email地址",
			checkcode: {
				required: "请输入验证码",
				remote: "验证码输入错误"
			},
			agree: "必须同意服务条款"
 
 
		},
		errorPlacement:function(error,element) {error.appendTo(element.parent("td").next("td"));
 
		}
			
		});
 
	});
</script>

</head>
<body>
<div id="aspmps_layout">
<!--#include file="head.tpl"-->	
	<div id="aspmps_body">
	<div class="regmain">
	<form action="?action=save&fromurl={aspmps:global.server.URLEncode(fromurl)}" name="form" id="form" method="post">
		<div class="regbox">
			<div class="regleft">
			<div class="title"><h3>会员注册</h3></div>
			<table border="0" cellspacing="0" cellpadding="0">
			  <tr>
			    <th width="100">用户名：</th>
			    <td width="240"><input type="text" name="username" maxlength="12" class="input" style="width:180px" /><br /><em>用户名由{aspmps:global.cfg_member_username_min}-{aspmps:global.cfg_member_username_max}位英文、数字、及汉字组成</em></td>
			    <td></td>
			  </tr>
			  <tr>
			    <th>密码：</th>
			    <td><input type="password" name="password" id="password" maxlength="25" class="input" style="width:180px" /><br /><em>密码由{aspmps:global.cfg_member_password_min}-{aspmps:global.cfg_member_password_max}位任意字符组成</em></td>
			    <td></td>
			  </tr>
			  <tr>
			    <th>重复密码：</th>
			    <td><input type="password" name="password2" id="password2" maxlength="25" class="input" style="width:180px" /><br /><em>请重复输入确认密码</em></td>
			    <td></td>
			  </tr>
			  <tr>
			    <th>安全邮箱：</th>
			    <td><input type="text" name="email" maxlength="30" class="input" style="width:180px" /><br /><em>邮箱是密码找回的重要途径</em></td>
			    <td></td>
			  </tr>
			  {if:{aspmps:field.checkcode}=true}
			  <tr>
			    <th>验证码：</th>
			    <td><input name="checkcode" id="checkcode" type="text" size="10" class="input" style="width:60px" /> <img src="../include/aspmps.checkcode.asp" onclick="this.src='../include/aspmps.checkcode.asp?rnd='+Math.random();" alt="点击刷新验证码" class="checkcode" /></td>
			    <td></td>
			  </tr>
			  {end if}
			  <tr>
			    <td></td>
			    <td colspan="2"><input type="submit" value="立即注册" class="submit" /></td>
			  </tr>
			</table>

			</div>
			<div class="regright">
				<div class="login">
					<dl>
						<dt>如果您已经有会员帐号请点击：</dt>
						<dd><a href="login.asp">登 录</a></dd>
					</dl>
				</div>			
			</div>
			<div class="clear"></div>
		</div>
	</form>
	</div>
	</div>
<!--#include file="foot.tpl"-->
</div>
</body>
</html>