new1.old.htm
来自「书店的管理系统。不错的一个源程序。提供给大家。」· HTM 代码 · 共 366 行
HTM
366 行
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.unnamed1 { font-size: 9pt; font-style: normal}
.unnamed2 { font-family: "黑体"; font-size: 14pt; font-weight: bolder}
-->
</style>
<title>new1.htm</title>
<script ID="clientEventHandlersJS" LANGUAGE="javascript">
<!--
function FrontPage_Form1_onsubmit(theForm) {
if (theForm.log_name.value == "")
{
alert("请输入 \"用户名\" .");
theForm.log_name.focus();
return (false);
}
if (theForm.log_name.value.length > 10)
{
alert("Please enter at most 10 characters in the \"log_name\" field.");
theForm.log_name.focus();
return (false);
}
if (theForm.passwrd.value == "")
{
alert("请输入 \"密码\" .");
theForm.passwrd.focus();
return (false);
}
if (theForm.passwrd.value.length > 10)
{
alert("Please enter at most 10 characters in the \"passwrd\" field.");
theForm.passwrd.focus();
return (false);
}
if (theForm.passwrdchk.value == "")
{
alert("请输入 \"确认密码\" .");
theForm.passwrdchk.focus();
return (false);
}
if (theForm.passwrdchk.value.length > 10)
{
alert("Please enter at most 10 characters in the \"passwrdchk\" field.");
theForm.passwrdchk.focus();
return (false);
}
if (theForm.passwrdchk.value != theForm.passwrd.value)
{
alert("您两次输入的密码不相同 .");
theForm.passwrdchk.focus();
return (false);
}
if (theForm.passque.value == "")
{
alert("请输入 \"忘记密码提示问题\" .");
theForm.passque.focus();
return (false);
}
if (theForm.passque.value.length > 10)
{
alert("Please enter at most 10 characters in the \"passque\" field.");
theForm.passque.focus();
return (false);
}
if (theForm.passans.value == "")
{
alert("请输入 \"忘记密码提示答案\" .");
theForm.passans.focus();
return (false);
}
if (theForm.passans.value.length > 10)
{
alert("Please enter at most 10 characters in the \"passans\" field.");
theForm.passans.focus();
return (false);
}
if (theForm.name.value == "")
{
alert("请输入 \"真实姓名\" .");
theForm.name.focus();
return (false);
}
if (theForm.name.value.length > 50)
{
alert("Please enter at most 50 characters in the \"name\" field.");
theForm.name.focus();
return (false);
}
if (theForm.comaddr.value == "")
{
alert("请输入 \"通信地址\" .");
theForm.comaddr.focus();
return (false);
}
if (theForm.comaddr.value.length > 100)
{
alert("Please enter at most 100 characters in the \"comaddr\" field.");
theForm.comaddr.focus();
return (false);
}
if (theForm.zipcode.value == "")
{
alert("请输入 \"邮政编码\" .");
theForm.zipcode.focus();
return (false);
}
if (theForm.zipcode.value.length < 6)
{
alert("\"邮政编码\" 输入错误.");
theForm.zipcode.focus();
return (false);
}
if (theForm.zipcode.value.length > 6)
{
alert("\"邮政编码\" 输入错误.");
theForm.zipcode.focus();
return (false);
}
var checkOK = "0123456789";
var checkStr = theForm.zipcode.value;
var allValid = true;
var decPoints = 0;
var allNum = "";
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
allNum += ch;
}
if (!allValid)
{
alert("\"邮政编码\" 输入错误.");
theForm.zipcode.focus();
return (false);
}
if (theForm.tel.value == "")
{
alert("请输入 \"联系电话\".");
theForm.tel.focus();
return (false);
}
var checkOK = "0123456789()-";
var checkStr = theForm.tel.value;
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
alert("请重输 \"联系电话\".");
theForm.tel.focus();
return (false);
}
if (theForm.e_mail.value == "")
{
alert("请输入 \"e_mail\" .");
theForm.e_mail.focus();
return (false);
}
if (theForm.e_mail.value.length > 50)
{
alert("Please enter at most 50 characters in the \"e_mail\" field.");
theForm.e_mail.focus();
return (false);
}
if (theForm.othercom.value.length > 100)
{
alert("Please enter at most 100 characters in the \"othercom\" field.");
theForm.othercom.focus();
return (false);
}
return (true);
}
//-->
</script>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0">
</table>
<table width="100%" border="0">
<tr>
<td><table width="100%" border="0" hspace="80">
<tr bgcolor="#ff6666">
<td width="23%"><font color="#ffffff" class="unnamed2">个人注册信息</font></td>
<td width="77%"><font color="#ffffff" class="unnamed2">为保障您的权益,以下带有*号信息请如实填写!</font></td>
</tr>
</table>
</td>
</tr>
</table>
<form method="post" action="new2.asp" LANGUAGE="javascript" onsubmit ="return FrontPage_Form1_onsubmit(this)" name="FrontPage_Form1">
<table border="0" width="75%" height="748" hspace="30" vspace="20" cellspacing="0" align="center">
<tr>
<td width="18%" align="right" height="38"><div align="left"><font size="2"><p><span class="unnamed1"><font
color="#ff0000">*</font>用户名</span>:</font>
</P> </div></td>
<td width="39%" height="38"><input name="log_name" size="12" > </td>
<td width="43%" height="38"><font size="2" class="unnamed1">您在本网站注册的名称(1-10个字符)</font></td>
</tr>
<tr>
<td width="18%" align="right" height="39" class="unnamed1"><div align="left"><font size="2"><p><span
class="unnamed1"><font color="#ff0000">*</font>密码</span>:</font> </P>
</div></td>
<td width="39%" height="39"><input type="password" name="passwrd" size="12"> </td>
<td width="43%" height="39"></td>
</tr>
<tr>
<td width="18%" align="right" height="54" class="unnamed1"><div align="left"><font size="2"><p><span
class="unnamed1"><font color="#ff0000">*</font>确认密码</span>:</font>
</P>
</div></td>
<td width="39%" height="54"><input type="password" name="passwrdchk" size="12"> </td>
<td width="43%" height="54"></td>
</tr>
<tr>
<td width="18%" align="right" height="41" class="unnamed1"><div align="left"><p><font color="#ff0000" size="2"><span
class="unnamed1">*</span></font><font size="2" class="unnamed1">忘记密码提示问题:</font></p>
</div></td>
<td width="39%" height="41"><input name="passque" size="12"
> </td>
<td width="43%" height="41" class="unnamed1">例:您的生日?</td>
</tr>
<tr>
<td width="18%" align="right" height="48" class="unnamed1"><div align="left"><font size="2"><p><span
class="unnamed1"><font color="#ff0000">*</font>忘记密码提示答案</span>:</font>
</P>
</div></td>
<td width="39%" height="48"><input name="passans" size="12"
> </td>
<td width="43%" height="48"></td>
</tr>
<tr>
<td width="18%" align="right" height="41" class="unnamed1"><div align="left"><font size="2"><p><span
class="unnamed1"><font color="#ff0000">*</font>真实姓名</span>:</font>
</P>
</div></td>
<td width="39%" height="41"><input name="name" size="12"
> </td>
<td width="43%" height="41"></td>
</tr>
<tr>
<td width="18%" align="right" height="39" class="unnamed1"><div align="left"><p><font color="#ff0000" size="2"><span
class="unnamed1">*</span></font><font size="2" class="unnamed1">性
别:</font></p> </div></td>
<td width="39%" height="39"><select name="gender" size="1">
<option selected value="男">男</option>
<option value="女">女</option>
</select> </td>
<td width="43%" height="39"></td>
</tr>
<tr>
<td width="18%" align="right" height="50" class="unnamed1"><div align="left"><p><font color="#ff0000" size="2"><span
class="unnamed1">*</span></font><font size="2" class="unnamed1">通讯地址:</font></p>
</div></td>
<td width="39%" height="50"><input name="comaddr" size="27"
> </td>
<td width="43%" height="50"></td>
</tr>
<tr>
<td width="18%" align="right" height="52" class="unnamed1"><div align="left"><font size="2"><p><span
class="unnamed1"><font color="#ff0000">*</font>邮政编码</span>:</font>
</P>
</div></td>
<td width="39%" height="52"><input name="zipcode" size="12" maxLength=6> </td>
<td width="43%" height="52"></td>
</tr>
<tr>
<td width="18%" align="right" height="52" class="unnamed1"><div align="left"><font size="2"><p><span
class="unnamed1"><font color="#ff0000">*</font>联系电话</span>:</font>
</P>
</div></td>
<td width="39%" height="52"><input name="tel" size="12"
> </td>
<td width="43%" height="52"></td>
</tr>
<tr>
<td width="18%" align="right" height="51" class="unnamed1"><div align="left"><p><font color="#ff0000" size="2"><span
class="unnamed1">*</span></font><font size="2" class="unnamed1">E-MAIL:</font></p>
</div></td>
<td width="39%" height="51"><input name="e_mail"
> </td>
<td width="43%" height="51"></td>
</tr>
<tr>
<td width="18%" align="right" height="50" class="unnamed1"><div
align="left"><font size="2" class="unnamed1"><p>详细住址:</font> </P> </div></td>
<td width="39%" height="50"><input name="detaddr"
> </td>
<td width="43%" height="50"></td>
</tr>
<tr>
<td width="18%" align="right" height="170" class="unnamed1"><div align="left"><font size="2"
class="unnamed1"><p>其他联系方式: </font></P></div></td>
<td width="39%" height="170"><TEXTAREA cols=26 name=othercom rows=5></TEXTAREA> </td>
<td width="43%" height="170" class="unnamed1">(您若不介意请留下您的电话、BP、手机号码或其他的联系方式,以便于我们发货前与您联系!)</td>
</tr>
<tr>
<td width="18%" height="49"><div align="left"></div></td>
<td width="39%" height="49">
<input type="submit" name="Submit" value="提交" style="FONT-SIZE: 9pt">
<input type="reset" value="重填" name="B1" style="FONT-SIZE: 9pt">
</td>
<td width="43%" height="49"></td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?