
<!--#include file="../inc/Conn.asp"-->
<!--#include file="../inc/base64.asp"-->
<!--#include file="../inc/Function.asp"-->
<%
bg="no"
cid=request("cid")
sid=request("sid")
area_cid=request("area_cid")
area_sid=request("area_sid")
otype=request("otype")
keys=request("keys")
if cid="" then cid=0
if sid="" then sid=0
if area_cid="" then area_cid=0
if area_sid="" then area_sid=0
if otype="" then otype=1

select case otype
case 1
otypenames="默认"
case 2
otypenames="推荐"
case 3
otypenames="热门"
case 4
otypenames="最新"
case 5
otypenames="精品"
case else
otypenames="默认"
end select

a_class=""
b_class=""
classnames="信息分类"
set rs=server.CreateObject("adodb.recordset")
sql="select * from Dream_Theme where Dream_ClassID=0 order by Dream_zid asc, id asc"	
rs.open sql,Conn,1,1
if not(rs.eof and rs.bof) then
i=1
do while not rs.eof
if cint(cid)=rs("id") and cint(sid)=0 then
	b_class_str="<li><a class=""current"" href=""page.asp?cid="&rs("id")&"&sid=0&area_cid="&area_cid&"&area_sid="&area_sid&"&otype="&otype&""">全部</a></li>"
else
	b_class_str="<li><a href=""page.asp?cid="&rs("id")&"&sid=0&area_cid="&area_cid&"&area_sid="&area_sid&"&otype="&otype&""">全部</a></li>"
end if			
	set rss=server.CreateObject("adodb.recordset")
	sqls="select * from Dream_Theme where Dream_ClassID="&rs("id")&" order by Dream_zid asc, id asc"	
	rss.open sqls,Conn,1,1
	if not(rss.eof and rss.bof) then
	j=1
	do while not rss.eof
	if cint(sid)=rss("id") then
		classnames=rss("Dream_Names")
		b_class_str=b_class_str&"<li><a class=""current"" href=""page.asp?cid="&rs("id")&"&sid="&rss("id")&"&area_cid="&area_cid&"&area_sid="&area_sid&"&otype="&otype&""">"&rss("Dream_Names")&"</a></li>"
	else
		b_class_str=b_class_str&"<li><a href=""page.asp?cid="&rs("id")&"&sid="&rss("id")&"&area_cid="&area_cid&"&area_sid="&area_sid&"&otype="&otype&""">"&rss("Dream_Names")&"</a></li>"
	end if
	j=j+1
	rss.movenext
	loop			
	end if
	rss.close
	set rss=nothing
if cint(cid)=rs("id") then
a_class=a_class&"<li class=""current""><a href=""page.asp?cid="&rs("id")&"&sid=0&area_cid="&area_cid&"&area_sid="&area_sid&"&otype="&otype&""" tag=""0"">"&rs("Dream_Names")&"<i></i></a></li>"
b_class=b_class&"<ul style=""display:block;"">"&b_class_str&"</ul>"
	if sid=0 then
	classnames=rs("Dream_Names")
	end if
else
a_class=a_class&"<li><a href=""page.asp?cid="&rs("id")&"&sid=0&area_cid="&area_cid&"&area_sid="&area_sid&"&otype="&otype&""" tag=""0"">"&rs("Dream_Names")&"<i></i></a></li>"
b_class=b_class&"<ul>"&b_class_str&"</ul>"
end if
i=i+1
rs.movenext
loop
end if
rs.close
set rs=nothing


a_area=""
b_area=""
areanames="区域"
set rs=server.CreateObject("adodb.recordset")
sql="select * from Dream_Area where Dream_ClassID=0 order by Dream_zid asc, id asc"	
rs.open sql,Conn,1,1
if not(rs.eof and rs.bof) then
i=1
do while not rs.eof
if cint(area_cid)=rs("id") and cint(area_sid)=0 then
	b_area_str="<li><a class=""current"" href=""page.asp?cid="&cid&"&sid="&sid&"&area_cid="&rs("id")&"&area_sid=0&otype="&otype&""">全部</a></li>"
else
	b_area_str="<li><a href=""page.asp?cid="&cid&"&sid="&sid&"&area_cid="&rs("id")&"&area_sid=0&otype="&otype&""">全部</a></li>"
end if			
	set rss=server.CreateObject("adodb.recordset")
	sqls="select * from Dream_Area where Dream_ClassID="&rs("id")&" order by Dream_zid asc, id asc"	
	rss.open sqls,Conn,1,1
	if not(rss.eof and rss.bof) then
	j=1
	do while not rss.eof
	if cint(area_sid)=rss("id") then
		areanames=rss("Dream_Names")
		b_area_str=b_area_str&"<li><a class=""current"" href=""page.asp?cid="&cid&"&sid="&sid&"&area_cid="&rs("id")&"&area_sid="&rss("id")&"&otype="&otype&""">"&rss("Dream_Names")&"</a></li>"
	else
		b_area_str=b_area_str&"<li><a href=""page.asp?cid="&cid&"&sid="&sid&"&area_cid="&rs("id")&"&area_sid="&rss("id")&"&otype="&otype&""">"&rss("Dream_Names")&"</a></li>"
	end if
	j=j+1
	rss.movenext
	loop			
	end if
	rss.close
	set rss=nothing
if cint(area_cid)=rs("id") then
a_area=a_area&"<li class=""current""><a href=""page.asp?cid="&cid&"&sid="&sid&"&area_cid="&rs("id")&"&area_sid=0&otype="&otype&""" tag=""0"">"&rs("Dream_Names")&"<i></i></a></li>"
b_area=b_area&"<ul style=""display:block;"">"&b_area_str&"</ul>"
	if area_sid=0 then
	areanames=rs("Dream_Names")
	end if
else
a_area=a_area&"<li><a href=""page.asp?cid="&cid&"&sid="&sid&"&area_cid="&rs("id")&"&area_sid=0&otype="&otype&""" tag=""0"">"&rs("Dream_Names")&"<i></i></a></li>"
b_area=b_area&"<ul>"&b_area_str&"</ul>"
end if
i=i+1
rs.movenext
loop
end if
rs.close
set rs=nothing

url="page.asp?cid="&cid&"&sid="&sid&"&area_cid="&area_cid&"&area_sid="&area_sid

if sid=0 then
set key=conn.execute("select * from Dream_Theme where ID="&cid)
else
set key=conn.execute("select * from Dream_Theme where ID="&sid)
end if
DreamTitles=Dream_SiteTitle
if not(key.eof and key.bof) then	
	if key("Dream_Title")<>"" then
	DreamTitles=key("Dream_Title")
	else
	DreamTitles=key("Dream_Names")
	end if
	DreamKeys=key("Dream_Keyword")
	DreamDes=key("Dream_Description")
