<!--#include file="inc/config.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/route_func.asp"-->
<%
dim id,rs,Title,Routing,Servers,RelateKey,Price,Hits
if(request.QueryString("id")<>"") then
	id=Clng(request.QueryString("id"))
else
	response.Write("error")
	response.End()
end if
set rs=conn.execute("select Title,Routing,Servers,RelateKey,Price,Hits from t_route where id="&id)
if not rs.eof then
	Title=rs(0)
	Routing=rs(1)
	Servers=rs(2)
	RelateKey=rs(3)
	Price=rs(4)
	Hits=rs(5)
end if
rs.close
set rs=nothing
%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=Title%>-<%=SiteName%></title>
<meta name="description" content="description" />
<meta name="keywords" content="keywords" />
<link href="style/global.css" rel="stylesheet" type="text/css" />
<link href="style/show.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/marquee.js"></script>
<script type="text/javascript">
function AddFav(){
	var f_title=encodeURIComponent('<%=Title%>');
	var f_type='route';
	var f_url=encodeURIComponent(this.location.href);
	var surl='/member/favorite_add.asp?f_title='+f_title+'&f_type='+f_type+'&f_url='+f_url;	
	var opt = {
			'url': surl,
			'dataType': 'xml',
			'async':false,
			'success': function (xml) {              //返回成功
          var r = xml.documentElement.getElementsByTagName("result");
        	var v = r[0].getAttribute("return");
					if(v=='success'){
						alert('成功添加收藏');
					}else{
						alert('出错了');
					}
			},
			'error': function () {                        //返回失败后
					alert('Error loading XML document');
			}
	};
	$.ajax(opt);
}
</script>
</head>

<body>
<!--#include file="templet/head.htm"-->
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td class="postion">现在位置：<a href="/">首页</a> -&gt; <a href="routes.asp">旅游线路</a> -&gt; <%=Title%></td>
  </tr>
</table>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="228" valign="top">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="border_yellow">
      <tr>
        <td width="88%" class="topic">酒店分类</td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF" class="pad5">
        <div class="routes_txt">
        	<ul>
						<%
            set rs=conn.execute("select id,title from t_route_catalog")
            while not rs.eof
            %>
            <li><a href="routes_list.asp?id=<%=rs(0)%>"><%=rs(1)%></a></li>
            <%
              rs.movenext
            wend 
            rs.close
            set rs=nothing
            %>
          </ul>
          </div>
        </td>
      </tr>
    </table>
    
      <div class="br"></div>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="7"><img src="images/topic_l.gif" width="7" height="32" /></td>
          <td width="213" background="images/topic2_bg.gif"><div class="right"><a href="/routes.asp"><img src="images/more.gif" width="49" height="13" border="0" /></a></div>
            <div class="bar_text3">热门线路</div></td>
          <td width="7"><img src="images/topic_r.gif" width="7" height="32" /></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td style="border-left:1px solid #B8D5E3; border-right:1px solid #B8D5E3;"><div class="routes_txt">
            <ul>
              <%
							set rs=conn.execute("select top 6 id,Title,Price,Hits from t_route where IsRem=1")
							while not rs.eof
							%>
              <li><a href="/routes_show.asp?id=<%=rs(0)%>" class="STYLE20"><%=rs(1)%></a><span class="STYLE1"> ￥<%=rs(2)%>元/人</span></li>
              <%
								rs.movenext
							wend 
							rs.close
							set rs=nothing
							%>
            </ul>
          </div></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="7"><img src="images/b_l.gif" width="7" height="6" /></td>
          <td background="images/b_bg.gif"></td>
          <td width="7"><img src="images/b_r.gif" width="7" height="6" /></td>
        </tr>
      </table>
      <div class="br"></div>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="7"><img src="images/topic_l.gif" width="7" height="32" /></td>
          <td width="213" background="images/topic2_bg.gif"><div class="right"><a href="/hotel.asp"><img src="images/more.gif" width="49" height="13" border="0" /></a></div>
            <div class="bar_text3">推荐酒店</div></td>
          <td width="7"><img src="images/topic_r.gif" width="7" height="32" /></td>
        </tr>
        <tr>
          <td colspan="3" style="border-left:1px solid #B8D5E3; border-right:1px solid #B8D5E3;"><div class="routes_txt">
            <ul>
              <%
							set rs=conn.execute("select top 6 id,Title,MinPrice from t_hotel where IsRem=1")
							while not rs.eof
							%>
              <li><a href="/hotel_show.asp?id=<%=rs(0)%>" class="STYLE20"><%=rs(1)%></a><span class="STYLE1"> ￥<%=rs(2)%>元</span></li>
              <%
								rs.movenext
							wend 
							rs.close
							set rs=nothing
							%>
            </ul>
          </div></td>
        </tr>
        <tr>
          <td width="7"><img src="images/b_l.gif" width="7" height="6" /></td>
          <td background="images/b_bg.gif"></td>
          <td width="7"><img src="images/b_r.gif" width="7" height="6" /></td>
        </tr>
      </table></td>
    <td width="10">&nbsp;</td>
    <td valign="top" class="show_brd"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="show_topic"><span class="right" style="margin:5px 5px 0px 0px;"><a href="javascript:AddFav()"><img src="images/fav_add.gif" height="20" align="absmiddle" /></a></span><div class="show_txt"><%=Title%>&nbsp;[点击：<%=Hits%>]</div></td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top" class="show_subtitle">[张家界旅游线路日程安排]</td>
      </tr>
      <tr>
        <td valign="top" class="show_content"><%=Routing%></td>
      </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top" class="show_subtitle show_brd_top">[景点图片]</td>
        </tr>
        <tr>
          <td valign="top" class="show_content">
          <div class="show_jdimgs">
          	<ul>
            	<%						
							set rs=server.createobject("adodb.recordset")
							rs.open "select top 4 id,Title,Photo from t_route_pic where RouteId="&id,conn,3,1
							while not rs.eof
							%>
