123456789101112131415161718192021222324252627282930313233343536 |
- <?php /*a:2:{s:71:"D:\project\gyx\gaoyixia\application\operate\view\activity_hx\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><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"><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="phone" value="<?php echo htmlentities((app('request')->get('phone') ?: '')); ?>" 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();
- laydate.render({range: true, elem: '[name="create_at"]'})
- layui.use('upload', function(){
- var upload = layui.upload;
- //执行实例
- var uploadInst = upload.render({
- elem: '#import' //绑定元素
- ,url: '/user/member/import'
- ,accept: 'file' //普通文件,
- ,data:{
- subject_id:function(){
- return $('#subject').val();
- }
- }
- ,before: function(obj){ //obj参数包含的信息,跟 choose回调完全一致,可参见上文。
- }
- ,done: function(res){
- if(res.code == 0){
- layer.msg(res.info);
- }else{
- layer.msg('导入成功');
- setTimeout(function(){
- location.reload();
- },2000);
- }
- }
- ,error: function(){
- layer.msg('上传失败');
- }
- });
- });
- $('#download').click(function () {
- window.location.href = "<?php echo url('export'); ?>?phone=<?php echo htmlentities((app('request')->get('phone') ?: '')); ?>&name=<?php echo htmlentities((app('request')->get('name') ?: '')); ?>&create_at=<?php echo htmlentities((app('request')->get('create_at') ?: '')); ?>&account_type=<?php echo htmlentities((app('request')->get('create_at') ?: '0')); ?>&level_id=<?php echo htmlentities((app('request')->get('level_id') ?: '0')); ?>&label_id=<?php echo htmlentities((app('request')->get('label_id') ?: '0')); ?>" + $(this).parents('form').serialize();
- });
- </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='text-left nowrap'>用户ID</th><th class='text-left nowrap'>用户名</th><th class='text-left nowrap'>手机号</th><th class="text-left" style="width: 20%">操作</th></tr></thead><?php endif; ?><tbody><?php foreach($list as $key=>$vo): ?><tr><td class='text-left nowrap'><?php echo htmlentities((isset($vo['id']) && ($vo['id'] !== '')?$vo['id']:'--')); ?></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['name']) && ($vo['name'] !== '')?$vo['name']:'--')); ?></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['phone']) && ($vo['phone'] !== '')?$vo['phone']:'--')); ?></td><td class='text-left nowrap'><a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除吗?" data-action="<?php echo url('del'); ?>" data-value="id#<?php echo htmlentities($vo['id']); ?>">删 除</a></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></div></div>
|