企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
![mark](http://qiniu.newthink.cc/blog/20171016-102317240.png) ## 代码 ``` <!doctype html> <html> <head> <meta charset="utf-8"> <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <table class="table table-hover table-bordered table-list"> <thead> <tr> <th width="40">ID</th> <th align="left">角色名称</th> <th align="left">角色描述 </th> <th width="60" align="left">状态</th> <th width="160">操作</th> </tr> </thead> <tbody> <foreach name="roles" item="vo"> <tr> <td>{$vo.id}</td> <td>{$vo.name}</td> <td>{$vo.remark}</td> <td> <if condition="$vo['status'] eq 1"> <font color="red">√</font> <else /> <font color="red">╳</font> </if> </td> <td> <if condition="$vo['id'] eq 1"> <font color="#cccccc">权限设置</font> <font color="#cccccc">编辑</font> <font color="#cccccc">删除</font> <else /> <a href="{:url('Rbac/authorize',array('id'=>$vo['id']))}">权限设置</a> <a href="{:url('Rbac/roleedit',array('id'=>$vo['id']))}">编辑</a> <a class="js-ajax-delete" href="{:url('Rbac/roledelete',array('id'=>$vo['id']))}">删除</a> </if> </td> </tr> </foreach> </tbody> </table> </body> </html> ```