⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add.asp

📁 办公系统
💻 ASP
字号:
<!--#include file="../includes/db.asp"-->
<%
call insureID()
if session("Position_id")>3 then
	call noRight()
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>办公自动化系统</title>
<script language="JavaScript">
   function validate(){ 
     var Title 		= document.FormCompose.Title.value;
     var Content	= document.FormCompose.Content.value;
     if ( Title==""){
       alert("标题不能为空!");
       return false;
     }
     if (Content==""){
       alert("内容不能为空!");
       return false;
     }
   }
</script>
<link href="../Includes/Style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table border="0" width="100%" height="50" cellspacing="0" cellpadding="0">
 <tr>
  <td width="100%"></td>
 </tr>
</table>
<center>
<form method="POST" name="FormAdd" action="save.asp?action=Add" onSubmit="return validate()">
<table width="75%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5A8BCE">
 <tr>
   <td width="65%" bgcolor="#E6F7FF" height="35" align=center><b><font color="#000000">添加资讯</font></b></td>
  </tr>
 </table>
<table width="75%" border="0" cellpadding="0" cellspacing="1" bordercolorlight="#EFEFEF" bordercolordark="#FCFCFC" bgcolor="#5A8BCE">
<tr>
<td width="15%" height="30" bgcolor="#FCFCFC" align=right>标&nbsp;题:
</td>
<td width="60%" height="30" bgcolor="#FCFCFC">&nbsp;<input name="Title" type="text" class="smallInput" size="61">
</td>
</tr>
<tr>
<td width="15%" valign="top" bgcolor="#FCFCFC" align=right>内&nbsp;容:
</td>                           
<td width="60%" bgcolor="#FCFCFC">&nbsp;<textarea name="Content" cols="60" rows="15" wrap="VIRTUAL" class="smallInput"></textarea>
</td>
</tr>
<tr>
<td width="15%" height="30" bgcolor="#FCFCFC" align=right>添加者:
</td>
<td width="60%" height="30" bgcolor="#FCFCFC">&nbsp;<%=session("Name")%>
</td>
<tr>
<td width="75%" height="50" colspan="2" bgcolor=#EFEFEF align=center>
<input type="submit" value="添 加" name="Submit" class="buttonface">&nbsp;&nbsp;   
<input type="reset" value="清 除" name="Clear" class="buttonface">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>

⌨️ 快捷键说明

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