<%@ Page  CodeFile="/cache/template/System/IlgharCMS.SystemModule/channel/edit.cs" Inherits="CIlgharCMS"%>
<%@ Register TagPrefix="IlgharUC" TagName="Ime" Src="/cache/template/System/CHS/ime.ascx"%>
<%@ Register TagPrefix="IlgharUC" TagName="LanguageMenu" Src="/cache/template/System/CHS/language_menu.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><meta name="generator" content="IlgharCMS(爱革CMS)" />


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑栏目 - powered by IlgharCMS 3.0</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />

<link rel="stylesheet" href="<%=CssPath%>common.css" />
<ilgharUC:Ime Ime="true" Eot="true" runat="server" />

<script type="text/javascript">
var _page = "channel_edit";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _id = "<%=Request.QueryString["ID"]%>";
var _templatePath = "<%=(ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.TemplatePath])%>";
var _instanceID = "<%=(ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.InstanceID])%>";
<%
string t1745 = String.Empty;
if (Convert.IsDBNull((ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.TemplatePath])))
{t1745 = _xmlTemplate.SelectSingleNode("/" + "/t1745/If").InnerText;}
else if (Guid.Equals((ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.InstanceID]),Guid.Empty))
{t1745 = _xmlTemplate.SelectSingleNode("/" + "/t1745/ElseIf0").InnerText;}
else
{t1745 = _xmlTemplate.SelectSingleNode("/" + "/t1745/Else").InnerText;}
%><%=t1745%>
var _uploadLogo = false;
var _uploadLink = false;
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_start_upload_logo = "开始上传栏目Logo...";
var _lang_uploading_logo = "开始上传栏目Logo...";
var _lang_start_upload_link = "开始上传链接Logo...";
var _lang_uploading_link = "开始上传链接Logo...";
var _lang_logo_type_must_be = "栏目Logo类型应为：";
var _lang_link_type_must_be = "链接Logo类型应为：";
var _lang_name_empty = "名称不能空！";
var _lang_path_tip1 = "首页，则留空。其它必须以斜杠（/）结尾，路经不能重复！";
var _lang_path_tip2 = "必须以http://开头";
var _lang_path_incorrect = "路径格式不正确！";
var _lang_path_exist = "路径已经存在！";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title"><a href="list.aspx?Lang=<%=ContentLang%>">栏目列表</a> → <span class="<%=ContentLang%>Font"><%=(ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Name])%></span></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>
		<%
string t3195 = String.Empty;
if ((!Convert.IsDBNull((ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.TemplatePath]))))
{t3195 = _xmlTemplate.SelectSingleNode("/" + "/t3195/If").InnerText;object t3332 = ContentLang;
t3195 = t3195.Replace("{#t3332#}",t3332 == null ? "" : t3332.ToString());
object t3356 = Request.QueryString["ID"];
t3195 = t3195.Replace("{#t3356#}",t3356 == null ? "" : t3356.ToString());
object t3514 = ContentLang;
t3195 = t3195.Replace("{#t3514#}",t3514 == null ? "" : t3514.ToString());
object t3538 = Request.QueryString["ID"];
t3195 = t3195.Replace("{#t3538#}",t3538 == null ? "" : t3538.ToString());
}
%><%=t3195%>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<form>
		<table border="0" cellpadding="4" cellspacing="1">
			<tfoot>
				<tr>
					<td colspan="2">
						<input type="submit" value="编辑" />
					</td>
				</tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="120">类型：</th>
					<td>
						<input type="radio" id="Functional" disabled="disabled" />功能栏目
						<input type="radio" id="NonFunctional" disabled="disabled" />非功能栏目
						<input type="radio" id="OuterLink" disabled="disabled" />外部链接
					</td>
				</tr>
				<%
string t4234 = String.Empty;
if ((!Guid.Equals((ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.InstanceID]),Guid.Empty)))
{t4234 = _xmlTemplate.SelectSingleNode("/" + "/t4234/If").InnerText;t4234 = t4234.Replace("{#t4342#}",t4342);
}
%><%=t4234%>
				<tr>
					<th>父栏目：</th>
					<td>
						<select name="ParentID" class="<%=ContentLang%>Font">
							<option value="">未指定</option>
							<%=t4982%>
						</select>
					</td>
				</tr>
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" value="<%=(ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Name])%>" maxlength="50" class="Text <%=ContentLang%>Font" /></td>
				</tr>
				<tr>
					<th>路径：</th>
					<td><input type="text" name="Path" value="<%=(ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Path])%>" size="40" maxlength="50" class="Text" /><br /><span id="PathTip"></span></td>
				</tr>
				<%
