亚洲国产成人久久午夜|久久成人秘 免费无码|色悠久久久久综合网国产|久久精品99国产精品最新|午夜福利一区二区三区不卡|国产第一视频一区二区三区|久久久久久国产一区二区三区|欧美一级AA大片片免费看视频

   <%
page=clng(request("page"))  
Set rs=Server.CreateObject("ADODB.RecordSet")

sql="select * from news where a='"&a&"'   order by pai desc"
rs.Open sql,conn,1,1


if rs.eof and rs.bof then
  response.Write("暫時(shí)沒(méi)有記錄")
else
%>


<%
rs.PageSize=24
if page=0 then page=1
pages=rs.pagecount
if page > pages then page=pages
rs.AbsolutePage=page 
for j=1 to rs.PageSize
%>

 

<%if rs("l3")<>"" then%>
<li><p><a href="<%=rs("l3")%>" target="_blank"><%=rs("title")%> </a></p><span><%=year(rs("Infotime"))%>.<%=month(rs("Infotime"))%>.<%=day(rs("Infotime"))%></span></li>
<%else%>
<li><p><a href="newsnw.asp?id=<%=rs("id")%>"><%=rs("title")%> </a></p><span><%=year(rs("Infotime"))%>.<%=month(rs("Infotime"))%>.<%=day(rs("Infotime"))%></span></li>
<%end if%>

<%
rs.movenext
if rs.eof then exit for
next
%>
</div>
<div class="fen"><form method=Post action="?a=<%=a%>&b=<%=b%>">
                          <%if Page<2 then     
    response.write "首頁(yè) 上一頁(yè)&nbsp;"
  else
    response.write "<a href=?a="&a&"&b="&b&"&page=1>首頁(yè)</a>&nbsp;"
    response.write "<a href=?a="&a&"&b="&b&"&page=" & Page-1 & ">上一頁(yè)</a>&nbsp;"
  end if
  if rs.pagecount-page<1 then
    response.write "下一頁(yè) 尾頁(yè)"
  else
    response.write "<a href=?a="&a&"&b="&b&"&page=" & (page+1) & ">"
    response.write "下一頁(yè)</a> <a href=?a="&a&"&b="&b&"&page="&rs.pagecount&">尾頁(yè)</a>"
  end if
   response.write "&nbsp;頁(yè)次:<strong><font color=red>"&Page&"</font>/"&rs.pagecount&"</strong>頁(yè) "
    response.write "&nbsp;共<b><font color='#FF0000'>"&rs.recordcount&"</font></b>條記錄 <b>"&rs.pagesize&"</b>條記錄/頁(yè)"
   response.write " 轉(zhuǎn)到:<input type='text' name='page' size=4 maxlength=10 class=input value="&page&">"
   response.write " <input class=input type='submit'  value=' Goto '  name='cndok'></span></p>"    
%>
                        </form>
                  
</div>
 <%
end if
rs.close
set rs=nothing
%>

轉(zhuǎn)發(fā)請(qǐng)注明:丁丁貓

猜你喜歡