<link rel="stylesheet" href="<?php echo base_url();?>public/js/date/datedropper.min.css">
<script src="<?php echo base_url();?>public/js/date/datedropper.min.js"></script>

<!-- Select2 -->
<link rel="stylesheet" href="<?php echo base_url();?>public/js/vendor/select2/select2.min.css">
<script src="<?php echo base_url();?>public/js/vendor/select2/select2.full.min.js"></script>

<div class="content_wrapper">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-12">
                <aside>
                    <header><i class="fa fa-fw fa-file"></i>停服配置</header>
                    <section>
                        <form id="clubBasicForm">
                            <input name="id" type="hidden" value="<?php echo $config['id'] ?? 0;?>">
                            <div class="container-fluid">
                                <?php foreach ($columns as $key => $html){ ?>
                                    <?=$html?>
                                <?php }?>

                                <div class="row">
                                    <button type="button" class="btn btn-success btnSubmit">提交</button>
                                </div>
                            </div>
                        </form>
                    </section>
                </aside>
            </div>
        </div>
    </div>
</div>
<script>
    $('.select2').select2({})
    $('.btnSubmit').click(function(){
        var datas = $('#clubBasicForm').serializeArray();
        console.log(datas);
        $.post('/announcement/saveStopServiceConfig', datas, function(res){
            if(typeof res == 'string')res = JSON.parse(res)
            alert(res.msg)
        })
    });

</script>