12345678910111213141516171819202122 |
- <?php /*a:3:{s:76:"D:\project\gyx\gaoyixia\application\nutrition\view\series_article\index.html";i:1699858976;s:56:"D:\project\gyx\gaoyixia\application\admin\view\main.html";i:1699858976;s:83:"D:\project\gyx\gaoyixia\application\nutrition\view\series_article\index_search.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("del"); ?>' data-confirm="确定要删除吗?" data-csrf="<?php echo systoken('del'); ?>" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</button><button data-modal='<?php echo url("add"); ?>?type=2' 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">ID</label><div class="layui-input-inline"><input name="id" maxlength="60" value='<?php echo htmlentities((app('request')->get('id') ?: "")); ?>' placeholder="请输入ID" 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="title" value="<?php echo htmlentities((app('request')->get('title') ?: '')); ?>" 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()</script></fieldset><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'>ID</th><th class='text-left nowrap'>标题</th><th class='text-left nowrap'>图文数量</th><th class='text-left nowrap'>标签</th><th class='text-left nowrap'>是否VIP</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['id']) && ($vo['id'] !== '')?$vo['id']:'')); ?></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:'')); ?></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['item_num']) && ($vo['item_num'] !== '')?$vo['item_num']:'')); ?></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['label']) && ($vo['label'] !== '')?$vo['label']:'')); ?></td><td class='text-left nowrap'><?php echo !empty($vo['is_vip']) ? '是' : '否'; ?></td><td class='text-left' style="width: 20%"><a data-title="编辑" class="layui-btn layui-btn-xs" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>编 辑</a><?php if($vo['status'] == 1): ?><a class="layui-btn layui-btn-warm layui-btn-xs" data-confirm="确定要禁用吗?" data-action="<?php echo url('forbid'); ?>" data-value="id#<?php echo htmlentities($vo['id']); ?>;status#0" data-csrf="<?php echo systoken('forbid'); ?>">禁 用</a><?php else: ?><a class="layui-btn layui-btn-xs" data-action="<?php echo url('resume'); ?>" data-value="id#<?php echo htmlentities($vo['id']); ?>;status#1" data-csrf="<?php echo systoken('resume'); ?>">启 用</a><?php endif; ?><a class="layui-btn layui-btn-danger layui-btn-xs" data-confirm="确定要删除数据吗?" data-action="<?php echo url('del'); ?>" data-value="id#<?php echo htmlentities($vo['id']); ?>" data-csrf="<?php echo systoken('del'); ?>">删 除</a><a data-title="图文管理" class="layui-btn layui-btn-xs" data-open='<?php echo url("/nutrition/article_item/index"); ?>?article_id=<?php echo htmlentities($vo['id']); ?>'>图文管理</a><span data-title="" class="layui-btn layui-btn-lg layui-btn-xs" data-open='<?php echo url("/nutrition/learn/index"); ?>?first_id=<?php echo htmlentities($vo['id']); ?>&type=3'>学习服务</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 = "/nutrition/series_article/"+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>
|