<!--#include file="system_Fun.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<%=sitepath%>css/bootstrap.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/font-awesome.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/animate.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/style.min.css" rel="stylesheet">
<link href="<%=sitepath&adminPath%>css/adminstyle.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../../inc/webuploader/css/webuploader.css" />
<link rel="stylesheet" type="text/css" href="../../inc/webuploader/css/style.css" />
<script src="<%=sitepath%>js/jquery.min.js"></script>
<script src="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
<%
	  dim mapPath,folder
	  	mapPath    = server.mappath(sitePATH)	
		set folder = fso.getFolder(mapPath)	
		dim support,nosupport
		support="<span class='badge badge-primary'>支持</span>"
		nosupport="<span class='badge badge-danger'>不支持</span>"
	  %>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
  <div class="ibox float-e-margins">
    <div class="row m-t">

<div class="col-md-6">
							<div class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">系统设置</h3>
									<div class="panel-aj">
										<button type="button" class="btn-toggle-collapse"><i class="fa fa-chevron-down"></i></button>
										<button type="button" class="btn-remove"><i class="fa fa-times"></i></button>
									</div>
								</div>
<div class="panel-body">
<div class="panel-body no-padding">		
<div class="ibox-content">
<form method="post" action="?act=editsystem" class="form-horizontal">
        <div class="col-sm-12">
          <div class="tabs-container">
            <ul class="nav nav-tabs">
              <li class="tab1 active"><a data-toggle="tab" href="#tab-1" aria-expanded="true"> 系统设置</a> </li>
              <li class="tab2"><a data-toggle="tab" href="#tab-2" aria-expanded="false">会员设置</a> </li>
              <li class="tab8"><a data-toggle="tab" href="#tab-8" aria-expanded="false">留言设置</a> </li>
              <li class="tab3"><a data-toggle="tab" href="#tab-3" aria-expanded="false">手机设置</a> </li>
              <li class="tab4"><a data-toggle="tab" href="#tab-4" aria-expanded="false">水印设置</a> </li>
              <li class="tab5"><a data-toggle="tab" href="#tab-5" aria-expanded="false">邮件设置</a> </li>
              <!--短信设置<li class="tab7"><a data-toggle="tab" href="#tab-7" aria-expanded="false">短信设置</a> </li>-->
              <li class="tab6"><a data-toggle="tab" href="#tab-6" aria-expanded="false">数据库设置</a> </li>
            </ul>
            <div class="tab-content">
              <div id="tab-1" class="tab-pane active">
                <div class="panel-body">
                 <div class="form-group">
                    <div class="alert alert-info col-sm-10 col-md-offset-1"> 网站可在此位置进行关闭，关闭后显示提示文字。 </div>
                  </div>
                  
                  <div class="form-group">
                    <label class="col-sm-2 control-label">网站状态</label>
                    <div class="col-sm-2" id="webMode">
                      <input type="checkbox"  name="webMode"  value="1" class="js-switch" <%=checkonoff(webMode,"checked")%>>
                      <span class="help-block m-b-none"><%=checkonoff(webMode,"ch")%></span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 这里写点提示的内容</span> </div>
                  <div class="form-group hide-<%=webMode%>" id="showcloseinfo">
                    <label class="col-sm-2 control-label">关闭后说明</label>
                    <div class="col-sm-4">
                      <input type="text" value="<%=webcloseinfo%>" name="webcloseinfo" id="webcloseinfo" class="form-control">
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 关闭后提示文字</span> </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">网站路径</label>
                    <div class="col-sm-2">
                      <input type="text" value="<%=sitepath%>" name="sitepath" id="sitepath" class="form-control" readonly>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> “/”，网站根目录<code>此设置不能在此修改，可手动修改config/cms_config.asp</code></span> </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">后台路径</label>
                    <div class="col-sm-2">
                      <input type="text" value="<%=adminpath%>" name="adminpath" id="adminpath" class="form-control" readonly>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 默认“admin/”，<code>务必以/结尾,本系统所有文件夹都要以“/”结尾，后面不在说明</code></span> </div>
                </div>
              </div>
              <div id="tab-2" class="tab-pane">
                <div class="panel-body">
                  <div class="form-group">
                    <label class="col-sm-2 control-label">会员开关</label>
                    <div class="col-sm-2">
                      <input type="checkbox"  name="userMark" id="userMark" value="1" class="js-switch" <%=checkonoff(userMark,"checked")%>>
                      <span class="help-block m-b-none"><%=checkonoff(userMark,"ch")%></span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 关闭后，将不能新注册会员</span> </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">是否验证手机</label>
                    <div class="col-sm-2">
                      <input type="checkbox"  name="ischeckmobile" id="ischeckmobile" value="1" class="js-switch" <%=checkonoff(ischeckmobile,"checked")%>>
                      <span class="help-block m-b-none"><%=checkonoff(ischeckmobile,"ch")%></span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 关闭后，注册不验证手机</span> </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">是否验证邮箱</label>
                    <div class="col-sm-2">
                      <input type="checkbox"  name="ischeckemail" id="ischeckemail" value="1" class="js-switch" <%=checkonoff(ischeckemail,"checked")%>>
                      <span class="help-block m-b-none"><%=checkonoff(ischeckemail,"ch")%></span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 关闭后，注册不验证邮箱</span> </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">开启验证码</label>
                    <div class="col-sm-2">
                      <input type="checkbox"  name="usercode" id="usercode" value="1" class="js-switch" <%=checkonoff(usercode,"checked")%> >
                      <span class="help-block m-b-none"><%=checkonoff(usercode,"ch")%></span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 关闭后，注册登陆不验证验证码</span> </div>
                </div>
              </div>
              <div id="tab-8" class="tab-pane">
                <div class="panel-body">
                  <div class="form-group">
                    <label class="col-sm-2 control-label">留言开关</label>
                    <div class="col-sm-2">
                      <input type="checkbox"  name="gbookonoff" id="gbookonoff" value="1" class="js-switch" <%=checkonoff(gbookonoff,"checked")%>>
                      <span class="help-block m-b-none"><%=checkonoff(gbookonoff,"ch")%></span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 关闭后，留言将需要审核</span> </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">开启验证码</label>
                    <div class="col-sm-2">
                      <input type="checkbox"  name="gbookCode" id="gbookCode" value="1" class="js-switch" <%=checkonoff(gbookCode,"checked")%>>
                      <span class="help-block m-b-none"><%=checkonoff(gbookCode,"ch")%></span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 关闭后，留言不验证验证码</span> </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">匿名留言次数</label>
                    <div class="col-sm-2">
                      <input name="gbookanonymousnum" type="number"  class="form-control" max="9" min="1" value="<%=gbookanonymousnum%>">
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">会员留言次数</label>
                    <div class="col-sm-2">
                      <input type="number" value="<%=gbookusernum%>"  name="gbookusernum" max="9" min="1" class="form-control">
                    </div>
                  </div>
                </div>
              </div>
              <div id="tab-3" class="tab-pane">
                <div class="panel-body">
                  <div class="form-group">
                    <label class="col-sm-2 control-label">手机开关</label>
                    <div class="col-sm-2">
                      <input type="checkbox"  name="wapmark" id="wapmark" value="1" class="js-switch" <%=checkonoff(wapmark,"checked")%>>
                      <span class="help-block m-b-none"><%=checkonoff(wapmark,"ch")%></span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 开启后，手机访问将自动跳转到手机页面</span> </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">手机网站目录</label>
                    <div class="col-sm-2">
                      <input type="text" value="<%=wapPath%>" name="wapPath" id="wapPath" readonly class="form-control">
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 不可更改</span> </div>
                </div>
              </div>
              <div id="tab-4" class="tab-pane">
                <div class="panel-body">
                  <div class="form-group">
                    <div class="alert alert-info col-sm-10 col-md-offset-1"> 水印及自动缩略图功能，均需要使用aspjpeg服务器组件，正常的asp空间都默认支持，本地测试需要自己下载安装 </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">水印开关</label>
                    <div class="col-sm-1" id="waterMark" >
                      <input type="checkbox"  name="waterMark" value="1" class="js-switch" <%=checkonoff(waterMark,"checked")%>>
                      <span class="help-block m-b-none"><%=checkonoff(waterMark,"ch")%> </span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 防止盗图，会降低上传速度。ASPJPEG组件：
                    <% if isObjInstalled("Persits.Jpeg") then echo support  else  echo nosupport %>
                    </span> </div>
                  <div class="show-<%=waterMark%>" id="showwater">
                    <div class="form-group">
                      <label class="col-sm-2 control-label">水印类型</label>
                      <div class="col-sm-1">
                        <input type="checkbox"  name="waterType" class="js-switch"  value="1" <%=checkonoff(waterType,"checked")%>>
                        <span class="help-block m-b-none"><%=checkonoff(waterType,"ch")%> </span> </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 开启为图片水印，否则为文字水印</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">文字水印内容</label>
                      <div class="col-sm-4">
                        <input type="text" value="<%=waterMarkFont%>" name="waterMarkFont" id="waterMarkFont" class="form-control">
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 默认字体：微软雅黑，字体大小：自动</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">图片水印</label>
                      <div class="col-sm-4">
                        <input type="text" value="<%=waterMarkPic%>" name="waterMarkPic" id="waterMarkPic" class="form-control">
                      </div>
                      <div class="col-sm-1">
                     	 <div id="water_upload">上传</div>
                      </div>
                      <div class="col-sm-1"> <img src="<%=waterMarkPic%>" height="30"  id="img_waterMarkPic"></div>
                      <span class="help-block m-b-none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-info-circle"></i> 支持jpg|gif，png部分服务器不支持</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">最大宽度</label>
                      <div class="col-sm-1">
                        <input type="text" value="<%=markPicWidth%>" name="markPicWidth" id="markPicWidth" class="form-control">
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 是否压缩图片，压缩到最大宽度，500以内不压缩</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">最大高度</label>
                      <div class="col-sm-1">
                        <input type="text" value="<%=markPicHeight%>" name="markPicHeight" id="markPicHeight" class="form-control">
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 是否压缩图片，压缩到最大高度，500以内不压缩</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">图片透明度</label>
                      <div class="col-sm-1">
                        <input type="text" value="<%=markPicAlpha%>" name="markPicAlpha" id="markPicAlpha" class="form-control">
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 默认:0.5，填数字0-1即可</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">图片位置</label>
                      <div class="col-sm-1">
                        <select name="waterMarkLocation" id="waterMarkLocation" class="form-control">
                          <option value="1" <%if waterMarkLocation=1 then echo "selected"%>>左上</option>
                          <option value="2" <%if waterMarkLocation=2 then echo "selected"%>>上中</option>
                          <option value="3" <%if waterMarkLocation=3 then echo "selected"%>>右上</option>
                          <option value="4" <%if waterMarkLocation=4 then echo "selected"%>>左中</option>
                          <option value="5" <%if waterMarkLocation=5 then echo "selected"%>>正中</option>
                          <option value="6" <%if waterMarkLocation=6 then echo "selected"%>>右中</option>
                          <option value="7" <%if waterMarkLocation=7 then echo "selected"%>>左下</option>
                          <option value="8" <%if waterMarkLocation=8 then echo "selected"%>>下中</option>
                          <option value="9" <%if waterMarkLocation=9 then echo "selected"%>>右下</option>
                        </select>
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 水印位置，按9宫格位置，默认为5，正中间</span> </div>
                  </div>
                </div>
              </div>
              <div id="tab-5" class="tab-pane">
                <div class="panel-body">
                  <div class="form-group">
                    <div class="alert alert-info col-sm-10 col-md-offset-1"> 邮件提醒功能，需要使用您的邮箱作为发件方，服务器需要支持jmail组件，并正确填写下面信息。
                     <a href="<%=cms_verurl%>" class="btn btn-success"  target="_blank"><i class="fa fa-question-circle"></i> 配置说明</a> </div></div>                  
                  <div class="form-group">
                    <label class="col-sm-2 control-label">邮件开关</label>
                    <div class="col-sm-2" id="mailMark" >
                      <input type="checkbox"  name="mailMark" value="1" class="js-switch" <%=checkonoff(mailMark,"checked")%>>
                      <span class="help-block m-b-none"> <%=checkonoff(mailMark,"ch")%></span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 开启后，会员注册，订单，表单提交均发送邮件。 Jmail组件:
                    <% if isObjInstalled("JMail.SmtpMail") then echo support  else  echo nosupport %>
                    </span> </div>
                  <div class="show-<%=mailMark%>" id="showmail">
                    <div class="form-group">
                      <label class="col-sm-2 control-label">发件服务器</label>
                      <div class="col-sm-4">
                        <input type="text" value="<%=smtp_server%>" name="smtp_server" id="smtp_server" class="form-control">
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 参照：smtp.qq.com，建议使用企业邮箱</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">发件人</label>
                      <div class="col-sm-4">
                        <input type="text" value="<%=smtp_usermail%>" name="smtp_usermail" id="smtp_usermail" class="form-control">
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 参照：kelvinvt@qq.com</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">发件邮箱账号</label>
                      <div class="col-sm-4">
                        <input type="text" value="<%=smtp_user%>" name="smtp_user" id="smtp_user" class="form-control">
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 参照：kelvinvt，企业邮箱写全账号</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">发件邮箱密码</label>
                      <div class="col-sm-4">
                        <input type="text" value="<%=smtp_password%>" name="smtp_password" id="smtp_password" class="form-control">
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 参照：123456</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">收件邮箱地址</label>
                      <div class="col-sm-4">
                        <input type="text" value="<%=Receive_email%>" name="Receive_email" id="Receive_email" class="form-control">
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 参照：kelvinvt@qq.com，支持多个邮箱逗号分隔</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">留言邮件提醒</label>
                      <div class="col-sm-1" >
                        <input type="checkbox"  name="gbooksendmail" value="1" class="js-switch" <%=checkonoff(gbooksendmail,"checked")%>>
                        <span class="help-block m-b-none"><%=checkonoff(gbooksendmail,"ch")%></span> </div>
                      <label class="col-sm-2 control-label">注入邮件提醒</label>
                      <div class="col-sm-1" >
                        <input type="checkbox"  name="evalsendmail" value="1" class="js-switch" <%=checkonoff(evalsendmail,"checked")%>>
                        <span class="help-block m-b-none"> <%=checkonoff(evalsendmail,"ch")%></span> </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">注册邮件提醒</label>
                      <div class="col-sm-1" >
                        <input type="checkbox"  name="regsendmail" value="1" class="js-switch" <%=checkonoff(regsendmail,"checked")%>>
                        <span class="help-block m-b-none"> <%=checkonoff(regsendmail,"ch")%></span> </div>
                      <label class="col-sm-2 control-label">登陆邮件提醒</label>
                      <div class="col-sm-1" >
                        <input type="checkbox"  name="loginsendmail" value="1" class="js-switch" <%=checkonoff(loginsendmail,"checked")%>>
                        <span class="help-block m-b-none"> <%=checkonoff(loginsendmail,"ch")%></span> </div>
                      <label class="col-sm-2 control-label">忘记密码邮件提醒</label>
                      <div class="col-sm-1" >
                        <input type="checkbox"  name="forgetsendmail" value="1" class="js-switch" <%=checkonoff(forgetsendmail,"checked")%>>
                        <span class="help-block m-b-none"> <%=checkonoff(forgetsendmail,"ch")%></span> </div>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">测试邮箱配置</label>
                    <div class="col-sm-2" >
                      <button type="button" class="btn btn-info" id="tryemail"><i class="fa fa-envelope"></i>　发送测试邮件</button>
                      <script>
					 $("#tryemail").click(function(){
						var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
						var smtp_server= $("#smtp_server").val()
						var smtp_usermail= $("#smtp_usermail").val()
						var smtp_user= $("#smtp_user").val()
						var smtp_password= $("#smtp_password").val()
						var Receive_email= $("#Receive_email").val()
						  $.post('<%=sitepath&adminpath%>/cms_Content/system/system_Fun.asp?act=tryemail',function(data) {if(date=true){alert("测试环境成功，如未收到邮件请确认密码正确，是否开启pop协议等")}});})
					 </script> 
                    </div>
                  </div>
                </div>
              </div>
              <div id="tab-6" class="tab-pane">
                <div class="panel-body">
                 <div class="form-group">
                 <div class="alert alert-info col-sm-10 col-md-offset-1"> kcms系统默认采用access数据库，但同时支持mssql数据库，不过需要迁移数据。服务器上需要支持【SQLServer】
