📄 edit.asp
字号:
<!--#include file="../includes/db.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.FormAdd.Title.value;
var Content = document.FormAdd.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 Notice 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")
NOTICE_CONTENT=rs("NOTICE_CONTENT")
NOTICE_TITLE=replaceBack(NOTICE_TITLE)
NOTICE_CONTENT=replaceBack(NOTICE_CONTENT)
call closeDB()
%>
<form method="POST" name="FormAdd" action="save.asp?action=Edit&Notice_id=<%=request("NOTICE_ID")%>" 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="20%" bgcolor="#FCFCFC" align=right>标 题:</td>
<td width="55%" bgcolor="#FCFCFC"> <input type="text" name="Title" size="61"
value="<%=NOTICE_TITLE%>">
</td>
</tr>
<tr>
<td width="20%" valign="top" bgcolor="#FCFCFC" align=right>内 容:</td>
<td width="55%" bgcolor="#FCFCFC"> <textarea rows="15" name="Content" cols="60" wrap="VIRTUAL">
<%=NOTICE_CONTENT%>
</textarea>
</td>
</tr>
<td width="20%" height="30" bgcolor="#FCFCFC" align=right>发布者:</td>
<td width="55%" height="30" bgcolor="#FCFCFC">
<%
response.write " "&session("NAME")
if session("POSITION_ID")=1 then
response.write " 审核 "
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">
<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 + -