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

📄 edit.asp

📁 功能强大的办公自动化系统 具有前后台管理系统 具有很好的应用性
💻 ASP
字号:
<!--#include file="../../includes/keepHouse.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>WebOffice</title>
<%
call insureID()
if session("POSITION_ID")>3 then
	call noRight()
end if
%>
<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>
</head>

<body>
<center>
<table border="0" width="100%" height="50" cellspacing="0" cellpadding="0">
 <tr>
  <td width="100%"></td>
 </tr>
</table>
<%
dim NOTICE_TITLE
dim NOTCIE_CONTENT
dim NOTICE_ID
NOTICE_ID=request("NOTICE_ID")
if NOTICE_ID="" then
	call trigErr()
end if
sql="SELECT * " _
	&"FROM CompanyNotice WHERE (NOTICE_ID = "&request("NOTICE_ID")&") "
call openDB()
rs.open sql,conn,1,1
if rs.eof then
	call closeDB()
	call trigErr()
end if
NOTICE_TITLE=rs("NOTICE_TITLE")
NOTCIE_CONTENT=rs("NOTCIE_CONTENT")
NOTICE_TITLE=replaceBack(NOTICE_TITLE)
NOTCIE_CONTENT=replaceBack(NOTCIE_CONTENT)
call closeDB()
%>
<form method="POST" name="FormCompose" action="saveCECS.asp?action=Edit&DECISION_ID=<%=request("NOTICE_ID")%>" onSubmit="return validate()">
<table border="0" width="75%" cellspacing="0" cellpadding="0">
 <tr>
  <td width="5%" bgcolor="#0000FF" height="35" align=left><img border="0" src="../../images/back.gif"></td>
  <td width="65%" bgcolor="#0000FF" height="35" align=center><b><font color="#FFFFFF">编辑公司计划</font></b></td>
  <td width="5%" bgcolor="#0000FF" height="35" align=right><img border="0" src="../../images/Close2.gif"></td>
 </tr>
</table>
<table border="1" width="75%" bordercolorlight="#EFEFEF" bordercolordark="#FCFCFC" cellspacing="0" cellpadding="0">
<tr>
<td width="20%" bgcolor="#FCFCFC" align=right>标&nbsp;题:</td>
<td width="55%" bgcolor="#FCFCFC">
<input type="text" name="Title" size="61"
value="<%NOTCIE_TITLE%>">
</td>
</tr>
<tr>
<td width="20%" valign="top" bgcolor="#FCFCFC" align=right>内&nbsp;容:</td>                             
<td width="55%" bgcolor="#FCFCFC"><textarea rows="15" name="Content" cols="60" wrap="VIRTUAL">
<%=NOTCIE_CONTENT%>
</textarea>
</td>
</tr>
<td width="20%" height="30" bgcolor="#FCFCFC" align=right>作&nbsp;者:</td>
<td width="55%" height="30" bgcolor="#FCFCFC">
<%
response.wrrite session("PERSON_NAME")
if session("POSITION_ID")=1 then
	response.write "&nbsp;&nbsp;标记为已审 "
	response.write "<input type=""checkbox"" name=""Comfirmed"" value=""YES"">"
end if
%>
</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 + -