12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php if (!defined('THINK_PATH')) exit();?><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:'/jdxf/admin1.php/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>
- <?php if(is_array($list)): foreach($list as $key=>$v): ?><tr>
- <td>
- <a class="btn btn-green" > <?php echo ($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 if(is_array($list1)): foreach($list1 as $key=>$vo): ?><tr>
- <td height="30" width="200" >
- <a class="btn btn-green" ><?php echo ($vo['title']); ?></a>
- </td>
- <td>
- <table>
- <?php if($vo['clicn'] > 0): $list2 = M('auth_rule')->where(' status=1 and level=3 and pid='.$vo['id'])->select(); ?>
- <?php if(is_array($list2)): foreach($list2 as $key=>$voo): ?><tr><td height="30" width="130">
- <a class="btn btn-green" ><?php echo ($voo['title']); ?></a>
- </td>
- <td>
- <?php $list3 = M('auth_rule')->where(' status=1 and types=2 and pid='.$voo['id'])->select(); ?>
- <?php if(is_array($list3)): $i = 0; $__LIST__ = $list3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v3): $mod = ($i % 2 );++$i;?><span style="width:90px;">
- <a class="btn btn-green" data-toggle="dialog" data-mask="true" data-options="{id:'gn<?php echo ($v3["id"]); ?>', url:'/jdxf/admin1.php/Home/Rule/edit/id/<?php echo ($v3["id"]); ?>',
- height:350}" ><?php echo ($v3["title"]); ?></a>
- </span><?php endforeach; endif; else: echo "" ;endif; ?>
- </td>
- </tr><?php endforeach; endif; ?>
- <?php else: ?>
- <tr>
- <td height="30" width="130"></td>
- <td>
- <?php $list4 = M('auth_rule')->where('types=2 and pid='.$vo['id'])->select(); ?>
- <?php if(is_array($list4)): $i = 0; $__LIST__ = $list4;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v4): $mod = ($i % 2 );++$i;?><span style="width:90px;">
- <a class="btn btn-green" data-toggle="dialog" data-mask="true" data-options="{id:'gn<?php echo ($v4["id"]); ?>', url:'/jdxf/admin1.php/Home/Rule/edit/id/<?php echo ($v4["id"]); ?>',
- height:350}" ><?php echo ($v4["title"]); ?></a>
- </span><?php endforeach; endif; else: echo "" ;endif; ?>
- </td>
- </tr><?php endif; ?>
- </table>
- </td>
- </tr><?php endforeach; endif; ?>
- </Table>
- </td>
- </tr><?php endforeach; endif; ?>
- </tbody>
-
- </table>
-
- </div>
- <div class="bjui-pageFooter">
- 底部模块[如:操作按钮]
- </div>
|