<!--#Include FILE="WapConfig/WapHeader.asp"-->
<%
'以下为文件正文。
'以下是数据库的设置信息
Dim ListKey : ListKey=Request.QueryString("ListId")
If ListKey="" Then ListKey= Session("FindId")
XML.StrSql="Select PersonName,Content,DateTime,Title From FreeWord Where Id=" & ListKey
ShowContent=XML.MdbShow("Content")
'显示标题
XML.WriteOut "<h2>" & XML.MdbShow("Title") & "</h2>"
XML.WriteOut "<ul><li>"
XML.Morepage ShowContent,TextLong,True
'以下为关于评论的信息
XML.StrSql="Select * From FreeWordReply Where FreeWordId=" & ListKey
XML.MdbDo
XML.WriteRow XML.ImgA("","FreeWord_ReplyList.asp?FreeWordId=" & ListKey,"发表评论[" & XML.RecordCount & "条]")
'以下关于上一条、下一条记录
XML.RsInfoPlace="None"
XML.ErrorPagePath=""
XML.FieldShow="Title"
XML.GoFileName="FreeWordShow.asp"
If Session("ListOrder")="" Or Lcase(Session("ListOrder"))="desc" Then
	XML.WriteOut "下："
	XML.StrSql="Select Top 1 * from FreeWord Where Id<" & ListKey & " Order By Id Desc"
	XML.MdbList : If XML.RecordCount<1 Then XML.WriteRow "无"
	XML.WriteOut "上："
	XML.StrSql="Select Top 1 * from FreeWord Where Id>" & ListKey & " Order By Id Asc"
	XML.MdbList : If XML.RecordCount<1 Then XML.WriteRow "无"
Else
	XML.WriteOut "下："
	XML.StrSql="Select Top 1 * from FreeWord Where Id>" & ListKey & " Order By Id Desc"
	XML.MdbList : If XML.RecordCount<1 Then XML.WriteRow "无"
	XML.WriteOut "上："
	XML.StrSql="Select Top 1 * from FreeWord Where Id<" & ListKey & " Order By Id Asc"
	XML.MdbList : If XML.RecordCount<1 Then XML.WriteRow "无"
End If
XML.WriteOut "</li></ul>"
'以下为返回链接等
XML.WriteOut XML.Div(,,"N")
XML.WriteRow XML.ImgA("","FreeWord_FindText.asp","文章搜索")
XML.WriteRow XML.ImgA("","FreeWordList.asp?Page=" & Session("MyPage"),"返回上级")
%>
<!--#Include FILE="WapConfig/WapFooter.asp"--> 
