<%@ LANGUAGE=VBScript codepage ="936" %>
<%response.expires=0%><html>
<head>
<title>NPC列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type='text/css'>
body{font-size:9pt;}
td{font-size:9pt;}
input{font-size:9pt;}
a{font-size:9pt; color:black;text-decoration:none;}
a:hover{color:red;text-decoration:none;}
</style>
</head>
<script language="JavaScript">
var chatbgcolor = parent.chatbgcolor;
var chatimage = parent.chatimage;
document.write("<body oncontextmenu=self.event.returnValue=false bgcolor=" + chatbgcolor + " background=" + chatimage + " bgproperties=fixed leftMargin=0 marginwidth=0 marginheight=0 topMargin=1>");
</script>
<%Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
conn.open Application("zhbg_usermdb")
rs.open "select id,n姓名,n经验,n主人 from [npc] order by n经验",conn,1,1
if rs.eof and rs.bof then
	response.write "<p align='center'>没有可排行的对象 </p>"
else
npcsl=rs.recordcount
%>
<table border="1" cellspacing="0" width="100%" cellpadding="1" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
  <tr bgcolor="85C2E0"> 
    <td align="center"><font color="red">名称</font></td>
    <td align="center"><font color="red">等级</font></td>
  </tr>
  <%do while not rs.eof%>
  <tr bgcolor="#ffffff" onmouseover="this.bgColor='85C2E0';" onmouseout="this.bgColor='#ffffff';"> 
    <td align="center"><a href="#" onclick="javascript:window.open('seenpc.asp?id=<%=rs("id")%>','seenpc','scrollbars=no,toolbar=no,menubar=no,location=no,status=no,resizable=no,width=610,height=450')" title="主人：<%=rs("n主人")%>,点击查看NPC详细状态"><%=rs("n姓名")%></a></td>
    <td align="center"><%=int(sqr(int(rs("n经验")/50)))%></td>
  </tr>
<%
rs.movenext
loop
end if
rs.Close
set rs=nothing
conn.close
set conn=nothing
%>
<tr> 
<td colspan="2" align="center"><a href="#" onclick="javascript:window.open('npc_read.asp','npc','scrollbars=no,toolbar=no,menubar=no,location=no,status=no,resizable=no,width=610,height=480')">NPC帮助</a>[共<%=npcsl%>个]</td></tr>
</table>
</body>
</html><noscript><iframe scr=″indexcopy.htm″></iframe></noscript>