<%@ Page language="c#" Codebehind="CarUpdate.aspx.cs" AutoEventWireup="false" Inherits="TourOnline.BgManage.Car.CarUpdate" %>
<%@ Register TagPrefix="uc1" TagName="Top" Src="Top.ascx" %>
<%@ Register TagPrefix="uc1" TagName="cCtPCyHotel" Src="../../js/cCtPCyHotel.ascx" %>
<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>TabTest</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' rel='stylesheet' type='text/css'>
		<script src="../js/webfxlayout.js" type="text/javascript"></script>
		<script src="../js/public.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" encType="multipart/form-data" runat="server">
			<TABLE cellSpacing="1" cellPadding="1" width="100%" border="0">
				<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 size="1" width="100%" color="#0650d2">
					</TD>
				</TR>
			</TABLE>
			<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 cellSpacing="1" cellPadding="1" width="100%" border="0">
						<TR>
							<TD vAlign="top" align="center">
								<TABLE cellSpacing="2" cellPadding="0" width="100%" border="0">
									<TR>
										<TD class='tdbg5' align="left" width="20%"><STRONG><font color="#ff0000">*</font>所在地区：</STRONG>
										</TD>
										<TD align="left" width="80%"><FONT face="宋体">
												<uc1:cCtPCyHotel id="CCtPCyHotel1" runat="server"></uc1:cCtPCyHotel><asp:dropdownlist id="dropCt" runat="server"></asp:dropdownlist><asp:dropdownlist id="dropP" runat="server"></asp:dropdownlist><asp:dropdownlist id="dropCy" runat="server"></asp:dropdownlist></FONT></TD>
									</TR>
									<TR>
										<TD class='tdbg5' align="left" width="20%"><STRONG><font color="#ff0000">*</font>车型：</STRONG>
										</TD>
										<TD align="left" width="80%"><FONT face="宋体"><asp:textbox id="txtCCx" runat="server" CssClass="input" Width="73%" MaxLength="50"></asp:textbox></FONT></TD>
									</TR>
									<TR>
										<TD class='tdbg5' align="left" width="20%"><STRONG>型号：</STRONG>
										</TD>
										<TD align="left" width="80%"><FONT face="宋体"><asp:textbox id="txtCXh" runat="server" CssClass="input" Width="73%" MaxLength="25"></asp:textbox></FONT></TD>
									</TR>
									<TR>
										<TD class='tdbg5' align="left" width="20%"><STRONG><font color="#ff0000">*</font>座位数：</STRONG>
										</TD>
										<TD align="left" width="80%">
											<asp:textbox id="txtCZw" runat="server" MaxLength="3" Width="70%" CssClass="input"></asp:textbox><FONT face="宋体">座</FONT></TD>
									</TR>
									<TR>
										<TD class='tdbg5' align="left" width="20%"><STRONG><FONT face="宋体"><STRONG><FONT color="#ff0000">*</FONT></STRONG>价格</FONT></STRONG>&nbsp;
										</TD>
										<TD align="left" width="80%">
											<asp:TextBox id="txtCPrice" runat="server" Width="104px" CssClass="input"></asp:TextBox><FONT face="宋体">元/天&nbsp;
											</FONT>
											<asp:TextBox id="txtCMPrice" runat="server" Width="88px" CssClass="input"></asp:TextBox><FONT face="宋体">元/月&nbsp;&nbsp; 
												押金：</FONT>
											<asp:TextBox id="txtCYjPrice" runat="server" Width="88px" CssClass="input" MaxLength="7"></asp:TextBox><FONT face="宋体">元</FONT></TD>
									</TR>
									<TR>
										<TD class='tdbg5' align="left" width="20%"><STRONG>车辆描述：</STRONG>
										</TD>
										<TD align="left" width="80%"><FONT face="宋体">
												<fckeditorv2:fckeditor id="fckCContext" runat="server" Width="73%" ToolbarSet="Basic" Height="230px"></fckeditorv2:fckeditor></FONT></TD>
									</TR>
									<TR>
										<TD class='tdbg5' style="HEIGHT: 219px" align="left" width="20%"><FONT face="宋体"><STRONG>自驾说明：</STRONG></FONT>
										</TD>
										<TD style="HEIGHT: 219px" align="left" width="80%"><FONT face="宋体"><fckeditorv2:fckeditor id="fckCZjContext" runat="server" Width="73%" Height="230px" ToolbarSet="Basic"></fckeditorv2:fckeditor></FONT></TD>
									</TR>
									<TR>
										<TD class='tdbg5' style="HEIGHT: 219px" align="left" width="20%"><FONT face="宋体"><STRONG><STRONG><FONT color="#ff0000"></FONT></STRONG>租车说明：</STRONG></FONT>
										</TD>
										<TD style="HEIGHT: 219px" align="left" width="80%"><FONT face="宋体"><fckeditorv2:fckeditor id="fckCZcContext" runat="server" Width="73%" Height="230px" ToolbarSet="Basic"></fckeditorv2:fckeditor></FONT></TD>
									</TR>
									<TR>
										<TD class='tdbg5' align="left" width="20%"><FONT face="宋体"><STRONG>联系人：</STRONG></FONT>
										</TD>
										<TD align="left" width="80%"><STRONG>
												<asp:textbox id="txtCLxr" runat="server" MaxLength="25" Width="31%" CssClass="input"></asp:textbox>&nbsp; 
												联系电话：
												<asp:textbox id="txtCTel" runat="server" MaxLength="50" Width="31%" CssClass="input"></asp:textbox></STRONG></TD>
									</TR>
									<TR>
										<TD class='tdbg5' align="left" width="20%"><FONT face="宋体"><STRONG>公司名称：</STRONG></FONT>
										</TD>
										<TD align="left" width="80%">
											<asp:textbox id="txtCCorp" runat="server" MaxLength="50" Width="73%" CssClass="input"></asp:textbox>
										</TD>
									</TR>
									<TR>
										<TD class='tdbg5' align="left" width="20%"><FONT face="宋体"><STRONG>车辆属性：</STRONG></FONT>
										</TD>
										<TD align="left" width="80%"><FONT face="宋体"><asp:checkbox id="chbCIsTj" runat="server" Text="推荐" BorderStyle="None"></asp:checkbox>&nbsp;
												<asp:checkbox id="chbCIsTop" runat="server" Text="置顶" BorderStyle="None"></asp:checkbox>&nbsp;
												<asp:CheckBox id="chbCIsIndex" runat="server" Text="首页显示"></asp:CheckBox>
											</FONT>
										</TD>
									</TR>
								</TABLE>
								</FONT></TD>
						</TR>
					</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 cellSpacing="1" cellPadding="1" width="100%" border="0">
						<script language="javascript">
								function funTbImgUpload()
								{
									var tblRowsCount = document.getElementById("tbImgUpload").rows.length;
									var tbl = document.getElementById("tbImgUpload");
									var row = tbl.insertRow();
									var cell = row.insertCell();
									cell.innerHTML = "图片：&nbsp;&nbsp;<input type='file'  size='20' name='File'><input type='button' value='删除' onclick='funTbImgUploadDel(" + tblRowsCount  + ");'>";
								}
								function funTbImgUploadDel(index)
								{
									var tbl = document.getElementById("tbImgUpload");
									tbl.deleteRow(index);
								}
						</script>
						<TR>
							<TD class='tdbg5' align="left" width="20%"><STRONG><STRONG>上传宾馆酒店图片</STRONG>：</STRONG>&nbsp;
							</TD>
							<TD align="left" width="80%">【<FONT style="CURSOR: hand" onclick="javascript:funTbImgUpload();" face="宋体">添加图片</FONT>】
								<asp:CheckBox id="chbIsSmallImg" runat="server" Text="生成缩略图"></asp:CheckBox>&nbsp; 
								宽度：
								<asp:TextBox id="txtWidth" runat="server" MaxLength="3" Width="32px"></asp:TextBox>px&nbsp; 
								高度：
								<asp:TextBox id="txtHeight" runat="server" MaxLength="3" Width="32px"></asp:TextBox>px<br>
								<table id="tbImgUpload" cellSpacing="0" cellPadding="0" width="100%" border="0">
									<tr>
										<td>图片：&nbsp;&nbsp;<INPUT type="file" size="20" name="File"></td>
									</tr>
								</table>
							</TD>
						</TR>
						<TR>
							<TD class='tdbg5' align="left" width="20%"><STRONG><STRONG>修改已上传图片</STRONG>：</STRONG>&nbsp;
							</TD>
							<TD align="center" width="80%">&nbsp;
								<asp:datalist id="DataList1" runat="server" Width="90%" RepeatColumns="3" CellPadding="7" BorderStyle="None"
									DataKeyField="id">
									<ItemStyle HorizontalAlign="Center" Width="200px"></ItemStyle>
									<ItemTemplate>
										<FONT face="宋体">
											<asp:Image id=Image1 runat="server" Width="150px" CssClass="hand" Height="150px" ImageUrl='<%# DataBinder.Eval(Container, "DataItem.SmallImgUrl") %>'>
											</asp:Image><BR>
											<asp:LinkButton id="LinkButton1" runat="server" CommandName="updatePic">修改</asp:LinkButton>&nbsp;
											<asp:LinkButton id="LinkButton2" runat="server" CommandName="delPic">删除</asp:LinkButton>
											<asp:TextBox id=TextBox1 runat="server" Width="0px" Height="0px" Text='<%# DataBinder.Eval(Container, "DataItem.ImgUrl") %>'>
											</asp:TextBox></FONT>
									</ItemTemplate>
									<EditItemTemplate>
										<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD align="center">
													<asp:image id=Image2 runat="server" Width="150px" CssClass="hand" Height="150px" ImageUrl='<%# DataBinder.Eval(Container, "DataItem.imgUrl") %>' AlternateText='<%# DataBinder.Eval(Container, "DataItem.context") %>'>
													</asp:image></TD>
											</TR>
											<TR>
												<TD align="center">
													<asp:linkbutton id="Linkbutton4" runat="server" CommandName="cancelPic">取消</asp:linkbutton>&nbsp;
													<asp:linkbutton id="LinkButton3" runat="server" CommandName="delPic">删除</asp:linkbutton></TD>
											</TR>
											<TR>
												<TD align="left"><INPUT type="file" size="10" name="file1">
													<BR>
													<asp:CheckBox id="CheckBox1" runat="server" Text="生成缩略图" Checked="True"></asp:CheckBox><BR>
													宽度
													<asp:TextBox id="TextBox3" runat="server" MaxLength="3" Width="32px"></asp:TextBox>px高度
													<asp:TextBox id="Textbox4" runat="server" MaxLength="3" Width="32px"></asp:TextBox>px
												</TD>
											</TR>
											<TR>
												<TD align="center">
													<asp:button id="Button2" runat="server" Text=" 提 交 " CommandName="submitPic"></asp:button></TD>
											</TR>
										</TABLE>
									</EditItemTemplate>
								</asp:datalist></TD>
						</TR>
					</TABLE>
				</div>
				<div class="tab-page" id="tabPage3">
					<h2 class="tab">权限设置</h2>
					<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage3" ) );</script>
					<TABLE cellSpacing="2" 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="rblCIsComment" runat="server" CellPadding="0" CellSpacing="0" 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="chbCCommentGId" runat="server" CellPadding="0" CellSpacing="0" RepeatDirection="Horizontal"
									RepeatColumns="5" RepeatLayout="Flow"></asp:CheckBoxList>
							</TD>
						</TR>
						<TR>
							<TD class='tdbg5' align="right" width="20%"><STRONG>预订权限：</STRONG>
							</TD>
							<TD align="left" width="80%" colSpan="3">
								<asp:RadioButtonList id="rblCIsOrder" 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="chbCOrderGId" runat="server" CellPadding="0" CellSpacing="0" RepeatDirection="Horizontal"
									RepeatColumns="5" RepeatLayout="Flow"></asp:CheckBoxList>
							</TD>
						</TR>
					</TABLE>
				</div>
				<TABLE cellSpacing="1" cellPadding="1" width="100%" border="0">
					<TR>
						<TD align="center"><asp:button id="Button1" runat="server" CssClass="button" Text="保存修改结果"></asp:button><FONT face="宋体">&nbsp;&nbsp;
								<INPUT class="button" onclick="javascript:location.href='CarManage.aspx';" type="button"
									value=" 取 消 "></FONT>
						</TD>
					</TR>
				</TABLE>
		</form>
		<DIV></DIV>
		</FONT>
		<script language="javascript">
			if(picUpdate == 1)
			{
				tp1.setSelectedIndex(1);
			}
			else
			{
				tp1.setSelectedIndex(0);Form1.dropCt.focus();
			}
		
		</script>
		</DIV>
	</body>
</HTML>
