<!--#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="" And PostFindText="" And Lcase(Request("ToDo"))="toadd" Then XML.Redirect "Success.asp?ToDo=NullFindString" '如果字符串为空，不允许查找。
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 SQ_Soft Where SoftName Like '%" & FindText & "%' And Status=3 order by SoftID " &  ListOrder
Else
	XML.StrSql="Select * From SQ_Soft Where SoftName Like '%" & Session("FindText") & "%' And Status=3 order by SoftID " &  ListOrder
End If
'XML.EveryPageSize=10
XML.FieldShow="SoftName"
'XML.FieldHeader=""
XML.FieldFooter=""
XML.FieldId="SoftId"
XML.GoFileName="SoftFindShow.asp"
XML.ErrorPagePath=XML.WapPath & "Success.asp?ToDo=NoSoftRecord"
'XML.WriteRow XML.StrSql '用于输出SQL语句，调试时使用。
XML.DbListTypeMode=1
XML.DBListKeyWord="&amp;ComeFrom=Search"
XML.MdbList 2
'以下为返回链接等
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("","SoftFindText.asp","返回搜索")
XML.WriteRow XML.ImgA("","SiteSearch.asp","返回上级")
XML.WriteOut "</li></ul>"
%>
<!--#Include FILE="WapConfig/WapFooter.asp"--> 
