lists.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <include file="public@header" />
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li><a href="{:url('Menu/index')}">后台菜单</a></li>
  7. <li><a href="{:url('Menu/add')}">添加菜单</a></li>
  8. <li class="active"><a href="{:url('Menu/lists')}">所有菜单</a></li>
  9. </ul>
  10. <form class="form-horizontal js-ajax-form" action="{:url('menu/listorders')}" method="post">
  11. <div class="table-actions">
  12. <a class="btn btn-primary btn-sm js-ajax-dialog-btn" href="{:url('menu/exportMenuLang')}" data-msg="您确定生成菜单多语言包吗?请确保应用目录下lang目录可写!">生成菜单多语言包</a>
  13. <a class="btn btn-warning btn-sm" href="{:url('menu/getactions')}">导入新菜单</a>
  14. </div>
  15. <div class="alert alert-warning" style="margin: 0 0 5px 0;">
  16. 请在开发人员指导下进行以上操作!
  17. </div>
  18. <table class="table table-hover table-bordered table-list">
  19. <thead>
  20. <tr>
  21. <th width="50">ID</th>
  22. <th>菜单英文名称</th>
  23. <th width="50">状态</th>
  24. <th width="100">管理操作</th>
  25. </tr>
  26. </thead>
  27. <foreach name="menus" item="vo">
  28. <tr>
  29. <td>{$vo.id}</td>
  30. <td>{$vo.name}:{$vo.app}/{$vo.controller}/{$vo.action}</td>
  31. <td>
  32. <empty name="vo.status">
  33. <span class="label label-warning">
  34. 隐藏
  35. </span>
  36. <else/>
  37. <span class="label label-success">
  38. 显示
  39. </span>
  40. </empty>
  41. </td>
  42. <td>
  43. <a class="btn btn-xs btn-primary" href="{:url('menu/edit',array('id'=>$vo['id']))}">编辑</a>
  44. <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('menu/delete',array('id'=>$vo['id']))}">删除</a>
  45. </td>
  46. </tr>
  47. </foreach>
  48. <tfoot>
  49. <tr>
  50. <th width="50">ID</th>
  51. <th>菜单英文名称</th>
  52. <th width="50">状态</th>
  53. <th width="100">管理操作</th>
  54. </tr>
  55. </tfoot>
  56. </table>
  57. </form>
  58. </div>
  59. <script src="__STATIC__/js/admin.js"></script>
  60. </body>
  61. </html>