<!--#include file="inc/conn.asp"-->
<!--#include file="inc/jle_sub.asp"-->
<!--#include file="inc/function.asp"-->
<%
'    @@@@@@ www.jl-e.com @@@@@@@@@@@@@@@@@
'   @                                        @
'  @                                          @
'  @      吉林信息网，服务百姓生活      @
'  @                                          @
'   @                                        @
'    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Dim key
key=trim(request("key"))
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=title%>搜索-<%=key%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="Keywords"  content="<%=metakey%>" />
<meta name="Description" content="<%=metades%>" />
<link rel="icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.word {	font-size: 10.5pt;	line-height: 22px;}
body,td,th {font-size: 9pt;	color: #005dc3; line-height:22px}
.en {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
}
-->
</style>
</head>
<body>
<%call top()%><div id="Fmain">


<div id=FFContent><div Class='FFdiv'>
<%
Dim Result,startime
diqu=request("diqu")
ruirui=request("ruirui")
fl=trim(request("fl"))
sj=trim(request("sj"))
'key=trim(request("key"))
startime=timer()
if request("page")="" then
ThisPage=1		
else
ThisPage=request("page")
end if
dim endtime,bt,nr
set rsso=server.createobject("ADODB.recordset")
'tj=0
if request("jle")="fl" then
if diqu<>"选择地区" and  fl<>"0"  then
sql = "select * from jle_info where yz=1 and class1="&fl&" and diqu like '%"&diqu&"%' and (leixing like '%"&key&"%' or biaoti like '%"&key&"%' or memo like '%"&key&"%' or diqu like '%"&key&"%' or com like '%"&key&"%' or username like '%"&key&"%' or name like '%"&key&"%') order by id desc,llcs desc"
end if
if diqu<>"选择地区" and  fl="0"  then
sql = "select * from jle_info where yz=1 and  diqu like '%"&diqu&"%' and (leixing like '%"&key&"%' or biaoti like '%"&key&"%' or memo like '%"&key&"%' or diqu like '%"&key&"%' or com like '%"&key&"%' or username like '%"&key&"%' or name like '%"&key&"%') order by id desc,llcs desc"
end if
if diqu="选择地区" and  fl<>"0"  then
sql = "select * from jle_info where yz=1 and class1="&fl&" and (leixing like '%"&key&"%' or biaoti like '%"&key&"%' or memo like '%"&key&"%' or username like '%"&key&"%' or name like '%"&key&"%') order by id desc,llcs desc"
end if
if diqu="选择地区" and  fl="0"  then
sql = "select * from jle_info where yz=1 and (leixing like '%"&key&"%' or biaoti like '%"&key&"%' or memo like '%"&key&"%' or diqu like '%"&key&"%' or com like '%"&key&"%' or username like '%"&key&"%' or name like '%"&key&"%') order by id desc,llcs desc"
end if
end if
if request("jle")="sj" then
if diqu<>"选择地区" and  sj<>"0"  then
sql = "select * from jle_shop where yz=1 and sjcla1="&sj&" and diqu like '%"&diqu&"%' and (username like '%"&key&"%' or com like '%"&key&"%' or email like '%"&key&"%' or che like '%"&key&"%' or fax like '%"&key&"%' or comabout like '%"&key&"%' or name like '%"&key&"%' or dianhua like '%"&key&"%' or dizhi like '%"&key&"%' or com like '%"&key&"%' or comgg like '%"&key&"%') order by id desc,tong desc,vip desc"
end if
if diqu<>"选择地区" and  sj="0"  then
sql = "select * from jle_shop where yz=1 and diqu like '%"&diqu&"%' and (username like '%"&key&"%' or com like '%"&key&"%' or email like '%"&key&"%' or che like '%"&key&"%' or fax like '%"&key&"%' or comabout like '%"&key&"%' or name like '%"&key&"%' or dianhua like '%"&key&"%' or dizhi like '%"&key&"%' or com like '%"&key&"%' or comgg like '%"&key&"%') order by id desc,tong desc,vip desc"
end if
if diqu="选择地区" and  sj<>"0"  then
sql = "select * from jle_shop where yz=1 and sjcla1="&sj&" and (username like '%"&key&"%' or com like '%"&key&"%' or email like '%"&key&"%' or che like '%"&key&"%' or fax like '%"&key&"%' or comabout like '%"&key&"%' or name like '%"&key&"%' or dianhua like '%"&key&"%' or dizhi like '%"&key&"%' or com like '%"&key&"%' or comgg like '%"&key&"%') order by id desc,tong desc,vip desc"
end if
if diqu="选择地区" and  sj="0"  then
sql = "select * from jle_shop where yz=1 and (username like '%"&key&"%' or com like '%"&key&"%' or email like '%"&key&"%' or che like '%"&key&"%' or fax like '%"&key&"%' or comabout like '%"&key&"%' or name like '%"&key&"%' or dianhua like '%"&key&"%' or dizhi like '%"&key&"%' or com like '%"&key&"%' or comgg like '%"&key&"%') order by id desc,tong desc,vip desc"
end if
end if
if request("jle")="ruirui" then
if ruirui<>"资讯分类"  then
sql = "select * from jle_news where gcla like '%"&ruirui&"%' and (biaoti like '%"&key&"%' or neirong like '%"&key&"%') order by id desc"
end if
if ruirui="资讯分类"  then
sql = "select * from jle_news where (biaoti like '%"&key&"%' or neirong like '%"&key&"%') order by id desc"
end if
end if
rsso.open sql,conn,1,1
if rsso.eof then
response.write "还没有搜索到相关信息！"
else
'username=rsso("username")
Pagesize=rsso.Pagesize
Allrecord=rsso.Recordcount
Allpage=rsso.Pagecount
if ThisPage<1 then                           
ThisPage=1                           
end if
On Error Resume Next
rsso.move (ThisPage-1)*Pagesize

endtime=timer()%>
<table scrolling=no scroll=no topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0" cellspacing="0" cellpadding="0" width="970">
<tr><td colspan="2" style="border-left-width: 1px; border-right-width: 1px; border-top: 1px ; border-bottom-width: 1px; background-color: #F0F0FF" height="25" class="userbg">
&nbsp;<%=title%>为您搜索到<font color="#FF0000"><b><%=Allrecord%></b></font>条与<font color="#FF0000"><b><%=key%></b></font>有关的信息,<%response.write "搜索用时：<b>"&FormatNumber((endtime-startime)*1000,3)&"</b>毫秒"%>
</td></tr>
<tr><td align="center" valign="top" width="70%">
<table border="0" width="100%"  cellspacing=3 cellpadding=0>
<tr>
<td  valign="top" width="70%" style="border-bottom:1px #cad9ea dotted;text-align:left">
<%
response.write "<img border=""0"" src=""image/tu.gif"" class=""tu_1"">"
response.write ""&adclass3&""
%>
</td>
</tr>
<%
b=trim(rsso("b"))
dim k,bgc
Counter=0
for k = 1 to 10
if not rsso.eof then
bgc="ffffff"
if k mod 2 =1 then 
bgc="ffffff"
else
bgc="ffffff"
end If

response.write "<tr bgcolor=#"&bgc&"><td style=""border-bottom:1px #cad9ea dotted;text-align:left"">"
tupian=rsso("tupian")
logo=rsso("logo")

if request("jle")="fl" then
%>
<a href='<%=rsso("xurl")%>' target='_blank'>
<%if tupian<>"0" and tupian<>"" then 
%>
	  <img border="0" src='<%=rsso("tupian")%>' class='tu_1' />
<%
else
response.write "<img border=""0"" src=""image/tu.gif"" class=""tu_1"">"

end if
%>
</a>
<%
response.write "<a target=""_blank"" href=""/"&rsso("xurl")&""">"
response.write "<font style=""font-size: 11pt""><b>["&rsso("diqu")&"]</b></font>"
bt=Replace(""&rsso("biaoti")&"",""&key&"","<font color=#FF0000>"&key&"</font>") 
response.write "<font style=""font-size: 11pt""><b>"&bt&"</b></font></a><br>"
nr=Replace(""&left(replace(replace(replace(rsso("memo"),"&nbsp;",""),chr(13)&chr(10),""),"<br>",""),155)&" ... ... ",""&key&"","<font color=red>"&key&"</font>") 
response.write ""&nr&"<br>"
response.write "<font color=""#008000"">"&web&"/"&rsso("xurl")&"   "&(rsso("fbsj"))&"</font>"
response.write " - <a target=""_blank"" href=""/"&rsso("xurl")&"""><font color=""#808080"">查看详细说明</font></a>"
end if
if request("jle")="sj" then
response.write " <a target=""_blank"" href=""/shop/sp2.asp?m="&rsso("username")&""">"
if logo<>"0" and logo<>"" then 
%>
	  <img border="0" src='<%=rsso("logo")%>' class='tu_1' />
<%
else
response.write "<img border=""0"" src=""image/nophoto.gif"" class=""tu_1"">"
end if
%>
</a>
<%
response.write "<a target=""_blank"" href=""/shop/sp2.asp?m="&rsso("username")&""">"
response.write "<font style=""font-size: 11pt""><b>["&rsso("diqu")&"]</b></font>"
bt=Replace(""&rsso("com")&"",""&key&"","<font color=#FF0000>"&key&"</font>") 
response.write "<font style=""font-size: 11pt""><b>"&bt&"</b></font></a><br>"
nr=Replace(""&left(replace(replace(replace(rsso("comabout"),"&nbsp;",""),chr(13)&chr(10),""),"<br>",""),155)&" ... ...",""&key&"","<font color=red>"&key&"</font>")
response.write ""&nr&"<br>"
response.write "<font color=""#008000"">"&web&"/shop/sp2.asp?m="&rsso("username")&"   "&datevalue(rsso("lastdl"))&"</font>"
response.write " - <a target=""_blank"" href=""/shop/sp2.asp?m="&rsso("username")&"""><font color=""#808080"">进入商家店铺</font></a>"
end if

if request("jle")="ruirui" then
%>
<a href='shownews.asp?id=<%=rsso("id")%>' target='_blank'>
<img border="0" src="image/tu.gif" class="tu_1">
</a>
<%
response.write "<a target=""_blank"" href=""/shownews.asp?id="&rsso("id")&""">"
response.write "<font style=""font-size: 11pt""><b>["&rsso("gcla")&"]</b></font>"
bt=Replace(""&rsso("biaoti")&"",""&key&"","<font color=#FF0000>"&key&"</font>") 
response.write "<font style=""font-size: 11pt""><b>"&bt&"</b></font></a><br>"
'nr=stripHTML(Replace(""&left(replace(replace(replace(rsso("neirong"),"&nbsp;",""),chr(13)&chr(10),""),"<br>",""),155)&" ... ... ",""&key&"","<font color=red>"&key&"</font>"))
nr=stripHTML(Replace(""&left(rsso("neirong"),155)&" ... ... ",""&key&"","<font color=red>"&key&"</font>"))
response.write ""&nr&"<br>"
response.write "<font color=""#008000"">"&web&"/shownews.asp?id="&rsso("id")&"   "&(rsso("data"))&"</font>"
response.write " - <a target=""_blank"" href=""/shownews.asp?id="&rsso("id")&"""><font color=""#808080"">查看资讯</font></a>"
end if
response.write "</td></tr>"
else
exit for
end if
rsso.movenext
next
rsso.close
set rsso=nothing
%>
<tr>
<td  valign="top" width="70%" style="text-align:left">
<%
response.write "<img border=""0"" src=""image/tu.gif"" class=""tu_1"">"
response.write ""&adclass4&""
%>
</td>
</tr>
</table>
</td><td align="center" width="27%" valign="top">
<%response.write ""&adclass2&"" %>
</td></tr>
</table>
<table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" bgcolor="#F2F2F2" width="970">
<tr> 
<td height="25" width="119">
<p align="center">
<span>共有&nbsp;<font color="#CC5200"><%=Allrecord%></font>&nbsp;条记录</span></td>
<td height="25" width="97">
<p align="center"><span>共 <font color="#CC5200"><%=Allpage%></font> 页</span></td>
<td height="25" width="123">
<p align="center"><span>现在是第 
<font color="#CC5200"><%=ThisPage%></font> 页</span></td>
<td height="25">
<span>
<%
if ThisPage<2 then     
response.write "<font color=""#808080"">首页</font>&nbsp;"
response.write "<font color=""#808080"">上一页</font>&nbsp;"     
else     
response.write "<a href=?page=1&key="&escape(key)&"&fl="&fl&"&diqu="&escape(diqu)&"&jle="&jle&"&sj="&sj&"&ruirui="&escape(ruirui)&">首页</a>&nbsp;"
response.write "<a href=?page="&ThisPage-1&"&key="&escape(key)&"&fl="&fl&"&diqu="&escape(diqu)&"&jle="&jle&"&sj="&sj&"&ruirui="&escape(ruirui)&">上一页</a>&nbsp;"     
end if
if Allpage-ThisPage<1 then     
response.write "<font color=""#808080"">下一页</font>&nbsp;"
response.write "<font color=""#808080"">尾页</font>&nbsp;"  
else     
response.write "<a href=?page="&(ThisPage+1)&"&key="&escape(key)&"&fl="&fl&"&diqu="&escape(diqu)&"&jle="&jle&"&sj="&sj&"&ruirui="&escape(ruirui)&">下一页</a>&nbsp;"   
response.write "<a href=?page="&Allpage&"&key="&escape(key)&"&&fl="&fl&"&diqu="&escape(diqu)&"&jle="&jle&"&sj="&sj&"&ruirui="&escape(ruirui)&">尾页</a>&nbsp;"     
end if
%>
</span>
</td></tr></table>
</div></div>
<%end if%>
<table border="0" width="100%"><tr><td bgcolor="#F0F0FF">  </td></tr>
<tr><td align="center">Copyright 2008 <strong><A href="<%=web%>" target="_blank">
<%=title%></A></strong> . All Rights Reserved.
</td></tr></table></div>
<div style="display:none"><script language="javascript" type="text/javascript" src="http://js.users.51.la/765122.js"></script>
<noscript><a href="http://www.51.la/?765122" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/765122.asp" style="border:none" /></a></noscript>
</div>
</body>
</html>