%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><%
'***********************************************
'showpage
'***********************************************
sub showpage(sfilename,totalnumber,maxperpage,ShowTotal,ShowAllPages)
dim n, i,strTemp,strUrl
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
strTemp= "
"
strTemp=strTemp & ""
strUrl=JoinChar(sfilename)
if CurrentPage<2 then
strTemp=strTemp & "Home Prev "
else
strTemp=strTemp & "Home "
strTemp=strTemp & " Prev "
end if
if n-currentpage<1 then
strTemp=strTemp & " Next End "
else
strTemp=strTemp & " Next "
strTemp=strTemp & " End "
end if
strTemp=strTemp & " Page : " & CurrentPage & "/" & n & " "
strTemp=strTemp & " " & maxperpage & "" & strUnit & "/Page"
if ShowAllPages=True then
strTemp=strTemp &" Go to : "
end if
strTemp=strTemp & "
"
response.write strTemp
end sub
'===========================================================================
Dim RpageNum
RpageNum=cint(Request("PageNum"))
%>
<% Call ShowSite(1,"en")%>