📄 reg.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="webtop.asp"-->
<%dim action
action=request.QueryString("action")%>
<html>
<head>
<title><%=webname%>--新用户注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=JavaScript>
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkuserinfo()
{
if(checkspace(document.userinfo.username.value))
{
document.userinfo.username.focus();
alert("对不起,请填写用户名!");
return false;
}
if(checkspace(document.userinfo.userpassword.value) || document.userinfo.userpassword.value.length < 6 || document.userinfo.userpassword.value.length >20) {
document.userinfo.userpassword.focus();
alert("密码长度不能为空,在6位到20位之间,请重新输入!");
return false;
}
if(document.userinfo.userpassword.value != document.userinfo.userpassword1.value) {
document.userinfo.userpassword.focus();
document.userinfo.userpassword.value = '';
document.userinfo.userpassword1.value = '';
alert("两次输入的密码不同,请重新输入!");
return false;
}
if(document.userinfo.useremail.value.length!=0)
{
if (document.userinfo.useremail.value.charAt(0)=="." ||
document.userinfo.useremail.value.charAt(0)=="@"||
document.userinfo.useremail.value.indexOf('@', 0) == -1 ||
document.userinfo.useremail.value.indexOf('.', 0) == -1 ||
document.userinfo.useremail.value.lastIndexOf("@")==document.userinfo.useremail.value.length-1 ||
document.userinfo.useremail.value.lastIndexOf(".")==document.userinfo.useremail.value.length-1)
{
alert("Email地址格式不正确!");
document.userinfo.useremail.focus();
return false;
}
}
else
{
alert("Email不能为空!");
document.userinfo.useremail.focus();
return false;
}
if(checkspace(document.userinfo.quesion.value)) {
document.userinfo.quesion.focus();
alert("对不起,请填写密码提问!");
return false;
}
if(checkspace(document.userinfo.answer.value)) {
document.userinfo.answer.focus();
alert("对不起,请填写密码提问的答案!");
return false;
}
}
function checkshouhuoxx()
{
if(checkspace(document.shouhuoxx.userzhenshiname.value)) {
document.shouhuoxx.userzhenshiname.focus();
alert("对不起,请填写真实姓名!");
return false;
}
if(checkspace(document.shouhuoxx.shouhuodizhi.value)) {
document.shouhuoxx.shouhuodizhi.focus();
alert("对不起,请填写收货人详细收货地址!");
return false;
}
if(checkspace(document.shouhuoxx.youbian.value)) {
document.shouhuoxx.youbian.focus();
alert("对不起,请填写邮编!");
return false;
}
if(document.shouhuoxx.youbian.value.length!=6) {
document.shouhuoxx.youbian.focus();
alert("对不起,请正确填写邮编!");
return false;
}
if(checkspace(document.shouhuoxx.usertel.value)) {
document.shouhuoxx.usertel.focus();
alert("对不起,请留下您的联系电话!");
return false;
}
if(checkspace(document.shouhuoxx.songhuofangshi.value)) {
document.shouhuoxx.songhuofangshi.focus();
alert("对不起,您还没有选择送货方式!");
return false;
}
if(checkspace(document.shouhuoxx.zhifufangshi.value)) {
document.shouhuoxx.zhifufangshi.focus();
alert("对不起,您还没有选择支付方式!");
return false;
}
}
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
//-->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">
<%select case action
case ""%>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="1" bgcolor="C9C9C8"><img src="../images/block.gif" width="1" height="1"></td>
<td><br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td height="1" bgcolor="#cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
</tr>
<tr>
<td height="25" bgcolor="#efefef"><strong> <img src="images/dot_03.gif" width="9" height="9" border="0"> </strong><b>新用户注册</b></td>
</tr>
<tr>
<td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="33"><br> <table width="500" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td height="22"><b><%=webname%>注册条约</b></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><div align="center">
<table width="490" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<%call tiaoyue()%>
您只有无条件接受以下所有服务条款,才能继续申请:
<p> </p>
<p> (1)提供及时、详尽及准确的个人资料。<br>
(2)不断更新注册资料,符合及时、详尽准确的要求。所有原始键入的资料将引用为注册资料。<br>
另外,用户可授权本站向第三方透露其注册资料,否则本站不能公开用户的姓名、住址、出件地址、电子邮箱、帐号。除非:<br>
(1)用户要求本站或授权某人通过电子邮件服务透露这些信息。<br>
(2)相应的法律、法规要求及程序服务需要本站提供用户的个人资料。</p>
<p> 如果用户提供的资料不准确,不真实,不合法有效,本站保留结束用户使用本站各项服务的权利。</p>
<p>用户在享用本站各项服务的同时,同意接受本站提供的各类信息服务。</p>
<p>服务修订</p>
<p> 本站保留随时修改或中断服务而不需通知用户的权利。用户接受本站行使修改或中断服务的权利,本站不需对用户或第三方负责。</p>
<p> </p>
<p>用户隐私制度</p>
<p> 尊重用户个人隐私是本站的一项基本政策。所以,作为对以上第二点个人注册资料分析的补充,本站一定不会公开、编辑或透露用户的注册资料及保存在本站各项服务中的非公开内容,除非本站在诚信的基础上认为透露这些信息在以下几种情况是必要的:</p>
<p> (1)遵守有关法律规定,包括在国家有关机关查询时,提供用户在本站的网页上发布的信息内容及其发布时间、互联网地址或者域名。<br>
(2)遵从本站产品服务程序。<br>
(3)保持维护本站的商标所有权。<br>
(4)在紧急情况下竭力维护用户个人和社会大众的隐私安全。</p>
<p> 用户在此授权本站可以向其电子邮箱发送商业信息。</p>
<p> </p>
<p>用户的帐号、密码和安全性</p>
<p> 您一旦注册成功成为用户,您将得到一个密码和帐号。如果您未保管好自己的帐号和密码而对本站、或第三方造成的损害,您将负全部责任。另外,每个用户都要对其帐户中的所有活动和事件负全责。您可随时改变您的密码和图标,也可以结束旧的帐户重开一个新帐户。用户同意若发现任何非法使用用户帐号或安全漏洞的情况,立即通告本站。</p>
<p> </p>
<p>本站虚拟社区信息的储存及限制</p>
<p> 本站不对用户所发布信息的删除或储存失败负责。本站保留判定用户的行为是否符合本站虚拟社区服务条款的要求和精神的权利,如果用户违背了服务条款的规定,则中断其虚拟社区服务的帐号。本社区内所有的文章版权归原文作者和本站共同所有,任何人需要转载社区内文章,必须征得原文作者或本站授权。</p>
<p> </p>
<p>用户管理</p>
<p> 用户单独承担发布内容的责任。用户对服务的使用是根据所有适用于服务的地方法律、国家法律和国际法律标准的。用户承诺:<br>
(1)在本站的网页上发布信息或者利用本站的服务时必须符合中国有关法规(部分法规请见附录),不得在本站的网页上或者利用本站的服务制作、复制、发布、传播以下信息:</p>
<p> (a)反对宪法所确定的基本原则的;<br>
(b) 危害国家安全,泄露国家秘密,颠覆国家政权,破坏国家统一的;<br>
(c) 损害国家荣誉和利益的;<br>
(d) 煽动民族仇恨、民族歧视,破坏民族团结的;<br>
(e) 破坏国家宗教政策,宣扬邪教和封建迷信的;<br>
(f) 散布谣言,扰乱社会秩序,破坏社会稳定的;<br>
(g) 散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的;<br>
(h) 侮辱或者诽谤他人,侵害他人合法权益的;<br>
(i) 含有法律、行政法规禁止的其他内容的。</p>
<p> 若用户的行为符合以上提到的服务条款,本站将作出独立判断立即取消用户服务帐号。</p> </td>
</tr>
</table>
</div></td>
</tr>
</table>
<table width="50%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td><form name="form1" method="post" action="reg.asp?action=yes">
<div align="center">
<input name="Submit4" type="submit" class="go-wenbenkuang" value="我接受条约同意注册">
<input name="Submit32" type="button" class="go-wenbenkuang" value="我不同意注册" onClick="javascript:window.history.go(-1)">
</div>
</form></td>
</tr>
</table></td>
<td width="1" bgcolor="C9C9C8"><img src="../images/block.gif" width="1" height="1"></td>
</tr>
</table>
<br><%case "yes"%>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="9" bgcolor="#C9C9C8"><img src="images/block.gif" width="1" height="1"></td>
<td width="762"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
</tr>
<tr>
<td height="25" bgcolor="#efefef"><strong> <img src="images/dot_03.gif" width="9" height="9" border="0"> </strong><b>新用户注册</b></td>
</tr>
<tr>
<td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
</tr>
</table>
<form action="reg.asp?action=save" method="post" name="userinfo" id="userinfo">
<table width="70%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td><span class="pad">用 户 名:</span><span class="pad">
<input name="username" class="wenbenkuang" type="text" id="username2">
*<br>
请填写您用来登录的用户名。</span></td>
</tr>
<tr>
<td><span class="pad">电子邮件:
<input name="useremail" class="wenbenkuang" type="text" id="useremail2">
* <br>
请填写您有效的邮件地址,以便于我们为您提供有效的服务。 </span></td>
</tr>
<tr>
<td><span class="pad">密 码:</span><span class="pad">
<input name="userpassword" class="wenbenkuang" type="password" id="userpassword2">
* <br>
长度必须大于6个字符小于20个字符,只能为英语字、数字,例如:snsn2003等。</span></td>
</tr>
<tr>
<td height="35"><span class="pad">确认密码:
<input name="userpassword1" class="wenbenkuang" type="password" id="userpassword12">
* <br>
请将输入的密码再次输入,以免设置密码出错。 </span></td>
</tr>
<tr>
<td><span class="pad">密码提问:
<input name="quesion" class="wenbenkuang" type="text" id="quesion2">
*(用于密码遗忘时使用) </span></td>
</tr>
<tr>
<td><span class="pad">密码答案:
<input name="answer" class="wenbenkuang" id="answer2">
*(密码遗忘时将验证此答案) </span></td>
</tr>
<tr>
<td><span class="pad">
<input name="Submit" type="submit" class="go-wenbenkuang" value="提交信息" onClick="return checkuserinfo();">
<input name="Submit2" type="reset" class="go-wenbenkuang" value="重置">
<input name="Submit3" type="button" class="go-wenbenkuang" value="返回" onClick="javascript:window.history.go(-1)">
(带*为必填项) </span></td>
</tr>
</table>
</form> </td>
<td width="1" bgcolor="#C9C9C8"><img src="images/block.gif" width="1" height="1"></td>
</tr>
</table>
<%case "yes2"%>
<script language=JavaScript>
<%dim i,j
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * From shop_szSheng order by shengorder",conn,1,1
%>
var selects=[];
selects['xxx']=new Array(new Option('请选择城市……','xxx'));
<%
for i=1 to rs_s.recordcount
%>
selects['<%=rs_s("ShengNo")%>']=new Array(
<%
set rs_s1=server.createobject("adodb.recordset")
rs_s1.open "select * From shop_szShi where shengid="&rs_s("id")&" order by shiorder",conn,1,1
if rs_s1.recordcount>0 then
for j=1 to rs_s1.recordcount
if j=rs_s1.recordcount then
%>
new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'));
<% else
%>
new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'),
<%
end if
rs_s1.movenext
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -