<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<%@ Register TagPrefix="IlgharUC" TagName="Ime" Src="../../ime.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" -->
<ilghar:Get ID="ThisChannel" Object="Channel" InnerID="Request.QueryString['ID']" Validate="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 language="c#" runat="server">
protected string ModuleID
{
	get
	{
		if (!Guid.Equals(ThisChannel[IlgharCMS.SystemModule.Alias.Channel.InstanceID], Guid.Empty))
		{
			using (IlgharCMS.SystemModule.IInstance bll = (IlgharCMS.SystemModule.IInstance)Manager.CreateObject("Instance", InstanceID, null))
			{
				DataTable instanceTable = bll.List(1, 1, IlgharCMS.SystemModule.Alias.Instance.ID + "=" + ThisChannel[IlgharCMS.SystemModule.Alias.Channel.InstanceID], null);
				if (instanceTable != null)
					return instanceTable.Rows[0][IlgharCMS.SystemModule.Alias.Instance.ModuleID].ToString();
			}
		}
		
		return Guid.Empty.ToString();
	}
}
</script>
<script type="text/javascript">
var _page = "channel_change_template";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _id = "<%=Request.QueryString["ID"]%>";
var _templateLang = "<%=ThisChannel[TemplateLang]%>";
var _channelLang = "<%=ThisChannel[Lang]%>";
var _translateLang = "<%=ThisChannel[TranslateLang]%>";
var _templatePath = "<%=ThisChannel[TemplatePath]%>";
var _skinPath = "<%=ThisChannel[SkinPath]%>";
var _moduleID = "<%=ModuleID%>";
var _xmlTemplate;
var _xmlSkin;
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_uyl = "维吾尔拉丁文";
var _lang_uyc = "维吾尔西里尔文";
var _lang_kgc = "柯尔克孜西里尔文";
var _lang_cht = "繁体中文";
var _lang_loading_template_list = "正在获取模板列表...";
var _lang_loading_skin_list = "正在获取皮肤列表...";
var _lang_select_template = "请选择模版！";
var _lang_select_skin = "请选择皮肤！";
</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[Name]%></span></div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="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="extra_instance.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">栏目邦定</a></li>
		<li class="Right"></li>
	</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 type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=Manager.GetModulePath(null)%><%=Instance[IlgharCMS.SystemModule.Alias.Module.Namespace]%>/alias.js"></script>
<script type="text/javascript" src="<%=CommonPath%>uploader.js"></script>
<script type="text/javascript" src="<%=CommonPath%>xmldom.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>
</body>
</html>