??????????
????????????<%add=rs("add1")
????????substring?add,4
????????%>
??????????
??????????
??????????"?target="_blank">??????????
?????????<%
????????if?rs("isred")=True?then
????????%>
????????
????????<%title=rs("title")
????????substring?title,20
????????%>
????????<%else
????????title=rs("title")
????????substring?title,20
????????%>
????????<%
????????end?if
????????%>????????
????????
??????????<%=rs("cartype")%>
??????????
??????????????<%thetime=rs("enterdate")
????????????????????themon=datepart("m",thetime)
????????????????????if?len(themon)<2?then?themon="0"&themon
????????????????????theday=datepart("d",thetime)
????????????????????if?len(theday)<2?then?theday="0"&theday
????????????????????ther=themon&"-"&theday
????????????????????response.write?ther
????????????????%>
??????????
??????????<%=rs("hits")%>
????????
????????<%
??????rs.movenext
??????if?rs.eof?then?exit?for
??????next????????
??????%>
??????
??????
??????
????????
??????
????
?????
????????????
??????????????
??????????????????
????????????????????<%if?rs.pagecount>0?then?%>
??????????????共有<%=rs.recordcount%>條|當前頁<%=intpage%>/
??????????????<%
=rs.pagecount%>
??????????????<%?end?if?%>
??????????????<%if?intpage>1?then%>
???????????????
page=1">首頁
??????????????<%else%>
??????????????首頁
??????????????<%end?if%>
??????????????<%if?first?then%>
???????????????
page=<%=intpage-1%>">上一頁
??????????????<%else%>
??????????????上一頁
??????????????<%end?if%>
??????????????<%if?last?and?intpage
???????????????
page=<%=intpage+1%>">下一頁
??????????????<%else%>
??????????????下一頁
??????????????<%end?if%>
??????????????<%if?intpage
???????????????
page=<%=rs.pagecount%>">尾頁
??????????????<%else%>
??????????????尾頁
??????????????<%end?if%>
??????????????轉到
??????????????
[this.selectedIndex].value">
????????????????<%for?b=1?to?rs.pagecount
?????if?b=intpage?then%>
?????????????????page=<%=b%>"?selected>
????????????????第<%=b%>頁
????????????????<%?else?%>
?????????????????page=<%=b%>">第<%=b%>頁
????????????????
????????????????<%end?if
?????next%>
??????????????
????
????????????
??????????
<%
rs.close
set?rs=nothing
conn.close
set?conn=nothing
%>?>
通過錯新技術頻道小編介紹的程序員編寫分頁函數的方法,相信大家都有了一定的了解,如需了解更多的相關資訊,請繼續關注錯新技術頻道吧!
新聞熱點
疑難解答