<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="UltraCRM.FlightTicket.Search" %>
<!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 runat="server">
<title>无标题页</title>
<style type="text/css">
body
{
font-size:10pt;
}
.cursor
{ cursor:pointer;
}
</style>
<SCRIPT language="javascript" src="js/calendar1.js"></SCRIPT>
<SCRIPT language="javascript" type="text/javascript">
current=0;
function setBoard(n)
{
if(n == 0)
{
document.getElementById("tab0").style.display="block";
document.getElementById("tab1").style.display="none";
document.getElementById('Img1').disabled=true;
document.getElementById('Img2').disabled=true;
}
else if(n == 1)
{
document.getElementById("tab0").style.display="none";
document.getElementById("tab1").style.display="block";
}
}
function secBarImg(n)
{
document.getElementById("img_jd").src ="img/gnjp.gif";
document.getElementById("img_jp").src ="img/gjjp.gif";
if ( n == "img_jd" )
document.getElementById("img_jd").src ="img/gnjp_.gif";
else if( n == "img_jp" )
document.getElementById("img_jp").src ="img/gjjp_.gif";
}
function SingleOrBack1()
{
if(eval('document.all.TripType1_0').checked == true)
{
document.getElementById('Img1').disabled=true;
document.getElementById('Img2').disabled=true;
document.getElementById('transfer1').style.color="gray";
document.getElementById('backdate1').style.color="gray";
document.getElementById('txtTransferCity1').disabled=true;
document.getElementById('txtTransferDate1').disabled=true;
document.getElementById('txtBackFlyDate1').disabled=true;
}
else if(eval('document.all.TripType1_1').checked == true)
{
document.getElementById('backdate1').style.color="black";
document.getElementById('Img2').disabled=false;
document.getElementById('txtBackFlyDate1').disabled=false;
}
else if(eval('document.all.TripType1_2').checked == true)
{
document.getElementById('transfer1').style.color="black";
document.getElementById('Img1').disabled=false;
document.getElementById('txtTransferCity1').disabled=false;
document.getElementById('txtTransferDate1').disabled=false;
document.getElementById('backdate1').style.color="black";
document.getElementById('Img2').disabled=false;
document.getElementById('txtBackFlyDate1').disabled=false;
}
}
function SingleOrBack2()
{
if(eval('document.all.TripType2_0').checked == true)
{
document.getElementById('Img4').disabled=true;
document.getElementById('Img5').disabled=true;
document.getElementById('transfer2').style.color="gray";
document.getElementById('backdate2').style.color="gray";
document.getElementById('txtTransferCity2').disabled=true;
document.getElementById('txtTransferDate2').disabled=true;
document.getElementById('txtBackFlyDate2').disabled=true;
}
else if(eval('document.all.TripType2_1').checked == true)
{
document.getElementById('backdate2').style.color="black";
document.getElementById('Img5').disabled=false;
document.getElementById('txtBackFlyDate2').disabled=false;
}
else if(eval('document.all.TripType2_2').checked == true)
{
document.getElementById('transfer2').style.color="black";
document.getElementById('Img4').disabled=false;
document.getElementById('txtTransferCity2').disabled=false;
document.getElementById('txtTransferDate2').disabled=false;
document.getElementById('backdate2').style.color="black";
document.getElementById('Img5').disabled=false;
document.getElementById('txtBackFlyDate1').disabled=false;
}
}
</SCRIPT>
</head>
<body>
<form id="form1" runat="server">
<div>
<span οnclick="secBarImg('img_jd')">
<IMG id="img_jd" οnclick="setBoard(0)" src="img/gnjp_.gif" name="indexbody_r8_c3">
</span>
<span οnclick="secBarImg('img_jp')">
<IMG id="img_jp" οnclick="setBoard(1)" src="img/gjjp.gif" name="indexbody_r8_c7">
</span>
</div>
<div>
<div id="tab0">
<div>
<table>
<tr>
<td>航班类型:</td>
<td colspan=3 align=left><asp:radiobuttonlist id="TripType1" runat="server" οnclick="SingleOrBack1();"
RepeatDirection="Horizontal">
<asp:ListItem Value="1">
<LABEL>单程</LABEL></asp:ListItem>
<asp:ListItem Value="2">
<LABEL>往返</LABEL></asp:ListItem>
<asp:ListItem Value=3">
<LABEL>联程</LABEL></asp:ListItem>
</asp:radiobuttonlist>
</td>
</tr>
<tr>
<td>出发城市:</td>
<td><asp:TextBox ID="txtStartCity1" runat="server"></asp:TextBox></td>
<td>出发日期:</td>
<td>
<table cellpadding=0 cellspacing=0>
<tr>
<td align=right><asp:textbox Width=100px CssClass="cursor" id="txtFlyDate1" οnclick="javascript:event.cancelBubble=true;showCalendar('toBx',false,'txtFlyDate1',null);" ReadOnly="true" runat="server"></asp:textbox></td>
<td align=left><img id="toBx" src="../Customer/img/b_time.gif" style="CURSOR: hand"
onClick="javascript:event.cancelBubble=true;showCalendar('toBx',false,'txtFlyDate1',null);"
width="30px" /></td>
</tr>
</table>
</td>
</tr>
<tr id="transfer1">
<td>中转城市:</td>
<td><asp:TextBox ID="txtTransferCity1" runat="server"></asp:TextBox></td>
<td id=transferdate>中转日期:</td>
<td>
<table cellpadding=0 cellspacing=0>
<tr>
<td align=right><asp:textbox Width=100px CssClass="cursor" id="txtTransferDate1" οnclick="javascript:event.cancelBubble=true;showCalendar('Img1',false,'txtTransferDate1',null);" ReadOnly="true" runat="server"></asp:textbox>
</td>
<td align=left><img id="Img1" src="../Customer/img/b_time.gif" style="CURSOR: hand"
onClick="javascript:event.cancelBubble=true;showCalendar('Img1',false,'txtTransferDate1',null);"
width="30px" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>到达城市:</td>
<td><asp:TextBox ID="txtArrivalCity1" runat="server"></asp:TextBox></td>
<td id="backdate1">返程日期:</td>
<td>
<table cellpadding=0 cellspacing=0>
<tr>
<td align=right><asp:textbox Width=100px CssClass="cursor" id="txtBackFlyDate1" οnclick="javascript:event.cancelBubble=true;showCalendar('Img2',false,'txtBackFlyDate1',null);" ReadOnly="true" runat="server"></asp:textbox></td>
<td align=left><img id="Img2" src="../Customer/img/b_time.gif" style="CURSOR: hand"
onClick="javascript:event.cancelBubble=true;showCalendar('Img2',false,'txtBackFlyDate1',null);"
width="30px" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>送票城市:</td>
<td><asp:TextBox ID="txtSendCity1" runat="server"></asp:TextBox></td>
</tr>
</table>
</div>
<div class="SerBut">
<asp:Button ID="btnQuery1" runat="server" Text="开始查询"
BackColor=#36648B ForeColor=White οnclick="btnQuery1_Click" />
</div>
</div>
<div id="tab1" style="display:none">
<div>
<table>
<tr>
<td>航班类型:</td>
<td colspan=3 align=left><asp:radiobuttonlist id="TripType2" runat="server" οnclick="SingleOrBack2();" RepeatDirection="Horizontal">
<asp:ListItem Value="1">
<LABEL>单程</LABEL></asp:ListItem>
<asp:ListItem Value="2">
<LABEL>往返</LABEL></asp:ListItem>
<asp:ListItem Value=3">
<LABEL>联程</LABEL></asp:ListItem>
</asp:radiobuttonlist>
</td>
</tr>
<tr>
<td>出发城市:</td>
<td><asp:TextBox ID="txtStartCity2" runat="server"></asp:TextBox></td>
<td>出发日期:</td>
<td>
<table cellpadding=0 cellspacing=0>
<tr>
<td align=right><asp:textbox Width=100px CssClass="cursor" id="txtFlyDate2" οnclick="javascript:event.cancelBubble=true;showCalendar('Img3',false,'txtFlyDate2',null);" ReadOnly="true" runat="server"></asp:textbox></td>
<td align=left><img id="Img3" src="../Customer/img/b_time.gif" style="CURSOR: hand"
onClick="javascript:event.cancelBubble=true;showCalendar('Img3',false,'txtFlyDate2',null);"
width="30px" /></td>
</tr>
</table>
</td>
</tr>
<tr id="transfer2">
<td>中转城市:</td>
<td><asp:TextBox ID="txtTransferCity2" runat="server"></asp:TextBox></td>
<td>中转日期:</td>
<td>
<table cellpadding=0 cellspacing=0>
<tr>
<td align=right><asp:textbox Width=100px CssClass="cursor" id="txtTransferDate2" οnclick="javascript:event.cancelBubble=true;showCalendar('Img4',false,'txtTransferDate2',null);" ReadOnly="true" runat="server"></asp:textbox></td>
<td align=left><img id="Img4" src="../Customer/img/b_time.gif" style="CURSOR: hand"
onClick="javascript:event.cancelBubble=true;showCalendar('Img4',false,'txtTransferDate2',null);"
width="30px" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>到达城市:</td>
<td><asp:TextBox ID="txtArrivalCity2" runat="server"></asp:TextBox></td>
<td id="backdate2">返程日期:</td>
<td>
<table cellpadding=0 cellspacing=0>
<tr>
<td align=right><asp:textbox Width=100px CssClass="cursor" id="txtBackFlyDate2" οnclick="javascript:event.cancelBubble=true;showCalendar('Img5',false,'txtBackFlyDate2',null);" ReadOnly="true" runat="server"></asp:textbox></td>
<td align=left><img id="Img5" src="../Customer/img/b_time.gif" style="CURSOR: hand"
onClick="javascript:event.cancelBubble=true;showCalendar('Img5',false,'txtBackFlyDate2',null);"
width="30px" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>送票城市:</td>
<td><asp:TextBox ID="txtSendCity2" runat="server"></asp:TextBox></td>
</tr>
</table>
</div>
<div class="SerBut"><asp:Button ID="btnQuery2" runat="server" Text="开始查询"
BackColor=#36648B ForeColor=White οnclick="btnQuery2_Click" /></div>
</div>
</div>
</form>
</body>
</html>