⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wmcmsindex_hot.asp

📁 完美政府版,正版网站解决方案
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc/fun.asp"-->
<!--#include file="../config.asp"-->
<%
dim bbsurl,tophotzt,tsql,i,tophot,topicinfo
bbsurl="bbs"     '论坛地址绝对路径,末尾不能加上 /		
tophotzt=6              '显示最热帖数目
%>
document.write("<style type='text/css'><!--.css {  font-size: 9pt}--></style><table class=css height=28 border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='100%'>");
document.write("<%
tsql="select top "&tophotzt&" id,userid,topicinfo,bd,edittime,totable from topic where type<>3 and bd not in(select id from bdinfo where type=3 or type=4) and edittime>now()-7 order by hits desc"
set tophot=conn.execute(tsql)
i=0
do while not tophot.eof
i=i+1
topicinfo=tophot("topicinfo")
topicinfo=split(topicinfo,"|")
response.write"<tr height='24'><td align=center width=40>&nbsp;<img src="&bbsurl&"/images/face/"&topicinfo(0)&".gif align='absmiddle'></td>"
response.write"<td width=*>&nbsp;<a href="&bbsurl&"/  target='_blank' class='middle'>"&lefttrue(RemoveHTML(topicinfo(1)),50)&"</a><div style='border-top:1px dashed #cccccc;height: 1px;overflow:hidden'></div></td></tr>"

tophot.movenext
if i=tophotzt then exit do
loop
tophot.close
set tophot=nothing
%>");
document.write("</table>");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -