<!--#include file="include/conn.asp"-->
<!--#include file="menu.asp"-->
<%
If session("userid")="" Then Call Alert("对不起你没有登录！","UserAcct.asp") :w.e
If session("orderid")="" Then w.a "参数错误":w.e
If session("ordertt")="" Then w.a "类型错误":w.e
Set v= oConn.Execute("SELECT top 1 * FROM [LstNewsInfo] where Id ="&session("orderid"))
%>
<!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=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><%=sWeb("WebTitle")%>_<%=sWeb("WebUrl")%></title>
<meta name="keywords" content="<%=sWeb("WebKeyWord")%>" />
<meta name="description" content="<%=sWeb("WebDescription")%>" />
<meta name="author" content="<%=sWeb("WebAuthor")%>" />
<meta name="copyright" content="<%=sWeb("WebCopyright")%>" />
<meta content="all" name="robots" />
<link rel="shortcut icon" href="favicon.ico" />
<link type="text/css" href="/css/global.css" rel="stylesheet" />
<link type="text/css" href="/css/style.css" rel="stylesheet" />
<link type="text/css" href="/css/user.css" rel="stylesheet" />
<link type="text/css" href="/css/time.css" rel="stylesheet" />
<script src="/JavaScript/jquery-1.8.3.js" type="text/javascript"></script>
<script src="/JavaScript/user.js"></script>
<script src="/JavaScript/time.js"></script>
<script type="text/javascript">
function DateDiff(sDate1,sDate2)
{ 
    var arrDate,objDate1,objDate2,intDays;
    arrDate=sDate1.split("-");
    objDate1=new Date(arrDate[1]+'-'+arrDate[2]+'-'+arrDate[0]);
    arrDate=sDate2.split("-");
    objDate2=new Date(arrDate[1] + '-'+arrDate[2]+'-'+arrDate[0]);
    intDays=parseInt(Math.abs(objDate1-objDate2)/1000/60/60/24);
    return intDays;
}
function difftime(){
var kkk = document.getElementById('OrderKtime').value;
var jjj = document.getElementById('OrderJtime').value;
var nnn = document.getElementById('OrderRen').value;
document.getElementById('IsDay').innerHTML=DateDiff(kkk,jjj);
document.getElementById('ZongJia').innerHTML=(DateDiff(kkk,jjj))*(nnn)*(<%=v("Phymoney")%>);
document.getElementById('OrderZMoney').value=(DateDiff(kkk,jjj))*(nnn)*(<%=v("Phymoney")%>);
document.getElementById('IsNum').innerHTML=nnn;
}
</script>
<style>
.input{border:1px #ddd solid;}
</style>
</head>
<body>
<%Call Tophhh()%>
<%Call TopMenu()%>
<div id="GzUserAcct">
	<div class="fl wstitlettt"><span>提交订单</span></div>
	<div class="clear m10b m10"></div>
	<div class="fl wstitletxt"><span>Hi!在这里来提交您的订单信息，提交之后可以进行付款！<a href="UserAcct.asp">立即登录</a></span></div>
	<div class="clear m10b m10"></div>
	<div class="sconts">
		<ul><form method="post" action='' id="reg">
			<input name="OrderMoney" id="OrderMoney" value="<%=v("Phymoney")%>" type="hidden">
			<input name="OrderId" id="OrderId" value="<%=session("orderid")%>" type="hidden">
			<input name="OrderZMoney" id="OrderZMoney" value="" type="hidden">
			<li>
				<div class="lileft">预订内容：</div>
				<div class="liright"><div class="fl w300"><%=v("PTitle")%></div></div>
			</li>
			<li>
				<div class="lileft">会员价格：</div>
				<div class="liright"><div class="fl w300"><b class="fmoney20"><%=GZMONEY(v("Phymoney"))%></b>
				</div></div>
			</li>
			<li>
				<div class="lileft">预订日期：</div>
				<div class="liright"><div class="fl w300">抵达:<input name="OrderKtime" id="OrderKtime" value="" class="anniuipt" size="6">离开:<input name="OrderJtime" id="OrderJtime" value="" class="anniuipt" size="6">
				
				</div></div>
			</li>
			<script type="text/javascript">
				var picker = new Pikaday(
				{
					field: document.getElementById('OrderKtime'),
					firstDay: 1,
					minDate: new Date('2015-01-01'),
					maxDate: new Date('2020-12-31'),
					yearRange: [2000,2020]
				});
				var picker = new Pikaday(
				{
					field: document.getElementById('OrderJtime'),
					firstDay: 1,
					minDate: new Date('2015-01-01'),
					maxDate: new Date('2020-12-31'),
					yearRange: [2000,2020]
				});
			</script>
			<%If session("ordertt")=2 Then%>
			<li>
				<div class="lileft">抵达人数：</div>
				<div class="liright"><div class="fl w300">选择:<select onchange="OrderRen.value=this.value;" name="x" id="x" class="anniuipt" size="1">
				<option value="">选择</option>
				<%For i=1 To 10%><option value="<%=i%>"><%=i%></option><%next%></select>
				<input name="OrderRen" id="OrderRen" value="0" class="anniuipt" size="5">人
				</div></div>
			</li>
			
			<li>
				<div class="lileft">共计：</div>
				<div class="liright"><div class="fl w300">
				<b class="fmoney20" id="IsNum">0</b>人 
				<b class="fmoney20" id="IsDay">0</b>天  
				<b class="fmoney20" id="ZongJia"></b>元
				</div></div>
			</li>
			<%End If%>
			<%If session("ordertt")=3 Then%>
			<%w.r "/Lstalone.asp?TT=12&SS=59"%>
			<%End If%>
			<%If session("ordertt")=5 Then%>
			<%w.r "/Lstalone.asp?TT=12&SS=59"%>
			<%End If%>
			<li>
				<div class="lileft">手机号码：</div>
				<div class="liright"><div class="fl w300"><input name="OrderTel" id="OrderTel" value="<%=MYUSERINFO(session("userid"),1)%>" class="anniuipt" size="35">
				</div></div>
			</li>
			<li>
				<div class="lileft">真实姓名：</div>
				<div class="liright"><div class="fl w300"><input name="OrderName" id="OrderName" value="<%=MYUSERINFO(session("userid"),2)%>" class="anniuipt" size="35"></div></div>
			</li>
			<li>
				<div class="lileft">详细地址：</div>
				<div class="liright"><div class="fl w300"><input name="OrderAddress" id="OrderAddress" value="<%=MYUSERINFO(session("userid"),3)%>" class="anniuipt" size="35"></div></div>
			</li>
			<li>
				<div class="lileft">联系QQ：</div>
				<div class="liright"><div class="fl w300"><input name="OrderQQ" id="OrderQQ" value="<%=MYUSERINFO(session("userid"),4)%>" class="anniuipt" size="12">
				<img height="0" id="code" src="ImageCode.asp"/></div></div>
			</li>
			<%If session("ordertt")=2 Then%>
			<li>
				<div class="lileft"></div>
				<div class="liright"><input id="suborder" class="anniusub" onmouseover="difftime();" name="s" type="button" value="  提交线路订单  "></div>
			</li>
			<%End If%>
			<%If session("ordertt")=3 Then%>
			<li>
				<div class="lileft"></div>
				<div class="liright"><input id="subjingorder" class="anniusub" onmouseover="difftime();" name="s" type="button" value="  马上预订门票  "></div>
			</li>
			<%End If%>
			<%If session("ordertt")=5 Then%>
			<li>
				<div class="lileft"></div>
				<div class="liright"><input id="subcarorder" class="anniusub" onmouseover="difftime();" name="s" type="button" value="  马上提交租车  "></div>
			</li>
			<%End If%>
			</form>
		<ul>
	</div>
</div>
<%Call ShowEnd()%>
<!-------提示信息------>
<div id="opencontid" class="opencontone MiaoIn05s bottomInDown">
	<div class="stitlesx">
		<h1>提示信息<span id="miao" class="fbai">3</span></h1>
		<div class="mores"><a href="##" onclick="document.getElementById('opencontid').style.display='none';document.getElementById('openbgid').style.display='none'"><font size="" color="#ff0000">关闭</font></a></div>
	</div>
	<div class="sconts f16 fyahei fred" id="errmessage"></div>
</div> 
<div id="openbgid" class="openbgone"></div>
</body>
</html>