<!--#Include FILE="WapConfig/WapHeader.asp"-->
<%
'以下为文件正文。
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=Wap.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
'以下是数据库的设置信息
'Wap.WriteOut Wap.P("left","wrap")
Wap.WriteRow "搜索“" & FindText & "”结果："
If UrlFindText<>"" Or PostFindText<>"" Then
	Wap.StrSql="Select D_Title,D_Id From NewsData Where D_Title Like '%" & FindText & "%' order by D_Time " &  ListOrder
Else
	Wap.StrSql="Select D_Title,D_Id From NewsData Where D_Title Like '%" & FindText & "%' order by D_Time " &  ListOrder
End If
Wap.EveryPageSize=10
Wap.FieldShow="D_Title"
'Wap.FieldHeader=""
Wap.FieldFooter=""
Wap.FieldId="D_Id"
Wap.GoFileName="NewsSearchShow.asp"
Wap.DBIsShowImage=False
Wap.ErrorPagePath="" 'Wap.WapPath & "Success.asp?ToDo=NoRecord"
Wap.DBOrderNumber=True '设置数据记录前是否显示自动编号数字。[新增较V1.5]
Wap.MdbList()
'以下为返回链接等
If Session("ListOrder")="asc" or  ListOrder="" Then 
Wap.WriteRow Wap.ImgA("",Wap.Thisfilename & "?Order=desc&amp;Page=" & iPageCurrent,"反转排序")
Else
Wap.WriteRow Wap.ImgA("",Wap.Thisfilename & "?Order=asc&amp;Page=" & iPageCurrent,"反转排序")
End If
Wap.WriteRow Wap.ImgA("","Index.asp","返回首页")
%>
<!--#Include FILE="WapConfig/WapFooter.asp"--> 
