<!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>
<title>支付平台 - 填写商户信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link type="text/css" rel="stylesheet" href="/css/reset.css" />
<link type="text/css" rel="stylesheet" href="/css/main.css" />
<link type="text/css" rel="stylesheet" href="/css/template_home.css" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/formValidator_min.js" type="text/javascript"></script>
<script src="js/formValidatorRegex.js" type="text/javascript"></script>

</head>
<body>
<div id="wrap">
	<div id="head">
		<div id="headtitle"><a href="/"><img src="/images/defaultpage/logo.jpg" border="0" alt="" /></a></div>
		<div id="qq"></div>
		<div class="clear"></div>
	</div>
	<ul id="menu">
		<li><a id="menu0" href="/">首页</a></li>
		<li><a id="menu1" href="/user/Profits.asp">提成比例</a></li>
		<li><a  class="menu_current" href="/user/startup.asp">注册商户</a></li>
		<li><a href="#">支付演示</a></li>
		<li><a href="#">订单查询</a></li>
	</ul>
	
		<form id="regform" name="regform" action="regs.asp" method="post" onsubmit="return jQuery.formValidator.PageIsValid('1')">


			<div style="margin:30px auto 15px auto; width:880px">
				<div id="thead" style="height:50px; background:url(/images/reg/thead.gif) top center no-repeat"></div>
				<div id="tbody" style="padding:20px 35px; background:url(/images/reg/tbody.gif) repeat-y">
					<div style="margin:auto; width:760px">

						<div class="vspace"></div>
						<div class="vspace"></div>

						<div class="highlightArea bigger">
							申请通行证，
							完成以下资料即刻开通。
						</div>
						<div class="vspace"></div>

						<table cellpadding="7" cellspacing="0" width="100%" align="center" class="fixed ibigger">
							<tr>
								<td width="140"></td>
								<td valign="bottom" height="30"></td>
							</tr>
							<tr>
								<td class="right">您的Email</td>
								<td><input name="username" type="text" maxlength="30" id="username" class="bigger" style="width:200px;" /> <span class="t2 simsun" id="usernameTip">*</span></td>
							</tr>
							<tr>
								<td class="right">密码</td>
								<td><input name="password" type="password" maxlength="30" id="password" class="bigger" style="width:200px;" /> <span class="t2 simsun" id="passwordTip">*</span></td>
							</tr>
							<tr>
								<td class="right">确认密码</td>
								<td><input name="passwordre" type="password" maxlength="30" id="passwordre" class="bigger" style="width:200px;" /> <span class="t2 simsun" id="passwordreTip">*</span></td>
							</tr>



							<tr>
								<td width="140"></td>
								<td valign="bottom" height="30">用于商户结算提现，请务必填写真实。</td>
							</tr>
							<tr>
								<td class="right">开户人姓名</td>
								<td><input name="accountname" type="text" maxlength="28" id="accountname" class="bigger" style="width:200px;" /> <span class="t2 simsun" id="accountnameTip">*</span></td>
							</tr>
							<tr>
								<td class="right">开户银行</td>
								<td><select name="bank" id="bank" class="bigger" style="width:206px;">
	<option selected="selected" value="-1">选择...</option>
	<option value="工商银行">中国工商银行</option>
	<option value="农业银行">中国农业银行</option>
	<option value="建设银行">中国建设银行</option>
	<option value="招商银行">招商银行</option>

</select> <span class="t2 simsun" id="bankTip">*</span></td>
							</tr>
							<tr>
								<td class="right">开户银行账号</td>
								<td><input name="bankacc" type="text" maxlength="19" id="bankacc" class="bigger" style="width:200px;" /> <span class="t2 simsun" id="bankaccTip">*</span></td>
							</tr>
							<tr>
								<td class="right">开户银行城市</td>
								<td><input name="bankname" type="text" maxlength="24" id="bankname" class="bigger" style="width:200px;" /> <span class="t2 simsun" id="banknameTip">*</span></td>
							</tr>

							<tr>
								<td></td>
								<td valign="bottom" height="30">我们与您取得联系的方式，也是帐户保护的重要依据。</td>
							</tr>
							<tr>
								<td class="right">手机</td>
								<td><input name="mobile" type="text" maxlength="11" id="mobile" class="bigger" style="width:200px;" /> <span class="t2 simsun" id="mobileTip">*</span></td>
							</tr>
							<tr>
								<td class="right">腾讯QQ</td>
								<td><input name="qq" type="text" maxlength="12" id="qq" class="bigger" style="width:200px;" /> <span class="t2 simsun" id="qqTip">*</span></td>
							</tr>




							<tr>
								<td></td>

							</tr>
							<tr>
								<td height="50"></td>
								<td><input id="acceptTerm" type="checkbox" name="acceptTerm" checked="checked" /><label for="acceptTerm">我已阅读并接受</label><a href="#">《商户开通须知与条款》</a></td>
							</tr>
							<tr>
								<td></td>
								<td><input type="submit" name="save" value="开通商户" id="save" class="button" style="height:30px;width:100px;" /></td>
							</tr>
						</table>
					</div>
				</div>
				<div id="tfoot" style="height:20px; background:url(/images/reg/tfoot.gif) top center no-repeat"></div>
			</div>
			<div style="height:60px"></div>
		
