<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:62:"D:\wwwroot\pay.6gym.com\public/../app/index\view\admin\msg.html";i:1609314480;}*/ ?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><?php echo $web_config['web_site']; ?> - 6gym.com 6G源码 </title>
    <link rel="stylesheet" href="/static/assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="/static/assets/module/admin.css?v=318"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
      <style>
        #formAdvForm .layui-form-item {
            margin-top: 20px;
            margin-bottom: 0;
        }

        #formAdvForm .layui-form-item .layui-inline {
            margin-bottom: 25px;
            margin-right: 0;
        }

        .form-group-bottom {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 10px 20px;
            background-color: #fff;
            box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, .05);
        }
    </style>
</head>
<body>
<!-- 正文开始 -->
<form class="layui-form" id="formAdvForm" lay-filter="formAdvForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">系统通知配置</div>
            <div class="layui-card-body">

                <div class="layui-form-item layui-row">
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">登陆提示:</label>
                        <div class="layui-input-block">
                            
                            <textarea name="gonggao" placeholder="请输入平台登录后首页用户公告通知" class="layui-textarea" lay-vertype="tips"><?php echo $config['gonggao']; ?></textarea>
                        </div>
                    </div>
                    
                   
                    
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">友情提示:</label>
                        <div class="layui-input-block">
                           <textarea name="land_msg" placeholder="请输入收款账号页面友情提示文字通知" class="layui-textarea" lay-vertype="tips"><?php echo $config['land_msg']; ?></textarea>
                        </div>
                    </div>
                    
                     <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">通道通知:</label>
                        <div class="layui-input-block">
                            <textarea name="game_msg" placeholder="请输入通道页面文字通知" class="layui-textarea" lay-vertype="tips"><?php echo $config['game_msg']; ?></textarea>
                        </div>
                    </div>
                    
                    
                    
                     
                    
                    
                    
                </div>

            </div>
        </div>

       

    <div class="form-group-bottom text-right">
        <button type="reset" class="layui-btn layui-btn-primary">&emsp;重置&emsp;</button>
        <button class="layui-btn" lay-filter="formAdvSubmit" lay-submit>&emsp;提交&emsp;</button>
    </div>

</form>
            <!-- //表单结束 -->
        </div>
    </div>
</div>

<!-- js部分 -->
<script type="text/javascript" src="/static/assets/libs/layui/layui.js"></script>
<script type="text/javascript" src="/static/assets/js/common.js?v=318"></script>
<script>
    layui.use(['layer', 'form', 'laydate'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        

        /* 监听表单提交 */
        form.on('submit(formAdvSubmit)', function (data) {
            var loadIndex = layer.load(2);
                $.post('<?php echo url("admin/config_save"); ?>', data.field, function (res) {
                layer.close(loadIndex);
                if (0 != res.code) {                                
                    layer.msg(res.msg, {icon: 1});
                    insTb.reload({page: {curr: 1}});
                } else {
                    layer.msg(res.msg, {icon: 2});
                }
            }, 'json');
            return false;
        });

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