<%@ LANGUAGE=VBScript codepage ="936" %>
<!--#include file="mywp.asp"-->
<%Response.Expires=0
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "Pragma","No-Cache"
Response.AddHeader "Cache-Control","Private"
Response.CacheControl = "No-Cache"
cwjh_name=Session("cwjh_name")
cwjh_grade=Session("cwjh_grade")
cwjh_jhdj=Session("cwjh_jhdj")
chatbgcolor=Application("cwjh_chatbgcolor")
chatimage=Application("cwjh_chatimage")
if chatbgcolor="" then chatbgcolor="008888"
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
conn.open Application("cwjh_usermdb")
rs.open "select boy,boysex,w1 from 用户 where 姓名='"&cwjh_name&"'",conn,3,3
mypic=rs("boysex")
w1=rs("w1")
if iswp(w1,"白饭")=0 then
	Response.Write "<script Language=Javascript>alert('提示：您没白饭，怎么喂养呀！');location.href = 'javascript:history.go(-1)'</script>"
	response.end
end if

if isnull(rs("boy")) then
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	Response.Write "<script Language=Javascript>alert('提示：您还没有小孩呢，赶快生一个吧！');location.href = 'javascript:history.go(-1)'</script>"
	response.end
end if
zt=split(rs("boy"),"|")
if UBound(zt)<>7 then
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	Response.Write "<script Language=Javascript>alert('提示：小孩数据出错，请重新购买！');location.href = 'javascript:history.go(-1)'</script>"
	response.end
end if
rs.close


zg=clng(zt(6))
'if zg>=4 then
'	Response.Write "<script Language=Javascript>alert('提示：您已经照顾4次了，\n请等5小时再操作！');location.href = 'javascript:history.go(-1)'</script>"
'	response.end
'end if
%>
<html>
<head>
<title>喂养小孩</title>
<script language="JavaScript">
function s(list){parent.f2.document.af.sytemp.value=list;parent.f2.document.af.sytemp.focus();}</script>
<style>
body{
CURSOR: url('boy.cur');
scrollbar-track-color:#ffffff;
SCROLLBAR-FACE-COLOR:#effaff;
SCROLLBAR-HIGHLIGHT-COLOR:#ffffff;
SCROLLBAR-SHADOW-COLOR:#eeeeee;
SCROLLBAR-3DLIGHT-COLOR:#eeeeee;
SCROLLBAR-ARROW-COLOR:#dddddd;
SCROLLBAR-DARKSHADOW-COLOR:#ffffff}
td{font-size:9pt;}
</style>
</head>
<body oncontextmenu=self.event.returnValue=false bgcolor="#006699" bgproperties="fixed" leftmargin="0" topmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" background="../<%=chatimage%>">
<table border="1" width="140" cellspacing="0" cellpadding="0" bgcolor="#006699" height="16" align="center" bordercolorlight="#000000" bordercolordark="#FFFFFF">
  <tr> 
    <td width="100%" height="28"> <div align="center"><font color="#ffffff" size="2">喂养小孩</font></div></td>
  </tr>
</table>
<table background="../../bg2.gif" border="1" cellspacing="0" width="140" bordercolorlight="#000000"
bordercolordark="#FFFFFF" cellpadding="4" align="center">
  <tr> 
    <td align="center">
<img src="<%=mypic%>" width=40 height=40><br><br>
<%
'data1=split(myhua,";")
'data2=UBound(data1)


mh=mywpsl(w1,"白饭")
Response.Write "<div align='center'><font color=#ff0000 size=-1>点击白饭喂养!</font><br><br></div>"
Response.Write "<table border='1' cellspacing='0' cellpadding='0' width='50' bordercolorlight='#000000' bordercolordark='#FFFFFF' bgcolor='#CCCCCC' align='center' >"
Response.Write "<tr>"

		Response.Write "<td width='50' ><div align='center'><a href='eat.asp?name=白饭' title='吃了它!' target='d'><img src='images/mh.gif' width='50' height='50' border=0 alt='白饭共有："& mh & "碗!'></a></div></td>"

Response.Write "</tr></table>"
set rs=nothing
conn.close
set conn=nothing
%>  
<br>
</td>
  </tr>
</table>
<br>
<div align="center">&nbsp;&nbsp;<font color="#FFFFFF"><font size="2"><a href=javascript:history.go(-1)><font color=#ffffff size=-1>返回上级</font></a><br>
  <br>
</body>
</html>