menu.html
6.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台管理系统</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap-responsive.min.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/style.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/menu.css">
<script type="text/javascript" src="__PUB__js/bootstrap.min.js"></script>
<script type="text/javascript" src="__PUB__js/jquery.min.js"></script>
<script type="text/javascript" src="__PUB__js/common.js"></script>
<script type="text/javascript" src="__PUB__js/leftmenu.js"></script>
</head>
<body target="main" style="">
<table width="100%" align="left" border="0" cellspacing="0" cellpadding="0" style="text-align:left;">
<tbody>
<tr>
<td valign="top" style="padding-top:10px" width="20">
<a id="link2" class="mmac"><div onclick="ShowMainMenu(2)">管理</div></a>
<a id="link3" class="mm"><div onclick="ShowMainMenu(3)">系统</div></a>
<div class="mmf"></div>
</td>
<td width="160" valign="top">
<div id="mainct">
<div id="ct2">
<?php
$power=array(
'Reg-index', //数据字段管理
);
$result=doMenuPower($power,$authlist); //权限判断处理
if($result['first']):
?>
<dl id="sunitems2_4" class="bitem"><dt onclick="showHide('items2_4')"><b>数据字段管理</b></dt>
<dd id="items2_4" class="sitem">
<ul class="sitemu">
<li><a target="main" href="<{:U('Reg/index')}>">数据字段列表</a></li>
</ul>
</dd>
</dl>
<?php
endif;
unset($power,$result);
$power=array(
'Power-fenpei', //角色分配管理
'Power-group', //角色列表
'Power-rules', //规则管理
);
$result=doMenuPower($power,$authlist); //权限判断处理
if($result['first']):
?>
<dl class="bitem" id="sunitems2_1"><dt onclick="showHide('items2_1')"><b>前台权限管理</b></dt>
<dd style="display:block" class="sitem" id="items2_1">
<ul class="sitemu">
<?php if($result['second'][0]):?>
<li><a target="main" href="<{:U('Power/fenpei')}>">角色分配管理</a></li>
<?php endif; ?>
<?php if($result['second'][1]):?>
<li><a target="main" href="<{:U('Power/group')}>">角色列表</a></li>
<?php endif; ?>
<?php if($result['second'][2]):?>
<li><a target="main" href="<{:U('Power/rules')}>">规则管理</a></li>
<?php endif; ?>
</ul>
</dd>
</dl>
<?php
endif;
unset($power,$result);
$power=array(
'Article-index', //角色分配管理
);
$result=doMenuPower($power,$authlist); //权限判断处理
if($result['first']):
?>
<dl class="bitem" id="sunitems2_1"><dt onclick="showHide('items2_1')"><b>资料管理</b></dt>
<dd style="display:block" class="sitem" id="items2_1">
<ul class="sitemu">
<li><a target="main" href="<{:U('Article/index')}>">资料管理</a></li>
</ul>
</dd>
</dl>
<?php
endif;
unset($power,$result);
?>
</div>
<div id="ct3" style="display:none">
<?php
$power=array(
'Admin-index', //管理员列表
);
$result=doMenuPower($power,$authlist); //权限判断处理
if($result['first']):
?>
<dl id="sunitems2_3" class="bitem"><dt onclick="showHide('items2_3')"><b>用户管理</b></dt>
<dd id="items2_3" class="sitem">
<ul class="sitemu">
<li><a target="main" href="<{:U('Admin/index')}>">管理员列表</a></li>
</ul>
</dd>
</dl>
<?php
endif;
unset($power,$result);
$power=array(
'Authc-fenpei', //角色分配管理
'Authc-group', //角色列表
'Authc-rules', //规则管理
);
$result=doMenuPower($power,$authlist); //权限判断处理
if($result['first']):
?>
<dl id="sunitems3_3" class="bitem"><dt onclick="showHide('items3_3')"><b>权限管理</b></dt>
<dd id="items3_3" class="sitem">
<ul class="sitemu">
<?php if($result['second'][0]):?>
<li><a target="main" href="<{:U('Authc/fenpei')}>">角色分配管理</a></li>
<?php endif; ?>
<?php if($result['second'][1]):?>
<li><a target="main" href="<{:U('Authc/group')}>">角色列表</a></li>
<?php endif; ?>
<?php if($result['second'][2]):?>
<li><a target="main" href="<{:U('Authc/rules')}>">规则管理</a></li>
<?php endif; ?>
</ul>
</dd>
</dl>
<?php
endif;
unset($power,$result);
$power=array(
'Index-system', //系统参数设置
'Index-delcache', //清理缓存
'Baksql-index', //数据管理
);
$result=doMenuPower($power,$authlist); //权限判断处理
if($result['first']):
?>
<dl id="sunitems1_3" class="bitem"><dt onclick="showHide('items1_3')"><b>系统操作</b></dt>
<dd id="items1_3" class="sitem">
<ul class="sitemu">
<?php if($result['second'][0]):?>
<li><a target="main" href="<{:U('Index/system')}>">系统参数设置</a></li>
<?php endif; ?>
<?php if($result['second'][1]):?>
<li><a target="main" href="<{:U('Index/delcache')}>">清理缓存</a></li>
<?php endif; ?>
<?php if($result['second'][2]):?>
<li><a target="main" href="<{:U('Baksql/index')}>">数据管理</a></li>
<?php endif; ?>
</ul>
</dd>
</dl>
<?php
endif;
unset($power,$result);
?>
</div>
</div>
</td>
</tr>
<!-- <tr>
<td width="26"></td>
<td width="160" valign="top"><img src="__PUB__images/bottom.gif"></td>
</tr> -->
</tbody>
</table>
</body>
</html>
<script>
$(function(){
$('#ct1 dl dd ul li > ul > li').addClass('pp_child1');
$('#ct1 dl dd ul li > ul > li > ul > li').addClass('pp_child2');
$('#ct1 dl dd ul li > ul > li > ul > li > ul > li').addClass('pp_child3');
});
</script>