-
-
'**************************************************
- '函数名:showpage
- '作 用:显示“上一页 下一页”等信息
- '参 数:sfilename ----链接地址
- ' totalnumber ----总数量
- ' maxperpage ----每页数量
- ' currentpage ----当前页
- ' showtotal ----是否显示总数量
- ' showallpages ---是否用下拉列表显示所有页面以供跳转。
- ' strunit ----计数单位
- ' showmaxperpage ----是否显示每页信息量选项框
- '返回值:“上一页 下一页”等信息的html代码
- '**************************************************
- function showpage(sfilename, totalnumber, maxperpage, currentpage, showtotal, showallpages, strunit, showmaxperpage)
- dim totalpage, strtemp, strurl, i
If totalnumber = 0 Or MaxPerPage = 0 Or IsNull(MaxPerPage) Then
- ShowPage = ""
- Exit Function
- End If
- If totalnumber Mod MaxPerPage = 0 Then
- TotalPage = totalnumber \ MaxPerPage
- Else
- TotalPage = totalnumber \ MaxPerPage + 1
- End If
- If CurrentPage > TotalPage Then CurrentPage = TotalPage
-
strTemp = "
"
- ShowPage = strTemp
- End Function
- ?>
-
复制代码
|
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn