index.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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('nav/index')}">所有导航</a></li>
  7. <li><a href="{:url('nav/add')}">添加导航</a></li>
  8. </ul>
  9. <form action="{:url('Rbac/listorders')}" method="post" class="margin-top-20">
  10. <php> $is_main=array("1"=>'是',"0"=>'否');</php>
  11. <table class="table table-hover table-bordered">
  12. <thead>
  13. <tr>
  14. <th width="40">ID</th>
  15. <th>名称</th>
  16. <th width="80">主导航</th>
  17. <th>描述</th>
  18. <th width="160">{:lang('ACTIONS')}</th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. <foreach name="navs" item="vo">
  23. <tr>
  24. <td>{$vo.id}</td>
  25. <td>{$vo.name}</td>
  26. <td>
  27. <empty name="vo.is_main">
  28. <span class="label label-default">
  29. {$is_main[$vo.is_main]}
  30. </span>
  31. <else/>
  32. <span class="label label-success">
  33. {$is_main[$vo.is_main]}
  34. </span>
  35. </empty>
  36. </td>
  37. <td>{$vo.remark}</td>
  38. <td>
  39. <a class="btn btn-xs btn-primary" href="javascript:parent.openIframeLayer('{:url('NavMenu/index',array('nav_id'=>$vo['id']))}','{$vo.name}菜单管理',{});">菜单管理</a>
  40. <a class="btn btn-xs btn-success" href="{:url('nav/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
  41. <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('nav/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
  42. </td>
  43. </tr>
  44. </foreach>
  45. </tbody>
  46. </table>
  47. </form>
  48. </div>
  49. <script src="__STATIC__/js/admin.js"></script>
  50. </body>
  51. </html>