<%@ Page CodeFileBaseClass="AliCMS.Lib.MultiUserAdminPageBase" %>
<ali:Get ID="Department" Object="Department" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="department_edit" data-title="编辑部门" data-id="<%=Department[InnerID]%>">
	<div class="path1"><span>您的位置：</span><a href="list.aspx" target="ali-navtab">部门列表</a> → <b class="<%=ContentLang%>Font"><%=Department[Name]%></b></div>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table">
				<tr>
					<th>上级：</th>
					<td>
						<select name="ParentID" class="<%=ContentLang%>Font" data-ali-widget="combo" data-tree="true" data-root="0">
							<option value="" data-item="" data-parent="0">未指定</option>
							<ali:Tree Object="Department">
								<ali:Record>
									<%If Guid.Equals(ID, Department[ParentID])%>
										<option value="<%=ID%>" data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>" selected><%=Name%></option>
									<%Else%>
										<option value="<%=ID%>" data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>"><%=Name%></option>
									<%EndIf%>
									<%=ChildRecords%>
								</ali:Record>
							</ali:Tree>
						</select>
					</td>
				</tr>
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" value="<%=Department[Name]%>" size="60" maxlength="255" class="ali-input ali-input-required <%=ContentLang%>Font"></td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>