collegeedit.asp

来自「《动态网页设计基础教程》,胡杰,科学出版社」· ASP 代码 · 共 94 行

ASP
94
字号
<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 > 12)
  {
    alert("在 T1 域中,请最多输入 12 个字符。");
    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="CollegeSave.ASP" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">   
<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">
    <p align="left">院系代码:&nbsp;<!--webbot bot="Validation"
    B-Value-Required="TRUE" I-Maximum-Length="12" --><input name="T1" Value="<%=Localarray(0)%>" size="11" style="background-color: #C0C0C0; border-style: inset" maxlength="12"><font color="#FF0000">(自编,长度不超过6个汉字)</font></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">&nbsp;&nbsp;&nbsp;  
<input type="button" value="返回" name="B2"></p>     
</center>        
        
</form>        

 <!--msnavigation--></td></tr><!--msnavigation--></table></body>   
   
</html>   
   
   
   
   

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?