📄 wmcmsindex_new.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc/fun.asp"-->
<%
dim bbsurl,topicnum,tsql,topnew,i,topicinfo
bbsurl="bbs" '论坛地址绝对路径,末尾不能加上 /
topicnum=6 '显示最新帖数目
%>
document.write("<style type='text/css'><!--.css { font-size: 9pt}--></style><table class=css border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='100%'>");
document.write("<%
tsql="select top "&topicnum&" 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) order by id desc"
set topnew=conn.execute(tsql)
i=0
do while not topnew.eof
topicinfo=topnew("topicinfo")
topicinfo=split(topicinfo,"|")
i=i+1
response.write"<tr height='24'><td align=center width=40><img src="&bbsurl&"/images/face/"&topicinfo(0)&".gif align='absmiddle'></td>"
response.write"<td width=*> <a href="&bbsurl&"/index.asp target='_blank' class='middle'>"&lefttrue(RemoveHTML(topicinfo(1)),50)&"</a><div style='border-top:1px dashed #cccccc;height: 1px;overflow:hidden'></div></td></tr>"
topnew.movenext
if i=topicnum then exit do
loop
topnew.close
set topnew=nothing
%>");
document.write("</table>");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -