<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<section data-page="channel_list" data-title="栏目列表">
	<div class="path1"><span>您的位置：</span>栏目列表</div>
	<div class="content">
		<table data-ali-widget="grid" class="grid1" data-tree="true" data-root="0">
			<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:Record>
						<tr data-id="<%=InnerID%>">
							<td data-sort="<%=InnerID%>"><%=InnerID%></td>
							<th data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>"><a href="edit.aspx?ID=<%=InnerID%>" target="ali-navtab"><%=Name%></a></th>
							<td>
								<%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="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><a class="ali-button" data-operation="delete">删除</a></td>
						</tr>
						<%=ChildRecords%>
					</ali:Record>
				</ali:Tree>
			</tbody>
		</table>
	</div>
</section>