<!--#include file="inc/config.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/route_func.asp"-->
<!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">
    <%
							dim HotelId,HotelTitle
							if(request.Form("HotelId")<>"") then
								HotelId=Clng(request.Form("HotelId"))
							else
								response.Write("error")
								response.End()
							end if
							HotelTitle=request.Form("HotelTitle")
							UserName=request.Form("UserName")
							Sex=request.Form("Sex")
							ArriveDate=CDate(request.Form("ArriveDate"))
							HouseNum=Cint(request.Form("HouseNum"))
							LeaveDate=request.Form("LeaveDate")
							Email=request.Form("Email")
							Tel=request.Form("Tel")
							Address=request.Form("Address")
							Levels=request.Form("Levels")
							Price=Clng(request.Form("Price"))
							Content=request.Form("Content")
							'''''''''''''''''''''''''''''''
							set rs=server.CreateObject("adodb.recordset")
							 rs.open "select * from t_hotel_order where 1=0",conn,3,3
							 rs.addnew
							 rs("HotelId")=HotelId
							 rs("HotelTitle")=HotelTitle
							 rs("Price")=Price
							 rs("ArriveDate")=ArriveDate
							 rs("Levels")=Levels
							 rs("HouseNum")=HouseNum
							 rs("LeaveDate")=LeaveDate
							 rs("UserName")=UserName
							 rs("Sex")=Sex
							 rs("Email")=Email
							 rs("Tel")=Tel
							 rs("Address")=Address
							 rs("Content")=Content
							 rs("PubDate")=now()
							 rs("Ip")=request.ServerVariables("REMOTE_ADDR")
							 rs.update
							 rs.close
							 set rs=nothing
							 conn.execute("update t_hotel set OrderNum=OrderNum+1 where id="&HotelId)
							%>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="show_topic"><div class="show_txt">你选择的：<%=HotelTitle%> ……预定成功！</div></td>
        </tr>
      </table>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
  
  <tr bgcolor="#ebf4fe">
<td height="50" align="center" valign="bottom"><div class="content">
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="30" height="35"><img src="images/sc.gif" width="22" height="14" /></td>
      <td><span class="STYLE34">以下是您的预订信息</span></td>
      </tr>
    </table>
  <table width="100%" border="0" cellspacing="1" cellpadding="0">
    <tr>
      <td width="14%" height="40" bgcolor="#FFFFFF"><div align="center" class="STYLE1"><span class="STYLE1"><strong>您的姓名</strong>：</span></div></td>
      <td height="35" colspan="2" align="left" bgcolor="#FFFFFF" class="padl5"><span class="STYLE1"><%=UserName%><%=Sex%></span></td>
      </tr>
    <tr>
      <td height="40"><div align="center" class="STYLE1"><span class="STYLE1"><strong>入住日期</strong>：</span></div></td>
      <td height="35" colspan="2" align="left" class="padl5"><span class="STYLE1"><%=ArriveDate%></span></td>
      </tr>
    <tr>
      <td height="40" bgcolor="#FFFFFF"><div align="center" class="STYLE1"><strong>离店日期</strong>：</div></td>
      <td height="35" colspan="2" align="left" bgcolor="#FFFFFF" class="padl5"><span class="STYLE1"><%=LeaveDate%></span></td>
      </tr>
    <tr>
      <td height="40"><div align="center" class="STYLE1"><span class="STYLE1"><strong>预定房数</strong>：</span></div></td>
      <td height="35" colspan="2" align="left" class="padl5"><%=HouseNum%>
        间</td>
      </tr>
    
    <tr>
      <td height="40" bgcolor="#FFFFFF"><div align="right" class="hotel_title STYLE1">
        <div align="center" class="STYLE1">E-mail：</div>
        </div></td>
      <td height="35" colspan="2" align="left" bgcolor="#FFFFFF" class="padl5"><span class="STYLE1"><%=Email%></span></td>
      </tr>
    <tr>
      <td height="40"><div align="center" class="STYLE1"><span class="STYLE1"><strong>联系电话</strong>：</span></div></td>
      <td height="35" colspan="2" align="left" class="padl5"><%=Tel%></td>
      </tr>
    <tr>
      <td height="40" bgcolor="#FFFFFF"><div align="center" class="STYLE1"><span class="STYLE1"><strong>联系地址</strong>：</span></div></td>
      <td height="35" colspan="2" align="left" bgcolor="#FFFFFF" class="padl5"><span class="STYLE7"><%=Address%></span></td>
      </tr>
    <tr>
      <td height="40"><div align="center" class="STYLE1"><span class="STYLE38">预订标准：</span></div></td>
      <td width="13%" height="35" align="left" class="padl5"><span class="STYLE1"><%=Levels%></span></td>
      <td width="73%" align="left" class="padl5">预订价格：<%=Price%> 元/间</td>
      </tr>
    <tr>
      <td height="40" bgcolor="#FFFFFF"><div align="center" class="STYLE1"><span class="STYLE38">其他说明：</span></div></td>
      <td height="35" colspan="2" align="left" bgcolor="#FFFFFF" class="padl5"><span class="STYLE1"><%=Content%></span></td>
      </tr>
    <tr>
      <td height="40"><div align="center"><span class="STYLE1"></span></div></td>
      <td height="35" colspan="2" align="left" class="padl5"><input type="button" name="button3" id="button3" value="返回" onclick="location.href='/';" />
        <input type="button" name="button4" id="button4" value="打印" onclick="window.print();" /></td>
      </tr>
    <tr>
      <td height="40" bgcolor="#FFFFFF"><div align="center" class="STYLE1"><span class="STYLE38">免费热线：</span></div></td>
      <td height="35" colspan="2" align="left" bgcolor="#FFFFFF" class="padl5">24小时全国免费咨询服务热线:400-611-2005 直线:0744-2196977 2196979 </td>
      </tr>
    </table>
</div></td>
</tr>
</table> 
   </td>
  </tr>
</table>
<!--#include file="templet/root.htm"-->
</body>
</html>
<%
call connclose()
%>