<!--#include file="inc/conn.asp"-->
<!--#include file="inc/jle_sub.asp"-->
<!--#include file="inc/function.asp"-->

<%
sheng_id=HtmlEncode(request("sheng_id"))
shi_id=HtmlEncode(request("shi_id"))
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 city_one like '%"&sheng_id&"%' and city_two like '%"&shi_id&"%' 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  city_one like '%"&sheng_id&"%' and city_two like '%"&shi_id&"%' 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  city_one like '%"&sheng_id&"%' and city_two like '%"&shi_id&"%' 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   city_one like '%"&sheng_id&"%' and city_two like '%"&shi_id&"%'  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   city_one like '%"&sheng_id&"%' and city_two like '%"&shi_id&"%'  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
%> 

<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,td,th {
	font-family: 微软雅黑;
	font-size: 14px;
}
-->
</style></head>
<body>
<%call top()%>
<BR />
<div align="center">
<table width="1300" border="0" cellspacing="0" cellpadding="0" style="border:1px #F0F0F0 solid; margin-bottom:10px;">
      <tr>
        <td width="91%" height="40" style="padding-left:15px;"><span class="L-pleft">当前位置：<a href="/" >网站首页</a>→<a href="categories.asp?/=<%=class1%>&amp;jle=1"><%=tit%></a>→ <a href="categories.asp?/=<%=class1%>&amp;//=<%=class2%>&amp;jle=2"><%=tit2%></a> <a href="categories.asp?/=<%=class1%>&amp;//=<%=class2%>&amp;///=<%=escape(ruirui)%>&amp;jle=3"><%=ruirui%></a>共有<%=totalquestion1%>条相关信息</span></td>
        <td width="9%"><a target="_blank" href="post.asp">+我也发布一条</a></td>
      </tr>
    </table>
      <table width="1300" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="79%" valign="top"><table width="98%" height="119" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFEFB" style="border:3px #FF7800 solid; margin-bottom:10px;">
            <tr>
              <td width="11%" align="center" class="fontjs" style="border-bottom:1px #FFEBCF dotted;">二级分类：</td>
              <td width="89%" style="border-bottom:1px #FFEBCF dotted;"><div class="L-divNB">
                  <ul>
                    <%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></td>
            </tr>
            <tr>
              <td align="center" class="fontjs">地区：</td>
              <td><div class="L-divNB">
                  <ul>
                    <%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
sheng_id=request("sheng_id") 
if sheng_id="" then
set rs1=server.createobject("ADODB.Recordset")
            sql1="select * from sc_sheng order by sheng_id asc"
            rs1.open sql1,conn,1,3
            If Not rs1.Eof Then 
            do while not rs1.eof
           
			response.write "<a href=categories.asp?sheng_id="&escape(rs1("sheng_id"))&"&/="&class1&"&//="&class2&"&jle=3>"&rs1("sheng_name")&"</a>"

            rs1.movenext
              loop
              end if
              rs1.close
              set rs1=nothing
         
else
sqlr="select * from sc_shi where sheng_id="&sheng_id&""
set rsquyu=conn.execute(sqlr)
do while not rsquyu.eof
response.write "<li ><a href=categories.asp?sheng_id="&rsquyu("sheng_id")&"&shi_id="&rsquyu("shi_id")&"&/="&class1&"&//="&class2&"&jle=3>"&rsquyu("shi_name")&"</a></li>"
rsquyu.movenext
loop
rsquyu.close
set rsquyu=nothing
end if
end if 
%>
                  </ul>
              </div></td>
            </tr>
          </table>
  
		  
		  
		  
		  <%
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")

%>
          <table width="1004" border="0" cellspacing="0" cellpadding="0" style="border-bottom:1px #C5D8E6 dotted">
            <tr>
              <td height="40" colspan="2" bgcolor="#F6FBFD" style="padding-left:15px; border-bottom:1px #F0F0F0 dotted;"><table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="66%"><%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%></td>
    <td width="20%"><%response.write "所属地区："&rs1("sheng_name")&"-"&rs2("shi_name")&""%>┆&nbsp;&nbsp;<a target="_blank" href="favorite.asp?id=<%=rs("ID")%>"><img border="0" src="image/de_menu_04.gif"></a></td>
    <td width="14%">发布时间：<img border="0" src="image/biao.gif">&nbsp;<%=fsj%></td>
  </tr>
</table></td>
            </tr>
            <tr>
              <td width="876" valign="top"><div style="width:820px; line-height:30px; padding-left:15px;"><%=left(replace(replace(replace(rs("memo"),"&nbsp;",""),chr(13)&chr(10),""),"<br>",""),120)%>
<%if  len(rs("memo"))>120   then
response.write"…"
end if
%></div></td>
              <td width="104">
			  <div  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="100" height="100" style="border:#fff 4px solid" />
<%
else
%>
<img border="0" src="img/NoPhoto.gif" width="100" height="100" style="border:#fff 4px solid">
<%end if
%></a></div>
<%set rs1=server.createobject("ADODB.Recordset")
            sql1="select * from sc_sheng where sheng_id="&rs("city_one")&""
            rs1.open sql1,conn,1,3
           
		   set rs2=server.createobject("ADODB.Recordset")
            sql2="select * from sc_shi where shi_id="&rs("city_two")&""
            rs2.open sql2,conn,1,3
            %>
			
           
  </td>
            </tr>
          </table>
   <%
            rs2.close
              set rs2=nothing   
              rs1.close
              set rs1=nothing
            %>       
   <%
rs.movenext
if rs.eof then exit for
next
%>      
		 
		  
		  <div align="center" style="height:45px; background-color:#F0F0F0; line-height:45px; font-size:14px;"><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>
		  
		  
		  </td>
          <td width="21%" valign="top" bgcolor="#F6FBFD" style="border-left:1px #C5D8E6 dotted;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="40" bgcolor="#229DD7" class="fontgg" style="padding-left:15px;">推荐信息</td>
            </tr>
            <tr>
              <td bgcolor="#F6FBFD" style="padding:5px;"><%
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%>
                  <div style="height:30px; line-height:30px;"><img  src="img/arrow_gree.gif" /><A target=_blank href=<%=rsnewinfo1("xurl")%>> <%=left(rsnewinfo1("biaoti"),20)%></A></div>
                <% rsnewinfo1.movenext 
i=i+1
loop
rsnewinfo1.close
set rsnewinfo1=nothing
%>
              </td>
            </tr>
          </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="40" bgcolor="#229DD7" class="fontgg" style="padding-left:15px;">广告招商</td>
              </tr>
              <tr>
                <td bgcolor="#F6FBFD" style="padding:5px;">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>

    

  






  

<%call bottom()%>


    
</div>



</body>
</html>