|
| |
精品推荐 |
 |
|
| |
|
|
|
|
ASP分页代码,已经写成类了,值得参考
|
日期:2008年1月6日 作者: 查看:[大字体
中字体 小字体]
|
Else If SW_lngPageNo >= SW_lngTotalPage Then Response.Write ("<font color=""" & SW_strFTColor & """><a href=""" & SW_strURL & "1"">First</a> <a href=""" & SW_strURL & SW_lngPageNo -1 & """>Prev</a> " & "Next Last" & vbcrlf) Else Response.Write ("<font color=""" & SW_strFTColor & """><a href=""" & SW_strURL & "1"">First</a> <a href=""" & SW_strURL & SW_lngPageNo -1 & """>Prev</a> " & "<a href=""" & SW_strURL & SW_lngPageNo+1 & """>Next</a> <a href=""" & SW_strURL & SW_lngTotalPage & """>Last</a>" & vbcrlf) End If End If Response.Write (" Page No:<b>" & SW_lngPageNo & "</b>/" & SW_lngTotalPage & " Total Records:<b>" & SW_lngTotalRecord & "</b> PageSize:<b>" & SW_intPageSize & "</b></td>" & vbcrlf) Response.Write(" <form name=""gopage"" action=""" & SW_strFormAction & """ method=""post"">" & vbcrlf) Response.Write(" <td> ") Response.Write(" <input type=""text"" name=""pageno"" size=""3"" maxlength=4 title=""Please input pageno then enter""> " & vbcrlf) Response.Write("<input type=""submit"" value=""GO""></td></form></tr>" & vbcrlf) Case SW_intShowCharacter strPages = "" intTemp = (SW_lngPageNo \ SW_intShowPages) * SW_intShowPages If SW_lngPageNo Mod SW_intShowPages = 0 Then intTemp = intTemp - 10 For k = 1 To SW_intShowPages intTemp1 = intTemp + k
If intTemp1 > SW_lngTotalPage Then Exit For If SW_lngPageNo = intTemp1 Then If Len(Trim(CStr(intTemp1)))<2 Then strPages = strPages & " 0" & CStr(intTemp1) Else strPages = strPages & " " & CStr(intTemp1) End If Else strPages = strPages & " <a href=""" & SW_strURL & CStr(intTemp1) & """>" If Len(Trim(CStr(intTemp1)))<2 Then strPages = strPages & "0" & CStr(intTemp1) Else strPages = strPages & CStr(intTemp1) End If strPages = strPages & "</a>" End If Next If SW_lngPageNo <= 1 Then Response.Write ("<font face=""Webdings"">9 7</font>" & strPages & " <a href=""" & SW_strURL & SW_lngPageNo+1 & """><font face=""Webdings"">8</font></a> <a href=""" & SW_strURL & SW_lngTotalPage & """><font face=""Webdings"">:</font></a>" & vbcrlf)
上一篇:asp彩色验证码图像生成脚本
下一篇:用ASP实现分页的源码
|
| 相关文章: |
|
|
|
| 相关软件: |
|
|
|
|