12345678910111213141516171819202122 |
- <?php /*a:2:{s:75:"D:\project\gyx\gaoyixia\application\operate\view\activity_report\index.html";i:1699858976;s:56:"D:\project\gyx\gaoyixia\application\admin\view\main.html";i:1699858976;}*/ ?>
- <div class="layui-card layui-bg-gray"><?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"><button data-action='<?php echo url("remove"); ?>' data-confirm="确定要删除吗?" data-csrf="<?php echo systoken('remove'); ?>" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</button></div></div><?php endif; ?><div class="layui-card-body layui-anim layui-anim-upbit"><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="name" value="<?php echo htmlentities((app('request')->get('name') ?: '')); ?>" 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"><button class="layui-btn layui-btn-primary"><i class="layui-icon"></i> 搜 索</button></div></form><script>form.render()</script></fieldset><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 class="text-left nowrap">举报时间</th><th class="text-left nowrap">操作</th></tr></thead><?php endif; ?><tbody><?php foreach($list as $key=>$vo): ?><tr><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'><?php if(!(empty($vo['headimg']) || (($vo['headimg'] instanceof \think\Collection || $vo['headimg'] instanceof \think\Paginator ) && $vo['headimg']->isEmpty()))): ?><img data-tips-image style="width:60px;height:60px" src="<?php echo htmlentities((isset($vo['headimg']) && ($vo['headimg'] !== '')?$vo['headimg']:'')); ?>" class="margin-right-5 text-top"><?php endif; ?><div class="inline-block"> 用户ID:<?php echo htmlentities((isset($vo['user_id']) && ($vo['user_id'] !== '')?$vo['user_id']:'--')); ?><br/><br/> 用户名:<?php echo htmlentities((isset($vo['name']) && ($vo['name'] !== '')?$vo['name']:'--')); ?></div></td><td class='text-left nowrap'><div class="inline-block"> 举报活动ID:<?php echo htmlentities((isset($vo['report_id']) && ($vo['report_id'] !== '')?$vo['report_id']:'--')); ?><br/><br/> 举报活动标题:<?php echo htmlentities($vo['object_title']); ?></div></td><td class='text-left '><?php echo htmlentities((isset($vo['content']) && ($vo['content'] !== '')?$vo['content']:'--')); ?></td><td class='text-left padding-0 relative'><div style="overflow:auto;max-height:68px;padding:5px 0"><?php foreach($vo['report_arr'] as $rv): ?><div class="layui-row" style="line-height:23px"><div class="layui-col-xs6 text-left layui-elip font-s10"><?php echo htmlentities($rv); ?></div></div><?php endforeach; ?></div></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['create_at']) && ($vo['create_at'] !== '')?$vo['create_at']:'--')); ?></td><td class='text-left nowrap'><span class="layui-btn layui-btn-sm" data-open= '<?php echo url("/operate/press/edit"); ?>?id=<?php echo htmlentities($vo['report_id']); ?>&r=1'>查看活动</span><?php if(!$vo['reply']): ?><span class="layui-btn layui-btn-sm layui-btn-warm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>回 复</span><?php else: ?><span class="layui-btn layui-btn-sm " data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>查看回复</span><?php endif; ?><span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','del','<?php echo htmlentities($vo['id']); ?>');">删 除</span></td></tr><?php endforeach; ?></tbody></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><script> function btn_confirm(msg,fun,id) {
- layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
- var url = "/operate/press_report/"+fun;
- layer.closeAll();
- $.ajax({
- type: "post",
- url: url,
- data: {id:id},
- dataType: "json",
- async: false,
- success: function (data) {
- layer.msg(data.info);
- setTimeout(function () {
- window.location.reload();
- },1000)
- }
- });
- });
- }
- </script></div></div>
|