<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:75:"D:\PHPTutorial\WWW\newyq\public/../application/admin\view\config\index.html";i:1550732461;s:64:"D:\PHPTutorial\WWW\newyq\application\admin\view\layout\home.html";i:1550477639;s:71:"D:\PHPTutorial\WWW\newyq\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>麦帮官网</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <!-- Bootstrap 3.3.7 -->
        <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
        <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
        <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
        <script type="text/javascript">
            var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
            var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
            var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
            var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
            var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
            layui.use('layer', function () {
                var layer = layui.layer;
            });
        </script>
    </head>
    <body>
        
<form class="layui-form layui-form-pane" method="post">
    <div class="layui-tab layui-tab-card">
        <?php if($admin_item): ?>
<ul class="layui-tab-title">
    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): if(array_intersect(explode(" ",str_replace("/", ".",substr($item['url'],7,-5))),$allpower) || array_intersect(explode(" ",str_replace("/", ".",substr($item['url'],31,-16))),$allpower)): ?>
    <li <?php if($item['name'] == $curitem): ?>class="layui-this" <?php endif; ?>>
    <a href="<?php echo $item['url']; ?>"><?php echo $item['text']; ?></a>
    <?php endif; ?>
    </li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
    <div class="tool-btns">
        <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></i></a>
    </div>
</ul>
<?php endif; ?>
        <div class="layui-tab-content page-tab-content">
            <div class="layui-tab-item layui-show ">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('cache_open'); ?></label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="cache_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['cache_open'] == '1'): ?>checked<?php endif; ?>>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('allowed_visitors_consult'); ?></label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="guest_comment" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['guest_comment'] == '1'): ?>checked<?php endif; ?>>
                    </div>
                </div>
                <!-- //////////////////// -->
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('words_open'); ?></label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="words_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['words_open'] == '1'): ?>checked<?php endif; ?>>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('img_open'); ?></label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="img_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['img_open'] == '1'): ?>checked<?php endif; ?>>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('voice_open'); ?></label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="voice_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['voice_open'] == '1'): ?>checked<?php endif; ?>>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('video_open'); ?></label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="video_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['video_open'] == '1'): ?>checked<?php endif; ?>>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('look_open'); ?></label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="look_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['look_open'] == '1'): ?>checked<?php endif; ?>>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="<?php echo lang('ds_submit'); ?>"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<script>
    layui.use('form', function () {
        var form = layui.form;
    });
</script>
<script>
    //Demo
    layui.use('form', function () {
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function (data) {
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>


    </body>
</html>



