ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ {extend name="base" /} {block name="body"} <style> .menu { /* position: absolute;*/ left: 20px; height: 400px; overflow: auto; border: 0px solid #f00; } .menu ul { padding: 0; margin: 0; } .menu ul li.active { background: #eaeaea; } .menu ul li { position: relative; padding: 10px 60px 10px 10px; font: 14px/20px "微软雅黑"; word-break: break-all; cursor: pointer; margin: 1px 0; background: #f5f5f5; /* height: 20px;*/ } .menu ul li .btn_create { display: block; color: #2196f3; margin: -10px -60px -10px -10px; padding: 10px; } .btn_edit { margin-left: 15px; /* right: 33px;*/ } .btn_del { margin-left: 5px; /* right: 8px;*/ } </style> <div class="layui-body"> <!--tab标签--> <div class="layui-tab layui-tab-brief"> <ul class="layui-tab-title"> <li class="layui-this">图片管理</li> </ul> <div class="layui-tab-content"> <div class="layui-tab-item layui-show"> <table class="layui-table"> <blockquote class="layui-elem-quote"> 可以对文件分组,和文件信息编辑删除修复 </blockquote> <div style="width: 15%;float: left"> <!-- 左侧导航区域(可配合layui已有的垂直导航) --> <div class="menu" style="min-height: 814px;"> <ul> {volist name="file_tag" id="vo"} <li class="cate4 {eq name='vo.id' value='$Request.param.tag_id'}active{/eq}"> <a href="/admin/imgfile/index/tag_id/{$vo.id}.html" style="width: 70px;display: inline-block"> {$vo.title} </a> {neq name="vo['id']" value="1"} <a onClick="admin_edit('修改分组','/admin/imgfiletag/edit/id/{$vo.id}.html','500','510')" class="btn_edit"> <i class="layui-icon">&#xe642;</i> </a> <a onClick="admin_del(this,{$vo['id']})" class="btn_del"> <i class="layui-icon">&#xe640;</i> </a> {/neq} </li> {/volist} <li> <a class="btn_create" title="创建" onClick="admin_edit('添加分组','/admin/imgfiletag/add/id/0.html','500','510')" style="text-decoration:none"> + 创建 </a> </li> </ul> </div> <!--*******************--> </div> <iframe src="/admin/imgfile/show/tag_id/{$Request.param.tag_id}.html" frameborder="0" id="demoAdmin" style="width: 85%; min-height:690px;float: right"></iframe> </table> </div> </div> </div> </div> {/block} {block name="script"} <script> // 用户-删除 function admin_del(obj,id){ layer.confirm('确认要删除吗?',function(index){ //发异步把用户状态进行更改 $.get("{:url('imgfiletag/delete')}",{id:id},function(data){ window.location.replace(location.href); layer.msg(data); }); }); } // 用户-编辑 function admin_edit(title,url,w,h){ xadmin_show(title,url,w,h); } </script> {/block} ~~~