查看: 3755|回复: 4

[求代码] 求写asp分页代码

[复制链接]
智通 发表于 2015-4-29 14:51:59 | 显示全部楼层 |阅读模式
本帖最后由 智通 于 2015-4-30 09:25 编辑

<%

Ipage=request.querystring("ipage")
if Ipage="" then
Ipage=1
end if

%>
<%
Dim NoClass5,Fileclass5
NoClass5=2
Xwzx0="xwzx"
Set rs = Server.Createobject("ADODB.recordset")
asql="select top 300 * from Article where NoClass='"&NoClass5&"' order by id desc"
rs.cursortype = 3
rs.pagesize=20
rs.open asql,Cn
rs.absolutepage=cint(ipage)
rowcount=0

if not rs.eof and not rs.bof then
while not rs.eof and rowcount<rs.pagesize
datetime=rs("date")
title_5=rs("title")
IDD_5=rs("id")
LeftTitle_5=left(title_5,50)
Datetm_5=rs("Datetime")
Datetme_5="["&year(Datetm_5)&"-"&month(Datetm_5)&"-"&day(Datetm_5)&"]"
BigClass_5=rs("BigClass")
Pathfilename=rs("Pathfilename")
PageCount=rs.pagecount
%>
<li style='padding-left:0px;width:600px;padding-top:3px;padding-bottom:3px;'>⊙ <a href=<%=Web_WebUrl%><%=IDD_5%>.html><%=title_5%><%=Datetme_5%></a></li>
<%
rowcount=rowcount+1
rs.movenext
wend
rs.close
set rs=nothing
end if
%>
</ul>
<p align=center style='width:600px;margin:0 auto;padding-top:5px;'>共 <%=PageCount%> 页 当前页次<%=ipage%>/<%=pagecount%>分页
<%
for i=1 to pagecount
if i=cint(ipage) then %>

[<font color=red ><%= i%></font>]

<% else %>
[<a href=xwzx<%=i%>.html ><%=i%></a>]

<% end if
next
%></p>

</DIV>
<div id=NBodyLeftEnd> </div>

</div>
</div>

结果显示 QQ图片20150430092312.png
想修改为 QQ图片20150430092329.png
求大神帮忙
ttasp 发表于 2015-4-29 23:02:27 | 显示全部楼层
智通 发表于 2015-4-29 14:51


没看到图片
 楼主| 智通 发表于 2015-4-30 09:26:45 | 显示全部楼层
有大神么?
ttasp 发表于 2015-4-30 10:36:32 | 显示全部楼层
回复 3# 智通


   在啊
ttasp 发表于 2015-4-30 12:39:02 | 显示全部楼层
智通 发表于 2015-4-29 14:51



   需求很专业,建议联系客户直接处理
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表

在线客服

售前咨询
售后咨询
服务热线
023-58418553
微信公众号