<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:58:"F:\sywork\www\hsycms.v2.0/app/hsycms\view\site\config.html";i:1564472216;s:57:"F:\sywork\www\hsycms.v2.0\app\hsycms\view\index\head.html";i:1564124847;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HSYCMS后台管理系统</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="__PUBLIC__/public/layui/css/layui.css?v=<?php echo time(); ?>" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/public/admin/css/touchTouch.css?v=<?php echo time(); ?>">
<link rel="stylesheet" href="__PUBLIC__/public/admin/css/admin.css?v=<?php echo time(); ?>" />
<link rel="stylesheet" href="__PUBLIC__/public/admin/css/<?php echo config('webadminstyle'); ?>.css?v=<?php echo time(); ?>" />
<script src="__PUBLIC__/public/admin/js/jquery.js?v=<?php echo time(); ?>"></script>
<script src="__PUBLIC__/public/admin/js/validform5.3.2min.js"></script>
<script src="__PUBLIC__/public/layer/layer.js?v=<?php echo time(); ?>"></script>
<script src="__PUBLIC__/public/layui/layui.js?v=<?php echo time(); ?>"></script>
<script src="__PUBLIC__/public/admin/js/touchTouch.jquery.js"></script> 
<script src="__PUBLIC__/public/admin/js/admin.js?v=<?php echo time(); ?>"></script>
</head>
<body>
<script type="text/javascript">
if(top.location==self.location){
  window.close();
}
</script> 
<script src="__PUBLIC__/public/ueditor/ueditor.config.js"></script> 
<script src="__PUBLIC__/public/ueditor/ueditor.all.js"></script> 
<script>
UE.getEditor('content'); 
</script>
<div class="box auto">
  <div class="box-head">
    <ul class="bhtab">
      <li class="on"><a href="javascript:void(0)"><i class="icon-comment"></i> 网站信息</a></li>
      <li><a href="javascript:void(0)"><i class="icon-desktop"></i> 站点配置</a></li>
      <li><a href="javascript:void(0)"><i class="icon-tablet"></i> 移动端配置</a></li>
      <li><a href="javascript:void(0)"><i class="icon-phone-square"></i> 联系信息</a></li>
      <li><a href="javascript:void(0)"><i class="icon-envelope"></i> 邮箱配置</a></li>      
    </ul>
  </div>
  <div class="form">
    <form method="post" action="<?php echo url('updateConfig'); ?>" class="sycmsform" data-type="ajax">
      <!-- 网站信息 -->
      <ul class="tabcon" style="display:block">
        <li>
          <label>网站标题：</label>
          <div class="item">
            <input type="text" name="webtitle" value="<?php echo $v['webtitle']; ?>" datatype="*" nullmsg="请输入网站标题" class="input w60"/>
          </div>
        </li>
        <li>
          <label>网站LOGO：</label>
          <div class="item">
            <input type="text" name="weblogo" value="<?php echo $v['weblogo']; ?>" class="input"/>
            <button type="button" class="button fl" onclick="sycms.showupload(this)" id="image1" at="dg"><i class="icon-plus"></i>浏览上传</button>
            <div class="clear"></div>
            <div class="input-image"><?php if($v['weblogo']): ?><img src="<?php echo $v['weblogo']; ?>" alt="" /><?php endif; ?></div>
          </div>
        </li>
        <li>
          <label>网站域名：</label>
          <div class="item">
            <input type="text" name="weburl" value="<?php echo $v['weburl']; ?>" datatype="*" nullmsg="请输入网站域名" class="input"/>
            <span class="tips">必填 例如：http://www.xxx.cn/ 后面加上斜杠</span> </div>
        </li>
        <li>
          <label>网站关健字：</label>
          <div class="item">
            <input type="text" name="webkeywords" value="<?php echo $v['webkeywords']; ?>" class="input w100"/>
          </div>
        </li>
        <li>
          <label>网站描述：</label>
          <div class="item">
            <textarea name="webdescription" class="input w100" style="height:70px; margin-bottom:12px;"><?php echo $v['webdescription']; ?></textarea>
          </div>
        </li>
        <li>
          <label>版权信息：</label>
          <div class="item"> 
            <script id="content" name="webcopyright" type="text/plain" style="width:100%;height:200px;"><?php echo $v['webcopyright']; ?></script> 
          </div>
        </li>
      </ul>
      
      <!-- 站点配置 -->
      <ul  class="tabcon">
         <li>
          <label>网站状态：</label>
          <div class="item">
            <input type="hidden" value="<?php echo (isset($v['webstatus']) && ($v['webstatus'] !== '')?$v['webstatus']:1); ?>" name="webstatus" />
            <div class="switch <?php if($v['webstatus'] == 1): ?>on<?php endif; ?>" id="closeweb"><em ontxt="打开" offtxt="关闭"><?php if($v['webstatus']==1): ?>打开<?php else: ?>关闭<?php endif; ?></em><i></i></div>
          </div>
        </li>
        <li style="<?php if($v['webstatus'] == 1): ?>display:none;<?php else: ?>display:block;<?php endif; ?>" id="webclosedesc">
          <label>网站关闭说明：</label>
          <div class="item">
            <textarea name="webclosedesc" class="input w100" style="height:80px; margin-bottom:12px;"><?php echo $v['webclosedesc']; ?></textarea>
          </div>
        </li>
        <li>
          <label>后台风格：</label>
          <div class="item">
            <div class="select"><i class="icon-caret-down"></i>
              <input type="hidden" name="webadminstyle" value="<?php echo $v['webadminstyle']; ?>" class="inputval" />
              <input type="text" readonly="readonly" class="input"/>
              <dl class="select-value syui-anim syui-anim-up">
                <dd data="default" class="<?php echo $v['webadminstyle']=='default'?'selected':''; ?>">默认</dd>
                <dd data="black" class="<?php echo $v['webadminstyle']=='black'?'selected':''; ?>">极酷黑</dd>
                <dd data="green" class="<?php echo $v['webadminstyle']=='green'?'selected':''; ?>">极酷绿</dd>
              </dl>
            </div>
            <span class="tips">更换后请刷新</span> </div>
        </li>
        <li>
          <label>URL形式：</label>
          <div class="item radio">
            <span><input type="radio" name="weburltype" value="0" <?php if($v['weburltype'] == 0): ?>checked="checked"<?php endif; ?> /> 伪静态</span>
            <span><input type="radio" name="weburltype" value="1" <?php if($v['weburltype'] == 1): ?>checked="checked"<?php endif; ?> /> 纯静态</span>
            <span style="color:#999;">伪静态浏览请删除根目录index.html</span>
          </div>
        </li>
         <li>
          <label>静态存储目录：</label>
          <div class="item">
            <input type="text" name="webhtmlpath" value="<?php echo $v['webhtmlpath']; ?>" class="input w50"/>
            <span class="tips">为空则生成到根目录</span>
          </div>
        </li>
        <li>
          <label>默认首页：</label>
          <div class="item">
            <input type="text" name="webindexname" value="<?php echo $v['webindexname']; ?>" class="input w50"/>
            <span class="tips">默认首页生成静态文件名</span>
          </div>
        </li>
        <li>
          <label>默认模板：</label>
          <div class="item">
            <div class="select"><i class="icon-caret-down"></i>
              <input type="hidden" name="webthemes" value="<?php echo $v['webthemes']; ?>" class="inputval" />
              <input type="text" readonly="readonly" class="input"/>
              <dl class="select-value syui-anim syui-anim-up">
                <?php if(is_array($tplist) || $tplist instanceof \think\Collection || $tplist instanceof \think\Paginator): $i = 0; $__LIST__ = $tplist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <dd data="<?php echo $vo['file']; ?>" class="<?php echo $v['webthemes']==$vo['file']?'selected':''; ?>"><?php echo $vo['file']; ?></dd>
                <?php endforeach; endif; else: echo "" ;endif; ?>
              </dl>
            </div>
          </div>
        </li>
      </ul>
      
      <!-- 手机版配置 -->
      <ul  class="tabcon">
         <li>
          <label>是否开启移动端：</label>
          <div class="item">
            <input type="hidden" value="<?php echo (isset($v['webmstatus']) && ($v['webmstatus'] !== '')?$v['webmstatus']:1); ?>" name="webmstatus" />
            <div class="switch <?php if($v['webmstatus'] == 1): ?>on<?php endif; ?>" id="closeweb"><em ontxt="开启" offtxt="关闭"><?php if($v['webmstatus']==1): ?>开启<?php else: ?>关闭<?php endif; ?></em><i></i></div>
            <span class="tips">若站点为纯静态时，若静态存储目录为空，则必须生成静态</span>
          </div>
        </li>
        <li>
          <label>静态生成目录：</label>
          <div class="item">
            <input type="text" name="webmhtmlpath" value="<?php echo $v['webmhtmlpath']; ?>" class="input w50"/>
            <span class="tips">移动端静态生成目录，默认为m目录</span>
          </div>
        </li>
        <li>
          <label>绑定域名：</label>
          <div class="item">
            <input type="text" name="webmurl" value="<?php echo $v['webmurl']; ?>" class="input w50"/>
            <span class="tips">如： http://m.xxx.com 或 https://m.xxx.com 注：为空则为主域名访问。 </span>
          </div>
        </li>
      </ul>
      
      <!-- 联系信息 -->
      <ul  class="tabcon">
        <li>
          <label>公司名称：</label>
          <div class="item">
            <input type="text" name="contact_company" value="<?php echo $v['contact_company']; ?>" class="input"/>
          </div>
        </li>
        <li>
          <label>联系人：</label>
          <div class="item">
            <input type="text" name="contact_name" value="<?php echo $v['contact_name']; ?>" class="input"/>
          </div>
        </li>
        <li>
          <label>手机号：</label>
          <div class="item">
            <input type="text" name="contact_mobile" value="<?php echo $v['contact_mobile']; ?>" class="input"/>
          </div>
        </li>
        <li>
          <label>座机：</label>
          <div class="item">
            <input type="text" name="contact_tel" value="<?php echo $v['contact_tel']; ?>" class="input"/>
          </div>
        </li>
        <li>
          <label>400电话：</label>
          <div class="item">
            <input type="text" name="contact_400" value="<?php echo $v['contact_400']; ?>" class="input"/>
          </div>
        </li>
        <li>
          <label>传真：</label>
          <div class="item">
            <input type="text" name="contact_fax" value="<?php echo $v['contact_fax']; ?>" class="input"/>
          </div>
        </li>
        <li>
          <label>QQ：</label>
          <div class="item">
            <input type="text" name="contact_qq" value="<?php echo $v['contact_qq']; ?>"  class="input"/>
          </div>
        </li>
        <li>
          <label>邮箱：</label>
          <div class="item">
            <input type="text" name="contact_email" value="<?php echo $v['contact_email']; ?>"  class="input"/>
          </div>
        </li>
        <li>
          <label>地址：</label>
          <div class="item">
            <input type="text" name="contact_address" value="<?php echo $v['contact_address']; ?>"  class="input"/>
          </div>
        </li>
        <li>
          <label>微信二维码：</label>
          <div class="item">
            <input type="text" name="contact_ewm" value="<?php echo $v['contact_ewm']; ?>" class="input"/>
            <button type="button" class="button fl" onclick="sycms.showupload(this)" id="image2" at="dg"><i class="icon-plus"></i>浏览上传</button>
            <div class="clear"></div>
            <div class="input-image"><?php if($v['contact_ewm']): ?><img src="<?php echo $v['contact_ewm']; ?>" alt="" /><?php endif; ?></div>
          </div>
        </li>
        <li>
          <label>地图坐标：</label>
          <div class="item">
            <input type="text" name="contact_latlng" value="<?php echo $v['contact_latlng']; ?>"  class="input"/>
            <a class="button fl" href="http://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank"><i class="icon-mail-forward (alias)"></i>获取坐标</a> </div>
        </li>
      </ul>
      
      <!-- 邮箱配置 -->
      <ul class="tabcon">
        <li>
          <label>收件人：</label>
          <div class="item">
            <input type="text" name="email_form_name" value="<?php echo $v['email_form_name']; ?>" class="input"/>
          </div>
        </li>
        <li>
          <label>收件人邮箱地址：</label>
          <div class="item">
            <input type="text" name="email_form" value="<?php echo $v['email_form']; ?>" class="input"/>
          </div>
        </li>
        <li>
          <label>STMP服务器：</label>
          <div class="item">
            <input type="text" name="email_host" value="<?php echo $v['email_host']; ?>" class="input">
          </div>
        </li>
        <li>
          <label>连接方式：</label>
          <div class="item">
            <div class="select"><i class="icon-caret-down"></i>
              <input type="hidden" name="email_smtpsecure" value="<?php echo $v['email_smtpsecure']; ?>" class="inputval" />
              <input type="text" readonly="readonly" class="input"/>
              <dl class="select-value syui-anim syui-anim-up">
                <dd data="" 	 class="<?php echo $v['email_smtpsecure']==''?'selected':''; ?>" >默认</dd>
                <dd data="ssl" class="<?php echo $v['email_smtpsecure']=='ssl'?'selected':''; ?>" >ssl</dd>
                <dd data="tls" class="<?php echo $v['email_smtpsecure']=='tls'?'selected':''; ?>" >tls</dd>
              </dl>
            </div>
          </div>
        </li>
        <li>
          <label>SMTP服务器端口：</label>
          <div class="item">
            <input type="text" name="email_port" value="<?php echo $v['email_port']; ?>"  class="input"/>
          </div>
        </li>
        <li>
          <label>发件箱帐号：</label>
          <div class="item">
            <input type="text" name="email_send_name" value="<?php echo $v['email_send_name']; ?>" class="input"/>
          </div>
        </li>
        <li>
          <label>发件箱密码：</label>
          <div class="item">
            <input type="password" name="email_send_pass" value="<?php echo $v['email_send_pass']; ?>" class="input"/>
          </div>
        </li>
        <li>
          <label>留言是否发送邮件：</label>
          <div class="item">
            <input type="hidden" value="<?php echo (isset($v['email_issend']) && ($v['email_issend'] !== '')?$v['email_issend']:1); ?>" name="email_issend" />
            <div class="switch <?php if($v['email_issend'] == 1): ?>on<?php endif; ?>" id="closeweb"><em ontxt="是" offtxt="否"><?php if($v['email_issend']==1): ?>是<?php else: ?>否<?php endif; ?></em><i></i></div>
          </div>
        </li>
      </ul>
      <ul>
        <li>
          <label>&nbsp;</label>
          <div class="item">
            <button type="submit" onclick="" class="button"><i class="icon-check"></i>提交</button>
          </div>
        </li>
      </ul>
    </form>
  </div>
</div>
<script>
sycms.submitform("<?php echo url('info'); ?>",true);
$(function(){
	$("#closeweb").click(function(){
		if($("input[name=webstatus]").val()==0){
			$("#webclosedesc").show();
		}else{
			$("#webclosedesc").hide();
		}
	})
	
	$(".bhtab li").click(function(){
		$(this).addClass("on").siblings().removeClass("on");
		$(".tabcon").hide().eq($(this).index()).show();
	})	
})
</script> 
