<%@ page language="C#" autoeventwireup="true" inherits="WebManage_Info_TypeUpdate, ZhaoPinXiTong" enableEventValidation="false" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title></title>
		<meta name="author" content="www.zhaopinxitong.com,无忧招聘系统开发制作" />
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK rel="stylesheet" type="text/css" href="../Css/Other.css">
		<script language="javascript">
		    //以XML求取ddl_TypeSubid的数据
		    function XmlPost_TypeSubid(obj) {
		        var svalue = obj.value;
		        var webFileUrl = "?typeid=" + svalue;
		        var result = "";
		        var xmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
		        xmlHttp.open("POST", webFileUrl, false);
		        xmlHttp.send("");
		        result = xmlHttp.responseText;
		        if (result != "") {
		            document.all("ddl_TypeSubid").length = 0;
		            var piArray = result.split(",");
		            for (var i = 0; i < piArray.length; i++) {
		                var ary = piArray[i].toString().split("|");
		                document.all("ddl_TypeSubid").options.add(new Option(ary[1].toString(), ary[0].toString()));
		            }
		            document.all("hid_TypeSubid").value = document.all("ddl_TypeSubid").options[document.all("ddl_TypeSubid").selectedIndex].value;
		        }
		        else {
		            document.all("ddl_TypeSubid").length = 0;
		            document.all("ddl_TypeSubid").options.add(new Option("", "1000"));
		        }
		    }
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" Runat=server>
			<!--页面顶部-->
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="PADDING-RIGHT:5px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="5"></td>
							</tr>
							<tr>
								<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="5" height="24" background="../Images/WebOffices/Right1_bg.jpg"></td>
											<td background="../Images/WebOffices/Right1_bg.jpg" style="PADDING-LEFT:8px;PADDING-TOP:2px"><font color="#ffffff"><b><asp:Label Runat=server ID="lbl_Operate"></asp:Label></b></font></td>
											<td width="200" align="right" background="../Images/WebOffices/Right1_bg.jpg" style="PADDING-RIGHT:8px"></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="4"></td>
							</tr>
						</table>
						<!--页面主体-->
						<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#D1E6F7">
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 名 称：</td>
								<td><asp:TextBox Runat=server ID="txt_TypeName" Width="260"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_TypeName" ControlToValidate="txt_TypeName" Display="Dynamic"
										ErrorMessage="<br>请输入类别名称！" /></td>
							</tr>
							
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 所在类别：</td>
								<td><asp:DropDownList Runat=server ID="ddl_ParentType" Width="260">
									</asp:DropDownList></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 排列顺序：</td>
								<td><asp:TextBox Runat=server ID="txt_Orderid" Width="55">1</asp:TextBox>
									<font color="#777777">数字越小越靠前显示</font>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_Orderid" ControlToValidate="txt_Orderid" Display="Dynamic"
										ErrorMessage="<br>请输入顺序！"></asp:RequiredFieldValidator>
									<asp:RegularExpressionValidator Runat=server ID="rev_Orderid" ControlToValidate="txt_Orderid" ValidationExpression="^[0-9]*$"
										Display="Dynamic" ErrorMessage="<br>顺序只限填写数字！"></asp:RegularExpressionValidator></td>
							</tr>
						
						<!--新增-->
						<asp:Panel Runat=server ID="pan_Add">
							
								<TR bgColor="#ffffff">
									<TD style="PADDING-LEFT: 20px" width="80">&nbsp;</TD>
									<TD>
										<asp:Button id="btn_Submit" onclick="btn_Submit_Click" Runat=server Width="55" Text="保存"></asp:Button>
										<asp:Label id="lbl_Error" Runat=server ForeColor="#ff0000"></asp:Label></TD>
								</TR>
							
						</asp:Panel>
						<!--更新-->
						<asp:Panel Runat=server ID="pan_Update">
							    <tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:20px">转移到：</td>
								<td><asp:DropDownList Runat=server ID="ddl_Typeid" Width="260"></asp:DropDownList><br>
									<asp:DropDownList Runat=server ID="ddl_TypeSubid" Width="260"></asp:DropDownList><br />
									<font color="#777777">将该类别下资讯转移到选中类别，默认不转移</font>
									<input type="hidden" Runat=server id="hid_TypeSubid">
								</td>
							    </tr>
								<TR bgColor="#ffffff">
									<TD style="PADDING-LEFT: 20px" width="80">&nbsp;</TD>
									<TD>
									<asp:Button id="btn_Save" OnClick="btn_Save_Click" Runat=server Width="55" Text="保存"></asp:Button></TD>
								</TR>
							
						</asp:Panel>
						</table>
						<input type=hidden Runat=server id="hid_Parentid">
						<!--主体结束-->
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
