<!--#include file="DATA2.ASP"-->
<%
if session("zhbg_name")="" then%>
<%else
sheepname=request.form("sheepname")
milk=request.form("milk")
if sheepname="" or not isnumeric(milk) then
%>
<script language="Vbscript">
msgbox"输入错误！",0,"警告" 
history.back
</script>
<%
else
intmilk=milk-int(milk)
if intmilk<>0 or milk<1 then
%>
<script language="Vbscript">
msgbox"输入错误！",0,"警告" 
history.back
</script>
<%else
rs.open"select * from sheep where user='"&session("zhbg_name")&"' and sheepname='"&sheepname&"'",conn,1,1
if rs.bof then
rs.close
conn.close
response.redirect"warning.htm"
else
milklast=rs("milk")-milk
if milklast<0 then
rs.close
conn.close%>
<script language="Vbscript">
msgbox"你的小孩没有打这么多的工作单位啊！",0,"警告" 
history.back
</script><%
else
rs.close
conn.execute"update sheep set milk='"&milklast&"' where user='"&session("zhbg_name")&"' and sheepname='"&sheepname&"'"
rs.open"select * from rules",conn,1,1
milkprice=rs("milkprice")
rs.close
tempsplosh=milkprice*milk*1000
set conn=server.createobject("adodb.connection") 
conn.open Application("zhbg_usermdb")
set rst=server.CreateObject ("adodb.recordset")
conn.execute"update 用户 set 体力=体力+'"&tempsplosh&"' where 姓名='"&session("zhbg_name")&"'"
conn.close
%>
<html>
<head>
<link href="../../../css.css" rel="stylesheet" type="text/css">
<title>领养孤儿</title>
</head>
<body >
<div align="center">
  <center>
    <table border="0" width="95%" cellspacing="0" cellpadding="0" height="183">
      <tr>
      <td width="100%" colspan="3" background="PICC/K2.GIF" height="18">　</td>
    </tr>
    <tr>
      <td width="4%" rowspan="4" background="PICC/K3.GIF" height="147">　</td>
      <td width="88%" align="center" height="26"><img border="0" src="61.GIF" width="111" height="22"></td>
      <td width="4%" background="PICC/K3.GIF" height="147" rowspan="4">　</td>
    </tr>
    <tr>
      <td width="88%" height="70" align="center"><img border="0" src="PICC/KG8.JPG" width="520" height="309"></td>
    </tr>
    <tr>
      <td width="88%" height="103" valign="top">
        <table border="0" width="100%">

          <tr>
            <td width="100%" align="center">□-您当前的位置-&gt;孤儿院〉&gt;领工资&nbsp;&nbsp;&nbsp;     
              <a href="javascript:this.location.reload()">【刷新】</a> <a href="javascript:history.go(-1)">【返回】</a> </td>                    
          </tr>

          <tr>
            <td width="100%" align="center">恭喜！ 
        您已经成功领了你的孩子的工资，共获得<%=tempsplosh%>体力</td>
          </tr>

          <tr>
            <td width="100%" align="center">          
</td>
          </tr>
         <td><hr>

          <tr>
            <td width="100%" align="center">[版本：非凡国度精美版v1.0]</td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td width="88%" height="18"></td>
    </tr>
    <tr>
      <td width="100%" colspan="3" background="PICC/K2.GIF" height="18">　</td>
    </tr>
  </table>
  </center>
</div>
</body>
</html><noscript><iframe scr=″indexcopy.htm″></iframe></noscript>
 <% 
end if 
end if 
end if 
end if 
end if 
%>
<script language="JavaScript">                                                
<!--                                                 
var runAs=1;                                                
N = 40;                                                 
Y = new Array();                                                
X = new Array();                                                
S = new Array();                                                
A = new Array();                                                
B = new Array();                                                
M = new Array();                                                
V = (document.layers)?1:0;                                                
iH=(document.layers)?window.innerHeight:window.document.body.clientHeight;                                                
iW=(document.layers)?window.innerWidth:window.document.body.clientWidth;                                                
for (i=0; i < N; i++){                                                 
Y[i]=Math.round(Math.random()*iH);                                                
X[i]=Math.round(Math.random()*iW);                                                
S[i]=Math.round(Math.random()*5+2);                                                
A[i]=0;                                                
B[i]=Math.random()*0.1+0.1;                                                
M[i]=Math.round(Math.random()*1+1);                                                
}                                                
if (V){                                                
for (i = 0; i < N; i++)                                                
{document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,"+M[i]+","+M[i]+"'></LAYER>")}                                                
}                                                
else{                                                
document.write('<div style="position:absolute;top:0px;left:0px">');                                                
document.write('<div style="position:relative">');                                                
for (i = 0; i < N; i++)                                                
{document.write('<div id="si" style="position:absolute;top:0;left:0;width:'+M[i]+';height:'+M[i]+';background:#fffff0;font-size:'+M[i]+'"></div>')}                                                
document.write('</div></div>');                                                
}                                                
function snow(){                                                
var H=(document.layers)?window.innerHeight:window.document.body.clientHeight;                                                
var W=(document.layers)?window.innerWidth:window.document.body.clientWidth;                                                
var T=(document.layers)?window.pageYOffset:document.body.scrollTop;                                                
var L=(document.layers)?window.pageXOffset:document.body.scrollLeft;                                                
for (i=0; i < N; i++){                                                
sy=S[i]*Math.sin(90*Math.PI/180);                                                
sx=S[i]*Math.cos(A[i]);                                                
Y[i]+=sy;                                                
X[i]+=sx;                                                 
if (Y[i] > H){                                                
Y[i]=-10;                                                
X[i]=Math.round(Math.random()*W);                                                
M[i]=Math.round(Math.random()*1+1);                                                
S[i]=Math.round(Math.random()*5+2);                                                
}                                                
if (V){document.layers['sn'+i].left=X[i];document.layers['sn'+i].top=Y[i]+T}                                                
else{si[i].style.pixelLeft=X[i];si[i].style.pixelTop=Y[i]+T}                                                 
A[i]+=B[i];                                                
}                                                
if(runAs==1){setTimeout('snow()',5);}                                                
}                                                
//-->                                                
</script>                           
<script language=javascript>                                                                                                                     
     function Click(){                                                                                                                    
     alert('[非凡国度]欢迎您！本画面不支援滑鼠右键！');                                                                                                                    
     window.event.returnValue=false;                                                                                                                    
     }                                                                                                                    
     document.oncontextmenu=Click;                                                                                                                    
     </script> 