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

📄 default2.asp

📁 机票预定系统 各个模块的设计-ticket reservation systems detailed design system modules of the design
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<HTML><HEAD><TITLE>机票系统</TITLE>
<!--#include file="Conn.asp"-->
<!--#include file="Config.asp"-->
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.3790.0" name=GENERATOR>
<style type="text/css">
<!--
.STYLE1 {	font-size: 14px;
	font-family: Geneva, Arial, Helvetica, sans-serif;
}
.STYLE2 {font-family: Geneva, Arial, Helvetica, sans-serif}
-->
</style>
<LINK href="images_index2/css.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="images_index2/address.js"></SCRIPT>
<SCRIPT language=javascript src="images_index2/city.js"></SCRIPT>
<SCRIPT language=javascript src="js/calendar.js"></SCRIPT>
<!--<SCRIPT language=javascript src="images_index2/zuanhuan.js"></SCRIPT>-->
<SCRIPT language=javascript>
function SelectDate(form,obj) 
{ 
var obj = eval("document."+form+"."+obj); 
result = window.showModalDialog('time.asp?action=showdate','','help:no;status: no;dialogWidth=184px;dialogHeight=220px');
if (result!=null) { obj.value = result.day; 
} 
}


function confimendcity(){
  if(document.dcform.startcity.value == ""){
    alert("您还没有选择相关出发城市,请先选择!");
	document.dcform.startcity.focus();
    return false;
  }
  if(document.dcform.dcstartdate.value == ""){
    alert("您还没有选择出发日期,请先选择!");
	document.dcform.dcstartdate.focus();
    return false;
  }
  if(document.dcform.endcity.value == ""){
    alert("您还没有选择相关到达城市,请先选择!");
	document.dcform.endcity.focus();
    return false;
  }
  if(document.dcform.endcity.value == document.dcform.startcity.value){
    alert("出发城市和到达城市不能相同,请更正!");
	document.dcform.endcity.focus();
    return false;
  }
  if(!isdate(document.dcform.dcstartdate.value)){
  alert("出发日期不是一个合法的日期,请更正,正确时间格式:YYYY-MM-DD");
  document.dcform.dcstartdate.focus();
  return false;
  }
  if(todate(document.dcform.dcstartdate.value) < todate(document.dcform.today.value)){
     alert("出发日期不能小于现在日期,请检查重输!");
	 document.dcform.dcstartdate.focus();
     return false;
   }

  //对往返程进行验证
  if(document.dcform.radio.value == "2"){
    if(document.dcform.fcdate.value == ""){
      alert("您还没有输入返程日期,请输入(日期格式:YYYY-MM-DD)!");
	  document.dcform.fcdate.focus();
      return false;
    }
    if(!isdate(document.dcform.fcdate.value)){
      alert("返程日期不是一个合法的日期,请更正,正确时间格式:YYYY-MM-DD");
	  document.dcform.fcdate.focus();
      return false;
    }
    if(todate(document.dcform.fcdate.value) < todate(document.dcform.today.value)){
     alert("返程日期不能小于现在日期,请检查重输!");
	 document.dcform.fcdate.focus();
     return false;
   }
   if(todate(document.dcform.fcdate.value) < todate(document.dcform.dcstartdate.value)){
     alert("返程日期不能小于出发日期,请检查重输!");
	 document.dcform.fcdate.focus();
     return false;
   }
  }
  //对联程进行验证
  if(document.dcform.radio.value == "3"){
    if(document.dcform.zzendcity.value == ""){
      alert("您还没有选择中转城市,请选择!");
	  document.dcform.zzendcity.focus();
      return false;
    }
    if(document.dcform.zzrq.value == ""){
      alert("您还没有输入返程日期,请输入(日期格式:YYYY-MM-DD)!");
	  document.dcform.zzrq.focus();
      return false;
    }
    if(!isdate(document.dcform.zzrq.value)){
      alert("返程日期不是一个合法的日期,请更正,正确时间格式:YYYY-MM-DD");
	  document.dcform.zzrq.focus();
      return false;
    }
    if(todate(document.dcform.zzrq.value) < todate(document.dcform.today.value)){
     alert("返程日期不能小于现在日期,请检查重输!");
	 document.dcform.zzrq.focus();
     return false;
   }
   if(todate(document.dcform.zzrq.value) < todate(document.dcform.dcstartdate.value)){
     alert("返程日期不能小于出发日期,请检查重输!");
	 document.dcform.zzrq.focus();
     return false;
   }
  }
  document.dcform.submit();
}
</SCRIPT>
</HEAD>
<BODY leftMargin=0 
topMargin=0 marginheight="0" marginwidth="0">
<table cellspacing=0 cellpadding=0 border=0>
  <tbody>
    <tr>
      <td valign=top>&nbsp;</td>
      <td valign=top>
        <table id=gnTable cellspacing=0 cellpadding=0 width=368 
                        align=center border=0>
		<form name=dcform action="searching.asp" method=post target=_blank>
        <input type="hidden" name="TestCustomerID" value="<%=TestCustomerID%>">
        <input type="hidden" name="userpassword" value="<%=userpassword%>">
        <input name="Istrue" type="hidden" id="Istrue" value="0">
        <input name="order_flag" type="hidden" id="order_flag" value="0">
		<input type="hidden" name="filename" value="<%=request.ServerVariables("SCRIPT_NAME")%>">
          <tbody>
            <tr>
              <td width=9><img height=38 
                              src="images_index2/bian-11.gif" 
                              width=9></td>
              <td style="CURSOR: hand" width=359><img 
                              id=gn_spanIdA height=38 
                              src="images_index2/gljp0.gif" 
                              width=105><img id=gn_spanIdB height=38 
                              src="images_index2/gjjp1.gif" 
                              width=114><img height=38 
                              src="images_index2/bian-12.gif" 
                              width=140></td>
            </tr>
            <tr>
              <td 
                            background="images_index2/bian-13.gif" 
                            colspan=4><table cellspacing=0 cellpadding=0 width="90%" 
                              align=center border=0>
                <tbody>
                  <tr>
                    <td colspan=2> 
                      <input onClick=showfancheng() 
                                type=radio checked value=1 name=radio>
                            <font 
                                color=#8e863e>单 程</font>   
                      <input 
                                onClick=showvfancheng() type=radio value=2 
                                name=radio>
                            <font color=#8e863e>往 返    </font></td>
                  </tr>
                  <tr>
                    <td 
                                background="images_index2/xian3.gif" 
                                colspan=2 height=17></td>
                  </tr>
                  <tr>
                    <td class=tp width="53%">出发城市
                      <select name=startcity01 id="startcity01" 
                                style="WIDTH: 100px">
                              <option 
                                value=SZX selected>S深圳</option>
                              <script> document.write(citystr)</script>
                            </select>
                    </td>
                    <td class=tp width="47%"><div align="center">出发日期 <span class="zi12h">
                     <input name="StrDate01" type="text" style="width:86px" value="<%=date()+1%>" id="StrDate01" onClick="javascript:calendar();"  readonly>
                    </span> </div></td>
                  </tr>
                  <tr>
                    <td class=tp 
                                background="images_index2/xian3.gif" 
                                colspan=2 height=17></td>
                  </tr>
                  <tr>
                    <td class=tp>到达城市
                      <select 
                                name=EndCity01 id="EndCity01" style="WIDTH: 100px">
                              <option value="CSX" 
                                selected>C长沙</option>
                              <script> document.write(citystr)</script>
                          </select></td>
                    <td class=tp id=fcrq style="DISPLAY: none"><div align="center">返程日期
                      <input name=strDate03 id=strDate03 style="WIDTH:86px"
onClick="javascript:calendar();" value="" readonly>
                    </div></td>
                  </tr>
                  <tr>
                    <td class=tp 
                                background="images_index2/xian3.gif" 
                                colspan=2 height=17></td>
                  </tr>
                  <tr>
                    <td colspan=2 height=10><table cellspacing=0 cellpadding=0 width="100%" 
                                border=0>
                      <tbody>
                        <tr>
                          <td align="center">
                            <input style="CURSOR: hand" type=image 
                        height=21 alt="[机票酒店实时查询] 查询系统与民航系统对接,覆盖大部分国内国际航线" 
                        width=81 
                        src="images_index2/bottom.gif" 
                        name=image222></td>
                          </tr>
                      </tbody>
                    </table></td>
                  </tr>
                </tbody>
              </table></td>
            </tr>
            <tr>
              <td colspan=4 height=16><img height=16 
                              src="images_index2/di-5.gif" 
                              width=368></td>
            </tr>
          </tbody></form>
        </table>
      
          
            <table id=gjTable style="DISPLAY:none; " cellspacing=0 
                        cellpadding=0 width=368 align=center border=0>
		<form  action="searching.asp" method="post" name=gjform>
            <input type="hidden" name="TestCustomerID2" value="<%=TestCustomerID%>">
            <input type="hidden" name="userpassword" value="<%=userpassword%>">
            <input name="Istrue" type="hidden" id="Istrue" value="0">
            <input name="order_flag" type="hidden" id="order_flag" value="0">
			<input type="hidden" name="filename" value="<%=request.ServerVariables("SCRIPT_NAME")%>">
              <tbody>
                <tr>
                  <td><img height=38 
                              src="images_index2/bian-11.gif" 
                              width=9></td>
                  <td style="CURSOR: hand"><img id=gj_spanIdA 
                              height=38 
                              src="images_index2/gljp1.gif" 
                              width=105><img id=gj_spanIdB height=38 
                              src="images_index2/gjjp0.gif" 
                              width=114><img height=38 
                              src="images_index2/bian-12.gif" 
                              width=140></td>
                </tr>
                <tr>
                  <td 
                            background="images_index2/bian-13.gif" 
                            colspan=4><table cellspacing=0 cellpadding=0 width="90%" 
                              align=center border=0>
                      <tbody>
                        <tr>
                          <td colspan=2> 
                            <input onClick=gjdancheng() 
                                type=radio checked value=1 name=radio>
                              <font 
                                color=#8e863e>单 程</font>   
                            <input 
                                onClick=gjwangfan() type=radio value=2 
                                name=radio>
                              <font color=#8e863e>往 返    </font></td>
                        </tr>
                        <tr>
                          <td 
                                background="images_index2/xian3.gif" 
                                colspan=2 height=17></td>
                        </tr>
                        <tr>
                          <td class=tp width="53%">出发城市
                            <select name=startcity01 id="startcity01" 
                                style="WIDTH: 100px">
                                <option 
                                value=SZX selected>S深圳</option>
                                <script> document.write(citystr)</script>
                            </select>
                          </td>
                          <td class=tp width="47%"><div align="center">出发日期 <span class="zi12h">
                              <input name="StrDate01" type="text" style="WIDTH:86px"  value="<%=date()+1%>" id="StrDate01" onClick="javascript:calendar();" readonly >
                          </span></div></td>
                        </tr>
                        <tr>
                          <td class=tp 
                                background="images_index2/xian3.gif" 
                                colspan=2 height=17></td>
                        </tr>
                        <tr>
                          <td class=tp>到达城市
                            <select id=select 
                                style="WIDTH: 100px" name=EndCity01>
                              <option 
                                value=AKU>A 阿克苏</option>
                              <option value=HDQ>A 亚特兰大</option>
                              <option value=AMS>阿姆斯特丹</option>
                              <option value=ATH>A 雅典</option>
                              <option 
                                value=BWI>B 巴尔的摩</option>
                              <option value=BKK>B 曼谷</option>
                              <option value=SXF>B 柏林</option>
                              <option 
                                value=BOM>B 孟买</option>
                              <option value=BOS>B 波士顿</option>
                              <option value=BSB>B 巴西利亚</option>
                              <option value=BNE>B 布里斯班</option>
                              <option 
                                value=BRU>B 布鲁塞尔</option>
                              <option value=BUD>B 布达佩斯</option>
                              <option value=BUE>B 布宜诺斯艾利斯</option>
                              <option value=CAI>C 开罗</option>
                              <option value=CTU>C 成都</option>
                              <option 
                                value=ORD>C 芝加哥</option>
                              <option value=CPH>C 哥本哈根</option>
                              <option value=DFW>D 达拉斯</option>

⌨️ 快捷键说明

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