📄 display.asp
字号:
<link rel="stylesheet" href="style.css" type="text/css">
<!--#include file=conn.asp-->
<%
dim key
key=Request.QueryString("id")
set rs=server.createobject("adodb.recordset")
sql="select * from news where id="&key&""
rs.open sql,conn,2,3
%>
<title>阅读公告</title>
<table width="314" border="0" cellspacing="1" cellpadding="8" align="center" bgcolor="#CC9999">
<tr>
<td colspan="2" align="center"><b><font color="#FFFFFF">阅读公告</font></b></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" height="6"></td>
</tr>
<tr>
<td width="63"><font color="#FFFFFF">公告标题:</font></td>
<td width="224" bgcolor="#FFFFFF"><%=RS("Title")%></td>
</tr>
<tr>
<td width="63"><font color="#FFFFFF">发布时间:</font></td>
<td width="224" bgcolor="#FFFFFF" align="center"><%=RS("Date")%>发布</td>
</tr>
<tr>
<td width="63" height="152"><font color="#FFFFFF">公告内容:</font></td>
<td width="224" bgcolor="#FFFFFF" height="152"><%=RS("Text")%></td>
</tr>
</table>
<!--#include file=info.asp-->
<%
rs.close
conn.close
set rs=nothing
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -