<%@ Register TagPrefix="uc1" TagName="PCy" Src="../../js/PCy.ascx" %>
<%@ Page language="c#" Codebehind="HangBanAdd.aspx.cs" AutoEventWireup="false" validateRequest="false" Inherits="TourOnline.BgManage.Airplane.HangBanAdd" %>
<%@ Register TagPrefix="uc1" TagName="Top" Src="Top.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>UserManage</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../Admin_Style.css" type="text/css" rel="stylesheet">
		<script src="../js/webfxlayout.js" type="text/javascript"></script>
		<!-- this link element includes the css definitions that describes the tab pane -->
		<!--
<link type="text/css" rel="stylesheet" href="tab.winclassic.css" />
--><LINK id="webfx-tab-style-sheet" disabled href="../style/tab.webfx.css" type="text/css"
			rel="stylesheet">
		<!-- the id is not needed. It is used here to be able to change css file at runtime -->
		<style type="text/css">.dynamic-tab-pane-control .tab-page { HEIGHT: 200px }
	.dynamic-tab-pane-control .tab-page .dynamic-tab-pane-control .tab-page { HEIGHT: 100px }
	.dynamic-tab-pane-control H2 { WIDTH: auto; TEXT-ALIGN: center }
	.dynamic-tab-pane-control H2 A { DISPLAY: inline; WIDTH: auto }
	.dynamic-tab-pane-control A:hover { BACKGROUND: none transparent scroll repeat 0% 0% }
		</style>
		<script src="../js/tabpane.js" type="text/javascript"></script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<TABLE cellSpacing="1" cellPadding="2" width="100%" border="0">
				<TBODY>
					<TR class="topbg">
						<TD align="center" height="22"><FONT style="FONT-WEIGHT: bold" face="宋体">航班机票管理－－添加国内航班&nbsp;&nbsp;</STRONG>带<FONT color="#ff0000"><STRONG>*</STRONG></FONT>的为必填项</FONT>
							</FONT></TD>
					</TR>
					<TR>
						<TD class="tdbg" height="30">
							<uc1:Top id="Top1" runat="server"></uc1:Top></TD>
					</TR>
					<TR>
						<TD class="tdbg" height="1">
							<hr width="100%" color="#0650d2" SIZE="1">
						</TD>
					</TR>
					<TR>
						<TD align="center" colSpan="2"><FONT face="宋体">
								<script type="text/javascript">
//<![CDATA[

function setLinkSrc( sStyle ) {
	document.getElementById( "webfx-tab-style-sheet" ).disabled = sStyle != "webfx"
	
	document.documentElement.style.background = 
	document.body.style.background = sStyle == "webfx" ? "white" : "ThreeDFace";	
}

setLinkSrc( "webfx" );

//]]>
								</script>
								<br>
								<br>
								<div class="tab-pane" id="tabPane1">
									<script type="text/javascript">
