<!--#include file="conn.asp"-->
<!--#include file="../inc.asp"-->
<!--#include file="../ydzq1.asp"-->
<% Call head()
Call saycarda("观音灵签,抽签,抽签算命")
wap=request.querystring("wap") %>

<%

'替换换行符的过滤函数
Function rep(content)
rep=replace(content,vbCrLf,"<br/>")
end Function
%>
<%
on error resume next
'获取签数
if request.Cookies("jsj148")("guanyin") = "" then
'产生随机数

randomize
num=int((rnd*100)+1)
response.Cookies("jsj148")("guanyin")=num
Response.Cookies("jsj148")("guanyin").Expires=date+1
else
num=request.Cookies("jsj148")("guanyin")
end if
sqlgy="select * from guanyin where id="&num
set rsgy=connguanying.execute(sqlgy)
id=rsgy("id")
%>
您抽到的是第<%=rsgy("id")%>签<br/>
第<%=rsgy("name")%>，<%=rsgy("shangxia")%>《《古书》》<%=rsgy("title")%>，<%=rsgy("gongwei")%><br/>
[诗曰]:<%=rep(rsgy("shiyue"))%><br/>
[诗意]:<%=rep(rsgy("shiyi"))%><br/>
[解曰]:<%=rep(rsgy("jieyue"))%><br/>
[仙机]:<%=rep(rsgy("xianji"))%><br/>
[故事]:<%=rep(rsgy("gushi"))%><br/>
<br/>
----------<br/>

<a href="/index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">网站首页</a><br/>
<%Call headsay()%>
