<!--#include file="inc/config.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/route_func.asp"-->
<%
dim id,rs,Title,p,PTitle,Price1,Price2,Price3,Price4,Price
if(request.QueryString("id")<>"") then
	id=Clng(request.QueryString("id"))
else
	response.Write("error")
	response.End()
end if
if(request.QueryString("p")<>"") then
	p=Clng(request.QueryString("p"))
end if
'线路名称
set rs=conn.execute("select Title,Price from t_route where id="&id)
if not rs.eof then
	Title=rs(0)
	Price=rs(1)
end if
rs.close
set rs=nothing
'线路价格
set rs=conn.execute("select Title,Price1,Price2,Price3,Price4 from t_route_price where id="&p)
if not rs.eof then
	PTitle=rs(0)
	Price1=rs(1)
	Price2=rs(2)
	Price3=rs(3)
	Price4=rs(4)
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" />
<link media=screen href="js/dhtmlgoodies_calendar.css" rel=stylesheet></link>
<SCRIPT src="js/dhtmlgoodies_calendar.js" type=text/javascript></SCRIPT>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript">
function check(obj){
	if(obj.UserName.value==""){
		alert("请填写姓名！");
		obj.UserName.focus();
		return false;
	}else if(obj.Tel.value==""){
		alert("请填写电话！");
		obj.Tel.focus();
		return false;
	}else if(obj.ArriveDate.value==""){
		alert("请填写抵达日期！");
		obj.ArriveDate.focus();
		return false;
	}else if(obj.Levels.value==""){
		alert("请选择旅游标准！");
		return false;
	}
	return true;
}
var prices='<%=Price1%>@<%=Price2%>@<%=Price3%>@<%=Price4%>';
var price_arr=prices.split('@');
function getPrice(v){	
	if(v=='标准等'){
		document.form3.Price.value=price_arr[0];
	}else if(v=='豪华等'){
		document.form3.Price.value=price_arr[1];
	}else if(v=='豪华A等'){
		document.form3.Price.value=price_arr[2];
	}else if(v=='超豪华等'){
		document.form3.Price.value=price_arr[3];
	}
}
</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">
      <tr>
        <td width="12%" class="topic"><img src="images/icon6.gif" width="21" height="14" align="absmiddle" /></td>
        <td width="88%" class="topic">联系我们</td>
      </tr>
      <tr>
        <td colspan="2" bgcolor="#FFFFFF" class="pad5"><!--#include file="right_contact.asp"--></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"><div class="show_txt">您选择的线路：<%=Title%></div></td>
        </tr>
      </table>
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#ebf4fe">
<td align="center"><div class="content">
<form id="form3" name="form3" method="post" action="routes_order_do.asp" onsubmit="return check(this)">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="30" colspan="2" bgcolor="#FFFFFF"><span class="STYLE5"> <img src="images/sc.gif" width="22" height="14" /> 您选择的旅游方式是：</span><span class="STYLE19"><%=PTitle%></span></td>
</tr>
<tr>
<td width="18%" height="40"><div align="right" class="STYLE20">您的姓名：</div></td>
<td width="82%" height="40" align="left" class="padl5"><span class="STYLE2">
<input type="text" name="UserName" id="UserName" />
(*)
<select name="Sex" id="Sex">
<option value="先生">先生</option>
<option value="女士">女士</option>
</select>
</span></td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF"><div align="right" class="STYLE20"> 抵达日期：</div></td>
<td height="40" align="left" bgcolor="#FFFFFF" class="padl5"><span class="STYLE2">
<input name="ArriveDate" type="text" id="ArriveDate" size="15" maxlength="20" onclick="displayCalendar(document.form3.ArriveDate,'yyyy-mm-dd',this)" />
(*)</span></td>
</tr>
<tr>
<td height="40"><div align="right" class="STYLE20"> 出行人数：</span></div></td>
<td height="40" align="left" class="padl5"><span class="STYLE2">
<input name="PeopleNum" type="text" id="PeopleNum" size="6" />
<span class="STYLE19">位</span></span></td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF"><div align="right" class="STYLE20"> 交通方式：</span></div></td>
<td height="40" align="left" bgcolor="#FFFFFF" class="padl5"><span class="STYLE2">
<select name="Traffic" id="Traffic">
<option value="往返乘火车">往返乘火车</option>
<option value="往返乘飞机">往返乘飞机</option>
<option value="来程火车，返程飞机">来程火车，返程飞机</option>
<option value="来程飞机，返程火车">来程飞机，返程火车</option>
<option value="自带车">自带车</option>
<option value="交通方式未订">交通方式未订</option>
<option selected="selected" value="">请选择</option>
</select>
</span> </td>
</tr>
<tr>
<td height="40"><div align="right" class="STYLE20"> E-mail：</span></div></td>
<td height="40" align="left" class="padl5"><input name="Email" type="text" id="Email" /></td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF"><div align="right" class="STYLE20"> 联系电话：</span></div></td>
<td height="40" align="left" bgcolor="#FFFFFF" class="padl5"><span class="STYLE2">
<input type="text" name="Tel" id="Tel" />
(*)</span></td>
</tr>
<tr>
<td height="40"><div align="right" class="STYLE20"> 联系地址：</span></div></td>
<td height="40" align="left" class="padl5"><input name="Address" type="text" id="Address" /></td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF"><div align="right" class="STYLE20"> 预订标准：</span></div></td>
<td height="40" align="left" bgcolor="#FFFFFF" class="padl5">
<span class="STYLE2">
<select name="Levels" id="Levels" onchange="getPrice(this.value);">
  <option value="">请选择</option>
  <option value="标准等">标准等</option>
  <option value="豪华等">豪华B等</option>
  <option value="豪华A等">豪华A等</option>
  <option value="超豪华等">超豪华等</option>
</select> 
(<span class="STYLE1">*) 价格：</span>
<input name="Price" type="text" id="Price" value="<%=Price%>" size="6" maxlength="16" />
元</span></td>
</tr>
<tr>
<td><div align="right" class="STYLE20"> 备注：</span></div></td>
<td align="left" class="padl5"><span class="STYLE2">
<textarea name="Content" id="Content" cols="45" rows="5"></textarea>
</span></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">　</td>
<td height="32" align="left" bgcolor="#FFFFFF" class="padl5">
<span class="STYLE2">
<input type="hidden" name="RouteTitle" value="<%=Title%>" />
<input type="hidden" name="RouteId" value="<%=id%>" />
<input type="submit" name="button3" id="button3" value="确定" />
<input type="reset" name="button4" id="button4" value="取消" />
</span></td>
</tr>
</table>
</form>
</div></td>
</tr>
</table>
      </td>
  </tr>
</table>
<!--#include file="templet/root.htm"-->
</body>
</html>
<%
call connclose()
%>