"&vbcrlf
Case "3" '分页样式3:显示首页、上十页、下十页、尾页以及中间一段页码
PageStr = PageStr & "
"
PageStr = PageStr & "全部"&xPageName&":" & xTotalNum &"" & xUnitName & ""
PageStr = PageStr & " 页次:" & xCurrentPage & "/" & xPageCount & ""
p = (xCurrentPage - 1) 10
If xCurrentPage = 1 Then
PageStr = PageStr & " |‹"
Else
PageStr = PageStr & " |‹"
End If
If p * 10 > 0 Then
PageStr = PageStr & " «"
End If
For i=(p * 10 + 1) To (p * 10 + 10)
If i = xCurrentPage Then
PageStr = PageStr & " [" & i & "]"
Else
PageStr = PageStr & " " & i & ""
End If
If i = xPageCount Then Exit For
Next
If i < xPageCount Then PageStr = PageStr & " »"
If xCurrentPage = xPageCount Then
PageStr = PageStr & " ›|"
Else
PageStr = PageStr & " ›|"
End If
PageStr = PageStr & "
"&vbcrlf
Case "4" '分页样式4:显示首页和尾页的页码、中间显示一部分页码
PageStr = PageStr & "
"
PageStr = PageStr & "全部"&xPageName&":" & xTotalNum &"" & xUnitName & ""
PageStr = PageStr & " 页次:" & xCurrentPage & "/" & xPageCount & ""
If xCurrentPage > 4 Then PageStr = PageStr & " [1] ... "
If xCurrentPage < PageCount - 3 Then PageTo = xCurrentPage + 3 Else PageTo = xPageCount
For i=xCurrentPage - 3 To PageTo
If i >= 1 Then
If i = xCurrentPage Then
PageStr = PageStr & " [" & i & "]"
Else
PageStr = PageStr & " [" & i & "]"
End If
End If
Next
If xCurrentPage < xPageCount - 3 Then PageStr = PageStr & " ... " & xPageCount & ""
PageStr = PageStr & "
"&vbcrlf
Case "5" '分页样式5:显示首页、上一页、下一页、末页,均为汉字和转到页的选择列表
PageStr = PageStr & "