📄 shownews.asp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--#include file="conn.asp"-->
<HTML><HEAD><TITLE>新闻中心</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<style type="text/css">
<!--
td { font-family: "Arial", "Helvetica", "sans-serif"; font-size: 12px; font-style: normal; line-height: 20px; font-weight: normal; font-variant: normal}
a:link {
font-family: Arial, Helvetica, sans-serif;
color: #336699;
}
a:visited {
font-family: Arial, Helvetica, sans-serif;
color: #336699;
}
a:hover {
font-family: Arial, Helvetica, sans-serif;
color: #FF6600;
text-decoration: underline;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css"></HEAD>
<%id=request.QueryString("id")
If instr(id," ")>0 or instr(id,"'")>0 or instr(id,"’")>0 or instr(id,"‘")>0 then
response.redirect ("news.asp")
response.end()
end if
if id<>"" then
set rs=server.CreateObject("adodb.recordset")
sql="select * from y_news where y_id="&id
rs.open sql,conn,3,3
if rs.bof and rs.eof then
response.Write("参数错误")
else
rs("y_hits")=rs("y_hits")+1
rs.update()%>
<BODY>
<center>
<br>
<TABLE width="500" border=0 cellPadding=0 cellSpacing=1 bgcolor="#666666" style="table-layout:fixed;word-break:break-all">
<TBODY>
<TR align="center" bgcolor="#0099cc">
<TD height="22" colspan="2"><%=rs("y_title")%></TD>
</TR>
<TR>
<TD height="21" colspan="2" bgcolor="#FFFFFF"><%=rs("y_name")%>发布于<%=rs("y_time")%></TD>
</TR>
<TR>
<TD colspan="2" bgcolor="#FFFFFF"><%=rs("y_content")%></TD>
</TR>
<TR align="center">
<TD height="20" colspan="2" valign="top" bgcolor="#FFFFFF">
<DIV align=center><a href="javascript:self.close();">『关闭窗口』</a> </DIV></TD>
</TR>
</TBODY></TABLE>
<%end if
rs.close
set rs=nothing
end if
conn.close
set conn=nothing%></center>
</body></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -