<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
<title>{echo admin_title()}</title>
<!--header-->
{template _:header}
</head>
<body>
<div class="layui-layout layui-layout-admin">
<!--top-->
{template _main_top}
<!--nav-->
{template _main_nav}
	<div class="position"><h1>通知设置</h1></div>
	<div class="layui-body admin-body">
		<div class="admin-content">
			<blockquote class="layui-elem-quote">
				<font color="red">短信通知用于密码重置，邮件通知用于商户审核结果。</font>
			</blockquote>
			<form name="theform" id="theform" method="post" action="{echo \befen\get_url()}">
			<div class="layui-tab layui-tab-brief">
				<ul class="layui-tab-title">
					<li class="layui-this">短信设置</li>
					<li class="">邮件设置</li>
				</ul>
				<div class="layui-tab-content">
					<div class="layui-tab-item layui-show">
						<div class="opwindow">
							<table class="layui-table">
								<tbody>
									<tr>
										<td class="td1">{$sys_cfg[sms_switch]['title']}</td>
										<td class="td2">
											<input type="radio" name="sms_switch" class="radio" id="sms_switch_0" value="0"<!--{if $sys_cfg['sms_switch']['value'] == '0'}--> checked<!--{/if}--> /> <label for="sms_switch_0" style="cursor:pointer;">关闭</label>&nbsp;&nbsp;
											<input type="radio" name="sms_switch" class="radio" id="sms_switch_1" value="1"<!--{if $sys_cfg['sms_switch']['value'] == '1'}--> checked<!--{/if}--> /> <label for="sms_switch_1" style="cursor:pointer;">开启</label>&nbsp;&nbsp;
										</td>
									</tr>
									<tr>
										<td class="td1">{$sys_cfg[sms_SignName]['title']}</td>
										<td class="td2"><input type="text" name="sms_SignName" id="sms_SignName" class="layui-input layui-long-input" value="{$sys_cfg[sms_SignName]['value']}" placeholder=""></td>
									</tr>
									<tr>
										<td class="td1">{$sys_cfg[sms_TemplateCode]['title']}</td>
										<td class="td2"><input type="text" name="sms_TemplateCode" id="sms_TemplateCode" class="layui-input layui-long-input" value="{$sys_cfg[sms_TemplateCode]['value']}" placeholder=""></td>
									</tr>
									<tr>
										<td class="td1">{$sys_cfg[sms_AccessKeyId]['title']}</td>
										<td class="td2"><input type="text" name="sms_AccessKeyId" id="sms_AccessKeyId" class="layui-input layui-long-input" value="{$sys_cfg[sms_AccessKeyId]['value']}" placeholder=""></td>
									</tr>
									<tr>
										<td class="td1">{$sys_cfg[sms_AccessKeySecret]['title']}</td>
										<td class="td2"><input type="text" name="sms_AccessKeySecret" id="sms_AccessKeySecret" class="layui-input layui-long-input" value="{$sys_cfg[sms_AccessKeySecret]['value']}" placeholder=""></td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					<div class="layui-tab-item" style="display:none;">
						<div class="opwindow">
							<table class="layui-table">
								<tbody>
									<tr>
										<td class="td1">{$sys_cfg[mail_switch]['title']}</td>
										<td class="td2">
											<input type="radio" name="mail_switch" class="radio" id="mail_switch_0" value="0"<!--{if $sys_cfg['mail_switch']['value'] == '0'}--> checked<!--{/if}--> /> <label for="mail_switch_0" style="cursor:pointer;">关闭</label>&nbsp;&nbsp;
											<input type="radio" name="mail_switch" class="radio" id="mail_switch_1" value="1"<!--{if $sys_cfg['mail_switch']['value'] == '1'}--> checked<!--{/if}--> /> <label for="mail_switch_1" style="cursor:pointer;">开启</label>&nbsp;&nbsp;
										</td>
									</tr>
									<tr>
										<td class="td1">{$sys_cfg[mail_AccountName]['title']}</td>
										<td class="td2"><input type="text" name="mail_AccountName" id="mail_AccountName" class="layui-input layui-long-input" value="{$sys_cfg[mail_AccountName]['value']}" placeholder=""></td>
									</tr>
									<tr style="display:none;">
										<td class="td1">{$sys_cfg[mail_AddressType]['title']}</td>
										<td class="td2"><input type="text" name="mail_AddressType" id="mail_AddressType" class="layui-input layui-long-input" value="{$sys_cfg[mail_AddressType]['value']}" placeholder=""></td>
									</tr>
									<tr style="display:none;">
										<td class="td1">{$sys_cfg[mail_ReplyToAddress]['title']}</td>
										<td class="td2"><input type="text" name="mail_ReplyToAddress" id="mail_ReplyToAddress" class="layui-input layui-long-input" value="{$sys_cfg[mail_ReplyToAddress]['value']}" placeholder=""></td>
									</tr>
									<tr>
										<td class="td1">{$sys_cfg[mail_FromAlias]['title']}</td>
										<td class="td2"><input type="text" name="mail_FromAlias" id="mail_FromAlias" class="layui-input layui-long-input" value="{$sys_cfg[mail_FromAlias]['value']}" placeholder=""></td>
									</tr>
									<tr>
										<td class="td1">{$sys_cfg[mail_AccessKeyId]['title']}</td>
										<td class="td2"><input type="text" name="mail_AccessKeyId" id="mail_AccessKeyId" class="layui-input layui-long-input" value="{$sys_cfg[mail_AccessKeyId]['value']}" placeholder=""></td>
									</tr>
									<tr>
										<td class="td1">{$sys_cfg[mail_AccessKeySecret]['title']}</td>
										<td class="td2"><input type="text" name="mail_AccessKeySecret" id="mail_AccessKeySecret" class="layui-input layui-long-input" value="{$sys_cfg[mail_AccessKeySecret]['value']}" placeholder=""></td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					<div style="margin-top:-11px;">
						<table class="layui-table">
							<tbody>
								<tr>
									<td class="td1"></td>
									<td class="td2"><button type="submit" name="submit" value="submit" id="submit" class="layui-btn">提交</button></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
			</form>
		</div>
	</div>
</div>
<!--footer-->
{template _:footer}
<script type="text/javascript">
$("#submit").click(function(){
	ajaxSubmit(this, "", "#theform");
});
</script>
</body>
</html>