<%@ 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")
if zhbg_name="" then Response.Redirect "../../error.asp?id=440"
%>
<html>
<head>
<style>input, body, select, td { font-size: 14; line-height: 160% }
</style>
<title>非凡国度--地狱炼火</title>
<link href="../css.CSS" rel="stylesheet" type="text/css">
</head>
<body>
<%
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
conn.open Application("zhbg_usermdb")
rs.open "select 体力 from 用户 where 姓名='"&zhbg_name&"'" ,conn
if rs.eof or rs.bof then
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
%>
<script language=vbscript>
MsgBox "对不起，不能进行操作！你还不是国度中人。"
window.close()
</script>
<%
else
sm=rs("体力")
conn.close
set conn=nothing
set rs=nothing
%> 
<form method=POST action='DIYU2.ASP' onSubmit="this.ok.disabled=true"><table width="824" align="center">
  <tr>
    <td height="55" align="center" ><a href="javascript:this.location.reload()">【刷新】</a> <a href="javascript:history.go(-1)">【返回】</a> <br>
<img border="0" src="lh.jpg"> 
    </td>
  </tr>
<tr>    
    <td colspan="2" align="center" >    
<tr>
          <td align="center" valign="middle">你的生命力为<font color="#ff6600"><%=sm%></font> 
            。 
            <%
if sm>=1000 then response.write "不需要炼了！再炼就会降到1000000了":p=1
if sm<1000 and sm>0 then response.write "实行一级炼火！":p=2
if sm<=0 and sm>-500 then response.write "实行二级炼火":p=3
if sm<=-500 then response.write "生命垂危，三味真火！":p=4
%>
        <tr>
          <td align="center" valign="middle">治疗方法： 
            <input name="yilao" readonly size="8"
value="<%
if p=1 then response.write "无"
if p=2 then response.write "吃些补品"
if p=3 then response.write "一般治疗"
if p=4 then response.write "抢救生命"
%>"> <input name="ok" type="submit" value="确定"> <input type="button"
value="返回" onClick="location.href='../../game.asp'"></td>
</tr>
<%end if%>
</table></form>
<div align="center"><font color="#ff6600"><%=Application("zhbg_chatroomname")%> 
  </font> </div>
</body>
