<!--#include file="inc_top.asp" --><!--#include file="conn/email.asp" -->
<tr>
<td height="350" valign="top" align="center"><br><br><table width=600 border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td>
<% 
 if request("name")<>"" and request("admin")<>"" then 
 set rs = conn.execute("select * from user_name where name='"&nohack(request("name"))&"'")
     if  not rs.eof then 
       response.write "&nbsp;&nbsp;&nbsp;&nbsp;您的网店名字有人用过,请重新填写一个吧。"
       response.end 
     end if  
	 rs.close
	 set rs = conn.execute("select * from user_name where admin='"&nohack(request("admin"))&"'")
	   if  not  rs.eof then
	     response.write "&nbsp;&nbsp;&nbsp;&nbsp;您的管理员登陆名字有人用过,请重新填写一个吧"
		 response.end 
	   end if 
	   rs.close
           set rs=nothing
  set  rsr=server.createobject("adodb.recordset")
       sqls="select * from user_name"
	   rsr.open sqls,conn,1,3
	   rsr.addnew
	   rsr("lbid")=nohack(request("lbid"))
	   rsr("xlbid")=nohack(request("xlbid"))
	   rsr("name")=nohack(request("name"))
	   rsr("name2")=nohack(request("name2"))
	   rsr("dz")=nohack(request("dz"))
	   rsr("pc")=nohack(request("pc"))
	   rsr("tel")=nohack(request("tel"))
	   rsr("fax")=nohack(request("fax"))
	   rsr("email")=nohack(request("email"))
	   rsr("email2")=nohack(request("email2"))
	   rsr("sl")=nohack(request("sl"))
	   rsr("admin")=nohack(request("admin"))
	   rsr("password")=nohack(request("password"))
	   rsr.update
	   rsr.close
           set rsr=nothing 
	   if request("email")&"@"&request("email2")<>"" then
    html="<html><head><title>网上商店的开通事项</title><meta http-equiv=Content-Type content=text/html; charset=gb2312></head><body bgcolor=#FFFFFF text=#000000>"
    html=html&"亲爱的"&nohack(request("name"))&",您好！<br><br>　 欢迎您成为我购购商城的网店会员！！<br><br>　　您的网店管理登陆帐号为:"&nohack(request("admin"))&"<br>您的密码为: "&nohack(request("password"))&"<br>　<br>　"
	html=html&"您的商城将在24小时内开通！同时请您准备好您的营业执照（或个人身份证）复印件及产品销售许可证明材料（如厂家销售代理协议、销售许可证、厂家供货书等），推广期过后我们将统一审核！<br>" 
    html=html&"</body></html>"
email = request("email")&"@"&request("email2")
bt = ""&my_name&"商家注册成功"
if my_mailto="0" then
smtp email,bt,html
elseif my_mailto="1" then
jmail email,bt,html
end if
end if
	 
	 response.write"&nbsp;&nbsp;&nbsp;&nbsp;<font color=red>系统提示：</font><font color=#666666>祝贺您申请成功！一封注册邮件己发到您的邮箱，请注意查收。请您携带您的营业执照（或个人身份证）复印件，及产品销售许可证明材料（如厂家销售代理协议、销售许可证、厂家供货书等），到我们的办公地点办理开通手续！！</font>"
   	 response.write"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;管理员登陆网址：<a href=http://my.onshp.com><font color=#ff6600>http://my.onshp.com</font></a>"
 	 response.write"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请注意管理员登陆ID和管理员密码不要混淆，请在初次登陆后及时更改您的初始密码。"
	 response.write"<br><br>&nbsp;&nbsp;&nbsp;&nbsp;"

end if 	   
      %>
</td>
  </tr>
</table></td>
  </tr>
</table>
<!--#include file="inc_end.asp" -->