<%
cid=1
table_name="bbs"
url_title=request("url_title")
if url_title<>"" then b=" and url_title='"&url_title&"'"
num=8
'分页
pagesize=15
Page = Cint(Request("Page"))
If Page < 1 Then Page = 1
num=cint((page-1)*pagesize )
if num="" then num=pagesize
num1=num+pagesize
'需要审核
bz="1"
'搜索
find_name=request("find_name")
find_type=request("find_type")
if find_name<>"" then
find_str=" and "&find_type&" like '%"&find_name&"%' "
find_message=" 搜索 "&find_name&" 结果如下"
else
find_str=" "
end if
if session("bbs_username")<>"" then
bz=" "
else
bz=" and bz ='"&bz&"'"
end if
sql3="select top "&num1&" id,username,topic,child,xl,bz,createtime from "&table_name&" where cid="&cid&b&" and len(xl)<=5 "&bz&" "&find_str&" order by xl "
set rs3=conn.execute(sql3)
sql2="select count(*) from " &table_name&" where cid="&cid&b&" and len(xl)<=5 "&bz &find_str
set rs2=conn.execute(sql2)
page_num=rs2(0)
count2=round(rs2(0)/pagesize+0.4)
if count2=0 then count2=1
rs2.close
set rs2=nothing
pagecount=16
if p_begin="" then
p_begin=0
end if
if rs3.eof and rs3.bof then
response.write " "
else
num2=num+1
num3=num+16
j=0
end if
%>
|
真诚地欢迎您提出宝贵意见,对我们工作中的不足之处提出批评!
在发表言论之前您务必仔细阅读下列条款:
·尊重网上道德,遵守中华人民共和国各项有关法律法规;
·承担一切因您的行为而直接或间接导致的民事或刑事法律责任;
·本站有权保留或删除在本系统中发表的任意内容而无须事先通知;
·您在本系统发表的作品,本站有权在网站内或其他场合转载或引用,且无须与作者协商,亦无须支付任何费用。
|
|
|
|
|