<% if request("page")="" then page=1 else page=cint(request("page")) end if fenlei=request("fenlei") set rs2=server.createobject("adodb.recordset") if fenlei=1 then sql="select * from news where sclass=1 order by time desc" end if if fenlei=2 then sql="select * from news where sclass=2 order by time desc" end if if fenlei="" then sql="select * from news order by time desc " end if rs2.open sql,conn,1,1 if not rs2.eof then rs2.pagesize=20 rs2.absolutepage=page end if %> 企业新闻----台州亚克机电有限公司
首页 > 资讯中心<%if fenlei=1 then response.write(" > 企业新闻") end if%><%if fenlei=2 then response.write(" > 行业新闻") end if%><%if fenlei=1 then%><%end if%><%if fenlei="" then%><%end if%><%if fenlei=2 then%><%end if%>
<% if not rs2.eof then for i=1 to rs2.pagesize if rs2.eof then exit for %> <% rs2.movenext next else %> <% end if %>
标 题 日 期
&fenlei=<%=rs2("sclass")%>"><%=rs2("title")%>
[<%= year(rs2("time"))%>-<%if month(rs2("time"))<10 then response.write "0"&month(rs2("time")) else response.write month(rs2("time")) end if %>-<%if day(rs2("time"))<10 then response.write "0"&day(rs2("time")) else response.write day(rs2("time")) end if%>]
暂时还没有新闻
<% if fenlei<>"" then %>
<%if rs2.pagecount>1 then %> 首页 <%if page<>1then%> 上一页 <%end if%>   <%if page<>rs2.pagecount then%> 下一页 <%end if%> 尾页 <%end if%> 页次:<%=page%>/<%=rs2.pagecount%> 共<%=rs2.recordcount%>条新闻 转到:  
<%end if%> <%if fenlei="" then%>
<%if rs2.pagecount>1 then%> 首页 <%if page<>1then%> 上一页 <%end if%>   <%if page<>rs2.pagecount then%> 下一页 <%end if%> 尾页 <%end if%> 页次:<%=page%>/<%=rs2.pagecount%> 共<%=rs2.recordcount%>条新闻 转到:  
<% end if %>