string t6180 = String.Empty;
if ((!Convert.IsDBNull((ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.TemplatePath]))))
{t6180 = _xmlTemplate.SelectSingleNode("/" + "/t6180/If").InnerText;string t6287 = String.Empty;
if (Convert.ToBoolean((ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.IsDynamicTemplate])))
{t6287 = _xmlTemplate.SelectSingleNode("/" + "/t6287/If").InnerText;object t6720 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.DynamicTemplateID]);
t6287 = t6287.Replace("{#t6720#}",t6720 == null ? "" : t6720.ToString());
}
else
{t6287 = _xmlTemplate.SelectSingleNode("/" + "/t6287/Else").InnerText;object t7225 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.DynamicTemplateID]);
t6287 = t6287.Replace("{#t7225#}",t7225 == null ? "" : t7225.ToString());
}
t6180 = t6180.Replace("{#t6287#}",t6287);
string t7412 = String.Empty;
if (Convert.ToBoolean((ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Generate])))
{t7412 = _xmlTemplate.SelectSingleNode("/" + "/t7412/If").InnerText;}
else
{t7412 = _xmlTemplate.SelectSingleNode("/" + "/t7412/Else").InnerText;}
t6180 = t6180.Replace("{#t7412#}",t7412);
object t8045 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.DefaultDocument]);
t6180 = t6180.Replace("{#t8045#}",t8045 == null ? "" : t8045.ToString());
object t8224 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Extension]);
t6180 = t6180.Replace("{#t8224#}",t8224 == null ? "" : t8224.ToString());
object t8402 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Domain]);
t6180 = t6180.Replace("{#t8402#}",t8402 == null ? "" : t8402.ToString());
object t8675 = ContentLang;
t6180 = t6180.Replace("{#t8675#}",t8675 == null ? "" : t8675.ToString());
object t8697 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Notice]);
t6180 = t6180.Replace("{#t8697#}",t8697 == null ? "" : t8697.ToString());
object t8876 = ContentLang;
t6180 = t6180.Replace("{#t8876#}",t8876 == null ? "" : t8876.ToString());
object t8898 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Footer]);
t6180 = t6180.Replace("{#t8898#}",t8898 == null ? "" : t8898.ToString());
object t9034 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.ICP]);
t6180 = t6180.Replace("{#t9034#}",t9034 == null ? "" : t9034.ToString());
object t9231 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.StatisticsCode]);
t6180 = t6180.Replace("{#t9231#}",t9231 == null ? "" : t9231.ToString());
object t9402 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Logo]);
t6180 = t6180.Replace("{#t9402#}",t9402 == null ? "" : t9402.ToString());
object t9619 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Logo]);
t6180 = t6180.Replace("{#t9619#}",t9619 == null ? "" : t9619.ToString());
object t9669 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Logo]);
t6180 = t6180.Replace("{#t9669#}",t9669 == null ? "" : t9669.ToString());
object t9904 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Link]);
t6180 = t6180.Replace("{#t9904#}",t9904 == null ? "" : t9904.ToString());
object t10121 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Link]);
t6180 = t6180.Replace("{#t10121#}",t10121 == null ? "" : t10121.ToString());
object t10171 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.Link]);
t6180 = t6180.Replace("{#t10171#}",t10171 == null ? "" : t10171.ToString());
object t10404 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.MetaKeywords]);
t6180 = t6180.Replace("{#t10404#}",t10404 == null ? "" : t10404.ToString());
object t10474 = ContentLang;
t6180 = t6180.Replace("{#t10474#}",t10474 == null ? "" : t10474.ToString());
object t10568 = (ThisChannel==null?null:ThisChannel[IlgharCMS.SystemModule.Alias.Channel.MetaDescription]);
t6180 = t6180.Replace("{#t10568#}",t10568 == null ? "" : t10568.ToString());
object t10641 = ContentLang;
t6180 = t6180.Replace("{#t10641#}",t10641 == null ? "" : t10641.ToString());
}
%><%=t6180%>
			</tbody>
		</table>
	</form>
	<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%>uploader.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>system.js"></script>
