📄 news_show.asp
字号:
<!-- #include file="top.asp" -->
<!-- #include file="inc/ubbcode.asp" -->
<%
if not isempty(request.querystring("id")) then
id=request.querystring("id")
else
id=1
end if
sql="select * from news where id="&cint(id)
rs.open sql,conn,1,3
'纪录访问次数
rs("counter")=rs("counter")+1
rs.update
'定义内容
content=ubbcode(rs("content"))
%>
<table align="center" background="images/line01.gif" border="0" cellpadding="0" cellspacing="0" height="24" width="770">
<tr>
<td width="770" height="21"> <img height="12" src="images/arrow.gif" width="12"> 当前位置:<a href="index.asp" title="首页"><%=site%></a> -> 新闻列表</td>
</tr>
</table>
<table width="770" border=0 align="center" cellpadding=0 cellspacing=0 bgcolor="#ffffff">
<tbody>
<tr>
<td height="350" valign=top> <table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td align="center" style="font-size:13px"><strong><font color="#000099"><%=rs("title")%></font></strong></td>
</tr>
<tr>
<td align="center" height="1" bgcolor="#cccccc"></td>
</tr>
<tr>
<td align="center">发布日期:[<%=rs("time")%>] 共阅[<%=rs("counter")%>]次</td>
</tr>
<tr>
<td style="font-size:13px;line-height:22px"> <%=content%>
<%rs.close%>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" colspan="2" bgcolor="#cccccc"></td>
</tr>
<tr>
<td width="77%" height="22"> </td>
<td width="23%">【<a href='javascript:window.print()'>打印此页</a>】 【<a href='javascript:history.back()'>返回</a>】</td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<!-- #include file="copyright.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -