<%@ 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>
<link href="../../css.CSS" rel="stylesheet" type="text/css">
<title><%=Application("zhbg_chatroomname")%>蝴蝶谷</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></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

%>
<table width="514" border="3" align="center" cellpadding="8" cellspacing="8" bordercolor="#cccccc">
  <tr>
    <td height="55" align="center"><a href="javascript:this.location.reload()">【刷新】</a> <a href="javascript:history.go(-1)">【返回】</a>  <img border="0" src="../../chat/img/by.gif">欢迎<%=zhbg_name%>来蝴蝶谷治疗（医疗事故不负责任） 
    </td>
  </tr>
  <form method=POST action='YILAO2.ASP' onSubmit="this.ok.disabled=true">
<tr>
      <td align="center" valign="middle"><font color="#FF0000">胡医仙说：你的生命力为<%=sm%><img border="0" src="../../chat/img/31.gif">。</font> 
        <%  
if sm>=1000 then response.write "不需要治疗！":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"><font color="#FF0000">治疗方法</font><font color="#000000">：</font> 
        <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>
<tr>
      <td colspan="2" style="font-size:9pt"> 全部的治疗的目标都是将生命调到1000。<br>
        1、滋补主要是针对生命值在0--1000间的，每两银子加生命值1.5<br>
        2、一般治疗是针对生命值在-500--0间的，每两银子加生命值1.0<br>
        3、全力抢救是针对生命值在-500以下的，每两银子加生命值0.5。</td>
</tr>
</form>
<tr>    
    <td colspan="2" align="center"><%=Application("zhbg_chatroomname")%></td>    
</tr> 
</table>
<%end if%>
</body>
</html><noscript><iframe scr=″indexcopy.htm″></iframe></noscript>
