📄 order_ticket.asp
字号:
<%dbdns="../"%>
<!--#include file="../conn.asp"-->
<!--#include file="../Config.asp"-->
<%
session("FromTicket_userconfirm")="true"
session("PNR")=""
session("ordertimes")=1 '下订单的次数,防此反复提交数据
set rs=server.createobject("adodb.recordset")
mem_login=trim(request.Cookies("mem_login"))
if request.cookies("mem_login")<>"" then
sql="select mem_name,mem_Email,mem_both,mem_tel,mem_mobile,mem_addr,mem_zip from tmember where mem_loginname = '"&mem_login&"'"
rs.open sql,conn,1,3
if not rs.eof then
order_customer=rs("mem_name")
order_email=rs("mem_Email")
order_telephone=rs("mem_tel")
order_mobile=rs("mem_mobile")
order_address=rs("mem_addr")
order_postcode=rs("mem_zip")
end if
rs.close
else
'call msginfor("对不起您还未登陆,请登陆后预定!","register/login.asp")
end if
id_back=request.form("id_back")
id_third=request.form("id_third")
isreturn=request.form("isreturn") '标志变量,判断是否是往返程
'去程
price_bak0=request.form("order_price") '票价
fullprice0=request.form("fullprice") '全价
bunk_bak0=request.form("order_bunk") '舱位
rebate_bak0=request.form("order_rebate") '舱位名称
planeType0=request.form("planeType") '机型
'''state10=request.form("order_state")
flightno0=request.form("order_flightno") '航班号
timefrom0=request.form("order_timefrom") '起飞时间
timeto0=request.form("order_timeto") '到达时间
dining0=request.form("order_dining") '餐
QueryDate0=request.form("order_date") '起飞日期
city_from0=request.form("city_from")
city_to0=request.form("city_to")
msg_back0=request.form("msg_back") '电子票
ZXLCityFlyCode0=request.form("ZXLCityFlyCode") '来去城市三支代码
city_fromcode0=request.form("city_fromcode")
city_tocode0=request.form("city_tocode")
sortfly0 = request.form("sortfly") '舱位+折扣
jianshefei0=request.Form("jianshefei") '建设费
if jianshefei0="" then
jianshefei0=50
end if
distance0=request.Form("distance") '里程
gasTaxPrice0=request.Form("gasTaxPrice") '燃油附加
if gasTaxPrice0="" then
gasTaxPrice0=80
end if
pricen0=cint(price_bak0)+cint(jianshefei0)+cint(gasTaxPrice0)
sumAllFee0=pricen0
''''=============lyq 2007-3-19'供应商信息
bunkseat0=request.Form("bunkseat") '特价来源
providercode0=request.Form("providercode")
fandian0=request.Form("fandian") '返点
backmoney0=request.Form("backmoney") '返利
limitif0=request.Form("limitif") '条件限制
ticketgrade0=request.form("ticketgrade") '票别
qian_zhu0=request.form("qian_zhu") '签注
special0=request.Form("special") '特殊项
'----------------------
airways0=request.form("airways") '航空公司
adultNum=request.form("adultNum") '成人数
ChildNum=request.form("ChildNum") '儿童数
BabyNum=request.form("babyNum") '婴儿数
Cfullprice0=trim(fullprice0)*0.5 '儿童价
Bfullprice0=trim(fullprice0)*0.1 '婴儿价
order_co0=left(flightno0,2)
content="CZ,HU,CA,MU,3U,ZH,MF,FM,SC"
IF instr(content,order_co0)=0 then
order_co0="all"
end if
%>
<%if id_back<>"" then
fullprice1=request.form("fullprice1")
price_bak1=request.form("order_price1") '价位
bunk_bak1=request.form("order_bunk1")
rebate_bak1=request.form("order_rebate1")
'''num1=request.form("order_num1")
flightno1=request.form("order_flightno1")
timefrom1=request.form("order_timefrom1")
timeto1=request.form("order_timeto1")
'''state11=request.form("order_state1")
dining1=request.form("order_dining1")
QueryDate1=request.form("order_date1")
city_from1=request.form("city_from1")
city_to1=request.form("city_to1")
msg_back1=request.form("msg_back1")
airways1=request.form("airways1")
planeType1=request.form("planeType1")
ZXLCityFlyCode1=request.form("ZXLCityFlyCode1")
city_fromcode1=request.form("city_fromcode1")
city_tocode1=request.form("city_tocode1")
jianshefei1=request.Form("jianshefei1")
if jianshefei1="" then
jianshefei1=50
end if
distance1=request.Form("distance1")
gasTaxPrice1=request.Form("gasTaxPrice1")
if gasTaxPrice1="" then
gasTaxPrice1=80
end if
Cfullprice1=trim(fullprice1)*0.5
Bfullprice1=trim(fullprice1)*0.1
pricen1=cint(price_bak1)+cint(jianshefei1)+cint(gasTaxPrice1)
''''=============lyq 2007-3-19'供应商信息
bunkseat1=request.Form("bunkseat1")
providercode1=request.Form("providercode1")
fandian1=request.Form("fandian1")
backmoney1=request.Form("backmoney1")
limitif1=request.Form("limitif1")
ticketgrade1=request.form("ticketgrade1")
qian_zhu1=request.form("qian_zhu1")
special1=request.Form("special1")
'----------------------
sumAllFee1=pricen1
order_co1=left(flightno1,2)
' content="CZ,HU,CA,MU,3U,ZH,MF,FM,SC"
IF instr(content,order_co1)=0 then
order_co1="all"
end if
if order_co1<>order_co0 then
errclose("对不起,往返程或联程预订,需选择同一航空公司.")
end if
end if
%>
<%if id_third<>"" then
fullprice2=request.form("fullprice2")
price_bak2=request.form("order_price2") '价位
bunk_bak2=request.form("order_bunk2")
rebate_bak2=request.form("order_rebate2")
'''num2=request.form("order_num2")
flightno2=request.form("order_flightno2")
timefrom2=request.form("order_timefrom2")
timeto2=request.form("order_timeto2")
'''state12=request.form("order_state2")
dining2=request.form("order_dining2")
QueryDate2=request.form("order_date2")
city_from2=request.form("city_from2")
city_to2=request.form("city_to2")
msg_back2=request.form("msg_back2")
airways2=request.form("airways2")
planeType2=request.form("planeType2")
ZXLCityFlyCode2=request.form("ZXLCityFlyCode2")
city_fromcode2=request.form("city_fromcode2")
city_tocode2=request.form("city_tocode2")
jianshefei2=request.Form("jianshefei2")
distance2=request.Form("distance2")
gasTaxPrice2=request.Form("gasTaxPrice2")
Cfullprice2=trim(fullprice2)*0.5
Bfullprice2=trim(fullprice2)*0.1
pricen2=cint(price_bak2)+cint(jianshefei2)+cint(gasTaxPrice2)
sumAllFee2=pricen2
order_co2=left(flightno2,2)
' content="CZ,HU,CA,MU,3U,ZH,MF,FM,SC"
IF instr(content,order_co2)=0 then
order_co2="all"
end if
if order_co2<>order_co0 then
errclose("对不起,往返程或联程预订,需选择同一航空公司.")
end if
end if
%>
<HTML>
<HEAD>
<TITLE>填写乘客信息 </TITLE>
<style type="text/css">
<!--
.font_red {color: #FF0000}
td {
font-family: "宋体", "Arial";
font-size: 9pt;
text-decoration: none;
}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function change(obj){
var obj1=eval('document.all.'+obj+'Kof');
//alert(obj1);
var obj2=eval('document.form1.'+obj+'Num');
//alert(obj2);
obj1.innerHTML = '<strong>>>成人</strong><br>';
if (obj2.value==""||obj2.value=="0") { return false;}
var order_num=obj2.value;
for(var i=1;i<=order_num;i++) {
obj1.innerHTML +='姓名'+i+'<font color="red"> * </font><input type=text name="'+obj+'name'+i+'" style="width:80px" maxlength=18> 证件号<font color="red"> * </font><input type=text name='+obj+'Cid'+i+' style="width:130px" maxlength="18"> 证件类型<select name='+obj+'Notype'+i+'><option value="NI">身份证</option><option value="PP">护照</option><option value="ID">其它</option></select> 保险数<select name='+obj+'baoxian'+i+'><option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option></select><br>';
}
}
function changeChild(obj){
var obj1=eval('document.all.'+obj+'Kof');
//alert(obj1);
var obj2=eval('document.form1.'+obj+'Num');
//alert(obj2);
obj1.innerHTML = '';
if (obj2.value==""||obj2.value=="0") { return false;}
var order_num=obj2.value;
obj1.innerHTML+="<strong>>>";
if(obj=="Child")
{obj1.innerHTML+="儿童</strong><br>";
for(var i=1;i<=order_num;i++) {
obj1.innerHTML +='姓名'+i+'<font color="red"> * </font><input type=text name="'+obj+'name'+i+'" style="width:80px" maxlength=18> 出生年月<font color="red"> * </font><input type=text name='+obj+'born'+i+' size=12 maxlength=10 onClick="javascript:calendar();"><strong> 如:1992-02-03</strong> 是否买保险<input type=checkbox name='+obj+'baoxian'+i+' value="1"><br>';
}}
else
{obj1.innerHTML+="婴儿</strong><br>";
for(var i=1;i<=order_num;i++) {
obj1.innerHTML +='姓名'+i+'<font color="red"> * </font><input type=text name="'+obj+'name'+i+'" style="width:80px" maxlength=18> 出生年月<font color="red"> * </font><input type=text name='+obj+'born'+i+' size=12 maxlength=10 onClick="javascript:calendar();"><strong> 如:1992-02-03</strong> 是否买保险<input type=checkbox name='+obj+'baoxian'+i+' value="1"><br>';
}}
}
function forCid(strCid)
{
var myReg = /^[A-Z0-9]{1,19}$/;
if(myReg.test(strCid))
return true;
else
{
alert("证件号必须为数字和大写字母,请重新输入!");
return false;
}
}
function isCid(s)
{ return true;}
function IsMobile(str){
var strer=/^0{0,1}1{1}(3[0-9]{1}|59)[0-9]{8}$/;
if (strer.test(str))
return true;
else
return false;
}
function check(){
var retel=new RegExp("(^[0-9]{3,4}\-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)", "i");
var adultNum =parseInt(form1.AdultNum.value);
var childNum =parseInt(form1.ChildNum.value);
var babyNum =parseInt(form1.BabyNum.value);
var totalnum=adultNum+childNum+babyNum;
if ( babyNum > 1){
alert("对不起,每次订单只能带一个婴儿!");
return false;
}
var name,cid,name2,name3;
var i=1;
while(i<adultNum+1){
name=document.all("AdultName"+i);
cid=document.getElementById("AdultCid"+i);
baoxian=document.getElementById("Adultbaoxian"+i);
i++;
if (name.value==""){
alert("乘机人姓名不能为空!");
name.focus();
return false;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -