1asp通用分页函数<%dim rs3,pm3,bg
 2asp通用分页函数page=clng(request("page"))
 3asp通用分页函数set rs3 = server.createobject("adodb.recordset")
 4asp通用分页函数sql3 = "select distinct brlword from userinfo where bfenshuduan='"&key&"' order by brlword"
 5asp通用分页函数rs3.open sql3,conn,1,1
 6asp通用分页函数if rs3.eof then
 7asp通用分页函数%>
 8asp通用分页函数    <tr>
 9asp通用分页函数      <td width="580" colspan="5">
10asp通用分页函数    <p align="center"><font color="#FF0000">对不起,没有符合条件的高校!</font>
11asp通用分页函数
12asp通用分页函数      </td>
13asp通用分页函数    </tr>
14asp通用分页函数    <tr>
15asp通用分页函数     <td width="580" colspan="5">
16asp通用分页函数<else %>
17asp通用分页函数<%
18asp通用分页函数const maxperpage=1
19asp通用分页函数dim currentpage
20asp通用分页函数rs3.pagesize=maxperpage
21asp通用分页函数currentpage=request.querystring("pageid")
22asp通用分页函数if currentpage="" then
23asp通用分页函数currentpage=1
24asp通用分页函数elseif currentpage<1 then
25asp通用分页函数currentpage=1
26asp通用分页函数else
27asp通用分页函数currentpage=clng(currentpage)
28asp通用分页函数    if currentpage > rs3.pagecount then
29asp通用分页函数    currentpage=rs3.pagecount
30asp通用分页函数    end if
31asp通用分页函数end if
32asp通用分页函数
33asp通用分页函数if not isnumeric(currentpage) or currentpage="" then
34asp通用分页函数currentpage=1
35asp通用分页函数end if
36asp通用分页函数dim totalput,n
37asp通用分页函数totalput=rs3.recordcount
38asp通用分页函数if totalput mod maxperpage=0 then
39asp通用分页函数n=totalput\maxperpage
40asp通用分页函数else
41asp通用分页函数n=totalput\maxperpage+1
42asp通用分页函数end if
43asp通用分页函数if n=0 then
44asp通用分页函数n=1
45asp通用分页函数end if
46asp通用分页函数rs3.move(currentpage-1)*maxperpage
47asp通用分页函数i=0
48asp通用分页函数do while i< maxperpage and not rs3.eof
49asp通用分页函数        %>
50asp通用分页函数        <tr>
51asp通用分页函数        <td><%=getschoolinfo(rs3("brlword"),1)%></td>
52asp通用分页函数        <td><%=getschoolinfo(rs3("brlword"),2)%></td>
53asp通用分页函数        <td><%=getschoolinfo(rs3("brlword"),5)%></td>
54asp通用分页函数        <td><%=getschoolinfo(rs3("brlword"),3)%></td>
55asp通用分页函数        <td><%=getschoolinfo(rs3("brlword"),4)%></td>
56asp通用分页函数      </tr>
57asp通用分页函数<%                                                                         
58asp通用分页函数i=i+1                                                      
59asp通用分页函数rs3.movenext                                                        
60asp通用分页函数loop                                                                                 
61asp通用分页函数                                    
62asp通用分页函数%>   
63asp通用分页函数    </table>
64asp通用分页函数<p align="center">页数:<%=currentpage%>/<=n%>                                                       
65asp通用分页函数       <%k=currentpage                                                                                
66asp通用分页函数       if k<>1 then%>                                                            
67asp通用分页函数       <a href="picitop2.asp?pageid=1">首页</a>                                                                                
68asp通用分页函数       <a href="picitop2.asp?pageid=<%=k-1%>&key=<%=key%>">上一</a>                                                                                
69asp通用分页函数       <%else%>                                                            
70asp通用分页函数       首页 上一页                                                                                
71asp通用分页函数       <%end if%>                                                            
72asp通用分页函数       <%if k<>then%>                                                                                
73asp通用分页函数       <a href="picitop2.asp?pageid=<%=k+1%>&key=<%=key%>">下一</a>                                                                                
74asp通用分页函数       <a href="picitop2.asp?pageid=<%=n%>&key=<%=key%>">尾页</a>                                                                                
75asp通用分页函数       <%else%>                                                            
76asp通用分页函数       下一页 尾页                                                                                
77asp通用分页函数       <%end if%>                                                            
78asp通用分页函数     共为您找到<font color="red"><%=totalput%></font>所高校
79asp通用分页函数 

相关文章:

  • 2021-09-20
  • 2021-11-07
  • 2022-01-22
  • 2022-02-28
  • 2021-10-10
  • 2022-01-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-06
  • 2021-11-10
  • 2022-12-23
  • 2021-11-09
相关资源
相似解决方案