<li><a href="<%=rs(2)%>" target="_blank"><img src="<%=rs(2)%>" width="160" height="120" alt="<%=rs(1)%>" border="0" /></a><h2><a href="<%=rs(2)%>" target="_blank"><%=rs(1)%></a></h2></li>
<%
                rs.movenext
              wend 
              rs.close
              set rs=nothing
              %>
            </ul>
          </div>
          </td>
        </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top" class="show_subtitle show_brd_top">[分类报价]</td>
        </tr>
        <tr>
          <td valign="top" class="show_content">
          <table width="100%" align="center" cellpadding="0" cellspacing="1" bgcolor="#FCF7F6">        
          <tr class="STYLE54">
          <td width="30%" height="0" rowspan="2" align="middle" bgcolor="#FFFFFF" class="STYLE5">旅游方式</td>
          <td width="15%" height="35" align="middle" bgcolor="#FFFFFF" class="STYLE5">标准等</td>
          <td width="15%" align="middle" bgcolor="#FFFFFF" class="STYLE5">豪华B等</td>
          <td width="15%" align="middle" bgcolor="#FFFFFF" class="STYLE5">豪华A等</td>
          <td width="15%" align="middle" bgcolor="#FFFFFF" class="STYLE5">超豪华等</td>
          <td width="12%" rowspan="2" align="middle" bgcolor="#FFFFFF" class="STYLE5">预&nbsp;订</td>
          </tr>
          <tr class="STYLE54">
            <td height="35" align="middle" bgcolor="#FFFFFF">经济型标间</td>
            <td width="15%" align="middle" bgcolor="#FFFFFF">三星级酒店</td>
            <td width="15%" align="middle" bgcolor="#FFFFFF">四星级酒店</td>
            <td width="15%" align="middle" bgcolor="#FFFFFF">五星级酒店</td>
          </tr>
            
          
          <%						
						set rs=server.createobject("adodb.recordset")
						rs.open "select id,Title,Price1,Price2,Price3,Price4 from t_route_price where RouteId="&id,conn,3,1
						while not rs.eof
						%>
<tr>
<td height="35" align="middle" bgcolor="#FFFFFF" class="STYLE5"><%=rs(1)%></td>
<td align="middle" bgcolor="#FFFFFF" class="STYLE12"><%=rs(2)%>元</td>
<td align="middle" bgcolor="#FFFFFF" class="STYLE12"><%=rs(3)%>元</td>
<td align="middle" bgcolor="#FFFFFF" class="STYLE12"><%=rs(4)%>元</td>
<td align="middle" bgcolor="#FFFFFF" class="STYLE12"><%=rs(5)%>元</td>
<td bgcolor="#FFFFFF" align="middle"><a href="/routes_order.asp?id=<%=id%>&amp;p=<%=rs(0)%>"><img border="0" src="images/order.jpg" width="43" height="22" /></a></td>
</tr>
  
<%
							rs.movenext
						wend 
						rs.close
						set rs=nothing
						%>
            
          
          </table>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top" class="show_subtitle show_brd_top">[接待标准]</td>
        </tr>
        <tr>
          <td valign="top" class="show_content"><%=Servers%></td>
        </tr>
    </table></td>
  </tr>
</table>
<!--#include file="templet/root.htm"-->
</body>
</html>
<%
conn.execute("update t_route set Hits=Hits+1 where id="&id)
call connclose()
%>