📄 default.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="client_infor.asp"-->
<HTML><HEAD><TITLE>机票系统</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="css.css" type=text/css rel=stylesheet>
<script language="javascript" src="js/public.js"></script>
<SCRIPT language=javascript src="js/calendar.js"></SCRIPT>
<SCRIPT language=javascript src="js/address.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;dialogleft=400px');
if (result!=null) { obj.value = result.day;
}
}
function CheckPara(strform){
if(strform.EndCity01.value == strform.StartCity01.value){
alert("出发城市和到达城市不能相同,请更正!");
strform.EndCity01.focus();
return false;
}
if(!isDateString(strform.StrDate01.value)){
alert("出发日期不是一个合法的日期,请更正,正确时间格式:YYYY-MM-DD");
strform.dcstartdate.focus();
return false;
}
if(stringToDate(strform.StrDate01.value) < stringToDate(strform.today.value)){
alert("出发日期不能小于现在日期,请检查重输!");
strform.StrDate01.focus();
return false;
}
//对往返程进行验证
if(strform.radio[1].checked){
if(strform.StrDate03.value == ""){
alert("您还没有输入返程日期,请输入(日期格式:YYYY-MM-DD)!");
strform.StrDate03.focus();
return false;
}
if(!isDateString(strform.StrDate03.value)){
alert("返程日期不是一个合法的日期,请更正,正确时间格式:YYYY-MM-DD");
strform.StrDate03.focus();
return false;
}
if(stringToDate(strform.StrDate03.value) < stringToDate(strform.today.value)){
alert("返程日期不能小于现在日期,请检查重输!");
strform.StrDate03.focus();
return false;
}
if(stringToDate(strform.StrDate03.value) < stringToDate(strform.StrDate01.value)){
alert("返程日期不能小于出发日期,请检查重输!");
strform.StrDate03.focus();
return false;
}
}
return true;
}
</SCRIPT>
</HEAD>
<BODY>
<table id=gnTable cellspacing=0 cellpadding=0 width=400 align=center border=0 style="DISPLAY: block;">
<form name=dcform action="searching.asp" method=post onSubmit="return CheckPara(this)" target="_blank">
<input type="hidden" name="filename" value="<%=request.ServerVariables("SCRIPT_NAME")%>">
<input name="CustomerCode" type="hidden" value="">
<input name="userpsd" type="hidden" value="">
<input name="today" type="hidden" value="<%=date()%>">
<tr background="images_index/top_2.gif">
<td width="108" background="images_index/top_2.gif"><img src="images_index/top_1.gif" width="15" height="11"></td>
<td width="100" background="images_index/top_2.gif"></td>
<td width="192" align="right" background="images_index/top_2.gif"><img src="images_index/top_3.gif" width="14" height="11"></td>
</tr>
<tr>
<td colspan=3 align="right" background="images_index/index_yellowbg.gif">
<table cellspacing=0 cellpadding=0 width="100%" align=center border=0 class="lrborder">
<tr>
<td height="25" colspan="4" background="images_index/index_timequery3.gif"><img src="images_index/index_yellowniu1.gif" width=108 height=26 id=gn_spanIdA><span class="tabb" style="CURSOR: hand"><img src="images_index/index_yellowniu2.gif" width=99 height=26 id=gn_spanIdB></span></td>
</tr>
<tr>
<td height="25" align="center"></td>
<td><input onClick=showfancheng() type=radio checked value=1 name="radio">
<span class="font_radio">单 程</span></td>
<td width="48%" colspan="2"><input onClick=showvfancheng() type=radio value=2 name="radio">
<span class="font_radio">往 返</span></td>
</tr>
<tr>
<td width="22%" height="25" align="center" class=tp>出发城市 </td>
<td width="30%" class=tp><select name=StartCity01 id="StartCity01" style="WIDTH: 120px">
<option value="<%=tmp(40)%>" selected><%=tmp(41)%></option>
<script> document.write(citystr)</script>
</select></td>
<td colspan="2" class=tp> 出发日期
<input name="StrDate01" type="text" style="width:86px" value="<%=date()+1%>" id="StrDate01" onClick="SelectDate('dcform','StrDate01')" readonly></td>
</tr>
<tr>
<td height="25" align="center" class=tp>到达城市 </td>
<td class=tp><select name="EndCity01" id="EndCity01" style="WIDTH: 120px">
<option value="<%=tmp(42)%>" selected><%=tmp(43)%></option>
<script> document.write(citystr)</script>
</select></td>
<td colspan="2">
起飞时间
<select name="time01" id="time01">
<option value="" selected>全天</option>
<option value=6:00>6:00以后</option>
<option value=8:00>8:00以后</option>
<option value=10:00>10:00以后</option>
<option value=12:00>12:00以后</option>
<option value=14:00>14:00以后</option>
<option value=16:00>16:00以后</option>
<option value=18:00>18:00以后</option>
<option value=20:00>20:000以后</option>
<option value=22:00>22:00以后</option>
</select>
</td>
</tr>
<tr>
<td height="25" align="center" class=tp>航空公司 </td>
<td class=tp><select id="airlineCode01" name="airlineCode01">
<option value="">不限</option>
<option value="ZH">深圳航空公司</option>
<option value="HO">上海吉祥航空</option>
<option value="BK">奥凯航空公司</option>
<option value="KN">中国联合航空公司</option>
<option value="8C">东星航空公司</option>
<option value="8L">祥鹏航空公司</option>
<option value="G5">华夏航空公司</option>
<option value="PN">西部航空公司</option>
<option value="GS">大新华航空公司</option>
<option value="CA">中国国际航空公司</option>
<option value="CJ">中国北方航空公司</option>
<option value="CZ">中国南方航空公司</option>
<option value="3U">中国四川航空公司</option>
<option value="EU">鹰联航空公司</option>
<option value="FM">中国上海航空公司</option>
<option value="MU">中国东方航空公司</option>
<option value="SC">山东航空公司</option>
<option value="SJ">南方航空运输公司</option>
<option value="UA">联合航空公司</option>
</select></td>
<td colspan="2" id="fcrq" style="DISPLAY: none">
返程日期
<input name="StrDate03" id="StrDate03" style="WIDTH:86px" onClick="SelectDate('dcform','StrDate03')" value="" readonly>
</td>
</tr>
<tr>
<td height=30> </td>
<td height=10 colspan="3"><input type=image height=25 width=125 src="images_index/index_button_search.gif" name=image></td>
</tr>
</table></td>
</tr>
<tr background="images_index/bottom_2.gif">
<td background="images_index/bottom_2.gif"><img src="images_index/bottom_1.gif" width="12" height="6"></td>
<td background="images_index/bottom_2.gif"></td>
<td align="right" background="images_index/bottom_2.gif"><img src="images_index/bottom_3.gif" width="9" height="6"></td>
</tr>
</form>
</table>
<!-------标记-------->
<table id=gjTable style="DISPLAY: none" cellspacing=0 cellpadding=0 width=400 align=center border=0>
<form action="searching.asp" method="post" name="gjform" onSubmit="return CheckPara(this)" target="_blank">
<input type="hidden" name="filename" value="<%=request.ServerVariables("SCRIPT_NAME")%>">
<input name="CustomerCode" type="hidden" value="">
<input name="userpsd" type="hidden" value="">
<input type="hidden" name="today" value="<%=date()%>">
<tr background="images_index/top_2.gif">
<td width="108" background="images_index/top_2.gif"><img src="images_index/top_1.gif" width="15" height="11"></td>
<td width="99" background="images_index/top_2.gif"></td>
<td width="193" align="right" background="images_index/top_2.gif"><img src="images_index/top_3.gif" width="14" height="11"></td>
</tr>
<tr>
<td background="images_index/index_yellowbg.gif" colspan=3>
<table cellspacing=0 cellpadding=0 width="100%" align=center border=0 class="lrborder">
<tr>
<td height="25" colspan="4" background="images_index/index_timequery3.gif"><img src="images_index/index_yellowniu5.gif" name="gj_spanIdA" width=108 height=26 id=gj_spanIdA><img id=gj_spanIdB height=26 src="images_index/index_yellowniu6.gif" width=99></td>
</tr>
<tr>
<td height="25" align="center"> </td>
<td><input onClick=gjdancheng() type=radio checked value=1 name=radio>
<font color=#8e863e>单 程</font> </td>
<td width="48%" colspan="2"><input onClick=gjwangfan() type=radio value=2 name=radio>
<font color=#8e863e>往 返</font></td>
</tr>
<tr><td width="22%" height="25" align="center" class=tp>出发城市
</td>
<td width="30%" class=tp><select name=StartCity01 id="StartCity01" style="WIDTH: 120px;">
<option value="CTU">C 成都</option>
<option value="CAN">G 广州</option>
<option value="HKG">H 香港</option>
<option value="SZX" selected>S 深圳</option>
<option value="PEK">B 北京</option>
<option value="SHA">S 上海</option>
<option value="MFM">M 澳门</option>
<option value="TPE">T 台北</option>
</select></td>
<td colspan="2" class=tp> 出发日期
<input name="StrDate01" type="text" style="WIDTH:86px" value="<%=date()+1%>" id="StrDate01" onClick="SelectDate('gjform','StrDate01')" readonly ></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -