📄 shownews.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="inc/ubbcode.asp"-->
<%
dim rs
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from news where id="&request("id"),conn,1,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=rs("title")%>--<%=webname%></title>
<link href="images/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!--
function doZoom(size){
document.getElementById('zoom').style.fontSize=size+'px'
}
// -->
</SCRIPT>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<table width="570" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/n1_t.gif" width="570" height="11"></td>
</tr>
<tr>
<td background="images/n1_c.gif" bgcolor="#f7f7f7"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="7"></td>
</tr>
<tr>
<td width="200"><img src="images/n1_img.gif" width="550" height="58"></td>
</tr>
<tr>
<td height="1" background="images/1.gif"></td>
</tr>
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="30" align="center" class="t" style="font-size:16px;color:<%=rs("titlecolor")%>"><strong><%=rs("title")%></strong></td>
</tr>
<tr>
<td height="25" align="center" class="t" ><img src="images/n_hits.gif" width="11" height="11"> 点击数:<%=rs("hits")%> <img src="images/n_time.gif" width="11" height="11"> 发表日期:<%=rs("addtime")%></td>
</tr>
<tr>
<td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td class="t" style="line-height:18px; "><font id="zoom"><%=ubbcode(rs("content"))%></font></td>
</tr>
</table>
<table width="98%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" class="t"><strong> 本文地址:<a href="shownews.asp?id=<%=rs("id")%>" target="_blank"><%=weburl%>/shownews.asp?id=<%=rs("id")%></a></strong></td>
</tr>
</table></td>
</tr>
<tr>
<td height="1" background="images/1.gif"></td>
</tr>
<tr>
<td height="25" align="right" ><img src="images/n_size.gif" width="17" height="14" align="absmiddle">[ <a href="javascript:doZoom(16)">大</a> <a href="javascript:doZoom(14)">中</a> <a href="javascript:doZoom(12)">小</a> ] <img src="images/n_print.gif" width="17" height="14" align="absmiddle"><a href="javascript:window.print()" class="news">打印本页</a> <img src="images/n_close.gif" width="17" height="14" align="absmiddle"><a href="javascript:window.close()" class="news">关闭窗口</a> </td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/n1_e.gif" width="570" height="18"></td>
</tr>
</table>
<%
rs("hits")=rs("hits")+1
rs.update
rs.close
set rs=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -