<%@ LANGUAGE=VBScript codepage ="936" %>
<%Response.Expires=0
Response.Buffer=true
cwjh_name=Session("cwjh_name")
cwjh_grade=Session("cwjh_grade")
cwjh_jhdj=Session("cwjh_jhdj")
if cwjh_name="" then Response.Redirect "../error.asp?id=440"
if session("cwjh_adminok")<>true then Response.Redirect "../chat/readonly/bomb.htm"
if cwjh_grade<>10 or instr(Application("cwjh_admin"),cwjh_name)=0  then Response.Redirect "../error.asp?id=439"
%>
<html><title>怪物列表</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=css/css.css type=text/css rel=stylesheet>
<body bgColor=#dcdec6 text=#000000 link=#003366 vLink=#006666 oncontextmenu=window.event.returnValue=false ondragstart=window.event.returnValue=false onselectstart=event.returnValue=false>
</head>
<%Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
conn.open Application("cwjh_usermdb")
rs.open "select * from 怪物区 order by id",conn,1,1
if rs.eof and rs.bof then
	response.write "<p align='center'>没有可排行的对象 </p>"
else
npcsl=rs.recordcount
%>
<table border="1" width="700" cellspacing="0" cellpadding="3" bordercolorlight="#000000" bordercolordark="#FFFFFF" align="center">
  <tr bgcolor="#336633"> 
    <td colspan="13" align=center><font color="#FFFFFF">怪 物 区 列 表</td>
  </tr>
  <tr bgcolor="#336633"> 
    <td width="4%" align=center><font color="#FFFFFF">ID号</td>
    <td width="8%" align=center><font color="#FFFFFF">怪物</td>
    <td width="4%" align=center><font color="#FFFFFF">状态</td>
    <td width="15%" align=center><font color="#FFFFFF">攻击/防御</td>
    <td width="8%" align=center><font color="#FFFFFF">体力</td>
    <td width="7%" align=center><font color="#FFFFFF">Kill</td>
    <td width="4%" align=center><font color="#FFFFFF">grade</td>
    <td width="4%" align=center><font color="#FFFFFF">杀人数</td>
    <td width="5%" align=center><font color="#FFFFFF">操作</td>
  </tr>
<%do while not rs.eof%>
  <tr> 
    <td align=center><%=rs("id")%></td>
    <td align=center><%=rs("怪物")%></td>
    <td align=center><%=rs("状态")%></td>
    <td align=center><%=rs("攻击")%>/<%=rs("防御")%></td>
    <td align=right><%=rs("体力")%></td>
    <td align=right><%=rs("kill")%></td>
    <td align=right><%=rs("grade")%></td>
    <td align=right><%=rs("杀人数")%></td>
    <td align=center><a href="gw_edit.asp?gwid=<%=rs("id")%>">修改</a></td>
  </tr>
<%
rs.movenext
loop
%>
</table>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>