📄 news.asp
字号:
<!--#include file="conn.asp"-->
<%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 "此信息不存在或者已被删除"
else
news_content=rs("news_content")
news_title=rs("news_title")
news_date=rs("news_date")
end if
rs.close%>
<HTML>
<HEAD>
<TITLE><%=news_title%></TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<STYLE>HTML {TEXT-DECORATION: none}
A:link {COLOR: #000000; TEXT-DECORATION: underline}
A:active {COLOR: #000000; TEXT-DECORATION: underline}
A:visited {COLOR: #000000; TEXT-DECORATION: underline}
A:hover {COLOR: rgb(0,147,43); TEXT-DECORATION: none}
EM {FONT-FAMILY: CourierNew; FONT-SIZE: 16pt; FONT-STYLE: normal}
A {FONT-SIZE: 9pt}
TD {FONT-SIZE: 9pt}
P {
FONT-SIZE: 9pt
}
.hh input {background-color: #ffffff; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
</STYLE><script>
function openbag(id) { window.open("basket.asp?hw_id="+id,"","width=800,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes");}
</script>
<script language="javascript">
function openScript(url, width, height){
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
</script></HEAD>
<table border="0" width="360" cellspacing="0" cellpadding="0" height="5">
<td width="360" bgcolor="#fff9ff" height="18" align=center><%=news_title%>
</td>
</tr>
<tr>
<td width="100%" bgcolor=#fff9ff></td>
</tr>
<center>
<tr>
<td width="100%"><%=news_content%><p align=right>
发布日期:<%=news_date%></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -