⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 order_ticket.asp

📁 机票预定系统 各个模块的设计-ticket reservation systems detailed design system modules of the design
💻 ASP
📖 第 1 页 / 共 3 页
字号:
    }
else if(!ck_name(name.value)){
      alert("乘机人姓名输入有误,请重新输入\n如果是英文姓名,请参照以下格式\nFamily Name/Name");
	   name.focus();
      return false;
    }
 else if (cid.value== ""){
      alert("乘机人证件号不能为空!");
      cid.focus();
      return false;
    }
	else if (!isCid(cid.value))
    	{
       		alert("证件号格式错误\n必须为数字或字母!");	  
		cid.focus();
       		return false; 
     	} 	
	else if (cid.value.length !=4&&cid.value.length !=5&&cid.value.length !=6&&cid.value.length !=7&&cid.value.length !=8&&cid.value.length !=9&&cid.value.length !=10&&cid.value.length !=11&&cid.value.length !=12&&cid.value.length !=13&&cid.value.length !=14&&cid.value.length !=15&&cid.value.length !=18 ) {
                alert("证件号必须为数字和大写字母!身份证号必须为15位或18位!")
                cid.focus();
                return false;
        }
	else if (!forCid(cid.value)) {
	 cid.focus();
 	 return false;

  }
  }
 
 i=1;
  while(i<=childNum){
  name2=document.all("ChildName"+(i));
  
    if (name2.value == ""){
      alert("乘机人姓名不能为空!");
      name2.focus();
      return false;
    }
born=document.all("ChildBorn"+(i));
 if(born.value==""){
        alert("乘机人出生日期不能为空");
		born.focus();
        return false;
      }
	  if(!isDateString(born.value)){
      alert("请输入正确的日期格式\nYYYY-MM-DD");
	  born.focus();
      return false;
    }
	i++;
  }
  
i=1;
while(i<=babyNum){
name3=document.all("BabyName"+(i));

    if (name3.value ==""){
      alert("乘机人姓名不能为空!");
      name3.focus();
      return false;
    }
born=document.all("BabyBorn"+(i));
 if(born.value==""){
        alert("乘机人出生日期不能为空");
		born.focus();
        return false;
      }
	  if(!isDateString(born.value)){
      alert("请输入正确的日期格式\nYYYY-MM-DD");
	  born.focus();
      return false;
    }
i++;
  }


 if(form1.customer.value==""){
  alert("联系人姓名不能为空!");
  form1.customer.focus();
  return false;
 }
  if(form1.telephone.value==""){
  alert("联系人电话不能为空!");
  form1.telephone.focus();
  return false;
 }
 if(form1.telephone.value.length<7){
  alert("联系人电话格式不对!如:075526423500或26423500");
  form1.telephone.focus();
  return false;
 }
 if (!IsMobile(form1.mobile.value)){
 	alert("请输入手机号码");
	form1.mobile.focus();
	return false;
 }
 return true;
}
/**
* 检查输入的姓名是否中文
*/
function ck_name(tt) {
  var errdetect=true;
  var hz=0;
  len=tt.length;
  if (len > 0){
    dd = escape(tt.charAt(0));
    if (dd.length<=3){hz=0;}else{hz=1;}
    for (i=0; i<len; i++){
      dd = escape(tt.charAt(i));
       if (dd.length<=3){
         if (hz==0){if(parseInt(dd)){errdetect=false;break;}}
         if (hz==1){errdetect=false;break;}
       }
       else{
        if (hz==0){errdetect=false;break;}
       }
    }
    if ((errdetect)&&(hz==0)){
      if(tt.length<5){errdetect=false;return false;}
      indexg = tt.indexOf("/");
      if (indexg!=-1){errdetect=true;}
      else{errdetect=false;}
    }
  }
  else {
    errdetect=false;
  }
  return errdetect;
}

//-->
</script>
<SCRIPT language=javascript src="../js/calendar.js"></SCRIPT>
<script language="javascript" src="js/public.js"></script>
</HEAD>
<body bgcolor="#FFFFFF" margin="0" >
<!--#include file="../top.asp"-->
<HR align=center width=750 color="#c4cdff">
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" >
  <form name="form1" method='post' action='order_pro.asp' onSubmit="return check()"> 
  <tr>
    <td width="173" rowspan="3" align="center" valign="top" bgcolor="D7DCE8">
      <br><br> 
<table width="169" border="0" cellspacing="2" cellpadding="2" align="center">
              <tr> 
                <td colspan="2"> 
                  <div align="center" class="px14"><img src="smallPic/index_46.gif" width="26" height="21" align="absmiddle"><font color="#000099"><b>已经选择航班的信息</b></font></div>
                </td>
              </tr>
        </table>
	<table width="168" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr> 
                <td><img src="smallPic/icon_demandtop.gif" width="168" height="12"></td>
              </tr>
			  <tr>
			  <td><!--#include file="order_left.asp"--></td>
			  </tr>
              <tr> 
                <td><img src="smallPic/icon_demanddown.gif" width="168" height="12"></td>
              </tr>
          </table>
        </div>
        <br><br>
      </td>
  <td width="5" rowspan="3" valign="top">&nbsp;</td>
      <td width="598" align="left" valign="top">
        <table width="95%" border="0" cellspacing="3" cellpadding="5">
          <tr>
            <td><font color="#FF6600" size="4"><strong>乘机人信息</strong></font></td>
            <td align="right" class="pageHeading"><img src="smallPic/index_newguidebuy3.gif" ></td>
          </tr>
        </table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5%"><input onClick='showmm(tishi);' name=openclose type=checkbox id=openclose3 value=checkbox title=我同意接受本站预订须知内条款>      <br></td>
    <td width="95%"><a href="#" onClick='showmm(tishi);'><strong>预订前请点这里查看并同意预订须知</strong></a></td>
  </tr>
</table>



     <TABLE cellSpacing="1" cellPadding="0" width="100%" border="1" id=tishi style='display:none'>
          <TR align="middle">
            <TD align="left" width="80%" bgColor="#ffffff" colSpan="4" height="32"><TABLE width="100%" border="0" cellPadding="3" cellSpacing="1" bgcolor="EFF3F7">
                  <TR><TD vAlign="top">*</TD>
                  <TD>英文姓名请按护照排列填写,姓和名必须有“/”号隔开,格式为:姓/名,例:chen/yumin。</TD>
                  </TR>
                  <TR>
                    <TD vAlign="top">*</TD>
                    <TD>若中文姓名中有生僻或繁体字,请输入该字拼音,如李(王月),为李yue。</TD>
                  </TR>
                  <TR>
                    <TD vAlign="top">*</TD>
                    <TD>儿童和婴儿证件号码:请按照年月日(2002/05/24)格式填写,登机时带上出生证明即可。国内机票:儿童票价为50%,指2岁周以上,12周岁以内儿童;婴儿票价10%票价,指二周岁以内的婴儿。(儿童和婴儿票需由本公司专业人员预订,客户提供相关信息即可)</TD>
                  </TR>
                  <TR>
                    <TD vAlign="top">*</TD>
                    <TD><span class="font_red">必须用登机人有效证件及证件用户名提交订单</span>,否则将无法登机,所造成的损失由预订人自行承担。</TD>
                  </TR>
                  <TR>
                    <TD vAlign="top">*</TD>
                    <TD><span class="font_red">请您留下能及时联系的正确联系方式</span>,否则订单将被视为无效,客服将作取消处理。造成的后果、责任由客户自负。</TD>
                  </TR>
                  <TR>
                    <TD vAlign="top">*</TD>
                    <TD><span class="font_red">请勿提交重复订单</span>(同一登机人相同时间段两张以上订单)。因订单重复,所产生的退票款项将由预订人全额承担。</TD>
                  </TR>
                  <TR>
                    <TD vAlign="top">*</TD>
                    <TD>选择好乘机人数后请不要随便更改,否则可能造成您填写的数据丢失。</TD>
                  </TR>
            </TABLE></TD>
          </TR>
      </TABLE>
	  <br>
	    
		
		
		<table border="0" cellspacing="0" cellpadding="0" height="22" background="smallPic/index_55.gif" width="100%">
        <tr>
           <td width="29" height="20">
             <img src="smallPic/index_no1.gif" width="29" height="20">
           </td>
           <td class="secHeading" valign="top">乘机人信息</td>
            <td align="right" valign="top" class="secHeading"><span class="font_red">注意:必须用登机人有效证件及证件用户名提交订单,否则将无法登机。</span></td>
         </tr>
       </table>
	<table width="100%" border="0" cellspacing="2" cellpadding="2">  
	<tr>
            <td bgcolor="EFF3F7"> <strong>乘机人数</strong>: 
			&nbsp;&nbsp;成人
              <select name="AdultNum" id="AdultNum" onChange="change('Adult');">
	     <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><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option>
             </select>
             &nbsp;&nbsp;儿童
             <select name="ChildNum" id="ChildNum" onChange="changeChild('Child');">
              <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><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option>
              </select>
             &nbsp;&nbsp;婴儿
            <select name="BabyNum" id="BabyNum" onChange="changeChild('Baby');">
            <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><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option>
            </select></td>
        </tr></table>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
   <tr>
    <td class='px14'>     
	<table width='100%' border='0' cellpadding='2' cellspacing='2'>
            <tr>
              <td  id=AdultKof>
			  <script language="javascript">change('Adult');</script>
			   </td>
            </tr>
		<tr>
        <td id="ChildKof">
		<script language="javascript">changeChild('Child');</script>
		</td>
      </tr>
	  <tr>
          <td  id="BabyKof">	
		  <script language="javascript">changeChild('Baby');</script>
          </td>
        </tr>
      </table>

</td></tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -