<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetEmailSettings()" 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" >
<script >
var _page = 'config_email',
    _lang = '<%=ContentLang%>',
    _webPath = '<%=WebPath%>',
    _imagePath = '<%=ImagePath%>',
    _tool = '<%=Config[ESTool]%>',
    _lang_working = '正在操作...',
    _lang_operation_fail = '操作失败！',
    _lang_operation_success = '操作成功！';
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" ></div>
	<div class="Title">邮件设置</div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="../config/basic.aspx?Lang=<%=ContentLang%>">基本设置</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="../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="250">工具：</th>
					<td>
						<select name="Tool">
							<option value="DotNet">DotNet</option>
							<option value="JMail">JMail</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>您的姓名：</th>
					<td><input type="text" name="Name" value="<%=Config[ESName]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>电子邮件地址：</th>
					<td><input type="text" name="Address" value="<%=Config[ESAddress]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>帐户：</th>
					<td><input type="text" name="Account" value="<%=Config[ESAccount]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>密码：</th>
					<td><input type="password" name="Password" maxlength="100" class="Text" >不修改，则留空</td>
				</tr>
				<tr>
					<th>发送邮件服务器（SMTP）：</th>
					<td><input type="text" name="Server" value="<%=Config[ESServer]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>我的发送服务器（SMTP）要求验证：</th>
					<td>
						<%If Convert.ToBoolean(Config[ESNeedValidation])%>
							<input type="radio" name="NeedValidation" id="NeedValidationYes" checked="checked" /><label for="NeedValidationYes">是</label>
							<input type="radio" name="NeedValidation" id="NeedValidationNo" /><label for="NeedValidationNo">否</label>
						<%Else%>
							<input type="radio" name="NeedValidation" id="NeedValidationYes" /><label for="NeedValidationYes">是</label>
							<input type="radio" name="NeedValidation" id="NeedValidationNo" checked="checked" /><label for="NeedValidationNo">否</label>
						<%EndIf%>
					</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%>utility.js"></script>
<script src="<%=JsPath%>global.js"></script>
<script src="<%=ModuleJsPath%>module.js"></script>
</body>
</html>