%
'on error resume next
dim rs,sql
dim currentpage
dim totalrec
dim guestlist
dim stype,pSearch,nSearch,keyword
dim searchboard,ordername
stats="搜索结果"
stype=request("stype")
pSearch=request("pSearch")
nSearch=request("nSearch")
keyword=trim(request("keyword"))
boardid=request("boardid")
if isempty(request("page")) or isNull(request("page")) or (request("page")="") then
currentPage=1
else
if isInteger(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
if err.number<>0 then
err.clear
currentPage=1
end if
end if
if boardmaster or master then
guestlist=""
else
guestlist=" board.lockboard<>2 and "
end if
if stype<3 then
if not isInteger(boardid) then
Errmsg=Errmsg+"
"+"
| <%=ordername%>共查询到><%=totalrec%>个结果 |
| valign=middle width=1> | >状态 | valign=middle width=1> | >主 题 (点心情符为开新窗浏览) | valign=middle width=1> | >作 者 | valign=middle width=1> | >回复/人气 | valign=middle width=1> | >作者 | 发表时间 | valign=middle width=1> |
| valign=middle width=1 height=24> | >
<%if rs("locktopic")=1 then%> |
valign=middle width=1> | width=*>> <%if rs("topic")="" then%><%=left(htmlencode(rs("body")),26)%>...<%else%><%=htmlencode(rs("topic"))%><%end if%> |
valign=middle width=1> | >',350,300)"><%=htmlencode(rs("username"))%> | valign=middle width=1> | ><%=rs("child")%>/<%=rs("hits")%> | valign=middle width=1> | width=195>> <%=FormatDateTime(rs("dateandtime"),2)%> <%=FormatDateTime(rs("dateandtime"),4)%> | ',350,300)"><%=htmlencode(rs("username"))%> | valign=middle width=1> |