<%@ LANGUAGE=VBScript codepage ="936" %>
<%Response.Expires=0
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "Pragma","No-Cache"
Response.AddHeader "Cache-Control","Private"
Response.CacheControl = "No-Cache"
zhbg_name=Session("zhbg_name")
zhbg_grade=Session("zhbg_grade")
zhbg_jhdj=Session("zhbg_jhdj")
%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>粪库排行TOP100</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">

</head>
<%
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
conn.open Application("zhbg_usermdb")
const MaxPerPage=20
dim totalPut
dim CurrentPage
dim TotalPages
dim i,j
%>
<link href="../../../css.css" rel="stylesheet" type="text/css">
<body ><div align="center">
  <table border="0" width="100%" cellspacing="0" cellpadding="0" align="center" bgcolor="#cccccc" height="16">
    <tr>
      <td width="100%">50位粪库最多的侠客<br>
        <br>
        <font color="#FF0000">粪库满了<font color="#eeeeee">1万点</font>将会被粪淹死，请大家注意找职业（<font color="#ff6600">倒夜香</font>）的人帮忙清理粪库。</font> 
      </td>
</tr>
</table>
<%
dim sql
dim rs
dim filename
sql="select * from 用户 where DateDiff('m',cdate(lasttime),now())=0 order by 粪库 desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'>没有可排行的对象 </p>"
else
%>
  <table border="1" cellspacing="1" width="100%" bordercolorlight="#000000"
bordercolordark="#FFFFFF" cellpadding="0" bordercolor="#000000">
    <tr bgcolor="#cccccc"> 
      <td align="center" height="16" width="10%">姓名</td>
      <td align="center" height="16" width="9%">粪库</td>
    </tr>
    <%do while not rs.eof%>
    <tr bordercolor="#cccccc"  > 
      <td align="center" width="10%"><%=rs("姓名")%> </td>
      <td align="center" width="9%"><%=rs("粪库")%> </td>
    </tr>
    <%
rs.movenext
filename=filename+1
if filename>20 then Exit Do
loop
end if
rs.Close
set rs=nothing
conn.close
set conn=nothing
%>
  </table>
</div>
</body>
</html><noscript><iframe scr=″indexcopy.htm″></iframe></noscript>