Function fPageCount(Page_Rs,showNumberLink_,nonLinkColor_,toF_,toP10_,toP1_,toN1_,toN10_,toL_,showMorePageGo_Type_,Page)
Dim This_Func_Get_Html_,toPage_,p_,sp2_,I,tpagecount Dim NaviLength,StartPage,EndPage This_Func_Get_Html_ = "" : I = 1 NaviLength=showNumberLink_ if IsEmpty(showMorePageGo_Type_) then showMorePageGo_Type_ = 1 tpagecount=Page_Rs.pagecount If tPageCount<1 Then tPageCount=1 if not Page_Rs.eof or not Page_Rs.bof then toPage_ = PageUrl("Page","submit,GetType,no-cache,_") if Page=1 then This_Func_Get_Html_=This_Func_Get_Html_& "<font color="&nonLinkColor_&" title=""首页"">"&toF_&"</font> " &vbNewLine Else This_Func_Get_Html_=This_Func_Get_Html_& "<a href="&toPage_&"1 title=""首页"">"&toF_&"</a> " &vbNewLine End If if Page<NaviLength then StartPage = 1 else StartPage = fix(Page / NaviLength) * NaviLength end if EndPage=StartPage+NaviLength-1 If EndPage>tPageCount Then EndPage=tPageCount If StartPage>1 Then This_Func_Get_Html_=This_Func_Get_Html_& "<a href="&toPage_& Page - NaviLength &" title=""上"&int_showNumberLink_&"页"">"&toP10_&"</a> " &vbNewLine Else This_Func_Get_Html_=This_Func_Get_Html_& "<font color="&nonLinkColor_&" title=""上"&int_showNumberLink_&"页"">"&toP10_&"</font> " &vbNewLine End If If Page <> 1 and Page <>0 Then This_Func_Get_Html_=This_Func_Get_Html_& "<a href="&toPage_&(Page-1)&" title=""上一页"">"&toP1_&"</a> " &vbNewLine Else This_Func_Get_Html_=This_Func_Get_Html_& "<font color="&nonLinkColor_&" title=""上一页"">"&toP1_&"</font> " &vbNewLine End If For I=StartPage To EndPage If I=Page Then This_Func_Get_Html_=This_Func_Get_Html_& "<b>"&I&"</b>" &vbNewLine Else This_Func_Get_Html_=This_Func_Get_Html_& "<a href="&toPage_&I&">" &I& "</a>" &vbNewLine End If If I<>tPageCount Then This_Func_Get_Html_=This_Func_Get_Html_& vbNewLine Next |