<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<script language="c#" runat="server">
protected string CurrentCategoryID
{
	get
	{
		if (!String.IsNullOrEmpty(Request.QueryString["CategoryID"]) && Request.QueryString["CategoryID"] != Guid.Empty.ToString())
			return Request.QueryString["CategoryID"];
		else if (Request.Cookies["CategoryID"] != null)
			return Request.Cookies["CategoryID"].Value;
		else
			return "";
	}
}
</script>
<table border="0" cellpadding="4" cellspacing="1" class="TreeTable">
	<thead>
		<tr>
			<th width="30">移动</th>
			<th>名称及层次</th>
			<th width="60">是否显示</th>
			<th width="40">修改</th>
			<th width="40">编辑</th>
			<th width="40">删除</th>
		</tr>
	</thead>
	<tbody>
		<ali:Tree Object="Menu" Condition="CategoryID=Request.QueryString['CategoryID']">
			<ali:Control>
				<ali:Space><span style="margin-left:20px"></span></ali:Space>
				<ali:Line><img src="<%=ImagePath%>tree/line.gif" /></ali:Line>
				<ali:TopOpen><img id="SH<%=InnerID%>" onclick="ShowAndHide('<%=InnerID%>')" src="<%=ImagePath%>tree/top_open_flipCHS.gif" class="ShowHide" /></ali:TopOpen>
				<ali:Top><img src="<%=ImagePath%>tree/top_flipCHS.gif" /></ali:Top>
				<ali:MiddleOpen><img id="SH<%=InnerID%>" onclick="ShowAndHide('<%=InnerID%>')" src="<%=ImagePath%>tree/middle_open_flipCHS.gif" class="ShowHide" /></ali:MiddleOpen>
				<ali:Middle><img src="<%=ImagePath%>tree/middle_flipCHS.gif" /></ali:Middle>
				<ali:BottomOpen><img id="SH<%=InnerID%>" onclick="ShowAndHide('<%=InnerID%>')" src="<%=ImagePath%>tree/bottom_open_flipCHS.gif" class="ShowHide" /></ali:BottomOpen>
				<ali:Bottom><img src="<%=ImagePath%>tree/bottom_flipCHS.gif" /></ali:Bottom>
			</ali:Control>
			<ali:Record>
				<tr id="Row<%=InnerID%>" ItemID="<%=InnerID%>" ParentID="<%=ParentInnerID%>">
					<form>
						<td><img name="<%=Name%>" sort="<%=InnerID%>" class="Move" src="<%=ImagePath%>move.gif" /></td>
						<th><span id="Control<%=InnerID%>"><%=Control%></span><input type="text" name="Name" value="<%=Name%>" size="50" class="<%=ContentLang%>Font"></th>
						<td>
							<%If Convert.ToBoolean(IsDisplay)%>
								显示
							<%Else%>
								不显示
							<%EndIf%>
						</td>
						<td><input type="image" src="<%=ImagePath%>modify.gif" /></td>
						<td><a href="../menu/edit.aspx?Lang=<%=ContentLang%>&CategoryID=<%=CategoryID%>&ID=<%=InnerID%>">编辑</a></td>
						<td><a href="">删除</a></td>
					</form>
				</tr>
				<%=ChildRecords%>
			</ali:Record>
		</ali:Tree>
	</tbody>
</table>
