<!--#include file="../inc.asp"-->
<!--#include file="../ydzq1.asp"-->
<%Call head()
Call saycarda("宠物学堂")


dim lx,sl,msg

lx=request.form("lx")
sl=request.form("sl")
if pz=0 or myjb<100000 then
response.write"你暂时还没有领养宠物或者您的金币不足100000，不能进入宠物贵族学校`~"
else

	select case lx
	     case "rou"	                        
            if cwzs<0 then response.redirect"/bbs/cw/4.asp?sid="&sid&"&saytk="&saytk&""
                sql="update users set myjb=myjb-"& sl*500 &",cwzs=cwzs+"& sl*15 &",cwxq=cwxq-"& sl*20 &"  where [id] ="&myid 
			conn.execute sql
	msg="经过刻苦学习，宝宝成绩大大提高<br/>宠物智力:上升15,宠物心情:-20<br/>宠物财富:下降500"          
            case "gt"
            if cwzs<450 then response.redirect"/bbs/cw/4.asp?sid="&sid&"&saytk="&saytk&""  
           	      sql="update users set myjb=myjb-"& sl*1000 &",cwzs=cwzs+"& sl*30 &",cwxq=cwxq-"& sl*50 &"  where [id] ="&myid
			conn.execute sql
		msg="经过刻苦学习，宝宝成绩大大提高<br/>宠物智力:上升30,宠物心情:-50<br/>宠物财富:下降1000"



		case "xnj"
            	 if cwzs<900 then response.redirect"/bbs/cw/4.asp?sid="&sid&"&saytk="&saytk&""   
                      sql="update users set myjb=myjb-"& sl*6000 &",cwzs=cwzs+"& sl*250 &",cwxq=cwxq-"& sl*250 &"  where [id] ="&myid
			conn.execute sql
			msg="经过刻苦学习，宝宝成绩大大提高<br/>宠物智力:上升250,宠物心情:-250<br/>宠物财富:下降6000"
		case "lhr"               
               if cwzs<1800 then response.redirect"/bbs/cw/4.asp?sid="&sid&"&saytk="&saytk&""
			sql="update users set myjb=myjb-"& sl*30000&",cwzs=cwzs+"& sl*1300 &",cwxq=cwxq-"& sl*400 &"  where [id] ="&myid
			conn.execute sql
			msg="经过刻苦学习，宝宝成绩大大提高<br/>宠物智力:上升1300,宠物心情:-400<br/>宠物财富:下降30000"
		case "hzj"               
                  if cwzs<10000 then response.redirect"/bbs/cw/4.asp?sid="&sid&"&saytk="&saytk&""
			sql="update users set myjb=myjb-"& sl*100000 &",cwzs=cwzs+"& sl*1000 &",cwxq=cwxq-"& sl*400 &"  where [id] ="&myid
			conn.execute sql
			msg="经过刻苦学习，宝宝成绩大大提高<br/>宠物智力:上升1000,宠物心情:-400<br/>宠物财富:下降100000"



                
		              
		end select
response.write msg
end if
	conn.close
	set rs=nothing
	set conn=nothing
%>
<br/>--------<br/><a href='cwxx.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>继续学习>></a><br/>
<a href='cwxy.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>沐浴</a>-
<a href='index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>宠物</a>-<a href='/bbs/index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>社区</a>-<a href='/index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>首页</a>







<%Call headsay()%>
