<%
Response.Expires=0
if Session("zhbg_name")="" then Response.Redirect "../../errors.asp?id=016"
set conn=server.createobject("adodb.connection") 
conn.open Application("zhbg_usermdb")
set rs=server.CreateObject ("adodb.recordset")
sqlstr="SELECT * FROM 用户 where 姓名='"&Session("zhbg_name")&"'"
Set Rs=conn.Execute(sqlstr)
peiou=rs("配偶")
if peiou="无" then
Response.Write "<script language=javascript>alert('你还没有配偶，不能领养孩子');history.back();</script>"
else
%>
<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="225">
      <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="189">　</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="189" 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="145" valign="top">
        <table border="0" width="100%">

          <tr>
            <td width="100%"><font size="2">这儿是国度中最大的孤儿院，由于处在国度乱世，所以孤儿院里的孤儿很多，你可以在这儿花10万两银子领一个孤儿回家。你每天喂养他，照顾他，你的孩子长大会报答你的。等到一段时间后，他会打 工给你赚金币的。</font></td>                       
          </tr>

          <tr>
            <td width="100%" align="center">国度孤儿院里的孤儿</td>
          </tr>

          <tr>
            <td width="100%">领养孤儿:为你的孩子取一个好听的名字吧：(女性可以在聊天室生育你们自己的小宝宝，“常用命令”里面的“生育小孩”)<form name="form1" method="POST" action="BUYSHEEP.ASP">                      
                                            <input type="text" name="sheepname" size="25"                      
                        style="font-family: 宋体; font-size: 12px; background-color: #FFFFCC; border-style: solid; border-width: 1">                      
                                            <input                       
                        type="button" value="领养" name="B1"                      
                        style="font-family: 宋体; font-size: 12px; background-color: #FFFFCC; border-style: solid; border-width: 1">                      
                                          </form>                      
                                          <script language="vbscript">                       
<!--                       
sub b1_onclick                       
if form1.sheepname.value="" then                       
msgbox"小孩的名字不能为空"                       
else                       
form1.submit                       
end if                       
end sub                       
-->                       
                                          </script>                      
</td>
          </tr>  <!--#include file="DATA1.ASP"-->  
          <tr>
            <td width="100%" align="center"> 

                    
                          <p><font color="#eeeeee"><span class="p9">算工资了：</span>                       
                            <%rs.open("select * from sheep where user='"&session("zhbg_name")&"'"),conn,1,1                                         
if  rs.bof then%>          
                            <span class="p9">快快养个小孩为你赚钱啦！</span>                              
                            <%else                                         
 if rs("feedsheepday")>=3then%>                        
                            </font></p>                        
                          <form method="POST" action="SELLMILK.ASP">                        
                            <p><span class="p9">你孩子为你在孤儿院里打了<%=rs("milk")%>工作单位。你想向孤儿院收多少小时的工钱呢？                         
                              <input                           
          type="text" name="milk" size="9"                           
          style="font-family: 宋体; font-size: 12px">                        
                              <input type="submit"                           
          value="收工钱了" name="B2"                           
          style="font-family: 宋体; font-size: 12px">                        
                              <input type="hidden"                           
          name="sheepname" value="<%=rs("sheepname")%>">                        
                              <%else%>                        
                              你的孩子还没找到工作呢</span>。</p>                        
                          </form>                        
                          <%end if%>                        
                                                  
                            <%end if%>                        




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

              </FORM>
            </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       
rs.Close       
set rs=nothing       
conn.Close       
set conn=nothing       
%>
<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> 