index.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <div class="bjui-pageHeader" data-layout-fixed="true">
  2. <div class="bjui-searchBar">
  3. <div class="btn-group">
  4. <!-- showMoreSearch 记住显示状态data-name="custom2" -->
  5. </div>
  6. <!--<span style="float:right;"><a href="" class="btn btn-red" data-icon="arrow-up"><i class="fa fa-arrow-up"></i> 导出</a></span>-->
  7. <span style="float:right;margin-right:20px;">
  8. <a class="btn btn-green" data-toggle="dialog" data-options="{id:'rule_add', url:'__APP__/home/rule/add',
  9. onClose:'rule_sp',height:350,width:600,mask:true}" data-icon="plus" > 新增功能</a>
  10. </span>
  11. <span><a class="btn btn-orange" href="javascript:;" onclick="loadpage(this)" data-icon="undo"><i class="fa fa-undo"></i> 刷新</a></span>
  12. </div>
  13. </div>
  14. <!--header end -->
  15. <div class="bjui-pageContent">
  16. <table class="table table-condensed table-hover" data-width="100%">
  17. <thead>
  18. <tr>
  19. <th width="150" height="30">一级菜单</th>
  20. <th >二级菜单/三级菜单/节点功能</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <foreach name="list" item="v">
  25. <tr>
  26. <td>
  27. <a class="btn btn-green" > {$v['title']}</a>
  28. </td>
  29. <td>
  30. <Table width="100%">
  31. <php>$list1 = M('auth_rule')->field('id,title,(SELECT COUNT(ID) FROM sp_auth_rule b WHERE b.pid= sp_auth_rule.ID AND `level`=3 ) as clicn')->where(' status=1 and level=2 and pid='.$v['id'])->select();</php>
  32. <foreach name="list1" item="vo">
  33. <tr>
  34. <td height="30" width="200" >
  35. <a class="btn btn-green" >{$vo['title']}</a>
  36. </td>
  37. <td>
  38. <table>
  39. <if condition="$vo['clicn'] gt 0">
  40. <php>$list2 = M('auth_rule')->where(' status=1 and level=3 and pid='.$vo['id'])->select();</php>
  41. <foreach name="list2" item="voo">
  42. <tr><td height="30" width="130">
  43. <a class="btn btn-green" >{$voo['title']}</a>
  44. </td>
  45. <td>
  46. <php>$list3 = M('auth_rule')->where(' status=1 and types=2 and pid='.$voo['id'])->select();</php>
  47. <volist name="list3" id="v3">
  48. <span style="width:90px;">
  49. <a class="btn btn-green" data-toggle="dialog" data-mask="true" data-options="{id:'gn{$v3.id}', url:'__MODULE__/Rule/edit/id/{$v3.id}',
  50. height:350}" >{$v3.title}</a>
  51. </span>
  52. </volist>
  53. </td>
  54. </tr>
  55. </foreach>
  56. <else />
  57. <tr>
  58. <td height="30" width="130"></td>
  59. <td>
  60. <php>$list4 = M('auth_rule')->where('types=2 and pid='.$vo['id'])->select();</php>
  61. <volist name="list4" id="v4">
  62. <span style="width:90px;">
  63. <a class="btn btn-green" data-toggle="dialog" data-mask="true" data-options="{id:'gn{$v4.id}', url:'__MODULE__/Rule/edit/id/{$v4.id}',
  64. height:350}" >{$v4.title}</a>
  65. </span>
  66. </volist>
  67. </td>
  68. </tr>
  69. </if>
  70. </table>
  71. </td>
  72. </tr>
  73. </foreach>
  74. </Table>
  75. </td>
  76. </tr>
  77. </foreach>
  78. </tbody>
  79. </table>
  80. </div>
  81. <div class="bjui-pageFooter">
  82. 底部模块[如:操作按钮]
  83. </div>