|
@@ -1,77 +1,64 @@
|
|
|
-{extend name='admin@main'}
|
|
|
+<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
|
|
|
+ <legend>面板嵌套</legend>
|
|
|
+</fieldset>
|
|
|
+<div class="layui-collapse" lay-accordion="">
|
|
|
+ <div class="layui-colla-item">
|
|
|
+ <h2 class="layui-colla-title">文豪</h2>
|
|
|
+ <div class="layui-colla-content layui-show">
|
|
|
|
|
|
-{block name="button"}
|
|
|
- <button data-modal='{:url("add")}' data-title="添加分类" class='layui-btn layui-btn-sm layui-btn-primary'>添加分类</button>
|
|
|
-{/block}
|
|
|
+ <div class="layui-collapse" lay-accordion="">
|
|
|
+ <div class="layui-colla-item">
|
|
|
+ <h2 class="layui-colla-title">唐代</h2>
|
|
|
+ <div class="layui-colla-content layui-show">
|
|
|
|
|
|
-{block name="content"}
|
|
|
-<div class="think-box-shadow">
|
|
|
- {include file='goods_cate/index_search'}
|
|
|
- <table class="layui-table margin-top-10" lay-skin="line">
|
|
|
- {notempty name='list'}
|
|
|
- <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-center">添加时间</th>
|
|
|
- <th class="text-center">操作</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- {/notempty}
|
|
|
- <tbody>
|
|
|
- {foreach $list as $key=>$vo}
|
|
|
- <tr>
|
|
|
- <td class='list-table-check-td think-checkbox'>
|
|
|
- <input class="list-check-box" value='{$vo.id}' type='checkbox'>
|
|
|
- </td>
|
|
|
- <td class='list-table-sort-td'>
|
|
|
- <input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input">
|
|
|
- </td>
|
|
|
- <td class='text-left nowrap'>
|
|
|
- {$vo.title|default=''}
|
|
|
- </td>
|
|
|
- <td class='text-center nowrap'>{$vo.create_at|format_datetime}</td>
|
|
|
- <td class='text-center nowrap'>
|
|
|
- <a data-title="编辑分类" class="layui-btn layui-btn-sm" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
|
|
|
- {if $vo.status == 1}
|
|
|
- <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbidden')}" data-value="id#{$vo.id}">禁 用</a>
|
|
|
- {else}
|
|
|
- <a class="layui-btn layui-btn-sm layui-btn-sm" data-action="{:url('enable')}" data-value="id#{$vo.id}">启 用</a>
|
|
|
- {/if}
|
|
|
- <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="{:url('del')}" data-value="id#{$vo.id}">删 除</a>
|
|
|
- <a data-title="查看分类" class="layui-btn layui-btn-sm" data-modal='{:url("look")}?id={$vo.id}'>编 辑</a>
|
|
|
- </td>
|
|
|
- <div style="width: 100% ;background-color: #00B83F;height: 2px">
|
|
|
+ <div class="layui-collapse" lay-accordion="">
|
|
|
+ <div class="layui-colla-item">
|
|
|
+ <h2 class="layui-colla-title">杜甫</h2>
|
|
|
+ <div class="layui-colla-content layui-show">
|
|
|
+ 伟大的诗人
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-colla-item">
|
|
|
+ <h2 class="layui-colla-title">李白</h2>
|
|
|
+ <div class="layui-colla-content">
|
|
|
+ <p>伟大的诗仙</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-colla-item">
|
|
|
+ <h2 class="layui-colla-title">王勃</h2>
|
|
|
+ <div class="layui-colla-content">
|
|
|
+ <p>千古绝唱《滕王阁序》</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-colla-item">
|
|
|
+ <h2 class="layui-colla-title">宋代</h2>
|
|
|
+ <div class="layui-colla-content">
|
|
|
+ <p>比如苏轼、李清照</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-colla-item">
|
|
|
+ <h2 class="layui-colla-title">当代</h2>
|
|
|
+ <div class="layui-colla-content">
|
|
|
+ <p>比如七堇年</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </tr>
|
|
|
-
|
|
|
- {/foreach}
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
|
|
-</div>
|
|
|
-<script>
|
|
|
- $('.video_player').click(function () {
|
|
|
- vUrl = $(this).data('src'); //获取到播放的url
|
|
|
- var loadstr = '<video width="100%" height="100%" controls="controls" autobuffer="autobuffer" autoplay="autoplay" loop="loop">' +
|
|
|
- '<source src='+vUrl+' type="video/mp4"></source></video>';
|
|
|
- layer.open({
|
|
|
- type: 1,
|
|
|
- title: false,
|
|
|
- area: ['730px', '500px'],
|
|
|
- shade: [0.8, 'rgb(14, 16, 22)'],
|
|
|
- skin: 'demo-class',
|
|
|
- content: loadstr
|
|
|
- });
|
|
|
- });
|
|
|
-</script>
|
|
|
-{/block}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-colla-item">
|
|
|
+ <h2 class="layui-colla-title">科学家</h2>
|
|
|
+ <div class="layui-colla-content">
|
|
|
+ <p>伟大的科学家</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-colla-item">
|
|
|
+ <h2 class="layui-colla-title">艺术家</h2>
|
|
|
+ <div class="layui-colla-content">
|
|
|
+ <p>浑身散发着艺术细胞</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|