<!--#include file="usertop.asp"-->
<!--#include file="md5.asp"-->
<!--#include file=mail.asp-->
<!--#include file="foxx.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>注册会员--<%=title%>--<%=web%></title>
</head>

<body>

<div align="center">
<table cellSpacing="0" cellPadding="0" width="760" border="0" id="table1">
		<tr>
			<td  height="25" colspan="2" class="tdtop"><b>&nbsp; 您的位置  
			<font color="#FFFFFF">-></font> <a class="scap1" href="index.htm"><%=title%></a>
			<font color="#FFFFFF">-></font> 注册会员：</b></td>
		</tr>
		<tr bgColor="#d9ebe5">
			<td  width="244" bgcolor="#FFFFFF" rowspan="15" valign="top">
			<table border="1" width="100%" id="table2" bordercolorlight="#D9EBE5" cellpadding="0" bordercolordark="#D9EBE5" style="border-collapse: collapse">
				<tr>
					<td bgcolor="#D9EBE5"><b>
					<img border="0" src="images/a01.gif" width="25" height="25">会员类型说明：</b></td>
				</tr>
				<tr>
					<td class="tdtxt06">●[<font color="#FF3300"><b><%=aname%>会员</b></font>]<br>
&nbsp; 可以发布信息，但须本站审核，信息有效期由本站审核设置。
					<br>　但不能发布图片信息，无网上店铺。
					<br>
&nbsp; 注册时无须审核。<br>
&nbsp; 会员有效期：<font color="#FF0000"><%=dqsja%></font>天。</td>
				</tr>
				<tr>
					<td class="tdtxt06">●[<font color="#FF3300"><b><%=bname%>会员</b></font>]<br>
&nbsp; 可以发布信息，每次<font color="#FF0000"><%=hxb%></font><%=bname%>，无须本站审核，信息有效期扣除<%=bname%>。
					<br>　能发布图片信息，每次扣除<font color="#FF0000"><%=tdxb%></font><%=bname%>。
					<br>  &nbsp;  网上店铺凭<font color="#FF0000"><%=ddxb%></font><%=bname%>申请，由本店审核后才能开通。<br>
&nbsp; 注册时须审核。 <br>
&nbsp; 有效期：<font color="#FF0000"><%=dxb%></font><%=bname%>用完止。</td>
				</tr>
				<tr>
					<td class="tdtxt06">●[<font color="#FF3300"><b><%=cname%>会员</b></font>]<br>
&nbsp; 可以发布信息，无须本站审核，信息有效期自主设定。
					<br>　发布图片信息无限制，拥有个人网上店铺。<br>
&nbsp; 为高级用户，可以审核本站信息及商品信息。<br>
&nbsp; 注册时须审核。 <br>
&nbsp; 会员有效期：<font color="#FF0000"><%=dqsjc%></font>天。</td>
				</tr>
				<tr>
					<td class="tdtxt06">●<font color="#FF3300"><b><%=cname%>会员</b></font>及<font color="#FF3300"><b><%=bname%>会员</b></font>在本站未审核前享受<font color="#FF3300"><b><%=aname%>会员</b></font>权利，本站审核并确认后方可享受相应权利。</td>
				</tr>
			</table>
			</td>
			<td valign="top">
<%
dim username,password,email,lxrname,dizhi,code,usertel,phone,qq,huitype,sheng,shi,xiang,tjrname
dim rs,sql
username=trim(request("username"))
password=request("password")
email=request("email")
lxrname=trim(request("lxrname"))
dizhi=trim(request("dizhi"))
code=trim(request("code"))
usertel=trim(request("usertel"))
phone=trim(request("phone"))
qq=trim(request("qq"))
huitype=trim(request("huitype"))
sheng=trim(request("sheng"))
shi=trim(request("shi"))
xiang=trim(request("xiang"))
tjrname=trim(request("tjrname"))
if cstr(session("getcode"))<>cstr(trim(request("verifycode"))) then
response.Write "<script LANGUAGE='javascript'>alert('请输入正确的验证码！');history.go(-1);</script>"
response.end
end if
chkfox(lxrname)
if nothaveChinese(lxrname)=true then
	Response.Write"<div align='center'><table cellSpacing='0' cellPadding='0' width='100%' border='0' id='table2'><tr><td align='middle' width=600 class='p9t'><br><br><li>请填写您的中文名字！[<a href='javascript:history.back(-1);' style='text-decoration: none'><font color='red'>返回上页</font></a>]<br><br><br><br></td></tr></table></div>"
response.end
end if
if IsValidemail(email)=false then
	Response.Write"<div align='center'><table cellSpacing='0' cellPadding='0' width='100%' border='0' id='table2'><tr><td align='middle' width=600 class='p9t'><br><br><li>邮箱格式不正确！[<a href='javascript:history.back(-1);' style='text-decoration: none'><font color='red'>返回上页</font></a>]<br><br><br><br></td></tr></table></div>"
response.end
end if
if not isnumeric(code) or len(code)<>6 then
	Response.Write"<div align='center'><table cellSpacing='0' cellPadding='0' width='100%' border='0' id='table2'><tr><td align='middle' width=600 class='p9t'><br><br><li>邮政编码填写错误！[<a href='javascript:history.back(-1);' style='text-decoration: none'><font color='red'>返回上页</font></a>]<br><br><br><br></td></tr></table></div>"
response.end
end if

set rs=server.createobject("adodb.recordset")
sql="select * from [FOX_user] where username='"&username&"'"
rs.open sql,conn,1,3
if not rs.eof or not rs.bof then
  if trim(rs("username"))=username then
	Response.Write"<div align='center'><table cellSpacing='0' cellPadding='0' width='100%' border='0' id='table2'><tr><td align='middle' width=600 class='p9t'><br><br><li>此用户名称已存在，请更换！[<a href='javascript:history.back(-1);' style='text-decoration: none'><font color='red'>返回上页</font></a>]<br><br><br><br></td></tr></table></div>"
 response.end
 end if
 else
 if trim(rs("username"))<>username then
	rs.addnew
rs("username")=username
rs("password")=md5(password)
rs("lxrname")=lxrname
rs("email")=email
rs("dizhi")=dizhi
rs("code")=code
rs("usertel")=usertel
rs("phone")=phone
rs("qq")=qq
rs("sheng")=sheng
rs("shi")=shi
rs("xiang")=xiang
rs("tjrname")=tjrname
rs("huitype")=huitype
rs("zcsj")=now()
if huitype=0 then
rs("dqsj")=rs("zcsj")+dqsja
rs("yz")=1
end if
if huitype=1 then
rs("dxb")=dxb
rs("yz")=0
end if
if huitype=2 then
rs("dqsj")=rs("zcsj")+dqsjc
rs("yz")=0
end if
rs.update
end if
end if
rs.close
set rs=nothing
if tjrname<>"" then
set rs=server.createobject("adodb.recordset")
sql="select jf from [FOX_user] where username='"&tjrname&"'"
rs.open sql,conn,1,3
if not rs.eof or not rs.bof then
rs("jf")=rs("jf")+jjf
rs.update
end if
end if
rs.close
set rs=nothing
%>
			<table width="489" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" id="table173">
              <tr> 
                <td width="16">&nbsp;                </td>
                <td width="456"class="p9t">
<p align="left" style="line-height: 200%; margin-top: 0; margin-bottom: 0">
<%if huitype=0 then%><font color="#FF0000"><b>您注册的是<%=aname%>会员，立即可以登陆了！</b></font>
<%elseif huitype=1 then%><font color="#FF0000"><b>您注册的是<%=bname%>会员，请登陆并完善资料等待我们审核！</b></font>
<%elseif huitype=2 then%><font color="#FF0000"><b>您注册的是<%=cname%>会员，请登陆并完善资料等待我们审核！</b></font>
<%end if%></td>
                <td width="17">&nbsp;                </td>
              </tr>
              <tr> 
                <td width="16">
                　</td>
                <td width="456" bgcolor="#FFFFFF">
                  <table width="454" height="120" border="0" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" class="index_bk" id="table174">
                    
                    <tr> 
                      <td height="19" width="454" bordercolor="#D6D6D6">
<p align="center" style="line-height: 200%; margin-top: 0; margin-bottom: 0">恭喜<%=name%>！<font color="#FF0000"><b>注册成功了！</b></td>
                    </tr>
                    
                    <tr> 
                      <td height="19" width="454" bordercolor="#D6D6D6">
<li>
<p align="center">&nbsp;我们同时将密码发送到了|<font color=""#ff0000""><b><%=email%></b>|，请保管好您的密码</p>
                      <table cellspacing="0" cellpadding="3" width="98%" align="center" border="0" id="table175">
                        <!---------------------->
                      </table>
              
                        <table cellspacing="3" cellpadding="3" width="98%" align="center" border="0" id="table176">
                          <form id="f1" name="thisForm" action="loginchk.asp" method="POST">
                            <tr> 
                              <td width="48%"> 
                                <p align="center">&nbsp;登陆帐号:
                              </td>
                              <td width="52%"> 
                                <input style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" class="button01" id="username" maxlength="20" size="10" name="username" value="<%=username%>">
                              </td>
                            </tr>
                            <tr> 
                              <td> 
                                <p align="center">&nbsp;登陆密码:
                              </td>
                              <td> 
                                <input style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" class="button01" id="password" maxlength="32" size="10" name="password" value="<%=password%>" type="password">
                              </td>
                            </tr>
                            <tr> 
                              <td>　</td>
                              <td> 
                                <input name="I3" type="submit" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: #a2a2a2 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #a2a2a2 1px solid; BORDER-TOP: #ffffff 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" value="点击登陆"  border="0">
                              </td>
                            </tr>
                          </form>
                        </table>
                    </td>
                    </tr>
                  </table>
                </td>
                <td width="17">
                　</td>
              </tr>
              <tr> 
                <td width="16">&nbsp;                </td>
                <td width="456">&nbsp;                </td>
                <td width="17">&nbsp;                </td>
              </tr>
            </table>
			</td>
			</tr>

</table>

</div>

</body>
<!--#include file="userbottom.asp"-->

<%call mail()
sub mail()
dim mailbody,Jmail
mailbody="恭喜你成为<a href="&web&">"&title&"</a>的尊敬会员！<br><br>你的登陆帐号："&username&"<br><br>你的登陆密码："&password&"<br><br>你现在就可以登录这个地址发布你的信息了：<a href="&web&">"&web&"</a>"
Set Jmail=server.createobject("Jmail.Message")
Jmail.Charset ="gb2312"
Jmail.Silent =true
JMail.ContentType = "text/html"
Jmail.Priority = 3
Jmail.MailServerUserName = mailname
Jmail.MailServerPassword = mailpass
Jmail.From = mailform
Jmail.FromName =""&title&""
Jmail.Subject ="恭喜你注册成功，请查收登陆帐号！"
Jmail.AddRecipient ""&email&""
Jmail.Body = mailbody
Jmail.Send(mailsmtp)
Set Jmail=nothing
end sub
%></body></html>