tp1 = new WebFXTabPane( document.getElementById( "tabPane1" ) );
//tp1.setClassNameTag( "dynamic-tab-pane-control-luna" );
//alert( 0 )
									</script>
									<script language="javascript" src="../js/Check.js"></script>
									<div class="tab-page" id="tabPage1">
										<h2 class="tab">基本信息</h2>
										<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage1" ) );</script>
										<TABLE class="table1" cellSpacing="1" cellPadding="2" width="100%" border="0">
											<TBODY>
												<TR class="tdbg">
													<TD class="tdbg5" align="right" width="15%"><FONT color="#ff0000">*</FONT>航班号：</TD>
													<TD align="left" width="35%"><asp:textbox id="txtHbCode" runat="server" MaxLength="25" CssClass="input" Width="87%"></asp:textbox></TD>
													<TD class="tdbg5" align="right" width="12%"><FONT class="tb1" face="宋体"><FONT color="#ff0000">*</FONT>航空公司：</FONT></TD>
													<TD align="left" width="38%"><FONT face="宋体"><asp:dropdownlist id="dropAwId" runat="server" CssClass="input" Width="87%"></asp:dropdownlist></FONT></TD>
												</TR>
												<TR class="tdbg">
													<TD class="tdbg5" align="right" width="12%"><FONT color="#ff0000">*</FONT>起飞城市：</TD>
													<TD align="left" width="38%"><FONT face="宋体"><uc1:pcy id="PCy1" runat="server"></uc1:pcy><asp:dropdownlist id="dropP" runat="server" CssClass="input"></asp:dropdownlist><asp:dropdownlist id="dropHbStartCyId" runat="server" CssClass="input"></asp:dropdownlist></FONT></TD>
													<TD class="tdbg5" align="right"><FONT color="#ff0000">*</FONT>终到城市：</TD>
													<TD align="left" width="38%"><asp:dropdownlist id="dropP1" runat="server" CssClass="input"></asp:dropdownlist>
							</FONT>
							<asp:dropdownlist id="dropHbEndCyId" runat="server" CssClass="input"></asp:dropdownlist></TD>
					</TR>
					<TR class="tdbg">
						<TD class="tdbg5" align="right" width="12%"><FONT color="#ff0000">*</FONT>起飞机场：</TD>
						<TD align="left" width="38%"><asp:textbox id="txtHbStartJc" runat="server" MaxLength="50" CssClass="input" Width="87%"></asp:textbox></TD>
						<TD class="tdbg5" align="right" width="12%"><FONT class="tb1" face="宋体"><FONT color="#ff0000">*</FONT>终到机场：</FONT></TD>
						<TD align="left" width="38%"><FONT face="宋体"><asp:textbox id="txtHbEndJc" runat="server" MaxLength="50" CssClass="input" Width="87%"></asp:textbox></FONT></TD>
					</TR>
					<TR class="tdbg">
						<TD class="tdbg5" align="right"><FONT color="#ff0000">*</FONT>机型：</TD>
						<TD align="left"><asp:textbox id="txtHbType" runat="server" MaxLength="25" CssClass="input" Width="87%"></asp:textbox></TD>
						<TD class="tdbg5" align="right"><FONT class="tb1" face="宋体"><FONT class="tb1" face="宋体"><FONT color="#ff0000">*</FONT></FONT>价格(全价)：</FONT></TD>
						<TD align="left"><FONT face="宋体">经济舱
								<asp:textbox id="txtHbJjcPirce" runat="server" MaxLength="5" CssClass="input" Width="34px"></asp:textbox>元&nbsp; 
								公务舱
								<asp:textbox id="txtHbGwcPrice" runat="server" MaxLength="5" CssClass="input" Width="34px"></asp:textbox>元&nbsp; 
								头等舱
								<asp:textbox id="txtHbTdcPrice" runat="server" MaxLength="5" CssClass="input" Width="34px"></asp:textbox>元</FONT></TD>
					</TR>
					<TR class="tdbg">
						<TD class="tdbg5" align="right"><FONT face="宋体">机建费/燃油费：</FONT></TD>
						<TD align="left"><asp:textbox id="txtHbJjPrice" runat="server" MaxLength="5" CssClass="input" Width="34px"></asp:textbox>元/
							<asp:textbox id="txtHbRyPrice" runat="server" MaxLength="5" CssClass="input" Width="34px"></asp:textbox>元</TD>
						<td class="tdbg5" align="right"><FONT color="#ff0000">*</FONT>班期(周)：</FONT></td>
						<td><FONT style="BACKGROUND-COLOR: #ffffff" color="#ff0000"></FONT><FONT face="宋体"><asp:checkboxlist id="chbHbBq" runat="server" BorderStyle="None" RepeatDirection="Horizontal" CellSpacing="0"
									CellPadding="0" RepeatLayout="Flow">
									<asp:ListItem Value="1">一</asp:ListItem>
									<asp:ListItem Value="2">二</asp:ListItem>
									<asp:ListItem Value="3">三</asp:ListItem>
									<asp:ListItem Value="4">四</asp:ListItem>
									<asp:ListItem Value="5">五</asp:ListItem>
									<asp:ListItem Value="6">六</asp:ListItem>
									<asp:ListItem Value="7">日</asp:ListItem>
								</asp:checkboxlist></FONT></td>
					</TR>
					<TR class="tdbg">
						<TD class="tdbg5" align="right"><FONT color="#ff0000">*</FONT>起飞时间：</TD>
						<TD align="left"><asp:textbox id="txtHbStartHour" runat="server" MaxLength="2" CssClass="input" Width="48px"></asp:textbox>时
							<asp:textbox id="txtHbStartMinutes" runat="server" MaxLength="2" CssClass="input" Width="48px"></asp:textbox>分</TD>
						<TD class="tdbg5" align="right"><FONT class="tb1" face="宋体"><FONT color="#ff0000">*</FONT>降落时间：</FONT></TD>
						<TD align="left"><FONT face="宋体"><asp:textbox id="txtHbEndHour" runat="server" MaxLength="2" CssClass="input" Width="48px"></asp:textbox>时
								<asp:textbox id="txtHbEndMinutes" runat="server" MaxLength="2" CssClass="input" Width="48px"></asp:textbox>分</FONT></TD>
					</TR>
					<TR class="tdbg">
						<TD class="tdbg5" align="right"><FONT color="#ff0000">*</FONT>航班舱位：<br>
							<br>
							<div align="left">说明：如果在上面的“价格（全价）”输入框中不填写“经济舱”价格，系统将不生成“经济舱”的相关信息(舱位、更改规定、退票规定、签转规定)，同样“公务舱”、“头等舱”不填写也不生成，但您至少要填写一个标准的全价</div>
						</TD>
						<TD align="left" colSpan="3">
							<table cellSpacing="2" cellPadding="0" width="100%" border="0">
								<tr>
									<td vAlign="middle" align="center" width="10%" bgColor="#e5ffff">经<br>
										济<br>
										舱</td>
									<td width="90%"><asp:datalist id="dlstJjc" runat="server" Width="100%" BorderStyle="None" CellSpacing="0" CellPadding="0"
											BorderWidth="0px" ShowFooter="False">
											<HeaderTemplate>
												<table border="0" cellpadding="0" cellspacing="2" width="100%">
													<tr bgcolor="#faebd7">
														<td align="center" width="15%">舱位</td>
														<td align="center" width="35%">更改规定</td>
														<td align="center" width="30%">退票规定</td>
														<td align="center" width="20%">签转规定</td>
													</tr>
												</table>
											</HeaderTemplate>
											<ItemTemplate>
												<TABLE cellSpacing="2" cellPadding="0" width="100%" border="0">
													<TR bgColor="#fff5ee">
														<TD align="center" width="15%">
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwName") %>'>
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwPct") %>'>
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='1'>
															<asp:Label id=Label1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CwName") %>'>
															</asp:Label></TD>
														<TD align="center" width="35%"><INPUT style="WIDTH: 100%" class="input"   type="text"  name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' /></TD>
														<TD align="center" width="30%"><INPUT style="WIDTH: 100%" class="input"  type="text"  name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' /></TD>
														<TD align="center" width="20%">
															<INPUT style="WIDTH: 100%" class="input"  type="text" name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' />
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwOrder") %>'>
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwId") %>'>
														</TD>
													</TR>
												</TABLE>
											</ItemTemplate>
										</asp:datalist></td>
								</tr>
								<tr>
									<td vAlign="middle" align="center" width="10%" bgColor="#e5ffff">公<br>
										务<br>
										舱</td>
									<td width="90%"><asp:datalist id="dlstGwc" runat="server" Width="100%" BorderStyle="None" CellSpacing="0" CellPadding="0"
											BorderWidth="0px" ShowFooter="False">
											<HeaderTemplate>
												<table border="0" cellpadding="0" cellspacing="2" width="100%">
													<tr bgcolor="#faebd7">
														<td align="center" width="15%">舱位</td>
														<td align="center" width="35%">更改规定</td>
														<td align="center" width="30%">退票规定</td>
														<td align="center" width="20%">签转规定</td>
													</tr>
												</table>
											</HeaderTemplate>
											<ItemTemplate>
												<TABLE cellSpacing="2" cellPadding="0" width="100%" border="0">
													<TR bgColor="#fff5ee">
														<TD align="center" width="15%">
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwName") %>'>
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwPct") %>'>
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='2'>
															<asp:Label id="Label3" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CwName") %>'>
															</asp:Label></TD>
														<TD align="center" width="35%"><INPUT style="WIDTH: 100%" class="input"   type="text"  name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' /></TD>
														<TD align="center" width="30%"><INPUT style="WIDTH: 100%" class="input"  type="text"  name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' /></TD>
														<TD align="center" width="20%">
															<INPUT style="WIDTH: 100%" class="input"  type="text" name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' />
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwOrder") %>'>
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwId") %>'>
														</TD>
													</TR>
												</TABLE>
											</ItemTemplate>
										</asp:datalist></td>
								</tr>
								<tr>
									<td vAlign="middle" align="center" width="10%" bgColor="#e5ffff">头<br>
										等<br>
										舱</td>
									<td width="90%"><asp:datalist id="dlstTdc" runat="server" Width="100%" BorderStyle="None" CellSpacing="0" CellPadding="0"
											BorderWidth="0px" ShowFooter="False">
											<HeaderTemplate>
												<table border="0" cellpadding="0" cellspacing="2" width="100%">
													<tr bgcolor="#faebd7">
														<td align="center" width="15%">舱位</td>
														<td align="center" width="35%">更改规定</td>
														<td align="center" width="30%">退票规定</td>
														<td align="center" width="20%">签转规定</td>
													</tr>
												</table>
											</HeaderTemplate>
											<ItemTemplate>
												<TABLE cellSpacing="2" cellPadding="0" width="100%" border="0">
													<TR bgColor="#fff5ee">
														<TD align="center" width="15%">
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwName") %>'>
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwPct") %>'>
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='3'>
															<asp:Label id="Label4" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CwName") %>'>
															</asp:Label></TD>
														<TD align="center" width="35%"><INPUT style="WIDTH: 100%" class="input"   type="text"  name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' /></TD>
														<TD align="center" width="30%"><INPUT style="WIDTH: 100%" class="input"  type="text"  name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' /></TD>
														<TD align="center" width="20%">
															<INPUT style="WIDTH: 100%" class="input"  type="text" name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' />
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwOrder") %>'>
															<input type=hidden name='txt<%# DataBinder.Eval(Container.DataItem, "CwId") %>' value='<%# DataBinder.Eval(Container.DataItem, "CwId") %>'>
														</TD>
													</TR>
												</TABLE>
											</ItemTemplate>
										</asp:datalist></td>
								</tr>
							</table>
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			</DIV>
			<script type="text/javascript">
