<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>搭建日记-设计日记-会展之窗招标网</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="js/site.js"></script>
</head>
<!--#include file="inc/Function.asp"-->
<!--#include file="inc/Config.asp"-->
<!--#include file="inc/conn.asp"-->
<body>
<!--#include file="top.asp"-->
<table width="990" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#F1F1F1" class="margintop">
  <tr>
    <td width="734">
	 <table width="100%" border="0" cellspacing="0" cellpadding="0">
       
       
      <tr>
        <td background="images/s_06.jpg">

		<table width="685" border="0" align="center" cellpadding="2" cellspacing="1">
          <%
		    Call ConnectionDataBase()
			Sql = "SELECT ID,NewsTitle,AddTime FROM T_Diary Where Recycle=0 Order By SortID DESC,AddTime DESC"
			SetRs Rs,Sql,conn,1,1
			IF Rs.eof And Rs.bof Then
				Response.Write "<tr><td>对不起,目前没有相关记录!</td></tr>"
			Else
				n=0
				Rs.pagesize=20
				IF Not isempty(request("page")) And isnumeric(request("page")) Then 				  
					p=cint(request("page"))   
					IF p>Rs.pagecount Then p=Rs.pagecount
				Else   
					p=1
				End IF             
				Rs.AbsolutePage=p
				Do While Not Rs.eof	
				%>
				<tr><td height="25">
				<%=n+1%>.<a href="diary.asp?id=<%=Rs("ID")%>" class="font12hui"><%=Rs("NewsTitle")%></a> [<%=Formatdatetime(Rs("AddTime"),2)%>]
				</td>
				</tr>
				<%  
					n=n+1     
					Rs.movenext
					IF n>=Rs.pagesize Then Exit Do
				Loop
			End IF
			%>
          <tr>
            <td>
			<%
			IF Rs.recordcount>0 Then
				Call showpage(p,Rs.recordcount,Rs.pagesize,"?","")
				DisRs Rs
			End IF
			Call CloseDataBase
			%>
			</td>
          </tr>
         </table>
		</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td>&nbsp;</td>
  </tr>
</table>
<!--#include file="bottom.asp"-->
</body>
</html>
