<!--#include file="../../here99login/0.asp"--><!--#include file="../../conn/zkconn.asp"-->
<%
dim conn,rs
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From kefu Order By id DESC", conn, 3, 2
%>
<%if rs.eof and rs.bof then%>
<title>发现错误！</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</head>
<table width="40%" border="0" cellspacing="10" cellpadding="0" align="center" class="table">
  <tr> 
    <td> 
            <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#000000">
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                
          <td align="center"><b><font color="#FF0000">没有任何记录!!!</font></b></td>
              </tr>
              <tr>
                <td align="center">&nbsp;</td>
              </tr>
              <tr> 
                
          <td align="center"><a href="add.asp">点击这里添加新记录</a></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
            </table>
    </td>
  </tr>
</table>
<%else%>
<%
order=0
count=rs.RecordCount
pagesize=15
pagecount=count\(pagesize+1)+1
page=request.QueryString("page")
if page="" then
	page=1
end if
%><html>
<head> 
<title>数字新闻系统v1.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<body bgcolor="#FFFFFF" text="#000000"> 
<form name="del" method="post" action="del.asp">
              
  <p>&nbsp;</p>
  <table width="800" align="center" bordercolordark="#FFFFFF" bordercolorlight="#000000">
    <tr valign="middle" bgcolor="#CCCCCC"> 
      <td height="25" colspan="6" align="center"><a href="add.asp">添加记录</a><font color="#1478eb">&nbsp; 
        </font>|<font color="#1478eb">&nbsp; </font><a href="index.asp">管理分类</a></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="50" height="25" align="center">ID</td>
      <td height="25" align="center">标 题</td>
      <td width="150" height="25" align="center">类别</td>
      <td width="150" height="25" align="center">添加时间</td>
      <td width="50" align="center">修改</td>
      <td width="50" height="25" align="center">删 除</td>
    </tr>
    <%
if not rs.eof then
	rs.Move (page-1)*pagesize
	cc=(page-1)*pagesize
	do while (not rs.eof) and (order<pagesize)
		cc=cc+1
		order=order+1
%>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="50" height="25" align="center"><%=cc%></td>
      <td height="25"><a href="xiangxi.asp?id=<%=rs("id")%>" target="_blank"><%=rs("bt")%></a></td>
      <td width="150" align="center"><%=rs("lb")%></td>
      <td width="150" align="center"><%=rs("sj")%></td>
      <td width="50" align="center"><a href="xiugai.asp?id=<%=rs("id")%>">修改</a></td>
      <td width="50" height="25" align="center"> <input type="checkbox" name="sel<%=cc%>"> 
        <input type=hidden name=id<%=cc%> value=<%=rs("id")%>></td>
    </tr>
    <%
rs.movenext
	loop
end if
%>
    <tr align="center" valign="middle" bgcolor="#f1f1f1"> 
      <td height="25" colspan="6">&nbsp; <%if page>1 then%> <a href="edit.asp?page=1">第一页</a>&nbsp;&nbsp;<a href="edit.asp?page=<%=page-1%>">上 
        页</a>&nbsp;&nbsp; <%end if%> <%if (page-pagecount)<0 then%> <a href="edit.asp?page=<%=(page+1)%>">下 
        页</a>&nbsp;&nbsp; <a href="edit.asp?page=<%=pagecount%>">最后页</a> 
        <%end if%> </td>
    <tr align="center" valign="middle" bgcolor="#f1f1f1"> 
      <td height="25" colspan="6"> <input type=hidden name=coun value=<%=cc%>> 
        <input type="submit" class="go-wenbenkuang" value="确定"> <input type="reset" class="go-wenbenkuang" value="重写"> 
      </td>
    </tr>
  </table>
</form>
</body>
</html>
<%end if
rs.close
set rs=nothing%>