new1.htm
来自「书店的管理系统。不错的一个源程序。提供给大家。」· HTM 代码 · 共 469 行 · 第 1/2 页
HTM
469 行
<html>
<head>
<title>用户注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type=text/css>
td,p,li,input,select {font-size:12px;line-height: 130%}
.F7 {font-size:7px;}
.F16 {font-size:12px;}
</style>
</head>
<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>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<table width="101%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="79%" height="1"></td>
</tr>
<tr>
<td width="79%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#333333">
<td width="13%" height="9"> </td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?