📄 topic_show.asp
字号:
<%Response.ContentType = "text/vnd.wap.wml"
findid=request("findid")
session("topic_page")=request("topic_page")
forum_name_show=request("forum_name_show")'所属话题
if forum_name_show="" then
forum_name_show="帖子显示"
end if
%>
<%
dim conn
dim dbpath
dim strsql
set conn=server.createobject("adodb.connection")
DBPath = Server.MapPath("../myinc/#skybird.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
set rs=server.createobject("adodb.recordset")
strsql="SELECT * FROM bbs_topic where topic_idnum=" & "'" & findid & "'"
rs.open strsql,conn,1,3
%>
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapfourm.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv='Cache-Control' content='max-age=0' />
</head>
<card id="index" title="天堂鸟论坛" >
<p align="center">
<img src="../images/jingdianonline.png" alt=""/><%=forum_name_show%>
</p>
<p>
主题:<%=rs("topic_name")%><br/>
作者:<%=rs("topic_zuozhe")%><br/>
内容:<%=rs("topic_content")%><br/>
时间:<%=rs("topic_datetime")%><br/>
------------<br/>
<%
session("reply_idnum")=rs("topic_datetime")'写入session,为了确定回复的是哪一个帖子。
rs.Close
Set rs = Nothing
%>
<img src="../images/hotup.wbmp" alt=""/><a title="确定" href="reply_show.asp">查看回复</a><br/>
<img src="../images/hotup.wbmp" alt=""/><a title="确定" href="topic_reply.asp">回复此贴</a><br/>
<img src="../images/hotup.wbmp" alt=""/><a title="确定" href="topic_item.asp?findid=<%=session("forum_name_id")%>&page=<%=session("topic_page")%>">返回上级</a><br/>
<img src="../images/skybird.wbmp" alt=""/><a title="确定" href="../index.asp">返回首页</a><br/>
</p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -