<!--#include file="inc/conn.asp"-->
<!--#include file="inc/jle_sub.asp"-->
<!--#include file="inc/function.asp"-->
<%
if IsNumeric(request("jlecms"))=False then
jlecms=""
else
jlecms=HtmlEncode(request("jlecms"))
end if
set rs=server.createobject("ADODB.recordset")
if jle=2 then
set rs2=server.createobject("adodb.recordset")
sql2="select * from [class2] where id="&class2&""
rs2.open sql2,conn,1,1
if rs2.bof or rs2.eof then
response.redirect "/"
end if
dim tit2
tit2=rs2("class2")
rs2.close
set rs2=nothing
Select Case jlecms
Case "1"
rs.open"select * from jle_info where class2="&class2&" and tuijian=1 and yz=1 order by fbsj desc,b desc,id desc",conn,1,1
Case "2"
rs.open"select * from jle_info where class2="&class2&" and yz=1 order by llcs desc",conn,1,1
Case "3"
rs.open"select * from jle_info where class2="&class2&" and yz=1 and hfcs>0 order by hfcs desc",conn,1,1
Case "4"
rs.open"select * from jle_info where class2="&class2&" and yz=1 and b=1 order by b desc",conn,1,1
Case Else
rs.open"select * from [jle_info] where class2="&class2&" and yz=1 order by a desc,tuijian desc,fbsj desc",conn,1,1
End Select
end if
if jle=1 then
Select Case jlecms
Case "1"
rs.open"select * from jle_info where class1="&class1&" and tuijian=1 and yz=1 order by fbsj desc,b desc,id desc",conn,1,1
Case "2"
rs.open"select * from jle_info where class1="&class1&" and yz=1 order by llcs desc",conn,1,1
Case "3"
rs.open"select * from jle_info where class1="&class1&" and yz=1 and hfcs>0 order by hfcs desc",conn,1,1
Case "4"
rs.open"select * from jle_info where class1="&class1&" and yz=1 and b=1 order by b desc",conn,1,1
Case Else
rs.open"select * from [jle_info] where class1="&class1&" and yz=1 order by a desc,tuijian desc,fbsj desc",conn,1,1
End Select
end if
if jle=3 then
Select Case jlecms
Case "1"
rs.open"select * from jle_info where diqu like '%"&ruirui&"%' and class1 like '%"&class1&"%' and class2 like '%"&class2&"%' and tuijian=1 and yz=1 order by fbsj desc,b desc,id desc",conn,1,1
Case "2"
rs.open"select * from jle_info where diqu like '%"&ruirui&"%' and class1 like '%"&class1&"%' and class2 like '%"&class2&"%' and yz=1 order by llcs desc",conn,1,1
Case "3"
rs.open"select * from jle_info where diqu like '%"&ruirui&"%' and class1 like '%"&class1&"%' and class2 like '%"&class2&"%' and yz=1 and hfcs>0 order by hfcs desc",conn,1,1
Case "4"
rs.open"select * from jle_info where diqu like '%"&ruirui&"%' and class1 like '%"&class1&"%' and class2 like '%"&class2&"%' and yz=1 and b=1 order by b desc",conn,1,1
Case Else
rs.open"select * from [jle_info] where diqu like '%"&ruirui&"%' and class1 like '%"&class1&"%' and class2 like '%"&class2&"%' and yz=1 order by a desc,fbsj desc",conn,1,1
End Select
end if
if jle=0 then
Select Case jlecms
Case "1"
rs.open"select * from jle_info where tuijian=1 and yz=1 order by fbsj desc,b desc,id desc",conn,1,1
Case "2"
rs.open"select * from jle_info where yz=1 order by llcs desc",conn,1,1
Case "3"
rs.open"select * from jle_info where yz=1 and hfcs>0 order by hfcs desc",conn,1,1
Case Else
rs.open"select * from [jle_info] where yz=1 order by fbsj desc",conn,1,1
End Select
end if
totalquestion1=rs.recordcount
%> 
<!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><%=city%><%=tit%>-<%=city%><%=tit2%><%=ruirui%>-<%=tit%>-<%=title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<%=metakey%>">
<meta name="description" content="<%=metades%>">

<link href="css/style.css" rel="stylesheet" type="text/css" />

<style type="text/css">
<!--
body{
	margin:0;
	padding:0;
	color:#444;
	font:12px Arial,sans-serif,SimSun,simHei;
	background:#e1e1e1;
}
-->
</style>
</head>
<body>
<%call top()%>
<div id="L-divAll">
   <div id="L-divMiddle">
      <div id="L-divPage">
       <div class="L-pleft">当前位置：<a href=/ >网站首页</a>→<a href="categories.asp?/=<%=class1%>&jle=1"><%=tit%></a>→
<a href="categories.asp?/=<%=class1%>&//=<%=class2%>&jle=2"><%=tit2%></a>
<a href="categories.asp?/=<%=class1%>&//=<%=class2%>&///=<%=escape(ruirui)%>&jle=3"><%=ruirui%></a>共有<%=totalquestion1%>条相关信息</div>
       <div class="L-pright"><a target="_blank" href="post.asp">+我也发布一条</a></div>
      </div>
    </div>


    
    
    
    
    
  <div id="L-divMain">
    <div class="L-post L-cate1 L-auth1">
       <div class="L-post-head">
          <div class="L-divNB">
            <ul>
             <li class=F12bold><a href=#><font color="#FF6C16">二级分类导航：</font></a></li>
<%if jle<>0 then%>
<%set rs1=server.createobject("ADODB.recordset")
rs1.open"select * from class2 where class1="&class1&" order by paixu",conn,1,1 
if rs1.eof then%> 
<li>暂时没有分类!</li> 
<%else
while not rs1.eof
set rs2=server.createobject("ADODB.recordset")
rs2.open"select * from jle_info where class2="&rs1("id")&"",conn,1,1
totalquestion=rs2.recordcount
rs2.close
set rs2=nothing
%> 
<li><a href=categories.asp?//=<%=rs1("id")%>&/=<%=rs1("class1")%>&jle=2 class="a13"><%=rs1("class2")%>(<%=totalquestion%>)</a> <%rs1.movenext%></li>
<%
wend
end if
rs1.close
set rs1=nothing
end if
%> 
</ul></div>
<div class="L-divNB">
<ul>
<li class=F12bold><a href=#><font color="#FF6C16">地区：</font></a></li>
<%if diqu1="1" then 
set jle_rsdq=server.createobject("adodb.recordset")
jle_sqldq = "select diqu from config "
jle_rsdq.open jle_sqldq,conn,1,1
if jle_rsdq.bof or jle_rsdq.eof then
response.redirect "/"
end if
diqu=split(jle_rsdq("diqu"),"|")
xn=diqu(0)
for x=1 to xn
response.write "<li ><a href=categories.asp?///="&escape(diqu(x))&"&/="&class1&"&//="&class2&"&jle=3>"&diqu(x)&"</a></li>"
next
jle_rsdq.close
set jle_rsdq=nothing
else 
sqlr="select * from jle_area where city='"&city&"'"
set rsquyu=conn.execute(sqlr)
do while not rsquyu.eof
response.write "<li ><a href=categories.asp?///="&escape(rsquyu("diqu"))&"&/="&class1&"&//="&class2&"&jle=3>"&rsquyu("diqu")&"</a></li>"
rsquyu.movenext
loop
rsquyu.close
set rsquyu=nothing
end if
%>
</ul>
</div>
</div>

<%
if rs.eof and rs.bof then
response.write "暂时没有信息!"
else
pageno=cint(request("pageno"))
rs.pagesize=15
pagenum=rs.pagecount
totalnum=rs.recordcount
if pageno="" or pageno>pagenum or pageno=0 then
pageno=1
else
pageno=pageno
end if
if pageno<>1 then
rs.move (pageno-1)*rs.pagesize
end if
for i=1 to rs.pagesize
sj=DateDiff("d",""&rs("fbsj")&"",now())
if sj<1 then                   
fsj="<FONT color=red>"&year(rs("fbsj"))&"-"&month(rs("fbsj"))&"-"&day(rs("fbsj"))&"</FONT >"                   
else                   
fsj="<FONT color=#999999>"&year(rs("fbsj"))&"-"&month(rs("fbsj"))&"-"&day(rs("fbsj"))&"</FONT >"                   
end if
tupian=rs("tupian")
leixing=rs("leixing")
response.write ""
%>

    
<div class="L-post-title">
<div class="L-pleft">
<%response.write "<a href=""search.asp?key="&escape(leixing)&"&|=LB""  class=""L-ptitle"">["&leixing&"]</a>"
if rs("tuijian")=1 then 
response.write "<img src=""img/rz01.gif"" alt=""推荐""  border=""0"">&nbsp;"
end if
response.write "<a title="&rs("biaoti")&" href="&rs("xurl")&" target=""_blank"" class=""L-ptitle"">"
if len(rs("biaoti"))>25 then%>
<%=left(rs("biaoti"),25)&"..."%>
<%else%><%=rs("biaoti")%>
<%end if
response.write "</strong></a>"%> 
<%if rs("a")>0 then
response.write "<img src=""image/jsq.gif"" alt=""置顶""  border=""0"">&nbsp;"		
end if%></div>
<div class="L-pright">发布时间：<img border="0" src="image/biao.gif">&nbsp;<%=fsj%></div></div>
<div class="L-post-body">
<div class="L-pleft" style="width:610px;"><%=left(replace(replace(replace(rs("memo"),"&nbsp;",""),chr(13)&chr(10),""),"<br>",""),120)%>
<%if  len(rs("memo"))>120   then
response.write"…"
end if
%></div>

<div class="L-pright" style="width:60px;">
<a href="<%=rs("tupian")%>" target="_blank" class="dib" id="trigger14">
<%
if tupian<>"0" and tupian<>"" then 
%>
<img border="0" src="<%=rs("tupian")%>" width="50" height="50" style="border:#fff 4px solid" />
<%
else
%>
<img border="0" src="img/NoPhoto.gif" width="50" height="50" style="border:#fff 4px solid">
<%end if
%></a>
</div>

</div>
 <h6 class="L-post-footer"><%response.write "所属地区:"&rs("diqu")&""%>┆&nbsp;&nbsp;┆<a target="_blank" href="favorite.asp?id=<%=rs("ID")%>"><img border="0" src="image/de_menu_04.gif"></a></h6>         
   <%
rs.movenext
if rs.eof then exit for
next
%>      
         
         
 <div class="jle">
<a href=?jle=<%=jle%>&/=<%=class1%>&//=<%=class2%>&///=<%=escape(ruirui)%>&jlecms=<%=jlecms%>&pageno=1>首页</a>
<%
showpagenum=10
if pageno>1 then
response.write "<a href='?jle="&jle&"&/="&class1&"&//="&class2&"&///="&escape(ruirui)&"&jlecms="&jlecms&"&pageno="&pageno-1&"'>上一页</a> "
end if
if pagenum>showpagenum then
num_left=pageno-1
num_right=pagenum-pageno
if num_left>(showpagenum/2) then
 if num_right<(showpagenum/2) then
    page_left=pageno-(showpagenum-num_right)+1
    page_right=pagenum
 else
    page_left=pageno-(showpagenum/2)
    page_right=pageno+(showpagenum/2)
 end if
else
    page_left=1
    page_right=pageno+(showpagenum-num_left)-1
end if
for P=page_left to pageno-1
    response.write " <a href='?jle="&jle&"&/="&class1&"&//="&class2&"&///="&escape(ruirui)&"&jlecms="&jlecms&"&pageno="&p&"'>"&p&"</a> "
next
response.write " <span class=""current"">"&pageno&"</span> "
for f=pageno+1 to page_right
    response.write " <a href='?jle="&jle&"&/="&class1&"&//="&class2&"&///="&escape(ruirui)&"&jlecms="&jlecms&"&pageno="&f&"'>"&f&"</a> "
next
else
for i=1 to pagenum
 if i=pageno then
	response.write " <span class=""current"">"&i&"</span> "
 else
	response.write " <a href='?jle="&jle&"&/="&class1&"&//="&class2&"&///="&escape(ruirui)&"&jlecms="&jlecms&"&pageno="&i&"'>"&i&"</a> "

 end if
next
end if
if pageno<pagenum then
response.write "<a href='?jle="&jle&"&/="&class1&"&//="&class2&"&///="&escape(ruirui)&"&jlecms="&jlecms&"&pageno="&pageno+1&"'>下一页</a>"
end if
%>
<a href=?jle=<%=jle%>&/=<%=class1%>&//=<%=class2%>&///=<%=escape(ruirui)%>&jlecms=<%=jlecms%>&pageno=<%=pagenum%>>尾页</a>
 <%end if
rs.close
set rs=nothing
%>
</div>        
 
  </div>
 </div>
  
  
  
  
  
  
  
  
    
<div id="L-divSidebar">
<div class="L-function" id="L-divCatalog">
  <h3>推荐信息</h3>
  <ul>
   <%
dim rsnewinfo1
set rsnewinfo1=server.createobject("adodb.recordset")
sqlnewinfo1 = "select top 12 * from jle_info where yz=1 and tuijian=1 order by b desc,fbsj desc,id desc"
rsnewinfo1.open sqlnewinfo1,conn,1,1
i=1
Do while not rsnewinfo1.eof
If rsnewinfo1.eof Then
Response.Write("还没有任何信息!")
Response.end 
End If%>
<li><img  src="img/arrow_gree.gif" /><A target=_blank href=<%=rsnewinfo1("xurl")%>> <%=left(rsnewinfo1("biaoti"),14)%></A></li>
<% rsnewinfo1.movenext 
i=i+1
loop
rsnewinfo1.close
set rsnewinfo1=nothing
%>
  </ul>
</div>
<div class="L-function" id="L-divCatalog">
  <h3>广告招商</h3>
  <ul>
   <%=adclass3%>
  </ul>
</div>
</div>
    
</div>



</body>
</html>