</form>
	
</div>


<script language="JavaScript" type="text/javascript">
$.formValidator.initConfig({alertMessage:false});
    $("#username").formValidator({onshow:"使用邮箱作为用户名(邮箱不能为空)请输入邮箱",onfocus:"使用邮箱作为用户名(会发送邮件进行帐号激活,请认真填写)",oncorrect:"填写正确",defaultvalue:"@"}).InputValidator({min:6,max:100,onerror:"长度为6至100个字符"}).RegexValidator({regexp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onerror:"邮箱格式不正确"})
	    .AjaxValidator({
	    type : "get",
		url : "check_Login.asp?"+$("#username"),
		datatype : "json",
		success : function(data){
            if( data == "1" )
			{
                return true;
			}
            else
			{
                return false;
			}
		},
		buttons: $("#button"),
		error: function(){alert("服务器没有返回数据，可能服务器忙，请重试");},
		onerror : "您的用户名已被注册",
		onwait : "正在对用户名进行合法性校验，请稍候..."
	});
	
	$("#password").formValidator({onshow:"请输入密码",onfocus:"使用英文字母加数字的组合，且在16个字符以内",oncorrect:"填写正确"}).InputValidator({min:6,max:16,onerror:"密码必须填写，使用英文字母加数字的组合。"});
	
	$("#passwordre").formValidator({onshow:"请再输入一遍您上面输入的密码",onfocus:"请再输入一遍您上面输入的密码",oncorrect:"填写正确"}).InputValidator({min:6,max:16,onerror:"请再输入一遍您上面输入的密码"}).CompareValidator({desID:"password",operateor:"=",onerror:"请再输入一遍您上面输入的密码"});
	
	
	$("#mobile").formValidator({empty:false,onshow:"请输入您的手机号码",onfocus:"请输您的入手机号码",oncorrect:"填写正确"}).InputValidator({min:11,max:11,onerror:"请输入11位的手机号码"}).RegexValidator({regexp:"mobile",datatype:"enum",onerror:"手机号码格式不正确"});

	$("#qq").formValidator({empty:false,onshow:"请输入QQ号码",onfocus:"请输入QQ号码",oncorrect:"填写正确"}).InputValidator({min:5,max:12,onerror:"QQ号码必须填写，请仔细填写。"}).RegexValidator({regexp:"qq",datatype:"enum",onerror:"QQ格式不正确"});

    $("#bank").formValidator({onshow:"请正确选择开户银行，否则无法给您汇款",oncorrect:"选择正确"}).InputValidator({min:1,onerror:"请正确选择开户银行"});


    $("#bankname").formValidator({onshow:"请填写详细的开户支行名称，如：北京前门支行",onfocus:"请填写详细的开户支行名称，如：北京前门支行",oncorrect:"填写正确"}).InputValidator({min:4,onerror:"请填写详细的开户支行名称，如：北京前门支行"});

    $("#accountname").formValidator({onshow:"必须要跟开户银行帐号一致。注册后不可修改",onfocus:"必须要跟开户银行帐号一致。注册后不可修改",oncorrect:"填写正确"}).InputValidator({min:1,onerror:"必须要跟开户银行帐号一致。注册后不可修改"});

    $("#bankacc").formValidator({onshow:"请输入您的银行帐号",onfocus:"请输入您的银行帐号",oncorrect:"填写正确"}).InputValidator({min:10,max:50,onerror:"银行帐号长度为10至50个数字或是字符"});
    

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


