<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KGCMS企业应用管理平台 - Powered by KGCMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<!-- <meta http-equiv="cache-control" content="no-siteapp" /> -->
<link rel="stylesheet" type="text/css" href="{{kg['tpl_url']}}style/set_globals.css">
<script src="{{kg['tpl_url']}}script/jquery.min.js"></script>
<script src="{{kg['server']['HTTP_HOST']}}/tools/amazeui/js/amazeui.min.js"></script>
<script src="{{kg['tpl_url']}}script/common.js"></script>
<script src="{{kg['tpl_url']}}script/set_globals.js"></script>
<script src="{{kg['tpl_url']}}script/bs_popover.js"></script>
</head>
<body data-type="generalComponents">
	{% include 'component_header.tpl' %}
	<div class="tpl-page-container tpl-page-header-fixed">
		<div class="scrollbar-wrap">
		{% include 'component_left.tpl' %}
		<div class="tpl-content-wrapper">
			<div class="tpl-content-page-title">
				系统全局参数设置
			</div>
			<ol class="am-breadcrumb">
				<li><a href="./" class="am-icon-home">首页</a></li>
				<li class="am-active">系统全局参数设置</li>
			</ol>
			<div class="tpl-portlet-components">
				<div class="portlet-title clearfix">
					<div class="caption font-green bold">
						<span class="am-icon-code"></span>&nbsp;系统全局参数设置
					</div>
					<div class="portlet-input input-small input-inline ngar-xiugai-width">
						<div class="input-icon right am-fr top-1">
							<div class="am-btn-group am-btn-group-xs">
								<button class="am-btn am-btn-secondary ng-add-hightB" id="web_set"><span class="am-icon-search"></span>&nbsp;网站配置</button>
								<button class="am-btn am-btn-default am-btn-warning" id="public_set"><span class="am-icon-plus"></span>&nbsp;公众号</button>
								<button class="am-btn am-btn-default am-btn-primary" id="email_set"><span class="am-icon-recycle"></span>&nbsp;邮件配置</button>
								<button class="am-btn am-btn-default am-btn-success" id="ftp_set"><span class="am-icon-recycle"></span>&nbsp;FTP配置</button>
								<button class="am-btn am-btn-default am-btn-success" id="send_set"><span class="am-icon-recycle"></span>&nbsp;短信与邮件</button>
								<button class="am-btn am-btn-secondary ng-add-hightB" id="wxpay_set"><span class="am-icon-search"></span>&nbsp;微信接口</button>
								<button class="am-btn am-btn-default am-btn-warning" id="alipay_set"><span class="am-icon-plus"></span>&nbsp;支付宝接口</button>
								<button class="am-btn am-btn-default am-btn-warning" id="product_set"><span class="am-icon-plus"></span>&nbsp;商品属性管理</button>
							</div>
						</div>
						<div class="am-cf"></div>
					</div>
				</div>
				<input type="hidden" value="{{tab}}" id="tab">
				<div class="tpl-block">
					<!-- <from class="am-g"> -->
					<div class="tpl-form-body tpl-form-line" style="padding-bottom: 0px;">
						<div class="am-form tpl-form-line-form">
							<div class="am-tabs" data-am-tabs="{noSwipe:1}">
								<div class="am-tabs-bd">
									<div class="am-tab-panel am-fade am-active am-in" id="tab1">
										<form method="post" action="">
											<div class="am-form-group">
												<label for="topayw" class="am-u-sm-3 am-form-label">调试模式<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Debug</span></label>
												<div class="tpl-switch">
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" {% if data['globals'].get('debug_mode', '' )==1 %} checked="checked" {% else %} {% endif %}name="debug" value="1" id="topayw">
														<div class="tpl-switch-btn-view">
															<div></div>
														</div>
														<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="服务器访问协议,http|https|auto,设置后将强制转向,auto为自动" data-trigger="hover">
															<i class="am-icon-info-circle"></i>
														</span>
													</div>
												</div>
											</div>
											<div class="am-form-group">
												<label for="topayr" class="am-u-sm-3 am-form-label">静态文件缓存<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Static</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<div class="tpl-switch">
														<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" {% if data['globals'].get('cache_control', '' )==1 %} checked="checked" {% else %} {% endif %}name="static" value="1" id="topayr">
														<div class="tpl-switch-btn-view">
															<div></div>
														</div>
														<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="静态文件缓存开关,http|https|auto,设置后将强制转向,auto为自动" data-trigger="hover">
															<i class="am-icon-info-circle"></i>
														</span>
													</div>
												</div>
											</div>
											<div class="am-form-group">
												<label for="freight" class="am-u-sm-3 am-form-label">Cookie过期时间<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Cookie</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<input type="text" class="tpl-form-input num_input" id="freight" name="cookie" value="{{data['globals'].get('cookie_expire', '')}}" placeholder="距离当前时间的小时数，支持小数：0.1H=6M，负数删除Cookie">
													<span class="unit">小时</span>
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="Cookie过期时间，距离当前时间的小时数，支持小数：0.1H=6M，支持负数删除Cookie，0为浏览器进程" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label class="am-u-sm-3 am-form-label">访问协议<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Protocol</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<label class="am-radio-inline">
														<input type="radio" {% if data['globals'].get('server_protocol', '' )=='http' %} checked="checked" {% else %} {% endif %}name="protocol" value="http"> http
													</label>
													<label class="am-radio-inline">
														<input type="radio" {% if data['globals'].get('server_protocol', '' )=='https' %} checked="checked" {% else %} {% endif %}name="protocol" value="https"> https
													</label>
													<label class="am-radio-inline">
														<input type="radio" {% if data['globals'].get('server_protocol', '' )=='auto' %} checked="checked" {% else %} {% endif %}name="protocol" value="auto"> auto
													</label>
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="服务器访问协议,http|https|auto,设置后将强制转向,auto为自动" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label for="insure" class="am-u-sm-3 am-form-label">系统管理后台目录<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Path</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<input type="text" class="tpl-form-input" id="insure" name="path" value="{{data['globals'].get('admin_dir', '')}}">
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="系统管理后台目录, 只定义该参数,不需要改物理目录名" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label class="am-u-sm-3 am-form-label">后台语言包<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Language</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3 posi_box2">
													<select name="language" data-am-selected="{btnSize: 'sm'}" style="display: none;">
														<option value="请选择后台语言包">请选择后台语言包</option>
														{% for row in language %}
														<option {% if data['globals'].get('admin_language', '' )==row %} selected="selected" {% endif %}value="{{row}}">{{row}}</option>
														{% endfor %}
													</select>
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="后台语言包" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label class="am-u-sm-3 am-form-label">后台模板<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Template</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3 posi_box3">
													<select name="template" data-am-selected="{btnSize: 'sm'}" style="display: none;">
														<option  value="请选择后台模板">请选择后台模板</option>
														{% for row in temp %}
														<option {% if data['globals'].get('admin_template', '' )==row['dir'] %} selected="selected" {% endif %}value="{{row['dir']}}">{{row['dir']}}/{{row['name']}}</option>
														{% endfor %}
													</select>
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="后台模板" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label  class="am-u-sm-3 am-form-label">项目静态目录<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Catalogues</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<input type="text" class="tpl-form-input"  name="static_path" value="{{data['globals'].get('static_path', '')}}" placeholder="路径，多个请使用逗号隔开">
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="设置项目静态文件访问目录（路径），该目录下的文件可直接访问，使用逗号隔开" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label  class="am-u-sm-3 am-form-label">项目静态文件<span class="tpl-form-line-small-title">&nbsp;/&nbsp;File</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<input type="text" class="tpl-form-input"  name="static_file" value="{{data['globals'].get('static_file', '')}}" placeholder="文件，多个请使用逗号隔开">
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="设置项目静态文件，设置的文件可直接访问，使用逗号隔开" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label  class="am-u-sm-3 am-form-label">允许上传的文件类型<span class="tpl-form-line-small-title">&nbsp;/&nbsp;FileType</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<input type="text" class="tpl-form-input" id="1description" name="filetype" value="{{data['globals'].get('upload_type', '')}}" placeholder="后缀名，多个请使用逗号隔开">
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="允许上传的文件类型, 后缀名" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label  class="am-u-sm-3 am-form-label">上传文件大小限制<span class="tpl-form-line-small-title">&nbsp;/&nbsp;FileSize</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<input type="text" class="tpl-form-input num_input ngse-upText" id="descriptione" name="filesize" value="{{data['globals'].get('upload_file_size', '')}}" placeholder="上传文件大小限制, 单位 M">
													<span class="unit">M</span>
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="上传文件大小限制" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label  class="am-u-sm-3 am-form-label">上传图片大小限制<span class="tpl-form-line-small-title">&nbsp;/&nbsp;ImgSize</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<input type="text" class="tpl-form-input num_input ngse-upImg" id="descriptriont" name="imagesize" value="{{data['globals'].get('upload_imag_size', '')}}" placeholder="上传图片大小限制, 单位 M">
													<span class="unit">M</span>
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="上传图片大小限制" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label  class="am-u-sm-3 am-form-label">数据库操作日志<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Log</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<div class="tpl-switch">
														<input type="checkbox" {% if data['globals'].get('mysql_log', '' )==1 %} checked="checked" {% else %} {% endif %}class="ios-switch bigswitch tpl-switch-btn" name="log" value="1" id="topayu">
														<div class="tpl-switch-btn-view">
															<div></div>
														</div>
														<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="数据库操作日志是否开启, 开启后, 对数据库进行&quot;增/删/改&quot;操作时均将会被记录" data-trigger="hover">
															<i class="am-icon-info-circle"></i>
														</span>
													</div>
												</div>
											</div>
											<div class="am-form-group">
												<label for="topayj" class="am-u-sm-3 am-form-label">访问统计<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Access</span>
												</label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<div class="tpl-switch">
														<input type="checkbox" {% if data['globals'].get('access_count', '' )==1 %} checked="checked" {% else %} {% endif %}class="ios-switch bigswitch tpl-switch-btn" name="access" value="1" id="topayj">
														<div class="tpl-switch-btn-view">
															<div></div>
														</div>
														<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="访问统计开关，必须同时开启计划任务时有效" data-trigger="hover">
															<i class="am-icon-info-circle"></i>
														</span>
													</div>
												</div>
											</div>
											<div class="am-form-group">
												<label for="topayn" class="am-u-sm-3 am-form-label">自动计划任务<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Task</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<div class="tpl-switch">
														<input type="checkbox" {% if data['globals'].get('task_plan', '' )==1 %} checked="checked" {% else %} {% endif %}class="ios-switch bigswitch tpl-switch-btn" name="task" value="1" id="topayn">
														<div class="tpl-switch-btn-view">
															<div></div>
														</div>
														<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="自动计划任务开启，自动清理缓存文件、日志、流量统计等" data-trigger="hover">
															<i class="am-icon-info-circle"></i>
														</span>
													</div>
												</div>
											</div>
											<div class="am-form-group">
												<label  class="am-u-sm-3 am-form-label">日志保留最大记录数<span class="tpl-form-line-small-title">&nbsp;/&nbsp;LogMax</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<input type="text" class="tpl-form-input num_input ngse-journal" id="descriptiono" name="log_max" value="{{data['globals']['log_max_row']}}" placeholder="日志保留最大记录数，超出将自动清理旧的日志，可根据硬件配置适当调大">
													<span class="unit">万条</span>
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="日志保留最大记录数，超出将自动清理旧的日志，可根据硬件配置适当调大" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label for="descriptiona" class="am-u-sm-3 am-form-label">访问记录保留最大数<span class="tpl-form-line-small-title">&nbsp;/&nbsp;AccessMax</span>
												</label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<div class="tpl-switch">
														<input type="text" class="tpl-form-input num_input ngse-description" id="descriptiona" name="access_max" value="{{data['globals']['access_max_row']}}" placeholder="访问记录保留最大数，超出将自动清理旧的记录">
														<div class="tpl-switch-btn-view">
															<div></div>
														</div>
														<span class="unit">万条</span>
														<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="访问记录保留最大数，超出将自动清理旧的记录" data-trigger="hover">
															<i class="am-icon-info-circle"></i>
														</span>
													</div>
												</div>
											</div>
											<div class="am-form-group">
												<label  class="am-u-sm-3 am-form-label">富文本编辑器大小<span class="tpl-form-line-small-title">&nbsp;/&nbsp;RichText</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<label  class="am-form-label">宽:</label>
													<input type="text" class="tpl-form-input num_input ngse-Ojs-width" id="descriptiong" name="editor_width" value="{{data['globals']['editor_size'][0]}}" placeholder="富文本编辑器大小宽和高用逗号隔开，例：1000px,500px">
													<label  class="am-form-label">高:</label>
													<input type="text" class="tpl-form-input num_input ngse-Ojs-height" id="description" name="editor_height" value="{{data['globals']['editor_size'][1]}}" placeholder="富文本编辑器大小宽和高用逗号隔开，例：1000px,500px">
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="富文本编辑大小，需要带上单位（%或px），如 1000px 或 80%" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="am-form-group">
												<label  class="am-u-sm-3 am-form-label">ICP备案号<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Icp</span></label>
												<div class="am-u-sm-6 am-u-sm-pull-3">
													<input type="text" class="tpl-form-input" id="icp" name="icp" value="{{data['globals'].get('icp', '')}}" placeholder="备案号">
													<span class="input-icon-description font-green" data-container="body" data-toggle="popover" data-placement="auto" data-content="网站服务器/域名备案号" data-trigger="hover">
														<i class="am-icon-info-circle"></i>
													</span>
												</div>
											</div>
											<div class="tpl-form-body tpl-form-line">
												<div class="am-form-group">
													<div class="am-u-md-9 am-u-md-push-5">
														<input type="hidden" name="set" value="web">
														<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success distances" >立即设置</button>
													</div>
												</div>
											</div>
										</form>
									</div>
									<div class="am-tab-panel am-fade" id="tab2" style="">
										<form method="post" action="">
											<div class='am-form tpl-form-line-form'>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">微信服务器接口URL<span class="tpl-form-line-small-title">&nbsp;/Description</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="descriptionm" name="url" value="{{data['weixin']['url']}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">公众号微信号<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Description</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="descriptionq" name="number" value="{{data['weixin']['number']}}">
													</div>
												</div>
												<div class="am-form-group">
													<label for="token1" class="am-u-sm-3 am-form-label">授权码<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Key</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="token1" name="key" value="{{data['weixin']['key']}}">
													</div>
												</div>
												<div class="am-form-group">
													<label for="token2" class="am-u-sm-3 am-form-label">微信接口<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Token</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="token2" name="token" value="{{data['weixin']['token']}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">微信账号原始ID<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Id</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="Id" name="id" value="{{data['weixin']['id']}}">
													</div>
												</div>
												<div class="am-form-group">
													<label for="appid" class="am-u-sm-3 am-form-label">开发者凭据<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Appid</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="appid" name="appid" value="{{data['weixin']['appid']}}">
													</div>
												</div>
												<div class="am-form-group">
													<label for="appsecretq" class="am-u-sm-3 am-form-label">开发者凭据<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Appsecret</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="appsecretq" name="appsecret" value="{{data['weixin']['appsecret']}}">
													</div>
												</div>
												<div class="am-form-group">
													<label for="appsecretw" class="am-u-sm-3 am-form-label">微信加密有效时间<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Appsecret</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="appsecretw" name="valid_time" value="{{data['weixin']['valid_time']}}">
													</div>
												</div>
												<div class="am-form-group">
													<label for="ak" class="am-u-sm-3 am-form-label">百度地图开发者密钥<span class="tpl-form-line-small-title">&nbsp;/&nbsp;AK</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="ak" name="ak" value="{{data['weixin']['baidu_ak']}}"><a class="am-icon-link am-ak"></a>
													</div>
												</div>
												<div class="am-form-group">
													<label class="am-u-sm-3 am-form-label">附近搜索功能<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Enable</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<div class="tpl-switch">
															<input {% if data['weixin']['nearby_search'] %} checked="checked" {% endif %} type="checkbox" value='1' class="ios-switch bigswitch tpl-switch-btn" name="nearby_search" />
															<div class="tpl-switch-btn-view">
																<div></div>
															</div>
														</div>
													</div>
												</div>
												<div class="am-form-group">
													<label class="am-u-sm-3 am-form-label">高级接口<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Enable</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<div class="tpl-switch">
															<input {% if data['weixin']['advanced'] %} checked="checked" {% endif %} type="checkbox" value="1" class="ios-switch bigswitch tpl-switch-btn" name="advanced" />
															<div class="tpl-switch-btn-view">
																<div></div>
															</div>
														</div>
													</div>
												</div>
											</div>
											<div class="tpl-form-body tpl-form-line">
												<div class="am-form-group">
													<div class="am-u-md-9 am-u-md-push-5">
														<input type="hidden" name="set" value="weixin">
														<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success distances" >立即设置</button>
													</div>
												</div>
											</div>
										</form>
									</div>
									<!-- 邮件配置 -->
									<div class="am-tab-panel am-fade" id="tab3" style="">
										<form method="post" action="">
											<div class='am-form tpl-form-line-form'>
												<div class="am-form-group">
													<label class="am-u-sm-3 am-form-label">邮件发送方式<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Method</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<select data-am-selected="{btnSize: 'sm'}" style="display: none;" name="mailer">
															<option value="smtp" {% if data['mail'].get('mailer', 'smtp') == 'smtp'%}selected="selected"{% endif %}>SMTP</option>
															<option value="mail" {% if data['mail'].get('mailer', 'smtp') == 'mail'%}selected="selected"{% endif %}>PHP Mail</option>
														</select>
													</div>
												</div>
												<div class="am-form-group">
													<label class="am-u-sm-3 am-form-label">发件箱地址<span class="tpl-form-line-small-title">&nbsp;/&nbsp;SendAddress</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" name="frommail" value="{{data['mail'].get('frommail', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">发件人姓名<span class="tpl-form-line-small-title">&nbsp;/&nbsp;SendName</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" name="fromname" value="{{data['mail'].get('fromname', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label class="am-u-sm-3 am-form-label">SMTP服务器<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Server</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" name="smtphost" value="{{data['mail'].get('smtphost', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label class="am-u-sm-3 am-form-label">SMTP端口<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Port</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" name="smptport" value="{{data['mail'].get('smptport', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label class="am-u-sm-3 am-form-label">SMTP身份验证<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Check</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<div class="tpl-switch">
															<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" name="smtpauth" value="1" {% if data['mail'].get('smtpauth', 0) %}checked {% endif %}>
															<div class="tpl-switch-btn-view">
																<div></div>
															</div>
														</div>
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">SMTP登陆用户名<span class="tpl-form-line-small-title">&nbsp;/&nbsp;UserNmae</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" name="smtpuser" value="{{data['mail'].get('smtpuser', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">SMTP登录密码<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Password</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" name="smtppass" value="{{data['mail'].get('smtppass', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label class="am-u-sm-3 am-form-label">SMTP安全连接<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Type</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<select data-am-selected="{btnSize: 'sm'}" style="display: none;" name="starttls">
															<option value="none" {% if data['mail'].get('starttls', 'none') == 'none'%}selected="selected"{% endif %}>NONE</option>
															<option value="ssl" {% if data['mail'].get('starttls', '') == 'ssl'%}selected="selected"{% endif %}>SSL</option>
															<option value="tls" {% if data['mail'].get('starttls', '') == 'tls'%}selected="selected"{% endif %}>TLS</option>
														</select>
													</div>
												</div>
												<div class="am-form-group">
													<label class="am-u-sm-3 am-form-label">发送一封测试邮件<span class="tpl-form-line-small-title">&nbsp;/&nbsp;TestEmail</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<div class="tpl-switch">
															<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" name="enable" value="1" {% if data['mail'].get('enable', 0) %}checked {% endif %} disabled>
															<div class="tpl-switch-btn-view">
																<div></div>
															</div>
														</div>
														<input type="text" class="tpl-form-input" name="testaddress" value="{{data['mail'].get('testaddress', '')}}">
													</div>
												</div>
											</div>
											<div class="tpl-form-body tpl-form-line">
												<div class="am-form-group">
													<div class="am-u-md-9 am-u-md-push-5">
														<input type="hidden" name="set" value="email">
														<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success distances" >立即设置</button>
													</div>
												</div>
											</div>
										</form>
									</div>
									<!-- FTP配置 -->
									<div class="am-tab-panel am-fade" id="tab4" style="">
										<form method="post" action="">
											<div class='am-form tpl-form-line-form'>
												<div class="am-form-group">
													<label class="am-u-sm-3 am-form-label">启用FTP上传文件<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Upload</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<div class="tpl-switch">
															<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" value="1" name="enable" {% if data['ftp'].get('enable', 0) %}checked {% endif %}>
															<div class="tpl-switch-btn-view">
																<div></div>
															</div>
														</div>
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">FTP主机地址<span class="tpl-form-line-small-title">&nbsp;/&nbsp;ServerAddress</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="desq" name="host" value="{{data['ftp'].get('host', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">FTP端口<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Port</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input"  name="port" value="{{data['ftp'].get('port', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">FTP用户名<span class="tpl-form-line-small-title">&nbsp;/&nbsp;UserName</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" name="user" value="{{data['ftp'].get('user', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">FTP密码<span class="tpl-form-line-small-title">&nbsp;/&nbsp;PassWord</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" name="pwd" value="{{data['ftp'].get('pwd', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">网站位于FTP中的目录<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Path</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" name="root" value="{{data['ftp'].get('root', '')}}">
													</div>
												</div>
											</div>
											<div class="tpl-form-body tpl-form-line">
												<div class="am-form-group">
													<div class="am-u-md-9 am-u-md-push-5">
														<input type="hidden" name="set" value="ftp">
														<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success distances" >立即设置</button>
													</div>
												</div>
											</div>
										</form>
									</div>
									<!-- 短信与邮箱 -->
									<div class="am-tab-panel am-fade" id="tab5" style="">
										<form method="post" action="">
											<div class='am-form tpl-form-line-form'>
	<!--											<div class="am-form-group">-->
	<!--												<label for="title" class="am-u-sm-3 am-form-label">启用短信接口&nbsp;<span class="tpl-form-line-small-title">Enable</span></label>-->
	<!--												<div class="tpl-switch">-->
	<!--													<div class="am-u-sm-6 am-u-sm-pull-3">-->
	<!--														<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" value="1" name="send_enable" id="topay">-->
	<!--														<div class="tpl-switch-btn-view">-->
	<!--															<div></div>-->
	<!--														</div>-->
	<!--														<div class="input-description">是否启用</div>-->
	<!--													</div>-->
	<!--												</div>-->
	<!--											</div>-->
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">签名<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Sign</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="Sign" name="send_sign" value="{{data['send'].get('sign', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">Access_Id<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Id</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="Account" name="send_account" value="{{data['send'].get('id', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">Access_Secret<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Secret</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="Password" name="send_pswd" value="{{data['send'].get('secret', '')}}">
													</div>
												</div>
												<div class="am-form-group">
													<label  class="am-u-sm-3 am-form-label">接口地址<span class="tpl-form-line-small-title">&nbsp;/&nbsp;Url</span></label>
													<div class="am-u-sm-6 am-u-sm-pull-3">
														<input type="text" class="tpl-form-input" id="Url" name="send_url" value="{{data['send'].get('url', '')}}">
													</div>
												</div>
											</div>
											<div class="tpl-form-body tpl-form-line">
												<div class="am-form-group">
													<div class="am-u-md-9 am-u-md-push-5">
														<input type="hidden" name="set" value="sms">
														<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success distances" >立即设置</button>
													</div>
												</div>
											</div>
										</form>
									</div>
									<!-- 微信支付接口 -->
									<div class="am-tab-panel am-fade" id="tab6" style="">
										<form method="post" action="">
											<div class="tpl-block ">
												<div class="am-g">
													<div class="tpl-form-body tpl-form-line">
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">APPID<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" class="tpl-form-input" name="appid" value="{{data['wxpay'].get('appid', '')}}">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">受理商ID<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" class="tpl-form-input" name="mchid" value="{{data['wxpay'].get('mchid', '')}}">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">密钥(key)<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" class="tpl-form-input" name="key" value="{{data['wxpay'].get('key', '')}}">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">APPSECRET<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" class="tpl-form-input" name="appsecret" value="{{data['wxpay'].get('appsecret', '')}}">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">支付授权目录<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" placeholder="" class="tpl-form-input" name="" value="{{data['wxpay'].get('url', '')}}" readonly style="background-color: #eeeeee !important;">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">是否启用<span></span></label>
															<div class="am-u-md-1 am_fl_zi_tihuan">
																<div class="tpl-switch">
																	<input type="checkbox"  name="enable" value="1" class="ios-switch bigswitch tpl-switch-btn" {% if data['wxpay'].get('enable', 0) %}checked {% endif %}/>
																	<!-- <input type="checkbox" id="Comment" name="comment" class="ios-switch bigswitch tpl-switch-btn" /> -->
																	<div class="tpl-switch-btn-view"><div></div></div>
																</div>
															</div>
														</div>
													</div>
												</div>
											</div>
											<div class="tpl-form-body tpl-form-line">
												<div class="am-form-group">
													<div class="am-u-md-9 am-u-md-push-5">
														<input type="hidden" name="set" value="wxpay">
														<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success distances" >立即设置</button>
													</div>
												</div>
											</div>
										</form>
									</div>
									<!-- 支付宝接口 -->
									<div class="am-tab-panel am-fade" id="tab7" style="">
										<form method="post" action="">
											<div class="tpl-block ">
												<div class="am-g">
													<div class="tpl-form-body tpl-form-line">
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">支付宝登录帐号<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" class="tpl-form-input" name="account" value="{{data['alipay'].get('account', '')}}">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">合作者身份(PID)<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" class="tpl-form-input" name="id" value="{{data['alipay'].get('id', '')}}">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">安全校验码(Key)<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" class="tpl-form-input" name="key" value="{{data['alipay'].get('key', '')}}">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">APPID<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" class="tpl-form-input" name="appid" value="{{data['alipay'].get('appid', '')}}">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">开发者私钥<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" class="tpl-form-input" name="rsaprivatekey" value="{{data['alipay'].get('rsaprivatekey', '')}}">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">支付宝公钥<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<input type="text" class="tpl-form-input" name="alipayrsapublickey" value="{{data['alipay'].get('alipayrsapublickey', '')}}">
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">接口服务类型<span></span></label>
															<div class="am-u-md-2 am_fl_zi_tihuan posi_box2">
																<select name="service" data-am-selected="{btnSize: 'sm'}" style="display: none;">
																	<option {% if data['alipay'].get('service', 0) == 0%}selected="selected"{% endif %}value="0">即使到账收款</option>
																	<option {% if data['alipay'].get('service', 0) == 1%}selected="selected"{% endif %}value="1">担保交易收款</option>
																	<option {% if data['alipay'].get('service', 0) == 2%}selected="selected"{% endif %}value="2">双功能收款</option>
																</select>
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label" style="padding-top: 5px;">访问模式<span></span></label>
															<div class="am-u-md-8  am_fl_zi_tihuan posi_box">
																<label class="am-radio-inline">
																	<input type="radio" {% if data['alipay'].get('transport', '') == 'http'%}checked="checked"{% endif %} name="transport" value="http">&nbsp;http
																</label>
																<label class="am-radio-inline">
																	<input type="radio" {% if data['alipay'].get('transport', '') == 'https'%}checked="checked"{% endif %} name="transport" value="https">&nbsp;https
																</label>
															</div>
														</div>
														<div class="am-form-group am-form-icon am-form-feedback">
															<label for="" class="am-u-sm-3 am-form-label">是否启用<span></span></label>
															<div class="am-u-md-1 am_fl_zi_tihuan">
																<div class="tpl-switch">
																	<input type="checkbox" id="Comment" name="enable" value="1" class="ios-switch bigswitch tpl-switch-btn" {% if data['alipay'].get('enable', 0) %}checked{% endif %} />
																	<!-- <input type="checkbox" id="Comment" name="comment" class="ios-switch bigswitch tpl-switch-btn" /> -->
																	<div class="tpl-switch-btn-view"><div></div></div>
																</div>
															</div>
														</div>
													</div>
												</div>
											</div>
											<div class="tpl-form-body tpl-form-line">
												<div class="am-form-group">
													<div class="am-u-md-9 am-u-md-push-5">
														<input type="hidden" name="set" value="alipay">
														<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success distances" >立即设置</button>
													</div>
												</div>
											</div>
										</form>
									</div>
									<!-- 商品规格 -->
									<div class="am-tab-panel am-fade" id="tab8" style="">
										<form method="post" action="">
											<div class="tpl-block ">
												<div class="am-g">
													<div class="tpl-form-body tpl-form-line" id="speci-box">
														{% for row in speci %}
														{% set index = loop.index0 %}
														<div class="am-form-group margin-left-title" data-option="group">
															<ul class="list-inline">
																<li class="align-top">
																	<label class="am-form-label">商品属性：</label>
																		<input type="text" class="name-input am-form-field align-middle" name="speci_name[]" value="{{row['name']}}">
																		{%- if loop.index0 == 0 -%}<span class="am-icon-plus-circle align-middle" data-target-option="group"></span>{%- endif -%}
																		{%- if loop.index0 > 0 -%}<span class="am-icon-minus-circle align-middle" data-target-option="group"></span>{%- endif -%}
																</li>
																<li class="align-top">
																	<ul class="list-inline">
																		<li class="align-top">
																		<label for="" class="am-form-label">商品参数：</label>
																		
																	</li>
																	<li class="align-top" >
																	<ul class="list-unstyled" data-option="list">
																		{% if not row['param'] %}
																			<li data-option="item"><input type="text" class="tpl-form-input" name="speci_param{{index}}[]" value=""><span class="am-icon-plus-circle" data-target-option="list"></span></li>
																		{% else %}
																		{% for var in row['param'] %}
																		<li data-option="item"><input type="text" class="tpl-form-input align-middle" name="speci_param{{index}}[]" value="{{var}}"><span class="am-icon-{% if loop.index0 == 0 %}plus{% else %}minus{% endif %}-circle align-middle" data-target-option="item"></span></li>
																		{% endfor %}
																		{% endif %}
																	</ul>
																	</li>
																</li>
															</ul>
														</div>
														{% endfor %}
													</div>
												</div>
											</div>
											<div class="tpl-form-body tpl-form-line">
												<div class="am-form-group">
													<div class="am-u-md-9 am-u-md-push-5">
														<input type="hidden" name="set" value="speci">
														<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success distances" >立即设置</button>
													</div>
												</div>
											</div>
										</form>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!-- </from> -->
					<div class="am-alert am-alert-success success-info ngco-No-marginT">
						<ul class="margin-bottom-none padding-left-lg">
							<li class="am-state-info">状态说明：</li>
							<li class="am-verify">
								<!-- <span class="am-icon-clock-o am-icon-sm am-past"></span> -->
								&nbsp;&nbsp;1、正常模式：将屏蔽所有的错误信息及提示，网站正常运营时必须启用此模式。<br />
								<!-- <span class="am-icon-clock-o am-icon-sm am-normal"></span> -->
								&nbsp;&nbsp;2、调试模式：显示除了公告以外的所有错误信息及语法标准提示信息、数据缓存功能会被禁用、显示数据库错误信息、出错的SQL语句会被完整的显示出来。此模式<br />
								<!-- 只限于开发阶段调试用，它决不能使用于网站正常环境下。 -->
								<!-- <span class="am-icon-check-circle am-icon-sm am-normal-forever"></span> -->
								&nbsp;&nbsp;3、静态文件缓存：开启后客户端浏览器将会缓存所有静态文件：图片、CSS、JavaScript 等静态文件。<br />
								<!-- <span class="am-icon-ban am-icon-sm am-forbid"></span>&nbsp;&nbsp;帐号已被禁用，用户无法登录-->
							</li>
						</ul>
					</div>
				</div>
			</div>
			{% include 'component_footer.tpl' %}
		</div>
		</div><!-- /.scrollbar-wrap -->
	</div>
</body>

</html>