//<![CDATA[

setupAllTabs();

//]]>
			</script>
			<div class="tab-page" id="tabPage2">
				<h2 class="tab">经停城市/机场</h2>
				<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage2" ) );</script>
				<TABLE class="table2" cellSpacing="2" cellPadding="0" width="100%" border="0">
					<script language="javascript">
				function findObj(theObj, theDoc)
				{ 
				var p, i, foundObj; 
				if(!theDoc) theDoc = document; 
				if( (p = theObj.indexOf("?")) > 0 && parent.frames.length) 
				{    theDoc = parent.frames[theObj.substring(p+1)].document;    theObj = theObj.substring(0,p);  }  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];  for (i=0; !foundObj && i < theDoc.forms.length; i++)     foundObj = theDoc.forms[i][theObj];  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)     foundObj = findObj(theObj,theDoc.layers[i].document);  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);    return foundObj;
				}
								function AddSignRow(cy,objChb){ //读取最后一行的行号，存放在txtTRLastIndex文本框中
								aryCy = cy.split(",");
									DeleteSignRow("","");
									
									var txtTRLastIndex = findObj("txtTRLastIndex",document);
									var rowID = 1;
									 var signFrame = findObj("SignFrame",document);
									//添加行
									var newTR = signFrame.insertRow(signFrame.rows.length);
									newTR.id = "cy1" ;
									
									 
									//添加列:城市名称
									var newNameTD=newTR.insertCell(0);
									//添加列内容
									
									newNameTD.align="center"
									newNameTD.innerHTML =  document.Form1.dropHbStartCyId.options[document.Form1.dropHbStartCyId.options.selectedIndex].text + "-&gt;" + aryCy[1] + "<input type=hidden name=selectedCy" + rowID + " value=" + aryCy[0] + ">";
									 
									//添加列:起飞时间
									var newNameTD=newTR.insertCell(1);
									//添加列内容
									newNameTD.align="center"
									newNameTD.innerHTML ="<input value='" + Form1.txtHbStartHour.value + "' readonly maxlength=2 name=selectedCy" + rowID + " type=text class=input size=3 maxlength=2 >时<input readonly  maxlength=2  name=selectedCy" + rowID + " type=text class=input size=3 value='" + Form1.txtHbStartMinutes.value + "'>分";
									 
									//添加列:到达时间
									var newEmailTD=newTR.insertCell(2);
									//添加列内容
									newEmailTD.align="center"
									newEmailTD.innerHTML = "<input name=selectedCy" + rowID + " type=text class=input size=3 maxlength=2 >时<input name=selectedCy" + rowID + " type=text class=input size=3  maxlength=2 >分";
									
									//添加列:经停机场
									var newEmailTD1=newTR.insertCell(3);
									//添加列内容
									newEmailTD1.align="center"
									newEmailTD1.innerHTML = "<input name=selectedCy" + rowID + " type=text class=input size=25  maxlength=50 onchange='javascript:Form1.selectedCy2[5].value = this.value'>";
									//添加列：价格
									var newPirceTD=newTR.insertCell(4);
									newPirceTD.align="center"
									newPirceTD.innerHTML = "经济舱<input name=selectedCy" + rowID + " type=text class=input size=5  maxlength=50>元<Br>公务舱<input name=selectedCy" + rowID + " type=text class=input size=5  maxlength=50>元<Br>头等舱<input name=selectedCy" + rowID + " type=text class=input size=5  maxlength=50>元";
									//添加列:删除按钮
									var newDeleteTD=newTR.insertCell(5);
									newDeleteTD.align="center"
									//添加列内容
									newDeleteTD.innerHTML = "<a href='javascript:;' onclick=\"DeleteSignRow('cy1','" + aryCy[0] + "')\">删除</a>";
									 eval("document.Form1.selectedCy" + rowID + "[1].focus();");
									//将行号推进下一行
									txtTRLastIndex.value = (rowID + 1).toString() ;
									
									rowID = parseInt(txtTRLastIndex.value);
									//添加行
									var newTR1 = signFrame.insertRow(signFrame.rows.length);
									newTR1.id = "cy2";
									
									 
									//添加列:城市名称
									var newNameTD1=newTR1.insertCell(0);
									//添加列内容
									
									newNameTD1.align="center"
									newNameTD1.innerHTML =   aryCy[1] +  "-&gt;" + document.Form1.dropHbEndCyId.options[document.Form1.dropHbEndCyId.options.selectedIndex].text + "<input type=hidden name=selectedCy" + rowID + " value=" + aryCy[0] + ">";
									 
									//添加列:起飞时间
									var newNameTD11=newTR1.insertCell(1);
									//添加列内容
									newNameTD11.align="center"
									newNameTD11.innerHTML ="<input maxlength=2 name=selectedCy" + rowID + " type=text class=input size=3 maxlength=2 >时<input  maxlength=2  name=selectedCy" + rowID + " type=text class=input size=3>分";
									 
									//添加列:到达时间
									var newEmailTD1=newTR1.insertCell(2);
									//添加列内容
									newEmailTD1.align="center"
									newEmailTD1.innerHTML = "<input value='" +  Form1.txtHbEndHour.value + "' readonly name=selectedCy" + rowID + " type=text class=input size=3 maxlength=2 >时<input readonly name=selectedCy" + rowID + " type=text class=input size=3  maxlength=2 value='" + Form1.txtHbEndMinutes.value + "'>分";
									
									//添加列:经停机场
									var newEmailTD11=newTR1.insertCell(3);
									//添加列内容
									newEmailTD11.align="center"
									newEmailTD11.innerHTML = "<input name=selectedCy" + rowID + " type=hidden class=input size=25  maxlength=50><input name='disJingLuoJiChang' type=text class=input size=25  readOnly value='" + Form1.txtHbEndJc.value + "'>";
									//添加列：价格
									var newPirceTD1=newTR1.insertCell(4);
									newPirceTD1.align="center"
									newPirceTD1.innerHTML = "经济舱<input name=selectedCy" + rowID + " type=text class=input size=5  maxlength=50>元<Br>公务舱<input name=selectedCy" + rowID + " type=text class=input size=5  maxlength=50>元<Br>头等舱<input name=selectedCy" + rowID + " type=text class=input size=5  maxlength=50>元";
									//添加列:删除按钮
									var newDeleteTD1=newTR1.insertCell(5);
									newDeleteTD1.align="center"
									//添加列内容
									newDeleteTD1.innerHTML = "<a href='javascript:;' onclick=\"DeleteSignRow('cy2','" + aryCy[0] + "')\">删除</a>";
									txtTRLastIndex.value = (rowID + 1).toString() ;
									 eval("document.Form1.selectedCy" + rowID + "[1].focus();");

								}	
								//删除指定行
								function DeleteSignRow(rowid,cyId){
								for(var i=0;i<Form1.checkCity.length;i++)
								{
									if(Form1.checkCity[i].value == cyId)
									{
										Form1.checkCity[i].checked = false;
									}
								}
								var signFrame = findObj("SignFrame",document);
								var signItem = findObj("cy1",document);
								//获取将要删除的行的Index
								if(signItem != null)
								{
								var rowIndex = signItem.rowIndex;
								 
								//删除指定Index的行
								signFrame.deleteRow(rowIndex);
								signItem = findObj("cy2",document);
								//获取将要删除的行的Index
								var rowIndex = signItem.rowIndex;
								 
								//删除指定Index的行
								signFrame.deleteRow(rowIndex);
								}
								 
								}
					</script>
					<TBODY>
						<TR>
							<TD class="tdbg5" align="left" width="10%"><br>
								<STRONG>经停城市：</STRONG><br>
							</TD>
							<TD align="left" width="90%"><FONT face="宋体"><asp:repeater id="Repeater2" runat="server">
										<ItemTemplate>
											<table width='100%' border='0' align='center' cellpadding='0' cellspacing='1' class="table1">
												<tr class="dgtittle" height='22'>
													<td align='left' class="tdbg5">
														<asp:TextBox id="txtCtId1" runat="server" Width="0" Height="0" Text='<%# DataBinder.Eval(Container.DataItem, "ctId") %>'>
														</asp:TextBox>
														<strong>
															<asp:Label id=lblCtName runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ctName") %>'>
															</asp:Label></strong></td>
												</tr>
												<tr>
													<td>
														<asp:DataList id="Datalist3" runat="server" BorderStyle="None" BorderWidth="0" CellPadding="0"
															cellspacing='0' Width="100%" ShowHeader="False" ShowFooter="False" RepeatColumns="3" HorizontalAlign="Center"
															OnItemDataBound="DataList3_ItemDataBound">
															<ItemTemplate>
																<table cellspacing="2" cellpadding="0" width='100%' border='0'>
																	<tr>
																		<td height="15" width="50%" bgcolor="#e5e5e5">
																			<asp:TextBox id="Textbox1" runat="server" Width="0" Height="0" Text='<%# DataBinder.Eval(Container.DataItem, "pId") %>'>
																			</asp:TextBox>
																			<asp:Label Runat="server" ID="Label1" Text='<%# DataBinder.Eval(Container.DataItem, "pName") %>'>
																			</asp:Label></td>
																		<td width="50%" valign="middle"">
																			<asp:DataList id="Datalist4" runat="server" BorderStyle="None" BorderWidth="0" CellPadding="0"
																				cellspacing='0' Width="100%" ShowHeader="False" ShowFooter="False" RepeatColumns="1" HorizontalAlign="Center">
																				<ItemTemplate>
																					<INPUT onclick='javascript:AddSignRow("<%# DataBinder.Eval(Container.DataItem, "cy") %>",this)'   type="radio" value='<%# DataBinder.Eval(Container.DataItem, "cyId") %>' name="checkCity" />
																					<asp:Label Runat="server" ID="Label2" Text='<%# DataBinder.Eval(Container.DataItem, "cyName") %>'>
																					</asp:Label>
																				</ItemTemplate>
																			</asp:DataList>
																		</td>
																	</tr>
																</table>
															</ItemTemplate>
														</asp:DataList>
													</td>
												</tr>
											</table>
										</ItemTemplate>
									</asp:repeater></FONT></TD>
						</TR>
						<TR>
							<TD class="tdbg5" align="left" width="10%"><br>
								<STRONG>经停机场：</STRONG><br>
							</TD>
							<TD align="left" width="90%">
								<table id="SignFrame" cellSpacing="2" cellPadding="0" width="100%" border="0">
									<tr class="tdbg5">
										<td align="center" width="30%">经停城市</td>
										<td align="center" width="15%">起飞时间</td>
										<td align="center" width="15%">到达时间</td>
										<td align="center" width="20%">降落机场</td>
										<td align="center" width="15%">价格</td>
										<td align="center" width="5%"></td>
									</tr>
								</table>
							</TD>
						</TR>
						<input type="hidden" value="1" name="txtTRLastIndex">
					</TBODY>
				</TABLE>
			</div>
			<div class="tab-page" id="tabPage3">
				<h2 class="tab">权限设置</h2>
				<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage3" ) );</script>
				<TABLE class="table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
					<TR>
						<TD class="tdbg5" align="right" width="20%"><STRONG>预订权限：</STRONG>
						</TD>
						<TD align="left" width="80%" colSpan="3"><asp:radiobuttonlist id="rblHbIsOrder" runat="server" RepeatLayout="Flow">
								<asp:ListItem Value="0" Selected="True">开放航班  任何人（包括游客）可以预订此航班的机票。</asp:ListItem>
								<asp:ListItem Value="1">认证航班  游客不能预订，并在下面指定允许预订的会员组。</asp:ListItem>
							</asp:radiobuttonlist></TD>
					</TR>
					<TR>
						<TD class="tdbg5" align="right" width="20%"><STRONG>允许预订此航班机票的会员组：</STRONG>
						</TD>
						<TD align="left" width="80%" colSpan="3"><asp:checkboxlist id="chbHbOrderGId" runat="server" RepeatDirection="Horizontal" CellSpacing="0" CellPadding="0"
								RepeatLayout="Flow" RepeatColumns="5"></asp:checkboxlist></TD>
					</TR>
				</TABLE>
			</div>
			</DIV></FONT></TD></TR>
			<TR>
				<td align="center"><asp:button id="button1" Runat="server" Text=" 添 加 "></asp:button><FONT face="宋体">&nbsp;&nbsp;
						<INPUT onclick="javascript:location.href='HangBanManage.aspx';" type="button" value=" 取 消 "></FONT>
				</td>
			</TR>
			</TBODY></TABLE></form>
		<script language="javascript">tp1.setSelectedIndex(0);document.Form1.txtHbCode.focus();HangBanCyIdsdisabled();</script>
	</body>
</HTML>
