<%@ 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" -->
<ilghar:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" 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="true" Eot="true" runat="server" />
<script type="text/javascript">
var _page = "config_basic";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
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_logo_type_must_be = "网站Logo类型应为：";
var _lang_start_upload_link = "开始上传链接Logo...";
var _lang_uploading_link = "正在上传链接Logo...";
var _lang_link_type_must_be = "链接Logo类型应为：";
</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="email.aspx?Lang=<%=ContentLang%>">邮件设置</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="water_mark.aspx?Lang=<%=ContentLang%>">水印设置</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="rewrite.aspx?Lang=<%=ContentLang%>">URL重写</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="global.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>
	<form>
		<table border="0" cellpadding="4" cellspacing="1">
			<tfoot>
				<tr>
					<td colspan="2"><input type="submit" class="Button" value="保 存" /></td>
				</tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="140">网站名称：</th>
					<td><input type="text" name="Name" value="<%=Config[Name]%>" size="40" maxlength="100" class="Text <%=ContentLang%>Font" /></td>
				</tr>
				<tr>
					<th>网站简介：</th>
					<td><textarea id="HtmlEditor" EditorLang="<%=ContentLang%>" EditorInstanceID="<%=Channel[IlgharCMS.SystemModule.Alias.Instance.InnerID]%>" EditorUpload="<%=AdminPath%>" EditorToolBar="Basic" style="display:none;width:380px;height:100px"><%=HttpUtility.HtmlEncode(Config[Description].ToString())%></textarea></td>
				</tr>
				<tr>
					<th>网站公告：</th>
					<td><textarea type="text" name="Notice" cols="60" rows="4" wrap="off" class="Text <%=ContentLang%>Font"><%=Config[Notice]%></textarea></td>
				</tr>
				<tr>
					<th>脚注（版权信息）：</th>
					<td><textarea type="text" name="Footer" cols="60" rows="4" wrap="off" class="Text <%=ContentLang%>Font"><%=Config[Footer]%></textarea></td>
				</tr>
				<tr>
					<th>ICP备案号：</th>
					<td><input type="text" name="ICP" value="<%=Config[ICP]%>" size="40" class="Text" /></td>
				</tr>
				<tr>
					<th>统计代码：</th>
					<td><textarea type="text" name="StatisticsCode" cols="60" rows="2" wrap="off" class="Text"><%=Config[StatisticsCode]%></textarea></td>
				</tr>
				<tr>
					<th>上传类型：</th>
					<td><textarea type="text" name="UploadType" cols="60" rows="4" wrap="off" class="Text"><%=Config[UploadType]%></textarea></td>
				</tr>
				<tr>
					<th>404错误页面：</th>
					<td><input type="text" name="Error404Redirect" value="<%=Config[Error404Redirect]%>" size="60" class="Text" /></td>
				</tr>
				<tr>
					<th>错误页面：</th>
					<td><input type="text" name="ErrorRedirect" value="<%=Config[ErrorRedirect]%>" size="60" class="Text" /></td>
				</tr>
				<tr>
					<th>显示验证码：</th>
					<td>
						<%If Convert.ToBoolean(Config[DisplayCheckCode])%>
							<input type="radio" name="DisplayCheckCode" id="DisplayCheckCodeYes" checked="checked" /><label for="DisplayCheckCodeYes">是</label>
							<input type="radio" name="DisplayCheckCode" id="DisplayCheckCodeNo" /><label for="DisplayCheckCodeNo">否</label>
						<%Else%>
							<input type="radio" name="DisplayCheckCode" id="DisplayCheckCodeYes" /><label for="DisplayCheckCodeYes">是</label>
							<input type="radio" name="DisplayCheckCode" id="DisplayCheckCodeNo" checked="checked" /><label for="DisplayCheckCodeNo">否</label>
						<%EndIf%>
					</td>
				</tr>
				<tr>
					<th>网站Logo：</th>
					<td>
						<input id="LogoTextbox" type="text" name="Logo" value="<%=Config[Logo]%>" size="60" class="Text" />
						<input id="LogoBrowse" type="button" value="浏览..." />
						<input type="hidden" name="LogoAllowedType" value="gif|jpg|jpeg|png|bmp|png" />
						<a href="<%=Config[Logo]%>" target="_blank"><img src="<%=Config[Logo]%>" 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="<%=Config[Link]%>" size="60" class="Text" />
						<input id="LinkBrowse" type="button" value="浏览..." />
						<input type="hidden" name="LinkAllowedType" value="gif|jpg|jpeg|png|bmp|png" />
						<a href="<%=Config[Link]%>" target="_blank"><img src="<%=Config[Link]%>" 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="<%=Config[MetaKeywords]%>" size="20" maxlength="255" class="Text <%=ContentLang%>Font" />
						Description：<input type="text" name="MetaDescription" value="<%=Config[MetaDescription]%>" size="20" maxlength="255" class="Text <%=ContentLang%>Font" />
					</td>
				</tr>
			</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%>IlgharHtmlEditor.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>