departmentedit.asp
来自「《动态网页设计基础教程》,胡杰,科学出版社」· ASP 代码 · 共 104 行
ASP
104 行
<html>
<head>
<link rel="stylesheet" href="comCSS.css">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>部门信息注册</title>
<base target="rbottom">
<meta name="Microsoft Border" content="t, default">
</head>
<!-- #include file="ADOCONN.ASP" -->
<body><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>
<p align="left"> </p>
</td></tr><!--msnavigation--></table><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><!--msnavigation--><td valign="top">
<script language="vbscript" for="B2" event="onclick">
History.back
</script>
<% Dim LocalArray
Certificate()
IF Session("EditFlag") = "MODIFY" then
LocalArray=Session("DataArray")
ELSE
Session("EditFlag")="INSERT"
Redim LocalArray(4)
END IF
%>
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript"><!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.T1.value == "")
{
alert("请在 T1 域中输入值。");
theForm.T1.focus();
return (false);
}
if (theForm.T1.value.length > 8)
{
alert("在 T1 域中,请最多输入 8 个字符。");
theForm.T1.focus();
return (false);
}
if (theForm.T2.value == "")
{
alert("请在 T2 域中输入值。");
theForm.T2.focus();
return (false);
}
if (theForm.T2.value.length > 20)
{
alert("在 T2 域中,请最多输入 20 个字符。");
theForm.T2.focus();
return (false);
}
return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><form method="POST" action="DepartmentSave.ASP" onsubmit="return FrontPage_Form1_Validator(this)" name="FrontPage_Form1" language="JavaScript">
<p align="center"><b><font face="华文彩云" color="#000080" size="4">院系内部门注册</font></b></p>
<center>
<table border="1" width="62%" bordercolorlight="#000080" bordercolordark="#000000" height="57">
<tr>
<td width="49%" align="justify" height="22">所属院系<font size="2" color="#000080">:</font><b><font face="华文彩云" size="2" color="#000080"><select size="1" name="D1">
<%
listItem("select College from Colleges")
%>
<option selected><%=Localarray(2)%></option>
<% for recordi=0 to Itemcount-1%>
<option><%=ItemArray(0,recordi)%></option>
<%next%>
</select></select></font></b></td>
</tr>
<tr>
<td width="49%" align="justify" height="22">部门代码: <!--webbot
bot="Validation" b-value-required="TRUE" i-maximum-length="8" --> <input name="T1" Value="<%=Localarray(0)%>" size="11" style="background-color: #C0C0C0; border-style: inset" maxlength="8"></td>
</tr>
<tr>
<td width="49%" align="justify" height="23">部门名称:<!--webbot
bot="Validation" b-value-required="TRUE" i-maximum-length="20" --><input type="text" name="T2" Value="<%=Localarray(1)%>" size="30" maxlength="20"></td>
</tr>
</table>
<p align="center"><input type="submit" value="提交" name="B1">
<input type="button" value="返回" name="B2"></p>
</center>
</form>
<!--msnavigation--></td></tr><!--msnavigation--></table></body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?