舒思盾按摩仪有用吗:这段代码中,哪段是点击次数的统计

来源:百度文库 编辑:高校问答 时间:2024/05/05 18:50:53
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="./conn.asp"-->
<!--#include file="./inc/config.asp"-->
<%
news_id=request("news_id")
if news_id="" then
response.write("<br>"&"<p>")
Response.Write "<center>无相关文章!</center>"
response.write "<br>"
response.write "<center><a href=./index.asp>请按这儿返回</a></center>"
Response.End
else%>
<!--#include file="./public/news.asp"-->
<head>
<title><%=config(0)%>-=-<%=news(2)%></title>
<link rel="stylesheet" href="./inc/index.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body leftmargin="0" topmargin="1" marginwidth="0" marginheight="0">
<!--#include file="./top.asp"-->
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="184" height="361" align="center" valign="top" background="./images/left_bg_1.gif">
<table width="99%" height="263" border="0" align="left" cellpadding="3" cellspacing="1">
<tr>
<td height="24" background="images/title.gif">     最新文章</td>
</tr>
<tr>
<td height="60" align="left" valign="top">
<%
set rs=conn.execute("SELECT top 10 * FROM news order by news_id desc")
i=1
if rs.bof and rs.eof then
response.write "近期无更新文章"
else
do while not rs.eof
%> <%=i%>.<a href="./type.asp?news_id=<%=rs("news_id")%>">
<%if len(rs("news_title"))>9 then%>
<%=left(rs("news_title"),9)%>..
<%else%>
<%=rs("news_title")%>
<%end if%>
</a>[<font color=red><%=rs("news_hits")%></font>]<br> <%
i=i+1
rs.movenext
loop
end if