📄 changenotice.asp
字号:
<!-- #include file="utility/check.asp" -->
<%
'****************************************
'目的: 修改公告表单
'开始时间: 2005-6-4 9:10
'最后修改时间: 2005-6-4 9:10
'编写人: 某某某
'****************************************
dim noticeID
dim noticeTitle
dim noticeContent
dim noticeTime
dim noticeFor
dim rs
dim sql
noticeID = Request.QueryString("nID")
sql = "select teacher.tName,notice.* from teacher,notice"
sql = sql & " where teacher.ID = notice.tID and notice.ID = " & noticeID
set rs = ExecuteQuery(sql)
if(rs.EOF) then
Alert("错误的参数,操作失败!")
else
noticeTitle = rs("nTitle")
noticeContent = rs("nContent")
noticeTime = rs("nTime")
noticeTeacher = rs("tName")
noticeFor = rs("nFor")
rs.close()
set rs = nothing
'注意把html代码转化为文本区能够识别的代码
noticeContent = Replace(noticeContent,"<br>",Chr(13))
noticeContent = Replace(noticeContent,"<p>",Chr(13))
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改公告</title>
<link rel="stylesheet" type="text/css" href="images/link.css">
</head>
<body>
<div align="center">
<table border="1" width="700" id="table2" cellspacing="0" cellpadding="0" style="border-collapse: collapse" height="22">
<tr>
<td> 当前操作: 发布新公告</td>
</tr>
</table>
<br>
<table border="1" width="700" id="table1" cellspacing="0" cellpadding="0" style="border-collapse: collapse" height="312" bordercolor="#CCCCCC">
<form action=manageNotice.asp?actionType=change&nID=<%=noticeID%> method=post>
<tr>
<td width="70" height="28" align="right" bgcolor="#F2F2F2">标题:</td>
<td height="28"> <input type=text name="noticeTitle" class="inputTextLong" size="100" value="<%=noticeTitle%>"></td>
</tr>
<tr>
<td width="70" align="right" height="28" bgcolor="#F2F2F2">发布对象:</td>
<td height="28"> <select name="noticeFor" size="1" class="inputTextShort">
<option
<%
if(noticeFor = "学生") then Response.write("selected")
%>
>学生</option>
<option
<%
if(noticeFor = "教师") then Response.write("selected")
%>
>教师</option>
</select></td>
</tr>
<tr>
<td width="70" align="right" height="231" bgcolor="#F2F2F2">内容:</td>
<td height="231"> <textarea class="inputTextArea" cols="97" rows="15" name="noticeContent"><%=noticeContent%></textarea></td>
</tr>
<tr>
<td width="70" align="right" height="28" bgcolor="#F2F2F2">操作: </td>
<td height="28"> <input type=submit value="修改公告" name="OK" class="anniu">
<input type=reset value="重新填写" class="anniu"></td>
</tr>
</form>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -