<?php /*a:3:{s:66:"/home/ambooshc/public_html/application/admin/view/oplog/index.html";i:1638173742;s:59:"/home/ambooshc/public_html/application/admin/view/main.html";i:1637064002;s:73:"/home/ambooshc/public_html/application/admin/view/oplog/index_search.html";i:1575947686;}*/ ?>
<div class="layui-card layui-bg-gray"><style>        .layui-tab-card>.layui-tab-title .layui-this {
            background-color: #fff;
        }
    </style><?php if(!(empty($title) || (($title instanceof \think\Collection || $title instanceof \think\Paginator ) && $title->isEmpty()))): ?><div class="layui-card-header layui-anim layui-anim-fadein notselect"><span class="layui-icon layui-icon-next font-s10 color-desc margin-right-5"></span><?php echo htmlentities((isset($title) && ($title !== '')?$title:'')); ?><div class="pull-right"><?php if(auth("clear")): ?><button data-load='<?php echo url("clear"); ?>' data-confirm="确定要消除所有日志吗？" class='layui-btn layui-btn-sm layui-btn-primary'>清理日志</button><?php endif; if(auth("remove")): ?><button data-action='<?php echo url("remove"); ?>' data-rule="id#{key}" data-csrf="<?php echo systoken('remove'); ?>" data-confirm="确定要删除日志吗？" class='layui-btn layui-btn-sm layui-btn-primary'>删除日志</button><?php endif; ?></div></div><?php endif; ?><div class="layui-card-body layui-anim layui-anim-upbit"><style>    .color-desc{
        word-break: break-all;
        max-width: 500px;
    }
</style><div class="think-box-shadow"><fieldset><legend>条件搜索</legend><form class="layui-form layui-form-pane form-search" action="<?php echo request()->url(); ?>" onsubmit="return false" method="get" autocomplete="off"><div class="layui-form-item layui-inline"><label class="layui-form-label">操作账号</label><div class="layui-input-inline"><input name="username" value="<?php echo htmlentities((app('request')->get('username') ?: '')); ?>" placeholder="请输入操作账号" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">操作节点</label><div class="layui-input-inline"><input name="node" value="<?php echo htmlentities((app('request')->get('node') ?: '')); ?>" placeholder="请输入操作节点" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">操作行为</label><div class="layui-input-inline"><input name="action" value="<?php echo htmlentities((app('request')->get('action') ?: '')); ?>" placeholder="请输入操作行为" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">操作描述</label><div class="layui-input-inline"><input name="content" value="<?php echo htmlentities((app('request')->get('content') ?: '')); ?>" placeholder="请输入操作内容" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">位置地址</label><div class="layui-input-inline"><input name="geoip" value="<?php echo htmlentities((app('request')->get('geoip') ?: '')); ?>" placeholder="请输入位置地址" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">操作时间</label><div class="layui-input-inline"><input data-date-range name="create_at" value="<?php echo htmlentities((app('request')->get('create_at') ?: '')); ?>" placeholder="请选择操作时间" class="layui-input"></div></div><div class="layui-form-item layui-inline"><button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button></div></form></fieldset><script>form.render()</script><table class="layui-table margin-top-10" lay-skin="line"><?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): ?><thead><tr><th class='list-table-check-td think-checkbox'><input data-auto-none data-check-target='.list-check-box' type='checkbox'></th><th class='text-left nowrap'>操作权限</th><th class='text-left nowrap'>操作行为</th><th class='text-left nowrap'>地理位置</th><th class='text-left nowrap'>操作时间</th><th></th></tr></thead><tbody><?php foreach($list as $key=>$vo): ?><tr data-dbclick><td class='list-table-check-td think-checkbox'><input class="list-check-box" value='<?php echo htmlentities($vo['id']); ?>' type='checkbox'></td><td class="text-left nowrap"><span class="font-w7"><?php echo htmlentities((isset($vo['username']) && ($vo['username'] !== '')?$vo['username']:'-')); ?></span><br><span class="color-desc"><?php echo htmlentities((isset($vo['node']) && ($vo['node'] !== '')?$vo['node']:'-')); ?></span></td><td class='text-left'><p class="color-text"><?php echo htmlentities((isset($vo['action']) && ($vo['action'] !== '')?$vo['action']:'-')); ?></p><p class="color-desc"><?php echo htmlentities((isset($vo['content']) && ($vo['content'] !== '')?$vo['content']:'-')); ?></p></td><td class='text-left nowrap'><p class="color-text"><?php echo htmlentities((isset($vo['geoip']) && ($vo['geoip'] !== '')?$vo['geoip']:'-')); ?></p><p class="color-desc"><?php echo htmlentities((isset($vo['isp']) && ($vo['isp'] !== '')?$vo['isp']:'-')); ?></p></td><td class='text-left nowrap'>                日期：<?php echo str_replace(' ','<br><span class="color-desc">时间：',format_datetime($vo['create_at'])); ?></span></td><td class='text-left nowrap'><?php if(auth("remove")): ?><a data-dbclick class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该日志吗？" data-action="<?php echo url('remove'); ?>" data-value="id#<?php echo htmlentities($vo['id']); ?>" data-csrf="<?php echo systoken('remove'); ?>">删 除</a><?php endif; ?></td></tr><?php endforeach; ?></tbody><?php endif; ?></table><?php if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): ?><span class="notdata">没有记录哦</span><?php else: ?><?php echo (isset($pagehtml) && ($pagehtml !== '')?$pagehtml:''); ?><?php endif; ?></div></div></div><script>//    layui.use('element', function(){
//        var element = layui.element;
//
//        element.tabAdd('demo', {
//            title: '选项卡的标题'
//            ,content: '选项卡的内容' //支持传入html
//            ,id: '选项卡标题的lay-id属性值'
//        });
//
//        //获取hash来切换选项卡，假设当前地址的hash为lay-id对应的值
//        var layid = location.hash.replace(/^#test1=/, '');
//        element.tabChange('test1', layid); //假设当前地址为：http://a.com#test1=222，那么选项卡会自动切换到“发送消息”这一项
//
//        //监听Tab切换，以改变地址hash值
//        element.on('tab(test1)', function(){
//            location.hash = ''+ this.getAttribute('lay-id');
//        });
//    });

</script>