<!--#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 then
response.write"你暂时还没有领养宠物哦`~"
else
	select case lx
	     case "rou"	                        
            if myjb<sl*500 then response.redirect"/bbs/cw/1.asp?sid="&sid&"&saytk="&saytk&""
                sql="update users set myjb=myjb-"& sl*500 &",cwsm=cwsm+"& sl*65 &" where [id] ="&myid 
			conn.execute sql
	msg="您的宠物选择了普通洗澡,洗了"& sl &"次,生命增加了"& sl*65 &"" 
                   
            case "gt"
            if myjb<sl*1500 then response.redirect"/bbs/cw/1.asp?sid="&sid&"&saytk="&saytk&""  
           	      sql="update users set myjb=myjb-"& sl*1500 &",cwxq=cwxq+"& sl*80 &",cwrq=cwrq+"& sl*80 &",cwqg=cwqg+"& sl*80 &"  where [id] ="&myid
			conn.execute sql
		msg="您的宠物选择了游泳，游了"& sl &"次,心情.情感.健康各增加了"& sl*80 &""


		case "xnj"
            	 if myjb<sl*2000 then response.redirect"/bbs/cw/1.asp?sid="&sid&"&saytk="&saytk&""   
                      sql="update users set myjb=myjb-"& sl*2000 &",cwxq=cwxq+"& sl*100 &",cwrq=cwrq+"& sl*100 &",cwqg=cwqg+"& sl*100 &"  where [id] ="&myid
			conn.execute sql
		msg="您的宠物选择了桑拿服务，桑拿了"& sl &"次，心情.情感.健康增加了"& sl*100 &""
		
		
		case "lhr"               
               if myjb<sl*3000 then response.redirect"/bbs/cw/1.asp?sid="&sid&"&saytk="&saytk&""
			sql="update users set myjb=myjb-"& sl*3000 &",cwxq=cwxq+"& sl*170 &",cwrq=cwrq+"& sl*170 &",cwqg=cwqg+"& sl*170 &"  where [id] ="&myid
			conn.execute sql
		msg="您的宠物选择了刷毛服务，刷了"& sl &"次，心情.情感.健康增加了"& sl*170 &""
	
		case "hzj"               
                  if myjb<sl*5000 then response.redirect"/bbs/cw/1.asp?sid="&sid&"&saytk="&saytk&""
			sql="update users set myjb=myjb-"& sl*5000 &",cwxq=cwxq+"& sl*300 &",cwrq=cwrq+"& sl*300 &",cwqg=cwqg+"& sl*300 &"  where [id] ="&myid
			conn.execute sql
		msg="您的宠物选择了按摩服务，按了"& sl &"次，心情.情感.健康增加了"& sl*300 &""
	
		end select
response.write msg
end if
	conn.close
	set rs=nothing
	set conn=nothing
%>
<br/>--------<br/><a href='indexcw.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>喂食</a>-
<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()%>







