<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:88:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\accesskf\index.html";i:1557480234;s:75:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\home.html";i:1557480234;s:82:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\admin_items.html";i:1557480234;}*/ ?>
<!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>
        
<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="search-form">
        <form class="" method="post">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <input type="text" name="title"  placeholder="输入公司名或appid或接入名" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-inline">
                    <button type="submit" class="layui-btn search-subBtn">搜索</button>
                </div>
            </div>
        </form>
        </div>
        <!-- 搜索框结束 -->
        <table class="layui-table lay-even">
            <colgroup>
                <col width="150">
                <col width="200">
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>公司名</th>
                <th>接入名称</th>
                <th>appid</th>
                <th>appsecrect</th>
                <th>域名</th>
                <th>所属公司</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <?php if($access_list): if(is_array($access_list) || $access_list instanceof \think\Collection || $access_list instanceof \think\Paginator): $k = 0; $__LIST__ = $access_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$access): $mod = ($k % 2 );++$k;?>
            <tr>
                <td><?php echo $access['access_gsname']; ?></td>
                <td><?php echo $access['access_gsjrname']; ?></td>
                <td><?php echo $access['access_appid']; ?></td>
                <td><?php echo $access['access_appsecrect']; ?></td>
                <td><?php echo $access['access_url']; ?></td>
                <td><?php echo $member_list[$k-1]['member_name']; ?></td>
                <td>
                    <?php if(array_intersect(explode(" ",str_replace("/", ".","accesskf/edit")),$allpower)): ?>
                        <a href="javascript:dsLayerOpen('<?php echo url('Accesskf/edit',['access_id'=>$access['access_id']]); ?>','<?php echo \think\Lang::get('ds_edit'); ?>-<?php echo $access['access_gsname']; ?>')" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i><?php echo \think\Lang::get('ds_edit'); ?></a>
                    <?php endif; if(array_intersect(explode(" ",str_replace("/", ".","accesskf/del")),$allpower)): ?>
                        <a href="javascript:dsLayerConfirm('<?php echo url('Accesskf/del',['access_id'=>$access['access_id']]); ?>','<?php echo \think\Lang::get('member_confirm_del'); ?>')" class="layui-btn layui-btn-xs layui-btn-danger"><i class="layui-icon layui-icon-delete"></i>删除</a>
                    <?php endif; ?>
                </td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; else: ?>
            <td>无数据</td>
            <?php endif; ?>
            </tbody>
        </table>
        <?php echo $show_page; ?>
    </div>
</div>
<script type="text/javascript">
    layui.use('laydate', function(){
      var laydate = layui.laydate;
      
      //执行一个laydate实例
      laydate.render({
        elem: '#creatTime' //指定元素
      });
        laydate.render({
            elem:'#timeRang',
            range:true,
            format: 'yyyy/MM/dd',
            done: function(value, date){
                /* 时间选择完成后的回调 */
            }
        })
    });
</script>

    </body>
</html>



