自己常用的分页程序
来源:互联网 发布:手机淘宝怎么写评价 编辑:程序博客网 时间:2024/06/13 23:36
<IFRAME name=google_ads_frame marginWidth=0 marginHeight=0 src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-4490194096475053&dt=1226297185750&lmt=1226285422&prev_slotnames=1891601125&output=html&slotname=3685991503&correlator=1226297185718&url=http%3A%2F%2Fwww.corange.cn%2Farchives%2F2008%2F08%2F1465.html&ea=0&ref=http%3A%2F%2Fwww.corange.cn%2Fhtml%2Fcorange__78.html&frm=0&ga_vid=2044451421.1225934970&ga_sid=1226297173&ga_hid=1656447314&ga_fc=true&flash=9.0.124.0&u_h=768&u_w=1024&u_ah=715&u_aw=1024&u_cd=32&u_tz=480&u_java=true" frameBorder=0 width=300 scrolling=no height=250 allowTransparency></IFRAME>
dim rs,sql,key,strsql,page,i,x key=request("key") '搜索关键字
strsql="?key="&key
page=cint(request("page"))
if page="" or page<=0 or isnumeric(page)=false then page=1
set rs=.....
sql="..... where .. like'%"%key&"%' or ... like'%"&key&"%'...."
rs.open sql......
if not rs.eof then
rs.movefirst
.....
i=0
do while not rs.eof and i<rs.pagesize
i=i+1
.........
.......
.....
..
rs.movenext
loop
else
page=0
end if
response.Write("共计"&rs.recordcount&"条 ")
response.Write("每页"&rs.pagesize&"条 ")
response.Write("第"&page&"/"&rs.pagecount&"页 ")
if page>1 and page<=rs.pagecount then response.Write("<a href="&strurl&"&page="&page-1&" class=l9>上一页</a> ")
if page<rs.pagecount and rs.pagecount>1 then response.Write("<a href="&strurl&"&page="&page+1&" class=l9>下一页</a>")
if rs.pagecount>1 then
response.Write(" 转到第<select onchange='javascript:location.href=this.options[selectedIndex].value'>")
for x=1 to rs.pagecount
if cint(page)=x then
response.Write("<option value="&strurl&"&page="&x&" selected>"&x&"</option>")
else
response.Write("<option value="&strurl&"&page="&x&">"&x&"</option>")
end if
next
response.Write("</select>页")
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
- 自己常用的分页程序
- 自己写的一个分页程序
- 自己写的一个分页程序
- asp分页(自己整理的2个分页程序)
- 记录一个自己常用的JS 分页 + 渲染脚本
- 自己的分页
- 自己写的分页
- 常用的分页函数
- 常用的分页函数
- 常用的分页方法
- 自己编的分页模块
- 自己写的分页代码
- 自己学习的分页控件
- 自己写的一个分页
- 自己写的数据分页
- 自己分页遇到的问题
- 自己写的分页条
- 自己写的freemarker分页
- LNK2001无法解析的外部符号“symbol”
- Css基础学习(四)—文本
- 用一个案例讲解应用程序越来越慢的原因
- 数据同步解决方案
- Css基础学习(五)—颜色、背景与图像
- 自己常用的分页程序
- struts2校验框架,内置参数信息查看
- 将存储过程用于命令
- 简单分页教程
- asp下实现多条件模糊查询SQL语句
- Css基础学习(六)—列表
- 清除HTML格式
- 装载iframe 子页面,自适应高度
- MIS的未来在共享软件 嵌入式软件需求旺盛