<!--#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,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,MinPrice from t_hotel 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 from t_hotel_price where id="&p)
if not rs.eof then
	PTitle=rs(0)
	Price1=rs(1)
	Price2=rs(2)
	Price3=rs(3)
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" src="js/marquee.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=='团队价'){
		document.form3.Price.value=price_arr[2];
	}
}
</script>
<style type="text/css">
<!--
.STYLE22 {color: #9900FF}
-->
</style>
</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="hotel.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">=*= 酒 店 预 定 =*=</div></td>
        </tr>
      </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="35" align="center" background="image/s_bj.gif"><form id="form2" name="form2" method="get" action="hotel_search.asp">
酒店名称：
<input name="key" type="text" id="key" value="<%=key%>" />
<input type="submit" name="button2" id="button2" value="搜索酒店" />
<span class="STYLE4">您还可以输入“张家界、武陵源、凤凰古城”来查找您需要的酒店</span>
</form></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="hotel_order_do.asp" onsubmit="return check(this)">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" colspan="2"><img src="images/sc.gif" width="22" height="14" /> 您选择的酒店名称：<span class="STYLE15"><%=Title%></span> 房型：<span class="STYLE15"><%=PTitle%></span></td>
</tr>
<tr>
<td width="18%" height="40" bgcolor="#FFFFFF" class="STYLE20"><div align="right" class="STYLE1">您的姓名：</div></td>
<td width="87%" height="40" align="left" bgcolor="#FFFFFF"><input type="text" name="UserName" id="UserName" />
(<span class="red">*</span>)
<select name="Sex" id="Sex">
<option value="先生">先生</option>
<option value="女士">女士</option>
</select></td>
</tr>
<tr>
<td height="40" class="STYLE20"><div align="right" class="STYLE1">入住日期：</div></td>
<td height="40" align="left"><input name="ArriveDate" type="text" id="ArriveDate" size="15" maxlength="20" onclick="displayCalendar(document.form3.ArriveDate,'yyyy-mm-dd',this)" />
(<span class="red">*</span>)<span class="STYLE1">离店日期：</span>
<input name="LeaveDate" type="text" id="LeaveDate" size="15" maxlength="20" onclick="displayCalendar(document.form3.LeaveDate,'yyyy-mm-dd',this)" />
(<span class="red">*</span>)</td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="STYLE20"><div align="right" class="STYLE1">预定间数：</div></td>
<td height="40" align="left" bgcolor="#FFFFFF"><input name="HouseNum" type="text" id="HouseNum" size="6" />
<span class="STYLE5">间</span></td>
</tr>
<tr>
<td height="40" class="STYLE20"><div align="right" class="STYLE1">Email：</div></td>
<td height="40" align="left"><input type="text" name="Email" id="Email" /></td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="STYLE20"><div align="right" class="STYLE1">联系电话：</div></td>
<td height="40" align="left" bgcolor="#FFFFFF"><input type="text" name="Tel" id="Tel" />
(<span class="red">*</span>)</td>
</tr>
<tr>
<td height="40" class="STYLE20"><div align="right" class="STYLE1">联系地址：</div></td>
<td height="40" align="left"><input type="text" name="Address" id="Address" /></td>
</tr>
<tr>
<td height="40" bgcolor="#FFFFFF" class="STYLE20"><div align="right" class="STYLE1">预订标准：</div></td>
<td height="40" align="left" bgcolor="#FFFFFF">
<select name="Levels" id="Levels" onchange="getPrice(this.value);">
<option value="">请选择</option>
<option value="门市价">门市价(黄金周)</option>
<option value="散客价">散客价(5间房以下)</option>
<option value="团队价">团队价(5间房以上)</option>
</select>                        
(<span class="red">*</span>) 价格：
<input name="Price" type="text" id="Price" value="<%=Price%>" size="6" maxlength="16" />
<span class="STYLE5">元/间</span></td>
</tr>
<tr>
<td class="STYLE20"><div align="right" class="STYLE1">备注：</div></td>
<td align="left"><textarea name="Content" id="Content" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">　</td>
<td height="32" align="left" bgcolor="#FFFFFF">
<input type="hidden" name="HotelTitle" value="<%=Title%>" />
<input type="hidden" name="HotelId" value="<%=id%>" />
<input type="submit" name="button3" id="button3" value="确定" />
<input type="reset" name="button4" id="button4" value="取消" /></td>
</tr>
</table>
</form>
</div></td>
</tr>
</table> 
   </td>
  </tr>
</table>
<!--#include file="templet/root.htm"-->
</body>
</html>
<%
call connclose()
%>