<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:72:"/www/wwwroot/10.168.1.202/public/../app/index/view/admin/config_set.html";i:1611320026;}*/ ?>

<!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>系统其他配置 - 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 layui-form-required">订单删除:</label>
                        <div class="layui-input-inline">
                           <select name="order_set" lay-verify="required" required>
                           <option value="1" <?php if($config[0]['value'] == '1'): ?> selected = "selected" <?php endif; ?>>打开</option>
                           <option value="2" <?php if($config[0]['value'] == '2'): ?> selected = "selected" <?php endif; ?>>关闭</option>
                        </select>
                        </div>
                         <div class="layui-form-mid layui-word-aux">是否开放商户前台订单指定类型删除</div>
                    </div>
                    
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">在线充值:</label>
                        <div class="layui-input-inline">
                           <select name="pay_set" lay-verify="required" required>
                           <option value="1" <?php if($config[1]['value'] == '1'): ?> selected = "selected" <?php endif; ?>>打开</option>
                           <option value="2" <?php if($config[1]['value'] == '2'): ?> selected = "selected" <?php endif; ?>>关闭</option>
                        </select>
                        </div>
                         <div class="layui-form-mid layui-word-aux">是否开放商户前台余额在线充值模式</div>
                    </div>
                    
                     <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">充值提示:</label>
                        <div class="layui-input-inline">
                          
                            <textarea name="pay_msg" placeholder="输入充值提示" class="layui-textarea" lay-vertype="tips"><?php echo $config[2]['value']; ?></textarea>
                        </div>
                         <div class="layui-form-mid layui-word-aux">关闭在线充值后此设置生效</div>
                    </div>
                    
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">支付提示:</label>
                        <div class="layui-input-inline">
                           <select name="pay_msg_set" lay-verify="required" required>
                           <option value="1" <?php if($config[3]['value'] == '1'): ?> selected = "selected" <?php endif; ?>>打开</option>
                           <option value="2" <?php if($config[3]['value'] == '2'): ?> selected = "selected" <?php endif; ?>>关闭</option>
                        </select>
                        </div>
                         <div class="layui-form-mid layui-word-aux">订单支付成功或超时等是否弹窗提示</div>
                    </div>
                    
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">订单超时:</label>
                        <div class="layui-input-inline">
                            <input name="order_time_set" placeholder="输入超时时间（分钟）" class="layui-input" lay-verType="tips" lay-verify="required" value="<?php echo $config[4]['value']; ?>" required/>
                        </div>
                         <div class="layui-form-mid layui-word-aux">（分钟）订单超时时间</div>
                    </div>
                    
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">手动回调:</label>
                        <div class="layui-input-inline">
                           <select name="reback_set" lay-verify="required" required>
                           <option value="1" <?php if($config[5]['value'] == '1'): ?> selected = "selected" <?php endif; ?>>打开</option>
                           <option value="2" <?php if($config[5]['value'] == '2'): ?> selected = "selected" <?php endif; ?>>关闭</option>
                        </select>
                        </div>
                         <div class="layui-form-mid layui-word-aux">是否开放商户前台订单手动回调按钮</div>
                    </div>
                    
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">支付网关:</label>
                        <div class="layui-input-inline">
                           <select name="pay_no_status" lay-verify="required" required>
                           <option value="1" <?php if($config[6]['value'] == '1'): ?> selected = "selected" <?php endif; ?>>打开</option>
                           <option value="2" <?php if($config[6]['value'] == '2'): ?> selected = "selected" <?php endif; ?>>关闭</option>
                        </select>
                        </div>
                         <div class="layui-form-mid layui-word-aux">是否开放支付网关</div>
                    </div>
                    
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">支付网关关闭提示:</label>
                        <div class="layui-input-inline">
                          
                            <textarea name="pay_no_msg" placeholder="输入支付网关关闭提示" class="layui-textarea" lay-vertype="tips"><?php echo $config[7]['value']; ?></textarea>
                        </div>
                         <div class="layui-form-mid layui-word-aux">当支付网关状态为关闭，此项设置生效</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_set_save"); ?>', data.field, function (res) {
                layer.close(loadIndex);
                if (0 != res.code) {                                
                    layer.msg(res.msg, {icon: 1});
                   
                } else {
                    layer.msg(res.msg, {icon: 2});
                }
            }, 'json');
            return false;
        });

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