12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <div class="bjui-pageHeader" data-layout-fixed="true">
- <div class="bjui-searchBar">
- <div class="btn-group">
- <!-- showMoreSearch 记住显示状态data-name="custom2" -->
- </div>
- <!--<span style="float:right;"><a href="" class="btn btn-red" data-icon="arrow-up"><i class="fa fa-arrow-up"></i> 导出</a></span>-->
- <span style="float:right;margin-right:20px;">
- <a class="btn btn-green" data-toggle="dialog" data-options="{id:'rule_add', url:'__APP__/home/rule/add',
- onClose:'rule_sp',height:350,width:600,mask:true}" data-icon="plus" > 新增功能</a>
-
- </span>
- <span><a class="btn btn-orange" href="javascript:;" onclick="loadpage(this)" data-icon="undo"><i class="fa fa-undo"></i> 刷新</a></span>
-
- </div>
- </div>
- <!--header end -->
- <div class="bjui-pageContent">
- <table class="table table-condensed table-hover" data-width="100%">
- <thead>
- <tr>
- <th width="150" height="30">一级菜单</th>
- <th >二级菜单/三级菜单/节点功能</th>
- </tr>
- </thead>
- <tbody>
- <foreach name="list" item="v">
- <tr>
- <td>
- <a class="btn btn-green" > {$v['title']}</a>
- </td>
- <td>
- <Table width="100%">
- <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>
- <foreach name="list1" item="vo">
- <tr>
- <td height="30" width="200" >
- <a class="btn btn-green" >{$vo['title']}</a>
- </td>
- <td>
- <table>
- <if condition="$vo['clicn'] gt 0">
- <php>$list2 = M('auth_rule')->where(' status=1 and level=3 and pid='.$vo['id'])->select();</php>
- <foreach name="list2" item="voo">
- <tr><td height="30" width="130">
- <a class="btn btn-green" >{$voo['title']}</a>
- </td>
- <td>
- <php>$list3 = M('auth_rule')->where(' status=1 and types=2 and pid='.$voo['id'])->select();</php>
- <volist name="list3" id="v3">
- <span style="width:90px;">
- <a class="btn btn-green" data-toggle="dialog" data-mask="true" data-options="{id:'gn{$v3.id}', url:'__MODULE__/Rule/edit/id/{$v3.id}',
- height:350}" >{$v3.title}</a>
- </span>
- </volist>
- </td>
- </tr>
- </foreach>
- <else />
- <tr>
- <td height="30" width="130"></td>
- <td>
- <php>$list4 = M('auth_rule')->where('types=2 and pid='.$vo['id'])->select();</php>
- <volist name="list4" id="v4">
- <span style="width:90px;">
- <a class="btn btn-green" data-toggle="dialog" data-mask="true" data-options="{id:'gn{$v4.id}', url:'__MODULE__/Rule/edit/id/{$v4.id}',
- height:350}" >{$v4.title}</a>
- </span>
- </volist>
- </td>
- </tr>
- </if>
- </table>
- </td>
- </tr>
- </foreach>
- </Table>
- </td>
- </tr>
- </foreach>
- </tbody>
-
- </table>
-
- </div>
- <div class="bjui-pageFooter">
- 底部模块[如:操作按钮]
- </div>
|