<asp:XmlDataSource ID="XmlData" runat="server"><Data><Template><t1745><If><![CDATA[
	var _type = "OuterLink";
]]></If><ElseIf0><![CDATA[
	var _type = "NonFunctional";
]]></ElseIf0><Else><![CDATA[
	var _type = "Functional";
]]></Else></t1745><t3195><If><![CDATA[
			<li class="Left"></li>
			<li class="Middle"><a href="change_template.aspx?Lang={#t3332#}&amp;ID={#t3356#}">更改模板</a></li>
			<li class="Right"></li>
			<li class="Left"></li>
			<li class="Middle"><a href="extra_instance.aspx?Lang={#t3514#}&amp;ID={#t3538#}">栏目邦定</a></li>
			<li class="Right"></li>
		]]></If></t3195><t4234><If><![CDATA[
					<tr>
						<th>实例：</th>
						<td>
							{#t4342#}
						</td>
					</tr>
				]]></If></t4234><t4342>
		                <RowSeparator>
			                <![CDATA[]]>
		                </RowSeparator>
		                <ColSeparator>
			                <![CDATA[]]>
		                </ColSeparator>
		                <RecordSeparator>
			                <![CDATA[]]>
		                </RecordSeparator>
		                <Record>
			                <![CDATA[
									{#t4511#}
								{#Record#}]]>
		                </Record>
		                <Col MaxRecord="0">
			                <![CDATA[{#Record#}{#Col#}]]>
		                </Col>
		                <Row MaxCol="0">
			                <![CDATA[{#Col#}{#Row#}]]>
		                </Row>
		                <All>
			                <![CDATA[
								<select name="InstanceID" class="{#t4453#}Font">
								{#Row#}
								</select>
							]]>
		                </All>
                        </t4342><t4511><If><![CDATA[
										<option value="{#ID#}" selected="selected">{#Name#}</option>
									]]></If><Else><![CDATA[
										<option value="{#ID#}">{#Name#}</option>
									]]></Else></t4511><t4982>
		                <Control>
		                    <Space>
			                    <![CDATA[&nbsp;&nbsp;]]>
		                    </Space>
		                    <Line>
			                    <![CDATA[│]]>
		                    </Line>
		                    <TopOpen>
			                    <![CDATA[┌]]>
		                    </TopOpen>
		                    <Top>
			                    <![CDATA[┌]]>
		                    </Top>
		                    <MiddleOpen>
			                    <![CDATA[├]]>
		                    </MiddleOpen>
		                    <Middle>
			                    <![CDATA[├]]>
		                    </Middle>
		                    <BottomOpen>
			                    <![CDATA[└]]>
		                    </BottomOpen>
		                    <Bottom>
			                    <![CDATA[└]]>
		                    </Bottom>
		                </Control>
		                <RowSeparator>
			                <![CDATA[]]>
		                </RowSeparator>
		                <ColSeparator>
			                <![CDATA[]]>
		                </ColSeparator>
		                <RecordSeparator>
			                <![CDATA[]]>
		                </RecordSeparator>
		                <Record>
			                <![CDATA[
									{#t5462#}
									{#ChildRecords#}
								{#Record#}]]>
		                </Record>
		                <Col MaxRecord="0">
			                <![CDATA[{#Record#}{#Col#}]]>
		                </Col>
		                <Row MaxCol="0">
			                <![CDATA[{#Col#}{#Row#}]]>
		                </Row>
		                <All>
			                <![CDATA[
								
								{#Row#}
							]]>
		                </All>
                        </t4982><t5462><If><![CDATA[
										<option value="{#ID#}" selected="selected">{#Control#}{#Name#}</option>
									]]></If><Else><![CDATA[
										<option value="{#ID#}">{#Control#}{#Name#}</option>
									]]></Else></t5462><t6180><If><![CDATA[
					<tr>
						<th>是否动态模板：</th>
						<td>
							{#t6287#}
						</td>
					</tr>
					<tr>
						<th>是否生成：</th>
						<td>
							{#t7412#}
						</td>
					</tr>
					<tr>
						<th>默认文档（首页）：</th>
						<td><input type="text" name="DefaultDocument" value="{#t8045#}" size="15" maxlength="50" class="Text" /></td>
					</tr>
					<tr>
						<th>扩展名：</th>
						<td><input type="text" name="Extension" value="{#t8224#}" size="10" maxlength="50" class="Text" /></td>
					</tr>
					<tr>
						<th>域名：</th>
						<td>
							<input type="text" name="Domain" value="{#t8402#}" size="40" maxlength="50" class="Text" /><br />
							以http://开头，以斜杠（/）结束，可以包含子目录。可绑定多个域名，多域名用"|"隔开。
						</td>
					</tr>
					<tr>
						<th>公告：</th>
						<td><textarea type="text" name="Notice" cols="60" rows="4" wrap="off" class="Text {#t8675#}Font">{#t8697#}</textarea></td>
					</tr>
					<tr>
						<th>脚注（版权信息）：</th>
						<td><textarea type="text" name="Footer" cols="60" rows="4" wrap="off" class="Text {#t8876#}Font">{#t8898#}</textarea></td>
					</tr>
					<tr>
						<th>ICP备案号：</th>
						<td><input type="text" name="ICP" value="{#t9034#}" size="40" class="Text" /></td>
					</tr>
					<tr>
						<th>统计代码：</th>
						<td><textarea type="text" name="StatisticsCode" cols="60" rows="2" wrap="off" class="Text">{#t9231#}</textarea></td>
					</tr>
					<tr>
						<th>栏目Logo：</th>
						<td>
							<input id="LogoTextbox" type="text" name="Logo" value="{#t9402#}" size="60" class="Text" />
							<input id="LogoBrowse" type="button" value="浏览..." />
							<input type="hidden" name="LogoAllowedType" value="gif|jpg|jpeg|png|bmp|png" />
							<a href="{#t9619#}" target="_blank"><img src="{#t9669#}" height="22" id="LogoView" alt="栏目Logo" style="vertical-align:bottom" /></a>
						</td>
					</tr>
					<tr>
						<th>链接Logo：</th>
						<td>
							<input id="LinkTextbox" type="text" name="Link" value="{#t9904#}" size="60" class="Text" />
							<input id="LinkBrowse" type="button" value="浏览..." />
							<input type="hidden" name="LinkAllowedType" value="gif|jpg|jpeg|png|bmp|png" />
							<a href="{#t10121#}" target="_blank"><img src="{#t10171#}" height="22" id="LinkView" alt="链接Logo" style="vertical-align:bottom" /></a>
						</td>
					</tr>
					<tr>
						<th>Meta：</th>
						<td>
							Keywords：<input type="text" name="MetaKeywords" value="{#t10404#}" size="20" maxlength="255" class="Text {#t10474#}Font" />
							Description：<input type="text" name="MetaDescription" value="{#t10568#}" size="20" maxlength="255" class="Text {#t10641#}Font" />
						</td>
					</tr>
				]]></If></t6180><t6287><If><![CDATA[
								<input type="radio" name="IsDynamicTemplate" id="IsDynamicTemplateYes" checked="checked" /><label for="IsDynamicTemplateYes">是</label>
								<input type="radio" name="IsDynamicTemplate" id="IsDynamicTemplateNo" /><label for="IsDynamicTemplateNo">否</label>
								<br />
								<span id="DynamicTemplateID">标识：<input type="text" name="DynamicTemplateID" value="{#t6720#}" size="50" />可以空。可以通过正则表达式从URL中抽取标识。匹配组名称为"ID"。</span>
							]]></If><Else><![CDATA[
								<input type="radio" name="IsDynamicTemplate" id="IsDynamicTemplateYes" /><label for="IsDynamicTemplateYes">是</label>
								<input type="radio" name="IsDynamicTemplate" id="IsDynamicTemplateNo" checked="checked" /><label for="IsDynamicTemplateNo">否</label>
								<br />
								<span id="DynamicTemplateID" style="display:none">标识：<input type="text" name="DynamicTemplateID" value="{#t7225#}" size="50" />可以空。可以通过正则表达式从URL中抽取标识。匹配组名称为"ID"。</span>
							]]></Else></t6287><t7412><If><![CDATA[
								<input type="radio" name="Generate" id="GenerateYes" checked="checked" /><label for="GenerateYes">是</label>
								<input type="radio" name="Generate" id="GenerateNo" /><label for="GenerateNo">否</label>
							]]></If><Else><![CDATA[
								<input type="radio" name="Generate" id="GenerateYes" /><label for="GenerateYes">是</label>
								<input type="radio" name="Generate" id="GenerateNo" checked="checked" /><label for="GenerateNo">否</label>
							]]></Else></t7412></Template></Data></asp:XmlDataSource></body>
</html>