<!--#Include FILE="WapConfig/WapHeader.asp"-->
<%
'以下为文件正文。
XML.WriteOut "<h2>搜索结果</h2>"
XML.WriteOut "<ul><li>"
Dim ListOrder '指定排列的顺序
ListOrder=Request.QueryString("Order")
If ListOrder<>"" Then
	Session("ListOrder")=ListOrder
Else
	If Session("ListOrder")="" Then Session("ListOrder")="desc" '如果没有排序指定，则为"desc"
	ListOrder=Session("ListOrder")
End If
Dim UrlFindText : UrlFindText=XML.RequestText("UrlFindText") 'Url传递
Dim PostFindText : PostFindText=Request("PostFindText")
If UrlFindText<>"" Then '获得按何种方式传递的值
	FindText=UrlFindText
Else
	FindText=PostFindText
End If
If FindText<>"" Then 
	Session("FindText")=FindText
Else   
	FindText=Session("FindText")
End If
'以下是数据库的设置信息
If UrlFindText<>"" Or PostFindText<>"" Then
	XML.StrSql="Select * From NewsData Where D_Title Like '%" & FindText & "%' And D_Recycle=False order by D_Time " &  ListOrder
Else
	XML.StrSql="Select * From NewsData Where D_Title Like '%" & Session("FindText") & "%' And D_Recycle=False order by D_Time " &  ListOrder
End If
'XML.EveryPageSize=10
XML.FieldShow="D_Title"
'XML.FieldHeader=""
XML.FieldFooter=""
XML.FieldId="D_Id"
XML.GoFileName="NewsResultShow.asp"
XML.DBOrderNumber=True '设置数据记录前是否显示自动编号数字。[新增较V1.5]
XML.ErrorPagePath=XML.WapPath & "Success.asp?ToDo=NoNewsRecord"
'XML.WriteRow XML.StrSql '用于输出SQL语句，调试时使用。
XML.MdbList()
XML.WriteOut "</li></ul>"
'以下为返回链接等
XML.WriteOut XML.Div(,,"N")
If Session("ListOrder")="asc" or  ListOrder="" Then 
XML.WriteRow XML.ImgA("",XML.Thisfilename & "?Order=desc&amp;Page=" & iPageCurrent,"反转排序")
Else
XML.WriteRow XML.ImgA("",XML.Thisfilename & "?Order=asc&amp;Page=" & iPageCurrent,"反转排序")
End If
XML.WriteRow XML.ImgA("","NewsFindText.asp","返回搜索")
%>
<!--#Include FILE="WapConfig/WapFooter.asp"--> 
