📄 browse.asp
字号:
<!-- #include file="conn.asp" -->
<!--#include file="webconfig.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=webname%></title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="include/top.asp" -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="1" bgcolor="#cccccc"></td>
<td width="220" height="100"><!-- #include file="include/left.asp" --></td>
<td width="1" bgcolor="cccccc"></td>
<td align="center">
<!--#include file="include/search.asp" -->
<table width="90%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td valign="top">
<%
id=trim(request.QueryString("id"))
sql="select * from Net008_news where id="&cint(id)
set rs=server.createobject("adodb.recordset")
rs.open sql ,conn,1,2
if rs.recordcount<1 then
response.write"暂无信息!"
'response.end
end if
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td height="22" align="left" class="centertitle"><img src="images/items.gif" width="11" height="11" align="absmiddle">
<%
if rs("type1")=1 then
response.write "最新消息"
else
response.write "帮助中心"
end if
%>
</td>
</tr>
<tr>
<td height="22" align="center" class="centertitle"><%=rs("title")%></td>
</tr>
<tr>
<td height="1" bgcolor="cccccc"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top">
<%
response.write replace(rs("content"),chr(13)+chr(10),"<br>")
%>
</td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="right" valign="top">
<%
response.write "发布日期:"&FormatDateTime(rs("adddate"),2)&" [<a href='javascript:window.close()' class='LeftTypeLink'>关闭</a>]"
rs("click")=rs("click")+1
rs.update
rs.close
set rs=nothing
%>
</td>
</tr>
</table>
</td>
<td width="1" bgcolor="cccccc"></td>
</tr>
</table>
<!-- #include file="include/bottom.asp" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -