index.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <include file="public@header" />
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a href="{:url('rbac/index')}">{:lang('ADMIN_RBAC_INDEX')}</a></li>
  7. <li><a href="{:url('rbac/roleAdd')}">{:lang('ADMIN_RBAC_ROLEADD')}</a></li>
  8. </ul>
  9. <form action="{:url('Rbac/listorders')}" method="post" class="margin-top-20">
  10. <table class="table table-hover table-bordered">
  11. <thead>
  12. <tr>
  13. <th width="40">ID</th>
  14. <th align="left">{:lang('ROLE_NAME')}</th>
  15. <th align="left">{:lang('ROLE_DESCRIPTION')}</th>
  16. <th width="60" align="left">{:lang('STATUS')}</th>
  17. <th width="160">{:lang('ACTIONS')}</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <foreach name="roles" item="vo">
  22. <tr>
  23. <td>{$vo.id}</td>
  24. <td>{$vo.name}</td>
  25. <td>{$vo.remark}</td>
  26. <td>
  27. <if condition="$vo['status'] eq 1">
  28. <span class="label label-success">已启用</span>
  29. <else />
  30. <span class="label label-danger">已禁用</span>
  31. </if>
  32. </td>
  33. <td>
  34. <if condition="$vo['id'] eq 1">
  35. <span class="btn btn-xs btn-primary disabled">{:lang('ROLE_SETTING')}</span>
  36. <!-- <a href="javascript:openIframeDialog('{:url('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a> | -->
  37. <span class="btn btn-xs btn-primary disabled">{:lang('EDIT')}</span>
  38. <span class="btn btn-xs btn-danger disabled">{:lang('DELETE')}</span>
  39. <else />
  40. <a class="btn btn-xs btn-primary" href="{:url('Rbac/authorize',array('id'=>$vo['id']))}">{:lang('ROLE_SETTING')}</a>
  41. <!-- <a href="javascript:openIframeDialog('{:url('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a>| -->
  42. <a class="btn btn-xs btn-primary" href="{:url('Rbac/roleedit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
  43. <a class="btn btn-xs btn-danger js-ajax-delete" class="" href="{:url('Rbac/roledelete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
  44. </if>
  45. </td>
  46. </tr>
  47. </foreach>
  48. </tbody>
  49. </table>
  50. </form>
  51. </div>
  52. <script src="__STATIC__/js/admin.js"></script>
  53. </body>
  54. </html>