
<!--#include file="../inc/Conn.asp"-->
<!--#include file="../inc/base64.asp"-->
<!--#include file="../inc/Function.asp"-->
<%
ID=int(request("id"))

if id <> 0 then
set key=conn.execute("select * from Dream_Menpiao where id="&id)
if not(key.eof and key.bof) then
	DreamTitles=key("Dream_Title")
	Dream_Theme=key("Dream_Theme")
	Dream_Price=key("Dream_Price")
	Dream_Currency_Symbol=key("Dream_Currency_Symbol")
else
	response.Redirect "index.asp"
	response.End()
end if
set key=nothing
end if

action=request("action")
from=request("from")
if action="ok" then
	username=request.Form("username")
	mobile=request.Form("mobile")
	scontent=request.Form("scontent")
	TID=request.Form("ID")
	Set rs=Server.CreateObject("Adodb.RecordSet")
	rs.open "Select * From Dream_NUser",conn,1,3
	rs.addnew
	rs("Dream_Names")=username
	rs("Dream_Mobile")=mobile
	rs("Dream_Content")=scontent
	rs("Dream_TID")=TID
	rs("Dream_UpdateTime")=now()
	rs.update	 
	rs.close
	set rs=nothing
	Response.Redirect "view.asp?cid="&Dream_Theme&"&id="&TID
end if
%>
<!DOCTYPE html>
<head>
<title><%=Dream_SiteName%>-在线预订</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Keywords" content="<%=Dream_SiteName%>-在线预订">
<meta content="<%=Dream_SiteName%>在线预订" name="description">
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
<meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="full-screen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="address=no">
<link rel="stylesheet" href="../css/style_guolv.css" />
<script type="text/javascript" src="../js/zepto.min.js"></script>
<script>window.jQuery = $;</script>
<script src="../js/20131114.js"></script>
</head>
<body>
<section>
<!--#include file="search.asp"-->
<div id="doc">
  <!-- S: 头部 -->
  <header id="hd" bk="tuan_m_detail_top">
    <!-- 文本title -->
    <h1 class="txt-title">在线预订</h1>
    <a href="#" class="home-btn ret-btn" bk="tuan_m_detail_back">返回</a>  <a href="index.asp" class="home-btns">首页</a></header>
	 <script type="text/javascript">
    
    // History, by lww, 2013/09/02
    ;(function($){
        if(!$) { return; }
        if( history.length > 1){
            $("#hd .ret-btn").show();
        }
        else {
            $("#hd .ret-btn").hide();
        }

        $("#hd .ret-btn").click(function(e){
            e.preventDefault();
            if( history.length > 1 ) {
                history.back();
            }
        });
    })(Zepto);
    
</script>
<div class="ad"><img src="../m_images/zxbm.jpg"></div>
<%if Dream_Enter=true then%>
	<div class="message2">
        <form action="enter.asp?action=ok" method="post">
			<input name="id" type="hidden" value="<%=id%>" />
			<input name="cid" type="hidden" value="<%=cid%>" />
			<input name="from" type="hidden" value="<%=from%>" />
			<div><h3>标题：</h3><span><%=DreamTitles%></span></div>
			<div><h3><i>*</i>姓名：</h3><input type="text" id="username" name="username" value="" size="20" maxlength="30" /></div>
			<div><h3><i>*</i>手机号：</h3><input type="text" id="mobile" name="mobile" value="" size="20" maxlength="30" /></div> 
		  	<div><h3>备注：</h3><textarea name="scontent" id="scontent"  cols="" rows="5" class="login-input-phone" placeholder=""></textarea></div> 
          <div><input type="submit"  id="submit" value=""/></div>
        </form>
  </div>
<%else%>
<div style="float:left; width:100%; padding:100px 0; color:#FF0000; text-align:center; font-size:18px;">在线预订功能未开放！</div>
<%end if%>  
  <!--#include file="footer.asp"-->
</div>
<div class="fjg"></div>
<!--#include file="navb.asp"-->
<script src="../js/jquery.js"></script>
<script src="../js/web.js"></script>
<script>
  $('#submit').click(function () {
            var name = $('#username').val();
            var mobile = $('#mobile').val();
			var scontent = $('#scontent').val();
						
            if (name.length == 0 || mobile.length == 0) {
                alert("请输入姓名或手机号");
                return false;
            } else {
			alert('报名成功!');
                return true;
				
            }
        });
	
</script>
</section>
</body>
</html>
