add.asp

来自「办公系统」· ASP 代码 · 共 68 行

ASP
68
字号
<!--#include file="../includes/db.asp"-->
<%
call insureID()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>WebOffice</title>
<script language="JavaScript">
   function validate(){ 
     var Title	= document.FormAdd.Title.value;
     var Content	= document.FormAdd.Content.value;
     if (Title=="" && Content==""){
       alert("您没有写入任何记事!");
       return false;
     }
   }
</script>
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
<link href="../Includes/Style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table border="0" width="100%" height="40" cellspacing="0" cellpadding="0">
 <tr>
  <td width="100%"></td>
 </tr>
</table>
<center>
<form method="POST" name="FormAdd" action="save.asp?action=Add" onSubmit="javaScript:return validate()">
<table width="75%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5A8BCE">
 <tr bgcolor="#0000FF">
  <td height="35" align=left bgcolor="#E6F7FF">
    <div align="center"><b>添加新记事</b></div></td>
  </tr>
</table>
<table width="75%" border="0" cellpadding="4" cellspacing="1" bordercolorlight="#EFEFEF" bordercolordark="#FCFCFC" bgcolor="#5A8BCE">
<tr>
<td width="15%" align="right" valign="top" bgcolor="#FCFCFC">标&nbsp;题:</td>                       
<td width="60%" bgcolor="#FCFCFC">
<input type="text" name="Title" size="61" value="">
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" bgcolor="#FCFCFC">内&nbsp;容:</td>                       
<td width="85%" bgcolor="#FCFCFC"><textarea rows="10" name="Content" cols="60" wrap="VIRTUAL"></textarea></td>
</tr>
<tr>
<td width="75%" align="center" height="50" colspan="2" bgcolor=#efefef>
<input type="submit" value=" 添 加 " name="Submit" class="buttonface">&nbsp;&nbsp;&nbsp;   
<input type="reset" value=" 清 除 "  name="Clear" class="buttonface">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>





⌨️ 快捷键说明

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