<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<table border="0" cellpadding="4" cellspacing="1" class="TreeTable">
	<thead>
		<tr>
			<th width="30">移动</th>
			<th>名称</th>
			<th>路径/预览</th>
			<th>更换模板</th>
			<th width="60">栏目绑定</th>
			<th width="60">栏目菜单</th>
			<th width="40">删除</th>
		</tr>
	</thead>
	<tbody>
		<ali:Tree Object="Channel" Validate="True">
			<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%>">
					<td><img name="<%=Name%>" sort="<%=InnerID%>" class="Move" src="<%=ImagePath%>move.gif" ></td>
					<th><span id="Control<%=InnerID%>"><%=Control%></span><a href="../channel/edit.aspx?Lang=<%=ContentLang%>&amp;ID=<%=InnerID%>"><span class="<%=ContentLang%>Font"><%=Name%></span></a></th>
					<td class="AlignLeft">
						<%If Convert.IsDBNull(TemplatePath)%>
							<a href="<%=Path%>" target="_blank"><%=Path%></a>
						<%ElseIf Convert.ToString(Domain) != String.Empty%>
							<a href="<%=Domain%><%=DefaultDocument%><%=Extension%>" target="_blank"><%=Domain%><%=DefaultDocument%><%=Extension%></a>
						<%Else%>
							<a href="<%=WebPath%><%=Path%><%=DefaultDocument%><%=Extension%>" target="_blank"><%=WebPath%><%=Path%><%=DefaultDocument%><%=Extension%></a>
						<%EndIf%>
					</td>
					<td><a href="../channel/change_template.aspx?Lang=<%=ContentLang%>&amp;ID=<%=InnerID%>"><%=SkinPath%></a></td>
					<td>
						<%If !Convert.IsDBNull(TemplatePath)%>
							<a href="../channel/extra_instance.aspx?Lang=<%=ContentLang%>&amp;ID=<%=InnerID%>">栏目绑定</a>
						<%EndIf%>
					</td>
					<td>
						<%If Convert.ToBoolean(EnableMenu)%>
							<a href="../channel/menu/list.aspx?Lang=<%=ContentLang%>&amp;ChannelID=<%=InnerID%>">栏目菜单</a>
						<%EndIf%>
					</td>
					<td>
						<%If Convert.ToInt32(InnerID) != 1%>
							<a href="">删除</a>
						<%EndIf%>
					</td>
				</tr>
				<%=ChildRecords%>
			</ali:Record>
		</ali:Tree>
	</tbody>
</table>
