📄 newsinfo.asp
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<title>新闻动态</title>
<link href="css.css" rel="stylesheet">
</head>
<body>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from news where id="&request("id")
rs.open sql,conn,1,1
if rs.eof then
response.write"<br><br><div align=center>没有此新闻动态的详细信息</div>"
response.end
else
%>
<table width="460" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="tabbgcolorli">
<td> <font color="#FFFFFF">☆ 新闻动态</font></td>
</tr>
</table>
<br>
<table width="460" height="139" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFA6DF">
<tr bgcolor="#FFFFFF">
<td height="18" colspan="2"> <div align="center"><%=rs("title")%></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="228" height="18"><div align="center">来源:<%=rs("pname")%></div></td>
<td width="229"><div align="center"><%=rs("date")%></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"><%=rs("body")%> </td>
</tr>
</table>
<%
end if
rs.close
set rs=nothing
%>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -