%
stats="论坛搜索"
dim sql,rs
dim sel
dim boardid
dim username
dim guestlist
if founderr then
call nav()
call headline(1)
call error()
else
call main()
end if
sub main()
if boardmaster or master then
guestlist=""
else
guestlist=" lockboard<>2 and "
end if
boardid=request("boardid")
if BoardID="" or not isInteger(BoardID) then
boardid=0
else
boardid=request("boardid")
call boardinfo()
end if
call nav()
call headline(1)
%>
(同时查询多个条件使用'or' 分隔关键字,查询同时满足某条件使用'and'分隔关键字)
搜索选项
作者搜索
关键字搜索
日期范围
请选择要搜索的论坛 (不要选那些用 >> 和 << 括起来的,那只是类别名,不是论坛)
搜索论坛:
<%
end sub
sub boardinfo()
set rs=server.createobject("adodb.recordset")
sql="select boardtype,Tableback,Tabletitle,Tablebody,aTablebody,TableFont,TableContent,AlertFont,strAllowForumCode,strAllowHTML,strIMGInPosts,strIcons,strflash,Forumlogo from board where boardID="&BoardID
rs.open sql,conn,1,1
if not(rs.bof and rs.eof) then
boardtype=rs("boardtype")
Tablebackcolor=trim(rs("Tableback"))
Tabletitlecolor=trim(rs("Tabletitle"))
Tablebodycolor=trim(rs("Tablebody"))
aTablebodycolor=trim(rs("aTablebody"))
TableFontcolor=trim(rs("TableFont"))
TableContentcolor=trim(rs("TableContent"))
AlertFont=trim(rs("AlertFont"))
strAllowForumCode=rs("strAllowForumCode")
strAllowHTML=rs("strAllowHTML")
strIMGInPosts=rs("strIMGInPosts")
strIcons=rs("strIcons")
strflash=rs("strflash")
Forumlogo=rs("Forumlogo")
end if
rs.close
set rs=nothing
end sub
call endline()
%>