0b092af8c0322dd504afa9ed039d2b46.php 4.1 KB

12345678910111213141516171819202122
  1. <?php /*a:2:{s:67:"D:\project\gyx\gaoyixia\application\operate\view\contact\index.html";i:1699858976;s:56:"D:\project\gyx\gaoyixia\application\admin\view\main.html";i:1699858976;}*/ ?>
  2. <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><button data-modal='<?php echo url("add"); ?>' data-title="添加" 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"><table class="layui-table margin-top-20" lay-skin="line"><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='list-table-sort-td'><button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button></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'>EMAIL</th><th class="text-left" style="width: 20%">操作</th></tr></thead><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='list-table-sort-td'><input data-action-blur="<?php echo request()->url(); ?>" data-value="id#<?php echo htmlentities($vo['id']); ?>;action#sort;sort#{value}" data-loading="false" value="<?php echo htmlentities($vo['sort']); ?>" class="list-sort-input"></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['name']) && ($vo['name'] !== '')?$vo['name']:'')); ?></td><td class='text-left nowrap'><img data-tips-image="<?php echo htmlentities((isset($vo['qrcode']) && ($vo['qrcode'] !== '')?$vo['qrcode']:'')); ?>" src="<?php echo htmlentities((isset($vo['qrcode']) && ($vo['qrcode'] !== '')?$vo['qrcode']:'')); ?>" height="50px" width="50px"></td><td class='text-left nowrap'><?php echo htmlentities($vo['place']); ?></td><td class='text-left nowrap'><?php echo htmlentities($vo['tag']); ?></td><td class='text-left nowrap'><?php echo htmlentities($vo['phone']); ?></td><td class='text-left nowrap'><?php echo htmlentities($vo['email']); ?></td><td class='text-left' style="width: 20%"><a data-title="编辑" class="layui-btn layui-btn-sm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>编 辑</a><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) {
  3. layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
  4. var url = "/operate/contact/"+fun;
  5. layer.closeAll();
  6. $.ajax({
  7. type: "post",
  8. url: url,
  9. data: {id:id},
  10. dataType: "json",
  11. async: false,
  12. success: function (data) {
  13. layer.msg(data.info);
  14. setTimeout(function () {
  15. window.location.reload();
  16. },1000)
  17. }
  18. });
  19. });
  20. }
  21. </script></div></div>