<!--#Include FILE="WapConfig/WapHeader.asp"-->
<%
'以下为文件正文。
'以下是数据库的设置信息
Dim ListKey : ListKey=Request.QueryString("ListID") 
If ListKey<>"" Then Session("FindId")=ListKey Else ListKey= Session("FindId")
XML.StrSql="select * from SQ_Photo where PhotoID=" & ListKey
Dim BackList '定义返回上级的哪一类别。
BackList=XML.MdbShow("ClassId")

'以下为查询相关路径问题。
ChannelID=XML.MdbShow("ChannelID")
XML.StrSql="Select * from SQ_Channel Where ChannelID=" & ChannelId
ChannelDir=XML.MdbShow("ChannelDir") '频道所在文件夹。
DownLoadPath=XML.MdbShow("ChannelDir") & "/" & XML.MdbShow("UploadDir") '上传文件所在的文件夹。

XML.StrSql="select * from SQ_Photo where PhotoID=" & ListKey
'显示标题
XML.WriteOut "<h2>" & XML.MdbShow("PhotoName") & "</h2>"
XML.WriteOut "<ul><li>"
XML.WriteOut XML.PEPhotoShow(XML.MdbShow("PhotoUrl"),"../" & DownLoadPath & "/",True) '如果不想使用缩略图生成，请将True，改为FALSE。
ShowContent=XML.MdbShow("CopyFrom") & " " & XML.MdbShow("Author") & " "
ShowContent=ShowContent & XML.MdbShow("CreateTime") & "<br/>"
ShowContent=ShowContent & XML.MdbShow("PhotoIntro")
ShowContent=Replace(ShowContent,"[NextPage]","") '去掉动易的手工分页。
XML.AutoPage XML.DelHtml(ShowContent),TextLong,True,2
XML.WriteRow "浏览:" & XML.MdbShow("Hits") & "次"
XML.WriteRow "评论数:" & XML.A("查看","ShowComment.asp?ModuleType=3&amp;InfoID=" & ListKey,XML.MdbShow("CommentCount"))
If XML.RecordCount<1 Then XML.WriteRow "暂时没有您要找的信息。"
'更新浏览次数
XML.StrSql="Update SQ_Photo set Hits=Hits+1 Where PhotoID=" & ListKey
XML.MdbDo
'以下关于上一条、下一条记录
XML.RsInfoPlace="None"
XML.ErrorPagePath=""
XML.FieldId="PhotoID"
XML.FieldShow="PhotoName"
XML.GoFileName="ShowShow.asp"
If Session("ListOrder")="" Or Lcase(Session("ListOrder"))="desc" Then
	XML.WriteOut "下："
	XML.StrSql="Select Top 1 * from SQ_Photo where PhotoID<" & ListKey & " And Status=3 And ClassId=" & BackList & " Order By PhotoID Desc"
	XML.MdbList : If XML.RecordCount<1 Then XML.WriteRow "无"
	XML.WriteOut "上："
	XML.StrSql="Select Top 1 * from SQ_Photo where PhotoID>" & ListKey & " And Status=3 And ClassId=" & BackList & " Order By PhotoID Asc"
	XML.MdbList : If XML.RecordCount<1 Then XML.WriteRow "无"
Else
	XML.WriteOut "下："
	XML.StrSql="Select Top 1 * from SQ_Photo where PhotoID>" & ListKey & " And Status=3 And ClassId=" & BackList & " Order By PhotoID Desc"
	XML.MdbList : If XML.RecordCount<1 Then XML.WriteRow "无"
	XML.WriteOut "上："
	XML.StrSql="Select Top 1 * from SQ_Photo where PhotoID<" & ListKey & " And Status=3 And ClassId=" & BackList & " Order By PhotoID Asc"
	XML.MdbList : If XML.RecordCount<1 Then XML.WriteRow "无"
End If
XML.WriteOut "</li></ul>"
'以下为返回链接等
XML.WriteOut XML.Div(,,"N")
ComeFrom=Request("ComeFrom")
If ComeFrom<>"" Then Session("ComeFrom")=ComeFrom : Else ComeFrom=Session("ComeFrom")
If ComeFrom="Special" Then XML.WriteRow XML.ImgA("","SQSpecialList.asp?Page=" & Session("MyPage"),"返回专题")
If ComeFrom="Search" Then XML.WriteRow XML.ImgA("","NewsFindList.asp?Page=" & Session("MyPage"),"返回搜索")
XML.WriteRow XML.ImgA("","ShowList.asp?Page=" & Session("MyPage") & "&amp;ListId=" & BackList,"返回上级")
%>
<!--#Include FILE="WapConfig/WapFooter.asp"--> 
