📄 news.asp
字号:
<!--#include file="conn.asp"-->
<link rel="stylesheet" type="text/css" href="img/css.css">
<%
news_id = Request.QueryString("news_id")
If Not(isNumeric(news_id)) Then
Response.Write "<p align=center>请勿进行非法操作!</p>"
Response.End
End If
%>
<div align="center">
<center>
<table width="90%" border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" >
<% set rs=server.createobject("adodb.recordset")
sql="select * from news where news_id="&request("news_id")
rs.open sql,conn,3,3
if rs.eof then
response.write "News is not found"
else%>
<tr>
<td height="25" bgcolor="#DBC2B0" align="center"><b><A href="allnews.asp">
<font color="#FFFFFF">News</font></A><font color="#FFFFFF">>></font></b></td>
<td height="25" bgcolor="#DBC2B0" align="center"><b>
<font color="#FFFFFF"><%=rs("news_title")%></font></b></td>
<td height="25" bgcolor="#DBC2B0" align="center" >
<font color="#FFFFFF">Date:<%=rs("news_date")%></font></td>
</tr>
<tr>
<td height="200" valign="top" bgcolor="#F5EFE7" colspan="3"><p style="text-indent: 20; line-height: 150%; margin: 10">
<%
if not isnull(rs("news_pic")) and rs("news_pic")<> "" then
response.write "<p align=center><img src=" + rs("news_pic") + " width=220 height=160></p>"
end if
%>
<%=rs("news_content")%></p></td>
</tr>
</table>
</center>
</div>
<%end if
rs.close%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -