📄 shownotice.asp
字号:
<!-- #include file="utility/check.asp" -->
<%
'****************************************
'目的: 显示公告信息
'开始时间: 2005-5-31
'最后修改时间: 2005-5-31
'编写人: 某某某
'****************************************
dim noticeID
dim noticeTitle
dim noticeContent
dim noticeTime
dim rs
dim sql
noticeID = Request.QueryString("nID")
if(noticeID = "")then
Alert("参数丢失,操作失败!")
GoBack()
Response.End
end if
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")
rs.close()
set rs = nothing
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="580" id="table2" cellspacing="0" cellpadding="0" style="border-collapse: collapse" height="22">
<tr>
<td> 当前操作: 显示公告信息</td>
</tr>
</table>
<br>
<table border="1" width="580" id="table1" cellspacing="0" cellpadding="0" style="border-collapse: collapse" height="76" bordercolor="#CCCCCC">
<tr>
<td width="70" height="22" align="right" bgcolor="#F2F2F2">标题:</td>
<td height="22"> <%=noticeTitle%>[<font color=red><%=noticeTime%></font>]</td>
</tr>
<tr>
<td width="70" align="right" height="23" bgcolor="#F2F2F2">发布人:</td>
<td height="23"> <%=noticeTeacher%></td>
</tr>
<tr>
<td width="70" align="right" height="33" bgcolor="#F2F2F2">内容:</td>
<td height="33">
<div align="center">
<table border="0" width="97%" id="table3">
<tr>
<td style="line-height: 150%"><%=noticeContent%></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -