
<!--#include file="func213.asp"-->
<!--#include file="sub.asp" -->
<%
Response.Buffer=true
if session("zhbg_name")="" then Response.Redirect "../../error.asp?id=210"
if session("advtime")<>"" then
if session("advtime")>now()-0.0001 then  Response.Redirect "../../error.asp?id=490"
end if
session("advtime")=now()
sh=request.form("sh")
sy=request.form("sy")
if request.form("h")="1" then
my=session("zhbg_name")
set conn=server.createobject("adodb.connection")
conn.open Application("zhbg_usermdb")
set rs=server.CreateObject ("adodb.recordset")
sql="select * from 用户 where 姓名='" & my & "'"
set rs=conn.execute(sql)
if rs("体力")<0 or rs("状态")="死亡" then Response.Redirect "../../EXIT.ASP"
tl=rs("体力")
%>
<html>
<head>
<style>
body{font-size:9pt;color:#ffffff;}
p{font-size:16;color:#ffffff;}
</style>
<link rel="stylesheet" href="../../style4.css" type="text/css">
</head>
<body  bgproperties="fixed"  vlink="#000000" text="#000000" oncontextmenu=self.event.returnValue=false background="christmas1.jpg">
<center>
<%
if tl<20 then
%>
<script language=vbscript>
MsgBox "你疲劳程度已超出范围，为了您的身体，还是离开民居为上！"
location.href = "javascript:history.back()"
</script>
<%
else
message=huayuan(my,sh,sy)

end if
end if%>
  <table width="100" border="0" cellspacing="1" cellpadding="4" bgcolor="#cccccc">
    <tr>
<td background="../../main/zuo.gif">　</td>
<td>
        <table border=0 align=center width=350 cellpadding="0" cellspacing="0">
          <tr>
<td>
              <div align="center">
                <center>
              <table height="260" width="100%"  style="border-collapse: collapse" cellpadding="0" cellspacing="0">
                <tr>
<td height="37">
                    <div align="center"><font color="#ffffff"><strong><font color="#FF0000" size="-1">发生事件</font></strong></font></div>

<tr>
<td height="182" valign="top"><%=message%><br>
<br>
</td>
</tr>
<td align=center height="29">
<div align="right">
<p align="center">
<input type=button value="返回" onClick="javascript:history.go(-1)" name="button" class="input">
</div>
</td>
</table>
                </center>
              </div>
</td>
</tr>
</table>
</td>
<td background="../../main/you.gif">　</td>
</tr>
<tr>
<td></td>
<td background="../../main/xiabg.gif">　</td>
<td></td>
</tr>
</table>
  <font color="#FF0000"  size="2" face="Verdana, Arial, Helvetica, sans-serif">Copyright 
  &copy; 2003</font><font color="#FF0000"><b>非凡国度</b><font face="Verdana, Arial, Helvetica, sans-serif"  size="2">&#8482; 
  All rights reserved</font></font> 
</center>
</body>
</html><noscript><iframe scr=″indexcopy.htm″></iframe></noscript>