÷news.asp?id=6


<a href="news.asp?id=<%=rs("classid")%>" title="<%=rs("class")%>"><%=rs("class")%></a>

<!--ŵ-->
<%
dim rs,sql
dim page,maxPerPage
maxPerPage=15 'ÿҳʾļ¼
myKeyword=Request("myKeyword")
page=Request("page")
if (page="" or isempty(page)) then page=1
thisUrl="news.asp?myKeyword="&myKeyword
session("oldUrl")=thisUrl&"&page="&page
set rs=server.createobject("adodb.recordset")
sql="select * from lmnews where classid="&request.querystring("id")
if not (myKeyword="" or isempty(myKeyword) ) then
	sql=sql&" and title like '%"&myKeyword&"%'"
end if
sql=sql&" order by id desc"
'response.write sql
'response.End
rs.open sql,conn,1,1
rs.pagesize=MaxPerPage
If rs.EOF Then
response.Write "<br><br><center><font style='font-size: 14px'>Ƿѱɾ[<a href='index.asp'>ﷵҳ</a>]</font></center><br><br>"
Else
%>
<!--ŵ-->


<TITLE><%=rs("class")%></TITLE>

<!--================================ȫŲҳ===========================-->
		<table width="99%" border="0" align="center" cellpadding="3" cellspacing="2">
          <tr>
            <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <%
		dim rsID
		i=1
		if not (rs.eof or err) then rs.move (page-1)*maxPerPage
		do while not (rs.eof or err) 
		rsID=rs("id")
%>
			  <tr>
                <td width="82%" height="30"><img src="images/dot2.gif" width="7" height="7"> <a href="view.asp?id=<%=rs("id")%>" title="<%=rs("title")%>" alt="<%=rs("title")%>" target=_blank><font style="font-size: 14px"><%=rs("title")%></font></a></td>
                <td width="18%"><div align="center">[<%=formatdatetime(rs("time"),2)%>]</div></td>
              </tr>
              <tr>
                <td height="1" colspan="2" background="images/dot.gif"></td>
              </tr>
			  <%
		i=i+1
		if i>maxPerPage then exit do
		rs.moveNext
		loop
%>
            </table></td>
          </tr>
		  <tr><td height="15"></td>
		  </tr>
          <tr>
            <td><!--ҳ--><table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
              <tr>
                <td height="30" bgcolor="#FFFFFF"><div align="center"> <%=rs.pageCount%> ҳ <%=rs.recordCount%> ݡǰ<%=page%>/<%=rs.pageCount%> 
              ҳ
              <%if page>1 then%>
              <a href="<%=thisUrl%>&id=<%= request("id") %>">ҳ</a> | <a href="<%=thisUrl%>&page=<%=page-1%>&id=<%= request("id") %>">һҳ</a> |
              <%else%>
              <font color="#999999">ҳ | һҳ |</font>
              <%end if
if rs.recordCount>page*maxPerPage then%>
              <a href="<%=thisUrl%>&page=<%=page+1%>&id=<%= request("id") %>">һҳ</a> | <a href="<%=thisUrl%>&page=<%=rs.pageCount%>&id=<%= request("id") %>">βҳ</a>
              <%else%>
               <font color="#999999">һҳ | βҳ</font>
             
                          <%end if%></div></td>
              </tr>
            </table><!--ҳ--></td>
          </tr>
        </table>

		<!--================================ȫŲҳ===========================-->


<%
rs.close
set rs=nothing
%>

<%end if%>