| 相关问题 |
<%
if HTMLcode(request("content"))<>"" then
content=HTMLcode(request("content"))
rs.open"select top 10 * from question where title like '%"&content&"%' or content like '%"&content&"%'",conn,1,1
if rs.eof then
else
while not rs.eof
i=i+1
%>
| <%=i%>. |
<%if rs("jie")=0 then %> <%elseif rs("jie")=1 or rs("jie")=3 then%> <%elseif rs("jie")=2 then%> <%elseif rs("jie")=4 then%> <%end if%> |
" target=_blank><%=HTMLcode(rs("title"))%> |
<%
rs.movenext
wend
end if
rs.close
end if
%>
|
|
<%if request("send")="提交问题" then
if session("Useree")="" then
response.write""
end if
if (request.form("nm")="1" ) then
nmfen=mdf
niming=1
else
nmfen=0
niming=0
end if
if request("shang")="" then
shang=0
else
shang=cINT(request("shang"))
end if
rs3.open"select * from FS_Members where MemName='"&session("Useree")&"'",conn,1,1
shang1=rs3("Point")
rs3.close
if shang >= shang1 then
response.write""
response.end
end if
if request("BoardNlass")="" then
response.write""
response.end
elseif request("BoardClass")="" then
response.write""
response.end
elseif request("title")="" then
response.write""
response.end
elseif request("content")="" then
response.write""
response.end
rs3.open"select * from FS_Members where MemName='"&session("Useree")&"' and jie=3",conn,1,1
if not rs3.eof then
response.write""
response.end
end if
rs3.close
else
rs3.open"select * from assort where id="&request("BoardClass")&"",conn,1,1
topic=rs3("topic")
rs3.close
title=request("title")
content=request("content")
rs.open"select * from question",conn,1,3
rs.addnew
rs("topic")=topic
rs("title")=title
rs("content")=content
rs("sender")=session("Useree")
rs("sendtime")=now
rs("overtime")=now+15
rs("shuxing")=request("BoardNlass")
rs("fenleiid")=request("BoardClass")
rs("shang")=shang
rs("niming")=niming
rs.update
rs.close
rs3.open"select * from FS_Members where MemName='"&session("Useree")&"'",conn,1,3
rs3("asknum")=rs3("asknum")+1
rs3("qtfa")=rs3("qtfa")+twf+nmfen
rs3("Point")=rs3("Point")-twf-shang-nmfen
if rs3("Point")-twf-shang-nmfen
=fen1 and rs3("Point")-twf-shang-nmfen=fen2 and rs3("Point")-twf-shang-nmfen=fen3 and rs3("Point")-twf-shang-nmfen=fen4 and rs3("Point")-twf-shang-nmfen=fen5 and rs3("Point")-twf-shang-nmfen=fen6 and rs3("Point")-twf-shang-nmfen=fen7 and rs3("Point")-twf-shang-nmfen=fen8 and rs3("Point")-twf-shang-nmfen=fen9 and rs3("Point")-twf-shang-nmfen=fen10 then
rs3("touxian")=""&ji10&" 十级"
end if
rs3.update
rs3.close
response.write""
end if
end if
%>