end if
set key=nothing
if sid=0 then
Theme=Cid
else
Theme=Sid
end if
if area_sid=0 then
Area=Area_Cid
else
Area=area_sid
end if
%>
<!DOCTYPE html>
<head>
<title><%=Dream_SiteName%><%if DreamTitles<>"" then%>-<%=DreamTitles%><%end if%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Keywords" content="<%=DreamKeys%>">
<meta content="<%=DreamDes%>" name="description">
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
<meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="full-screen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="address=no">
<link rel="stylesheet" href="../css/style_guolv.css" />
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.more.js"></script>
<script type="text/javascript">
$(function(){
	$('#more').more({'address': 'lx2.asp?Theme=<%=Theme%>&Area=<%=Area%>&otype=<%=otype%>&keys=<%=keys%>'})
});
</script>
<script type="text/javascript" src="../js/zepto.min.js"></script>
<script type="text/javascript" src="../js/globe.js"></script>
<script type="text/javascript" src="../js/swiper.min.js"></script>
</head>
<body>
<section>
<!--#include file="header.asp"-->
<div id="bd" class="tnav">
    <!-- S: 团单筛选 -->
    <!-- S: 筛选器 -->
    <div id="filter" class="filter flexbox"> <a href="javascript:void(0);" class="flexone" tag="category" ><%=classnames%><i></i></a> <a href="javascript:void(0);" class="flexone" tag="address" ><%=areanames%><i></i></a> <a href="" class="flexone" tag="sequence"><%=otypenames%><i></i></a> </div>
    <!-- E: 筛选器 -->
    <!-- S: 排序弹窗 -->
    <div class="filter-pop sequence-pop" bk="tuan_m_list_filter_paixu">
      <div class="hd">排序<a href="" class="close">关闭</a></div>
      <ul class="bd">
        <li<%if otype=1 then%> class="current"<%end if%>><a href="<%=url%>&otype=1">默认</a></li>
        <li<%if otype=2 then%> class="current"<%end if%>><a href="<%=url%>&otype=2">推荐</a></li>
        <li<%if otype=3 then%> class="current"<%end if%>><a href="<%=url%>&otype=3">热门</a></li>
        <li<%if otype=4 then%> class="current"<%end if%>><a href="<%=url%>&otype=4">最新</a></li>
        <li<%if otype=5 then%> class="current"<%end if%>><a href="<%=url%>&otype=5">精品</a></li>
      </ul>
    </div>
    <!-- E: 排序弹窗 -->
    <!-- S: 分类弹窗 -->	
    <div class="filter-pop category-pop" bk="tuan_m_list_filter_fenlei" >
      <div class="hd"><a href="page.asp?cid=0&sid=0&area_cid=<%=area_cid%>&area_sid=<%=area_sid%>&otype=<%=otype%>">全部分类</a><a href="" class="close"></a> </div>
      <div class="bd">
        <div class="a-region">
          <ul>
		  	 <%=a_class%>           
          </ul>
        </div>
        <div class="b-region">
		  <%=b_class%>
        </div>
      </div>
    </div>
    <!-- E: 分类弹窗 -->
    <!-- S: 地区弹窗 -->
    <div class="filter-pop address-pop" bk="tuan_m_list_filter_diqu">
      <div class="hd"><a href="page.asp?cid=<%=cid%>&sid=<%=sid%>&area_cid=0&area_sid=0&otype=<%=otype%>">区域</a><a href="" class="close"></a> </div>
      <div class="bd">
        <div class="a-region">
            <ul>
              <%=a_area%>
            </ul>
        </div>
        <div class="b-region">
            <%=b_area%>
        </div>        
      </div>
    </div>
    <!-- E: 地区弹窗 -->
    <div class="mask-pop"></div>
</div>
<div class="topbar"></div>
<div class="topbarbg"></div>

<div id="more" class="new_mplist">	
	<div class="single_item">
		<ul><li class="new_mplist_img"><a href="#" class="url" id="url"><img src="" id="new_mplist_img"></a></li><li class="new_mplist_icon"></li><li class="new_mplist_t_li"><h3 class="new_mplist_t"></h3><span class="new_mplist_con"></span><span class="new_mplist_tel"></span></li></ul>
		<div class="ts">提示：点击电话直接拨出！点击地址就可导航！</div>
	</div>        
  <div class="new_more"><a href="javascript:void(0)">查看更多</a></div>
</div>
  <!-- S: 底部 -->
  <!--#include file="footer.asp"-->  
  <!-- E: 底部 -->
</div>
<div class="fjg"></div>
<!--#include file="navb.asp"--> 
  <script type="text/javascript">
    
    // History, by lww, 2013/09/02
    ;(function($){
        if(!$) { return; }
        if( history.length > 1){
            $("#fnav .ret-btn").show();
        }
        else {
            $("#fnav .ret-btn").hide();
        }

        $("#fnav .ret-btn").click(function(e){
            e.preventDefault();
            if( history.length > 1 ) {
                history.back();
            }
        });
    })(Zepto);
    
</script>
<script src="../js/cf5fd214_2.js"></script>
</section>
</body>
</html>