<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<%@ Register TagPrefix="alicmsUC" TagName="Ime" Src="../../ime.dwt.ascx"%>
<%@ Register TagPrefix="alicmsUC" TagName="LanguageMenu" Src="../../language_menu.dwt.ascx"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" 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="true" Eot="true" runat="server" />
<script >
var _page = 'config_basic',
    _lang = '<%=ContentLang%>',
    _webPath = '<%=WebPath%>',
    _imagePath = '<%=ImagePath%>',
    _uploadLogo = false,
    _uploadLink = false,
    _lang_working = '正在操作...',
    _lang_operation_fail = '操作失败！',
    _lang_operation_success = '操作成功！',
    _lang_start_upload_logo = '开始上传网站Logo...',
    _lang_uploading_logo = '正在上传网站Logo...',
    _lang_logo_type_must_be = '网站Logo类型应为：',
    _lang_start_upload_link = '开始上传链接Logo...',
    _lang_uploading_link = '正在上传链接Logo...',
    _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">
		<alicmsUC: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="../config/email.aspx?Lang=<%=ContentLang%>">邮件设置</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../config/water_mark.aspx?Lang=<%=ContentLang%>">水印设置</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../config/rewrite.aspx?Lang=<%=ContentLang%>">URL重写</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../config/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">
			
			<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 name="Description" data-lang="<%=PageLang%>" data-content-lang="<%=ContentLang%>" data-toolbar="Basic" data-browse-url="<%=AdminBrowserURL%>?Root=<%=InstanceID%>" class="editor"><%=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 name="Footer" data-lang="<%=PageLang%>" data-content-lang="<%=ContentLang%>" data-toolbar="Basic" data-browse-url="<%=AdminBrowserURL%>?Root=<%=InstanceID%>" class="editor"><%=HttpUtility.HtmlEncode(Config[Footer].ToString())%></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>
			<tfoot>
				<tr>
					<td colspan="2"><input type="submit" class="Button" value="保 存" ></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="<%=CommonPath%>uploader.js"></script>
<script src="<%=CommonPath%>utility.js"></script>
<script src="<%=JsPath%>global.js"></script>
<script src="<%=ModuleJsPath%>module.js"></script>
</body>
</html>