<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<%@ Register TagPrefix="IlgharUC" TagName="Ime" Src="../../ime.dwt.ascx"%>
<%@ Register TagPrefix="IlgharUC" TagName="LanguageMenu" Src="../../language_menu.dwt.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>栏目列表</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ilghar:Comment><link rel="stylesheet" type="text/css" href="../../S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<ilgharUC:Ime Ime="false" Eot="true" runat="server" />
<script type="text/javascript">
var _page = "channel_list";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_confirm_delete = "要删除此项吗？";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title">栏目列表</div>
	<div class="Right">
		<ilgharUC:LanguageMenu runat="server" />
		<img height="15" src="<%=ImagePath%>dropdown.gif" /> 语言：<%=CurrentLanguage%>
	</div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left Selected"></li>
		<li class="Middle Selected">栏目列表</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="add.aspx?Lang=<%=ContentLang%>">添加栏目</a></li>
		<li class="Right"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<div id="List">
		<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="40">删除</th>
				</tr>
			</thead>
			<tbody>
				<ilghar:Tree Object="Channel" Validate="True">
					<ilghar:Control>
						<ilghar:Space><span style="margin-left:20px"></span></ilghar:Space>
						<ilghar:Line><img src="<%=ImagePath%>tree/line.gif" /></ilghar:Line>
						<ilghar:TopOpen><img id="SH<%=InnerID%>" onclick="ShowAndHide('<%=InnerID%>')" src="<%=ImagePath%>tree/top_open.gif" class="ShowHide" /></ilghar:TopOpen>
						<ilghar:Top><img src="<%=ImagePath%>tree/top.gif" /></ilghar:Top>
						<ilghar:MiddleOpen><img id="SH<%=InnerID%>" onclick="ShowAndHide('<%=InnerID%>')" src="<%=ImagePath%>tree/middle_open.gif" class="ShowHide" /></ilghar:MiddleOpen>
						<ilghar:Middle><img src="<%=ImagePath%>tree/middle.gif" /></ilghar:Middle>
						<ilghar:BottomOpen><img id="SH<%=InnerID%>" onclick="ShowAndHide('<%=InnerID%>')" src="<%=ImagePath%>tree/bottom_open.gif" class="ShowHide" /></ilghar:BottomOpen>
						<ilghar:Bottom><img src="<%=ImagePath%>tree/bottom.gif" /></ilghar:Bottom>
					</ilghar:Control>
					<ilghar: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="edit.aspx?Lang=<%=ContentLang%>&amp;ID=<%=InnerID%>"><span class="<%=ContentLang%>Font"><%=Name%></span></a></th>
							<td style="text-align:left">
								<%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="extra_instance.aspx?Lang=<%=ContentLang%>&amp;ID=<%=InnerID%>">栏目绑定</a>
								<%EndIf%>
							</td>
							<td>
								<%If Convert.ToInt32(InnerID) != 1%>
									<a href="">删除</a>
								<%EndIf%>
							</td>
						</tr>
						<%=ChildRecords%>
					</ilghar:Record>
				</ilghar:Tree>
			</tbody>
		</table>
	</div>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>move.js"></script>
<script type="text/javascript" src="<%=JsPath%>tree_handler.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>system.js"></script>
</body>
</html>