index.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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('Menu/index')}">后台菜单</a></li>
  7. <li><a href="{:url('Menu/add')}">添加菜单</a></li>
  8. <li><a href="{:url('Menu/lists')}">所有菜单</a></li>
  9. </ul>
  10. <form class="js-ajax-form" action="{:url('Menu/listOrder')}" method="post">
  11. <div class="table-actions">
  12. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
  13. </div>
  14. <table class="table table-hover table-bordered table-list" id="menus-table">
  15. <thead>
  16. <tr>
  17. <th width="80">{:lang('SORT')}</th>
  18. <th width="50">ID</th>
  19. <th>{:lang('NAME')}</th>
  20. <th>操作</th>
  21. <th width="80">{:lang('STATUS')}</th>
  22. <th width="180">{:lang('ACTIONS')}</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. {$category}
  27. </tbody>
  28. <tfoot>
  29. <tr>
  30. <th width="80">{:lang('SORT')}</th>
  31. <th width="50">ID</th>
  32. <th>{:lang('NAME')}</th>
  33. <th>操作</th>
  34. <th width="80">{:lang('STATUS')}</th>
  35. <th width="180">{:lang('ACTIONS')}</th>
  36. </tr>
  37. </tfoot>
  38. </table>
  39. <div class="table-actions">
  40. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
  41. </div>
  42. </form>
  43. </div>
  44. <script src="__STATIC__/js/admin.js"></script>
  45. <script>
  46. $(document).ready(function() {
  47. Wind.css('treeTable');
  48. Wind.use('treeTable', function() {
  49. $("#menus-table").treeTable({
  50. indent : 20
  51. });
  52. });
  53. });
  54. </script>
  55. </body>
  56. </html>