?? reg.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="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="images/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("對不起,請?zhí)顚懹脩裘?quot;);
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("對不起,請?zhí)顚懨艽a提問!");
return false;
}
if(checkspace(document.userinfo.answer.value)) {
document.userinfo.answer.focus();
alert("對不起,請?zhí)顚懨艽a提問的答案!");
return false;
}
if(checkspace(document.userinfo.userzhenshiname.value)) {
document.userinfo.userzhenshiname.focus();
alert("對不起,請?zhí)顚懻鎸嵭彰?quot;);
return false;
}
if(checkspace(document.userinfo.shouhuodizhi.value)) {
document.userinfo.shouhuodizhi.focus();
alert("對不起,請?zhí)顚懯肇浫嗽敿毷肇浀刂罚?quot;);
return false;
}
if(checkspace(document.userinfo.youbian.value)) {
document.userinfo.youbian.focus();
alert("對不起,請?zhí)顚戉]編!");
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("對不起,請?zhí)顚戨娫捥柎a!");
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 checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜歡本站,別忘了把本站介紹給您的好友哦!:)';return true">
<!--#include file="bjxhead.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=970 align=center border=0>
<TBODY>
<TR>
<TD class=b vAlign=top align=left><%select case action
case ""%>
<table width="970" align="center" border="0" cellspacing="0" cellpadding="0" class="table-zuoyou" bordercolor="#CCCCCC">
<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"><font color=red><strong>請用戶仔細閱讀<%=webname%>注冊條約</strong></font></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="80%" border="0" align="center" cellpadding="10" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#ffffff">
<td><%call tiaoyue()%>
</td>
</tr>
</table></td>
</tr>
</table>
<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>
<SCRIPT>
secs = 60; // Number of secs to delay -CHINA-studio
wait = secs * 100;
document.forms.register.Submit.disabled =true;
for(i=1;i<=(wait/100);i++) {
window.setTimeout("doUpdate(" + i + ")", i * 100);
}
window.setTimeout("Timer()", wait);
function doUpdate(num) {
if(num == (wait/100)) {
document.forms.register.Submit.value = " 同意注冊 ";
} else {
wut = (wait/100)-num;
document.forms.register.Submit.value = " 同意前請先閱讀 (" + wut + ")";
}
}
function Timer() {
document.forms.register.Submit.disabled =false;
}
</SCRIPT>
<%case "yes"%>
<table width="970" align="center" border="0" cellspacing="0" cellpadding="0" class="table-zuoyou" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF" bordercolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><p><font color="#FF3300"><b>請您務必詳細填寫您的信息,并核對無誤,國內用戶請留下您的真實中文姓名。<br>
未經您的允許,您的個人信息對外保密。(帶 <font color=red>**</font> 號為必填項) </b></font></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"><font color="#FF3300">>> 用戶名和密碼</font> </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">
<td align=right>密碼問題:</td>
<td class=pad><input class="wenbenkuang" name="quesion" type="text" id="quesion">
<font color=red>**</font>忘記密碼的提示問題</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align=right>問題答案:</td>
<td class=pad><input class="wenbenkuang" name="answer" type="text" id="answer">
<font color=red>**</font>忘記密碼的提示問題答案,用于取回論壇密碼</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" valign="middle" bgcolor="#f1f1f1"><font color="#FF3300">>> 用戶詳細資料</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>您的真實姓名:</td>
<td class=pad><input class="wenbenkuang" name="userzhenshiname" type="text" id="userzhenshiname" size="10">
<font color=red>**</font> 以便發(fā)貨確認 </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>您的身份證號:</td>
<td class=pad><input class="wenbenkuang" name="MoMNo" type="text" id="MoMNo" maxlength="18" onKeyPress="event.returnValue=IsDigit();">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>姓 別:</td>
<td class=pad><input type=radio name=babysex id=Select1 value=0 checked>
男
<input type=radio name=babysex id=Select1 value=1>
女 </td>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -