复制代码代码如下:
rs.opensql,conn,1,1
ifrs.eofandrs.bofthen
response.write"<palign='center'>还没找到文章</p>"
else
totalPut=rs.recordcount
maxperpage=18
ifcurrentpage<1then
currentpage=1
endif
if(currentpage-1)*maxperpage>totalputthen
if(totalputmodmaxperpage)=0then
currentpage=totalput/maxperpage
else
currentpage=totalput/maxperpage+1
endif
endif
ifcurrentpage=1then
showpage1totalput,maxperpage,"infotype.asp?id="&request("id")
showcontent()
showpagetotalput,maxperpage,"infotype.asp?id="&request("id")
else
if(currentpage-1)*maxperpage<totalputthen
rs.move(currentpage-1)*maxperpage
dimbookmark
bookmark=rs.bookmark
showpage1totalput,maxperpage,"infotype.asp?id="&request("id")
showcontent
showpagetotalput,maxperpage,"infotype.asp?id="&request("id")
else
currentpage=1
showpage1totalput,maxperpage,"infotype.asp?id="&request("id")
showcontent
showpagetotalput,maxperpage,"infotype.asp?id="&request("id")
endif
endif
endif
%>
<%
subshowcontent()
%>
<tr>
<tdheight="20"class="blueback2"><divalign="center">ID</div></td>
<tdclass="blueback2"><divalign="center"><ahref="javascript:selectall()"><fontcolor="#FFFFFF">选择</font></a></div></td>
<tdwidth="355"class="blueback2"><divalign="center">信息标题</div></td>
<tdwidth="84"class="blueback2"><divalign="center">更新日期</div></td>