/bbs/soucl.asp代码页
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><?xml version="1.0" encoding="utf-8"?>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<!--#include file="conn.inc"-->
<!--#include file="cnscucsb.asp"-->
<wml>
<head><%
'====================================================================
' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
'====================================================================
%> <meta http-equiv='Cache-Control' content='no-cache'/>
</head>
<%
'---接收数据----
pp=request.QueryString("pp")
ltid=request.QueryString("ltid")
'---结束接收----
title=utf8(Request("title"))
IF title<>"" then%>
<card id="index" title="搜索结果"><p>
<%set brs=Server.CreateObject("ADODB.Recordset")
ssql="select name,ltid,yc,id,hhsj,tm from [lttz] where ltid="<id&" and yc<>1 and name like '%"&title&"%'"
brs.open ssql,conn,1,1
if brs.eof then
Response.write "没有您要找的帖子<br/>"
Else
Response.write "共找到相关帖子"&brs.RecordCount&"个<br/>"
page=cint(request("page"))
if page="" or page<1 then page=1
maxpage=int((brs.recordcount-1)/15)+1
if page>maxpage then page=maxpage
brs.Move((page-1)*15)
dim j
j=1
do while ((not brs.EOF) and j <=cint(15))
spmc=left(brs("name"),8)
if len(brs("name"))>8 then
spmc=spmc+"。。"
End if
Response.write ""&(j+page*15)-15&".<a href='lt_view.asp?tid=" & brs("id") & "&cnscu="&cnscu&"'>" & ubb(spmc) & "</a><br/>"
brs.Movenext
j=j+1
loop
if page*15<brs.recordcount then response.write("[<a href='soucl.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&title=" & title & "&page=" & page+1 & "'>下一页</a>]")
if page>1 then response.write("[<a href='soucl.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&title=" & title & "&page=" & page-1 & "'>上一页</a>]")
if bRs.PageCount>2 then%>
<br/><input name="Page" format="*N" size="3"/>
<anchor>跳页
<go href="soucl.asp?ltid=<%=ltid%>&cnscu=<%=cnscu%>" method="post">
<postfield name="Page" value="$(Page)"/>
<postfield name="title" value="$(title)"/>
</go>
</anchor>共[<%=Page%>/<%=maxpage%>]页
<%end if
end if
brs.close
set brs=nothing
else%>
<card id="index" title="出错了"><p>
搜索内容不能为空。<br/>
<%end if%>
<%
conn.close
set conn=nothing%>
<br/><!--#include file="w.asp"-->
</p></card>
</wml> 对应源码下载地址
相关源码
- /bbs/room_sz.asp
- /bbs/ssjj.asp
- /admin/bkcl.asp
- /webadmin/admin_index1.asp
- /bbs/zdzc.asp
- /admin/sc_you.asp
- /admin/bg.asp
- /admin/err.asp
- /bbs/zchycl-bak.asp
- /admin/roomxg.asp
- /ubb.asp
- /zrwz.asp
- /webadmin/lm_gl.asp
- /admin/delok.asp
- /admin/hf_gl.asp
- /admin/del.asp
- /fbpl.asp
- /admin/scpl.asp
- /admin/tj_tx.asp
- /bbs/lt_add.asp
- /admin/bj_lycl.asp
- /webadmin/admin_add_class.asp
- /webadmin/conn.inc
- /admin/gg_gl.asp
- /admin/xgsz.asp
- /admin/wz_sz.asp
- /webadmin/admin_fileinfo.asp
- /webadmin/ts_lm.asp
- /bbs/lt_addcl.asp
- /webadmin/admin_search.asp
- /webadmin/inc/header.inc
- /bbs/jh_list.asp
- /admin/ad_gl.asp
- /admin/bjhy.asp
- /bbs/room_bq.asp
- /admin/sqxipx.asp
- /bbs/czsb.asp
- /bbs/xh.asp
- /admin/tzjl.asp
- /admin/errs.asp
- /bbs/room_qkhy.asp
- /webadmin/admin_yl.asp



