<!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=utf-8" />
<title><tpl>$register_name</tpl> - <tpl>WEB_NAME</tpl></title>
<meta name="keywords" content="<tpl>WEB_KEYWORDS</tpl>" />
<meta name="description" content="<tpl>WEB_DESCRIPTION</tpl>" />

<link type="text/css" rel="stylesheet" href="<tpl>WEB_HOST</tpl>/templates/default/css/style.css" />
<link type="text/css" rel="stylesheet" href="<tpl>WEB_HOST</tpl>/templates/default/css/pages.css" />
<link type="text/css" rel="stylesheet" href="<tpl>WEB_HOST</tpl>/templates/default/css/ie.css" />
<script type="text/javascript" src="<tpl>WEB_HOST</tpl>/js/jquery/jquery.js"></script>
<script type="text/javascript" src="<tpl>WEB_HOST</tpl>/js/jquery/jquery.validate.js"></script>
<style type="text/css">
         /***错误提示样式***/
        form.member_register label.error, label.error {
            color: red;
        }
    </style>
</head>
<body>
<div id="container">
	<tpl>include header.html</tpl><!-- end of header -->
    <div id="wildCurveWrapper">
   <form id="member_register" name="member_register" method="post" action="index.php?ctl=member&act=front_member_save" >
   <input type="hidden" name="refer_url" value="<tpl>$refer_url</tpl>" />
   	  <fieldset>
        	<legend><tpl>$register_name</tpl><!--会员注册-->
            	<span><tpl>$register_name_info</tpl><!--（带<span class="red">*</span>号的表示为必填项目）--></span>
            </legend>
      <table border="0" cellpadding="0" cellspacing="0" class="rtable">
            	<tr>
                	<th><tpl>$register_user</tpl><!--用户名：--></th>
                    <td><input type="text" name="member_name" id="member_name" class="textInput" /><span class="red">*</span></td>
                    <td><label for="member_name"><tpl>$register_user_info</tpl></label><!--会员登录名由英文字母、数字或中文组成。成功注册后，不可以修改。--></td>
                </tr>
            	<tr>
                	<th><tpl>$register_passwd</tpl><!--密码：--></th>
                    <td><input type="password" name="member_passwd" id="member_passwd" class="textInput" /><span class="red">*</span></td>
                    <td><label for="member_name"><tpl>$register_passwd_info</tpl></label><!--密码由6-20个英文字母（区分大小写）或数字组成。--></td>
                </tr>
            	<tr>
                	<th><tpl>$register_passwd_con</tpl><!--确认密码：--></th>
                    <td><input type="password" name="confirm_password" id="confirm_password" class="textInput" /><span class="red">*</span></td>
                    <td><label for="member_name"><tpl>$register_passwd_con_info</tpl></label><!--请再输入一遍您上面填写的密码。--></td>
                </tr>
            	<tr>
                	<th><tpl>$register_email</tpl><!--电子邮箱：--></th>
                    <td><input type="text" name="member_email" id="member_email" class="textInput" /><span class="red">*</span></td>
                    <td><label for="member_name"><tpl>$register_email_info</tpl></label><!--使用有效邮箱地址，用于接收找回的密码以及其他重要信息，请谨慎填写！--></td>
                </tr>
				<tpl>if REG_CODE=='1'</tpl>
            	<tr>
                	<th><tpl>$register_code</tpl><!--验证码：--></th>
                    <td colspan="2">
                    	<input name="reg_code" id="reg_code" type="text" style="text-transform:uppercase" size="5" class="textInput" /><span class="red">*</span>
                        &nbsp;&nbsp;<label for="member_name"><tpl>$reg_code</tpl></label>
                    </td>
                </tr>
				<tpl>/if</tpl>
            	<tr>
                	<th>&nbsp;</th>
                    <td colspan="2"><input type="checkbox" name="iagree" id="iagree" />
       	  <label for="iagree"><tpl>$register_iagree</tpl><!--同意协议--></label>
       	  <input type="submit" value="<tpl>$register_submit</tpl>" class="btnInput" /></td>
                </tr>
      </table>
        </fieldset>
        <!-- end of regBtn -->
        <fieldset>
            <legend><tpl>$register_iagree_title</tpl><!--服务条款--></legend>
            <div id="termsOfService" class="textCenter">
            	<textarea readonly="readonly"><tpl>$register_iagree_info</tpl></textarea>
            </div><!-- end of termsOfService -->
        </fieldset>
    </form>
    </div><!-- end of wildCurveWrapper -->
    <div id="footer">
<tpl>include footer.html </tpl>
    </div><!-- end of footer -->
</div><!-- end of container -->
<script language="javascript">
<!--
$(document).ready(function(){
	$("#member_register").validate({
		rules:		{
			member_name: {required:true,minlength:2,maxlength:20},
		  member_passwd: {required:true,minlength:6,maxlength:20},
	   confirm_password: {required:true,minlength:6,maxlength:20,equalTo:"#member_passwd"},
	   	   member_email: {required:true,email:true},
		   	<tpl>if REG_CODE=='1'</tpl>
		   	   reg_code: {required:true},
			 <tpl>/if</tpl>
			   	 iagree: {required:true}
		},
		messages:	{
			member_name: {required:"<tpl>$register_name_false</tpl>",		minlength:"<tpl>$register_name_min</tpl>",	maxlength:"<tpl>$register_name_max</tpl>"},
		  member_passwd: {required:"<tpl>$register_passwd_empty</tpl>",		minlength:"<tpl>$register_passwd_min</tpl>",maxlength:"<tpl>$register_passwd_max</tpl>"},
	   confirm_password: {required:"<tpl>$register_check_passwd</tpl>",		minlength:"<tpl>$register_passwd_min</tpl>",maxlength:"<tpl>$register_passwd_max</tpl>",equalTo:"<tpl>$register_check_passwd1</tpl>"},
	   	   member_email: {required:"<tpl>$register_email_empty</tpl>",		email:"<tpl>$register_check_email</tpl>"},
		   <tpl>if REG_CODE=='1'</tpl>
		   	   reg_code: {required:"<tpl>$register_code_false</tpl>"},
			<tpl>/if</tpl>
			   	 iagree: {required:"<tpl>$register_iagree_con</tpl>"}		
		}
	});
});

//-->
</script>
</body>
</html>
