📄 reg.asp
字号:
<!--
┌─ shopxp.cn──────────────┐
│ 免费版难免存在不足,建议你使用正式版 │
│ 正式版用户提供免费升级24小时内排除故障│
│ 请到www.shopxp.cn进行前台和后台的测试 │
│ 热线:010-69209701-801 QQ:83107971 │
└────────────────────┘
-->
<!--#include file="conn/conn.asp"-->
<!--#include file="conn/webconfig.asp"-->
<%dim action
action=request.QueryString("action")%>
<html><head><title><%=webname%>--新用户注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="img/css.css" rel="stylesheet" type="text/css">
<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;
}
if(checkspace(document.userinfo.userzhenshiname.value)) {
document.userinfo.userzhenshiname.focus();
alert("对不起,请填写真实姓名!");
return false;
}
if(checkspace(document.userinfo.shouhuodizhi.value)) {
document.userinfo.shouhuodizhi.focus();
alert("对不起,请填写收货人详细收货地址!");
return false;
}
if(checkspace(document.userinfo.youbian.value)) {
document.userinfo.youbian.focus();
alert("对不起,请填写邮编!");
return false;
}
if(document.userinfo.youbian.value.length!=6) {
document.userinfo.youbian.focus();
alert("对不起,请正确填写邮编!");
return false;
}
if(checkspace(document.userinfo.usertel.value)) {
document.userinfo.usertel.focus();
alert("对不起,请留下您的联系电话!");
return false;
}
if(checkspace(document.userinfo.songhuofangshi.value)) {
document.userinfo.songhuofangshi.focus();
alert("对不起,您还没有选择送货方式!");
return false;
}
if(checkspace(document.userinfo.zhifufangshi.value)) {
document.userinfo.zhifufangshi.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>
<style type="text/css">
<!--
.style1 {font-size: 9px}
.style2 {font-size: 9}
.style3 {
font-size: 14px;
font-weight: bold;
}
.style4 {
font-size: 14px;
font-weight: bold;
color: #000000;
}
.style5 {color: #FF0000}
.style6 {
color: #000000;
font-weight: bold;
}
.style7 {
color: #353535;
font-weight: bold;
}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">
<!--#include file="webtop.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=772 align=center border=0>
<TBODY>
<TR>
<TD class=b vAlign=top align=left width=764><%select case action
case ""%>
<table width="760" align="center" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td height="22" bgcolor="#FFFFFF" bordercolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="80%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" align="center"><br>
<span class="style3">请用户仔细阅读<%=webname%>注册条约</span><br></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="80%" height="367" border="0" align="center" cellpadding="10" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#ffffff">
<td><%call tiaoyue()%></td>
</tr>
</table></td>
</tr>
</table>
<br>
<table name=agree border="0" cellpadding="10" cellspacing="0" align=center width="80%">
<tr align=center>
<td width="50%" align="right"><FORM name=register method=post action=reg.asp?action=yes>
<input type="hidden" name="action" value="agree">
<INPUT class="go-wenbenkuang" type=submit value=" 同意注册 " name=Submit>
</FORM></td>
<td width="50%" align="left"><FORM action=index.asp method=post>
<INPUT class=go-wenbenkuang type=submit value=" 我不同意 ">
</FORM></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<%case "yes"%>
<table width="760" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF" bordercolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><p class="style4"><br>
请您务必详细填写您的信息,并核对无误,(带 <span class="style5">**</span> 号为必填项) </p>
<form name=userinfo method=post action=reg.asp?action=save>
<table width="80%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" align="center">
<tr>
<td height=15 colspan=2 bgcolor="#f1f1f1"><span class="style6">>> 用户名和密码</span> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>用 户 名:</td>
<td width=70% class=pad><input class="wenbenkuang" name="username" type="text" id="username" maxLength="18">
<font color=red>**</font> 支持中文,不支持特殊符号如:*%#!-&%$</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>密 码:</td>
<td class=pad><input class="wenbenkuang" name="userpassword" type="password" id="userpassword" maxLength="18">
<font color=red>**</font> 不支持特殊符号如:*%#!-&%$</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>确认密码:</td>
<td class=pad><input class="wenbenkuang" name="userpassword1" type="password" id="userpassword1" maxLength="18">
<font color=red>**</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>电子邮箱:</td>
<td class=pad><input class="wenbenkuang" name="useremail" type="text" id="useremail">
<font color=red>**</font></td>
</tr>
<tr bgcolor="#FFFFFF">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -