<!--#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>旅游线路预定-<%=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/common.js"></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">
    <%
							dim RouteId,RouteTitle
							if(request.Form("RouteId")<>"") then
								RouteId=Clng(request.Form("RouteId"))
							else
								response.Write("error")
								response.End()
							end if
							RouteTitle=request.Form("RouteTitle")
							UserName=request.Form("UserName")
							Sex=request.Form("Sex")
							ArriveDate=CDate(request.Form("ArriveDate"))
							PeopleNum=request.Form("PeopleNum")
							Traffic=request.Form("Traffic")
							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_route_order where 1=0",conn,3,3
							 rs.addnew
							 rs("RouteId")=RouteId
							 rs("RouteTitle")=RouteTitle
							 rs("Price")=Price
							 rs("ArriveDate")=ArriveDate
							 rs("Levels")=Levels
							 rs("PeopleNum")=PeopleNum
							 rs("Traffic")=Traffic
							 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_route set OrderNum=OrderNum+1 where id="&RouteId)
							%>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="show_topic"><div class="show_txt">您选择的线路：<%=RouteTitle%>(预定成功)</div></td>
        </tr>
      </table>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr bgcolor="#ebf4fe">
        <td align="center"><div class="content">
          <h2>以下是您的订购信息</h2>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="15%" height="40" bgcolor="#FFFFFF" class="br"><div align="right" class="STYLE20">您的姓名：</div></td>
              <td width="85%" height="40" align="left" bgcolor="#FFFFFF" class="padl5"><%=UserName%><%=Sex%></td>
              </tr>
            <tr>
              <td height="40" class="br"><div align="right" class="STYLE20">抵达日期：</div></td>
              <td height="40" align="left" class="padl5"><%=ArriveDate%></td>
              </tr>
            <tr>
              <td height="40" bgcolor="#FFFFFF" class="br"><div align="right" class="STYLE20">出行人数：</div></td>
              <td height="40" align="left" bgcolor="#FFFFFF" class="padl5"><%=PeopleNum%> 人</td>
              </tr>
            <tr>
              <td height="40" class="br"><div align="right" class="STYLE20">交通方式：</div></td>
              <td height="40" align="left" class="padl5"><%=Traffic%></td>
              </tr>
            <tr>
              <td height="40" bgcolor="#FFFFFF" class="br"><div align="right" class="STYLE20">E-mail：</div></td>
              <td height="40" align="left" bgcolor="#FFFFFF" class="padl5"><%=Email%></td>
              </tr>
            <tr>
              <td height="40" class="br"><div align="right" class="STYLE20">联系电话：</div></td>
              <td height="40" align="left" class="padl5"><%=Tel%></td>
              </tr>
            <tr>
              <td height="40" bgcolor="#FFFFFF" class="br"><div align="right" class="STYLE20">联系地址：</div></td>
              <td height="40" align="left" bgcolor="#FFFFFF" class="padl5"><%=Address%></td>
              </tr>
            <tr>
              <td height="40" class="br"><div align="right" class="STYLE20">服务标准：</div></td>
              <td height="40" align="left" class="padl5"><%=Levels%> 价格：<%=Price%>元/人</td>
              </tr>
            <tr>
              <td height="40" bgcolor="#FFFFFF" class="br"><div align="right" class="STYLE20">其他说明：</div></td>
              <td height="40" align="left" bgcolor="#FFFFFF" class="padl5"><%=Content%></td>
              </tr>
            <tr>
              <td>　</td>
              <td height="32"><input type="button" name="button3" id="button3" value="返回" onclick="location.href='/';" />
                <input type="button" name="button4" id="button4" value="打印" onclick="window.print();" /></td>
              </tr>
            </table>
          </div></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--#include file="templet/root.htm"-->
</body>
</html>
<%
call connclose()
%>