<%@ LANGUAGE=VBScript codepage ="936" %>
<!--#include file="sjfunc.asp"-->
<!--#include file="../../mywp.asp"-->

<%'寻找鲜花♀非凡国度→www.oneidc.cn♀
Response.Expires=0
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "Pragma","No-Cache"
Response.AddHeader "Cache-Control","Private"
Response.CacheControl = "No-Cache"
if Instr(LCase(Application("zhbg_useronlinename"&nowinroom)),LCase(" "&zhbg_name&" "))=0 then 
	Session("zhbg_inthechat")="0" 
	Response.Redirect "chaterr.asp?id=001" 
end if 
towho=Trim(Request.Form("towho"))
towhoway=Request.Form("towhoway")
saycolor=Request.Form("saycolor")
addwordcolor=Request.Form("addwordcolor")
addsays=Request.Form("addsays")
says=Trim(Request.Form("sy"))
call dianzan(towho)
if len(says)>150 then says=Left(says,150)
says=lcase(says)
says=Replace(says,"&amp;","&")
if zhbg_grade<9 then
	says=bdsays(says)
end if

act=1
towhoway=0
i=instr(says,"$")
fnn1=mid(says,i+1)
says="<font color=red>【寻找鲜花】<font color=" & saycolor & ">"+xunfaqi(mid(says,i+1),towho)+"</font>"
call chatsay(act,towhoway,towho,saycolor,addwordcolor,addsays,says)
'寻找鲜花
function xunfaqi(fn1,to1)
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
conn.open Application("zhbg_usermdb")
rs.open "select 等级,会员等级,金币,操作时间 FROM 用户 WHERE 姓名='" & zhbg_name &"'" ,conn,2,2
dj=rs("等级")
fla=rs("金币")
if rs("金币")<2 then
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	Response.Write "<script language=JavaScript>{alert('提示：你的金币不够无法施展呀，至少也得2个啊！');window.close();}</script>"
	response.end
end if
if DateDiff("s",rs("操作时间"),now())<300 then
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	Response.Write "<script language=JavaScript>{alert('为了防止在乱刷，请等5分钟操作!');history.go(-1);}</script>"
	Response.End 
end if
if dj<50 then
Response.Write "<script language=JavaScript>{alert('此功能需要50级战斗等级呀！');}</script>"
rs.close
	set rs=nothing	
	conn.close
	set conn=nothing
Response.End
end if
hydj=rs("会员等级")
if hydj<1 then
        rs.close
        set rs=nothing
        conn.close
        set conn=nothing
	Response.Write "<script language=JavaScript>{alert('提示：会员等级为1级才可以进行寻找鲜花！购买2级会员赠送200级每天可以领到100个金币！购买加QQ116722683 或打电话：13597867255');}</script>"
	Response.End
end if

rs.close
conn.execute "update 用户 set 金币=金币-2,操作时间=now()  where 姓名='"&zhbg_name&"'"
randomize 
r=int(rnd*21)+1
select case r
case 1
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>风之舞</font></b>]99朵<img src='../Center/jhjs/images/f4.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"风之舞",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close


case 2
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到赠给您礼物[<b><font color=red>鹊桥相会</font></b>]99朵<img src='../Center/jhjs/images/f3.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"鹊桥相会",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close

case 3
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>好梦</font></b>]99朵<img src='../Center/jhjs/images/f21.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"好梦",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 4
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠给您礼物[<b><font color=red>柔情蜜意</font></b>]99朵<img src='../Center/jhjs/images/f5.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"柔情蜜意",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 5
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长<font color=#0000FF>梦凡</font>赠给您礼物[<b><font color=red>玫瑰衷情</font></b>]99朵<img src='../Center/jhjs/images/f7.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"玫瑰衷情",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 6
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠给您礼物[<b><font color=red>无限爱意</font></b>]99朵<img src='../Center/jhjs/images/f1.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"无限爱意",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 7
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠给您礼物[<b><font color=red>爱的韵味</font></b>]99朵<img src='../Center/jhjs/images/f2.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"风之舞",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 8
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>纯洁的爱</font></b>]99朵<img src='../Center/jhjs/images/f8.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"纯洁的爱",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 9
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>情深款款</font></b>]99朵<img src='../Center/jhjs/images/f16.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"情深款款",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 9
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长<font color=#0000FF>梦凡</font>赠送给您礼物[<b><font color=red>爱之泉</font></b>]99朵<img src='../Center/jhjs/images/f18.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"爱之泉",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 10
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>温情绽放</font></b>]99朵<img src='../Center/jhjs/images/f22.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"温情绽放",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 11
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>可人儿</font></b>]99朵<img src='../Center/jhjs/images/f19.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"可人儿",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 12
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>热恋</font></b>]99朵<img src='../Center/jhjs/images/f14.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"热恋",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 13
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>比翼双飞</font></b>]99朵<img src='../Center/jhjs/images/f13.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"比翼双飞",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 14
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>想你念你</font></b>]99朵<img src='../Center/jhjs/images/f9.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"想你念你",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 15
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>蝶之舞</font></b>]99朵<img src='../Center/jhjs/images/f12.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"蝶之舞",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 16
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>美满生活</font></b>]99朵<img src='../Center/jhjs/images/f24.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"美满生活",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 17
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>恋爱热吻</font></b>]99朵<img src='../Center/jhjs/images/f6.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"恋爱热吻",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 18
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>永远有你</font></b>]99朵<img src='../Center/jhjs/images/f20.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"永远有你",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 19
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长<font color=#0000FF>梦凡</font>赠送给您礼物[<b><font color=red>情有独钟</font></b>]99朵<img src='../Center/jhjs/images/f10.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"情有独钟",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 20
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>爱慕</font></b>]99朵<img src='../Center/jhjs/images/f11.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"爱慕",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
case 21
xunfaqi=zhbg_name & "在" & to1 & "的家里做客，碰到了梦凡也在那里聚会。收到站长赠送给您礼物[<b><font color=red>一生有你</font></b>]99朵<img src='../Center/jhjs/images/f4.jpg'>。"
	rs.open "SELECT w7 FROM 用户 WHERE 姓名='"&zhbg_name&"'",conn
	xianhua=add(rs("w7"),"一生有你",99)
	conn.execute "update 用户 set  w7='"&xianhua&"' where 姓名='"&zhbg_name&"'"
	rs.close
	
	
end select
set rs=nothing	
conn.close
set conn=nothing
end function
%>