并需要将access数据迁移到mssql上，kcms官方支持access转mssql数据服务 <a href="<%=cms_verurl%>"  class="btn btn-success" target="_blank">申请转换</a>
                   </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">数据库类型</label>
                    <div class="col-sm-2" id="dbType" >
                      <input type="checkbox"  name="dbType" class="js-switch" value="1" <%=checkonoff(dbType,"checked")%>>
                      <span class="help-block m-b-none"><%=checkonoff(dbType,"db")%></span> </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 默认access，开启后为mssql</span> </div>
                  <div class="hide-<%=dbType%>" id="showdbsql">
                    <div class="form-group">
                      <label class="col-sm-2 control-label">数据库路径</label>
                      <div class="col-sm-2">
                        <input type="text" value="<%=dbpath%>" name="dbpath" id="dbpath" class="form-control" readonly>
                      </div>
                      <span class="help-block m-b-none"><i class="fa fa-info-circle"></i><code>不能在此位置修改</code>,默认“data/”，务必以/结尾</span> </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">数据库名称</label>
                      <div class="col-sm-2">
                        <input type="text" value="<%=dbfile%>" name="dbfile" id="dbfile" class="form-control">
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">数据库密码</label>
                      <div class="col-sm-2">
                        <input type="text" value="<%=dbPass%>" name="dbPass" id="dbPass" class="form-control">
                      </div>
                    </div>
                  </div>
                  <div class="show-<%=dbType%>" id="showmssql">
                    <div class="form-group">
                      <label class="col-sm-2 control-label">MSSQL服务器</label>
                      <div class="col-sm-2">
                        <input type="text" value="<%=dataServer%>" name="dataServer" id="dataServer" class="form-control">
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">MSSQL端口</label>
                      <div class="col-sm-2">
                        <input type="text" value="<%=dbPort%>" name="dbPort" id="dbPort" class="form-control">
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">MSSQL数据库名称</label>
                      <div class="col-sm-2">
                        <input type="text" value="<%=dataName%>" name="dataName" id="dataName" class="form-control">
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">MSSQL用户</label>
                      <div class="col-sm-2">
                        <input type="text" value="<%=dataUser%>" name="dataUser" id="dataUser" class="form-control">
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">MSSQL密码</label>
                      <div class="col-sm-2">
                        <input type="text" value="<%=datapass%>" name="datapass" id="datapass" class="form-control">
                      </div>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">后台记录SQL</label>
                    <div class="col-sm-2" id="logSql">
                      <input type="checkbox"  name="logSql" class="js-switch" value="1"  <%=checkonoff(logSql,"checked")%>>
                    </div>
                    <span class="help-block m-b-none"><%=checkonoff(logSql,"ch")%> <i class="fa fa-info-circle"></i> 开启后台数据修改记录功能</span> </div>
                  <div class="form-group show-<%=logSql%>" id="showlogSql">
                    <label class="col-sm-2 control-label">保留记录数</label>
                    <div class="col-sm-2">
                      <input type="text" value="<%=dellogSql%>" name="dellogSql" id="dellogSql" class="form-control">
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> '保留多少条记录(0为不删除,双倍时候会自动删除,默认100条，达到200自动删除前100)</span> </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="col-sm-12  m-t">
          <div class=" col-sm-10 col-md-offset-1">
            <button class="btn btn-primary" type="submit"><i class="fa fa-floppy-o"></i>　保存内容</button>
            <button onClick="location.reload()" class="btn btn-primary1" type="button"><i class="fa fa-refresh"></i> 刷新</button>
          </div>
        </div>
      </form>
            </div>
