<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<%@ Register TagPrefix="alicmsUC" TagName="Ime" Src="../../ime.dwt.ascx"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<ali:Get ID="ThisChannel" Object="Channel" InnerID="Request.QueryString['ID']" Validate="True" />

<title>更换模板</title>
<link rel="stylesheet"  href="<%=CommonPath%>jquery/themes/lightness/all.css" >
<ali:Comment><link rel="stylesheet"  href="../../S01/CHS/css/common.css" ></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" >
<alicmsUC:Ime Ime="false" Eot="true" runat="server" />
<script language="c#" runat="server">
protected object ModuleID
{
	get
	{
		DataRow[] rows = Manager.Instances.Select(Alias.Instance.ID + "='" + ThisChannel[Alias.Channel.InstanceID] + "'");
		if (rows.Length == 0)
			return String.Empty;
		else
			return rows[0][Alias.Module.Namespace];
		/*
		if (!Guid.Equals(ThisChannel[AliCMS.SystemModule.Alias.Channel.InstanceID], Guid.Empty))
		{
			using (AliCMS.SystemModule.IInstance bll = (AliCMS.SystemModule.IInstance)Manager.CreateObject("Instance", InstanceID, null))
			{
				DataTable instanceTable = bll.List(1, 1, AliCMS.SystemModule.Alias.Instance.ID + "=" + ThisChannel[AliCMS.SystemModule.Alias.Channel.InstanceID], null);
				if (instanceTable != null)
					return instanceTable.Rows[0][AliCMS.SystemModule.Alias.Instance.ModuleID].ToString();
			}
		}
		
		return Guid.Empty.ToString();
		*/
	}
}
</script>
<script >
var _page = 'channel_change_template',
    _lang = '<%=ContentLang%>',
    _webPath = '<%=WebPath%>',
    _imagePath = '<%=ImagePath%>',
    _id = '<%=Request.QueryString["ID"]%>',
    _templateLang = '<%=ThisChannel[TemplateLang]%>',
    _channelLang = '<%=ThisChannel[Lang]%>',
    _translateLang = '<%=ThisChannel[TranslateLang]%>',
    _templatePath = '<%=ThisChannel[TemplatePath]%>',
    _skinPath = '<%=ThisChannel[SkinPath]%>',
    _moduleID = '<%=ModuleID%>',
    _xmlTemplate,
    _xmlSkin,
    _lang_working = '正在操作...',
    _lang_operation_fail = '操作失败！',
    _lang_operation_success = '操作成功！',
    _lang_uyl = '维吾尔拉丁文',
    _lang_uyc = '维吾尔西里尔文',
    _lang_kgc = '柯尔克孜西里尔文',
    _lang_cht = '繁体中文',
    _lang_loading_template_list = '正在获取模板列表...',
    _lang_loading_skin_list = '正在获取皮肤列表...',
    _lang_select_template = '请选择模版！',
    _lang_select_skin = '请选择皮肤！';
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" ></div>
	<div class="Title"><a href="../channel/list.aspx?Lang=<%=ContentLang%>">栏目列表</a> → <span class="<%=ContentLang%>Font"><%=ThisChannel[Name]%></span></div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="../channel/edit.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">编辑</a></li>
		<li class="Right"></li>
		<li class="Left Selected"></li>
		<li class="Middle Selected">更改模板</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../channel/extra_instance.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">栏目邦定</a></li>
		<li class="Right"></li>
		<%If Convert.ToBoolean(ThisChannel[EnableMenu])%>
			<li class="Left"></li>
			<li class="Middle"><a href="../channel/menu/list.aspx?Lang=<%=ContentLang%>&amp;ChannelID=<%=Request.QueryString["ID"]%>">栏目菜单</a></li>
			<li class="Right"></li>
			<li class="Left"></li>
			<li class="Middle"><a href="../channel/menu/add.aspx?Lang=<%=ContentLang%>&amp;ChannelID=<%=Request.QueryString["ID"]%>">添加菜单</a></li>
			<li class="Right"></li>
		<%EndIf%>
	</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">
			<tbody>
				<tr>
					<th>智能翻译成：</th>
					<td>
						<select name="TranslateLang">
							<option value="">未指定</option>
						</select>
						<span id="MatchSpan" style="display:none"><input type="checkbox" id="Match" /><label for="Match">匹配</label></span>
					</td>
				</tr>
				<tr>
					<th>模板：</th>
					<td>
						<select name="TemplatePath" class="Text"></select>
					</td>
				</tr>
				<tr>
					<th>皮肤：</th>
					<td>
						<select name="SkinPath" class="Text"></select>
					</td>
				</tr>
				<tr>
					<th>模板缩略图：</th>
					<td><img id="Thumbnail" width="100" height="100" /></td>
				</tr>
			</tbody>
			<tfoot>
				<tr>
					<td colspan="2">
						<input type="submit" value="修改" >
						<input type="hidden" name="TemplateLang" value="<%=ThisChannel[TemplateLang]%>" >
					</td>
				</tr>
			</tfoot>
		</table>
	</form>
	<div class="Footer"></div>
</div>
<script src="<%=CommonPath%>jquery/core.js"></script>
<script src="<%=CommonPath%>jquery/ui.js"></script>
<script src="<%=Manager.GetModulePath(null)%><%=Instance[AliCMS.SystemModule.Alias.Module.Namespace]%>/alias.js"></script>
<script src="<%=CommonPath%>uploader.js"></script>
<script src="<%=CommonPath%>xmldom.js"></script>
<script src="<%=CommonPath%>utility.js"></script>
<script src="<%=JsPath%>global.js"></script>
<script src="<%=ModuleJsPath%>module.js"></script>
</body>
</html>