<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:74:"D:\wamp64\www\Home-Data\public/../application/admin\view\config\index.html";i:1557814635;s:63:"D:\wamp64\www\Home-Data\application\admin\view\layout\home.html";i:1558595897;s:70:"D:\wamp64\www\Home-Data\application\admin\view\layout\admin_items.html";i:1557715186;}*/ ?>
<!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" action="" enctype="multipart/form-data">
    <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('site_name'); ?></label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input field-name" name="site_name" id="site_name" value="<?php echo (isset($list_config['site_name']) && ($list_config['site_name'] !== '')?$list_config['site_name']:''); ?>" lay-verify="" autocomplete="off" placeholder="<?php echo \think\Lang::get('ds_please_enter'); ?><?php echo \think\Lang::get('site_name'); ?>" required />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('icp_number'); ?></label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input field-name" name="icp_number" id="icp_number" value="<?php echo (isset($list_config['icp_number']) && ($list_config['icp_number'] !== '')?$list_config['icp_number']:''); ?>" lay-verify="" autocomplete="off" placeholder="<?php echo \think\Lang::get('ds_please_enter'); ?><?php echo \think\Lang::get('icp_number'); ?>" required />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('site_phone'); ?></label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input field-name" name="site_phone" id="site_phone" value="<?php echo (isset($list_config['site_phone']) && ($list_config['site_phone'] !== '')?$list_config['site_phone']:''); ?>" lay-verify="" autocomplete="off" placeholder="<?php echo \think\Lang::get('ds_please_enter'); ?><?php echo \think\Lang::get('site_phone'); ?>" required />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('flow_static_code'); ?></label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input field-name" name="flow_static_code" id="flow_static_code" value="<?php echo (isset($list_config['flow_static_code']) && ($list_config['flow_static_code'] !== '')?$list_config['flow_static_code']:''); ?>" lay-verify="" autocomplete="off" placeholder="<?php echo \think\Lang::get('ds_please_enter'); ?><?php echo \think\Lang::get('flow_static_code'); ?>" required />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('fax'); ?></label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input field-name" name="fax" id="fax" value="<?php echo (isset($list_config['fax']) && ($list_config['fax'] !== '')?$list_config['fax']:''); ?>" lay-verify="" autocomplete="off" placeholder="<?php echo \think\Lang::get('ds_please_enter'); ?><?php echo \think\Lang::get('fax'); ?>" required />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('site_logowx'); ?></label>
                    <div class="layui-input-inline">
                        <input type="file" name="site_logowx" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('site_logo'); ?></label>
                    <div class="layui-input-inline">
                        <input type="file" name="site_logo" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('site_logowb'); ?></label>
                    <div class="layui-input-inline">
                        <input type="file" name="site_logowb" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"><?php echo \think\Lang::get('site_state'); ?></label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="site_state" lay-skin="switch" lay-text="开启|关闭" value="1" <?php if($list_config['site_state'] == '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>