</div>
</div>

							</div>
						</div>

    </div>
  </div>
  <!-- End Panel Other --> 
</div>
<script src="<%=sitepath%>js/klorofil-common.js"></script>
<script src="<%=sitepath%>js/bootstrap.min.js"></script> 
<script type="text/javascript" src="../../inc/webuploader/js/webuploader.js"></script> 
<script type="text/javascript" charset="utf-8" src="../../inc/webuploader/config.asp"></script> 
<script type="text/javascript" src="../../inc/webuploader/js/oneupload.js"></script> 
<link href="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.css" rel="stylesheet">
<script src="<%=sitepath%>plugins/switchery/switchery.js"></script>
<link href="<%=sitepath%>plugins/switchery/switchery.css" rel="stylesheet">
<script src="<%=sitepath%>plugins/layer/layer.min.js"></script> 
<script src="<%=sitepath&adminPath%>js/adminjs.js"></script> 
<script>
$(function () {
fileuploader("water_upload","image","logo","waterMarkPic","water")
var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch'));
	elems.forEach(function(html) {
	var switchery = new Switchery(html);
 	html.onchange = function() {
	var help=$(this).parent().find(".help-block")
	if(html.checked==true) {help.text("已开启")}
	else{help.text("已关闭")}
	};
});
   var location = window.location.href;
          var href= location+"";
          var href_part=href.split('#');          
          var num=(href_part[1]);
        // alert (num);
		 $("."+num+" a").trigger("click"); 
		  
      $("#webMode").click(function () {
		    if ($("#webMode input").is(":checked")) {                
				  $("#showcloseinfo").css("display", "none");					
            }
            else {
              	$("#showcloseinfo").css("display", "block");
            }
        });       
        $("#waterMark").click(function () {
		    if ($("#waterMark input").is(":checked")) {
                $("#showwater").css("display", "block");
            }
            else {
                $("#showwater").css("display", "none");
            }
        });
        $("#mailMark").click(function () {
		    if ($("#mailMark input").is(":checked")) {
                $("#showmail").css("display", "block");
            }
            else {
                $("#showmail").css("display", "none");
            }
        });
		
		$("#smsMark").click(function () {
		    if ($("#smsMark input").is(":checked")) {
                $("#showsms").css("display", "block");
            }
            else {
                $("#showsms").css("display", "none");
            }
        });
      
        $("#dbType").click(function () {
		    if ($("#dbType input").is(":checked")) {
                $("#showmssql").css("display", "block");
				$("#showdbsql").css("display", "none");
            }
            else {
                $("#showmssql").css("display", "none");
				$("#showdbsql").css("display", "block");
            }
        });
        $("#logSql").click(function () {
		    if ($("#logSql input").is(":checked")) {
                $("#showlogSql").css("display", "block");			
            }
            else {
                $("#showlogSql").css("display", "none");			
            }
        });

});
  </script>
</body>
</html>