cbe992d2d3558b4cb7841ecea716d0b6.php
15.0 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:47:"themes/admin_simpleboot3/admin/index/index.html";i:1531653226;}*/ ?>
<!DOCTYPE html>
<html lang="zh_CN" style="overflow: hidden;">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta charset="utf-8">
<title>QnbugBMS <?php echo lang('ADMIN_CENTER'); ?></title>
<meta name="description" content="This is page-header (.page-header > h1)">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link href="/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
<link href="/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
<link href="/static/font-awesome/css/font-awesome.min.css?page=index" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/simplebootadminindex.min.css">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
/*-----------------导航hack--------------------*/
.nav-list > li.open {
position: relative;
}
.nav-list > li.open .back {
display: none;
}
.nav-list > li.open .normal {
display: inline-block !important;
}
.nav-list > li.open a {
padding-left: 7px;
}
.nav-list > li .submenu > li > a {
background: #fff;
}
.nav-list > li .submenu > li a > [class*="fa-"]:first-child {
left: 20px;
}
.nav-list > li ul.submenu ul.submenu > li a > [class*="fa-"]:first-child {
left: 30px;
}
/*----------------导航hack--------------------*/
</style>
<script>
//全局变量
var GV = {
HOST: "<?php echo $_SERVER['HTTP_HOST']; ?>",
ROOT: "/",
WEB_ROOT: "/",
JS_ROOT: "static/js/"
};
</script>
<?php $submenus=$menus; function getsubmenu($submenus){ if(!(empty($submenus) || (($submenus instanceof \think\Collection || $submenus instanceof \think\Paginator ) && $submenus->isEmpty()))): foreach($submenus as $menu){ ?>
<li>
<?php
$menu_name=lang($menu['lang']);
$menu_name=$menu['lang']==$menu_name?$menu['name']:$menu_name;
if(empty($menu['items'])){ ?>
<a href="javascript:openapp('<?php echo $menu['url']; ?>','<?php echo $menu['id']; ?>','<?php echo $menu_name; ?>',true);">
<i class="fa fa-<?php echo (isset($menu['icon']) && ($menu['icon'] !== '')?$menu['icon']:'desktop'); ?>"></i>
<span class="menu-text"> <?php echo $menu_name; ?> </span>
</a>
<?php }else{ ?>
<a href="#" class="dropdown-toggle">
<i class="fa fa-<?php echo (isset($menu['icon']) && ($menu['icon'] !== '')?$menu['icon']:'desktop'); ?> normal"></i>
<span class="menu-text normal"> <?php echo $menu_name; ?> </span>
<b class="arrow fa fa-angle-right normal"></b>
<i class="fa fa-reply back"></i>
<span class="menu-text back">返回</span>
</a>
<ul class="submenu">
<?php getsubmenu1($menu['items']) ?>
</ul>
<?php } ?>
</li>
<?php } endif; } function getsubmenu1($submenus){ foreach($submenus as $menu){ ?>
<li>
<?php
$menu_name=lang($menu['lang']);
$menu_name=$menu['lang']==$menu_name?$menu['name']:$menu_name;
if(empty($menu['items'])){ ?>
<a href="javascript:openapp('<?php echo $menu['url']; ?>','<?php echo $menu['id']; ?>','<?php echo $menu_name; ?>',true);">
<i class="fa fa-caret-right"></i>
<span class="menu-text">
<?php echo $menu_name; ?>
</span>
</a>
<?php }else{ ?>
<a href="#" class="dropdown-toggle">
<i class="fa fa-caret-right"></i>
<span class="menu-text">
<?php echo $menu_name; ?>
</span>
<b class="arrow fa fa-angle-right"></b>
</a>
<ul class="submenu">
<?php getsubmenu2($menu['items']) ?>
</ul>
<?php } ?>
</li>
<?php } } function getsubmenu2($submenus){ foreach($submenus as $menu){ ?>
<li>
<?php
$menu_name=lang($menu['lang']);
$menu_name=$menu['lang']==$menu_name?$menu['name']:$menu_name;
?>
<a href="javascript:openapp('<?php echo $menu['url']; ?>','<?php echo $menu['id']; ?>','<?php echo $menu_name; ?>',true);">
<i class="fa fa-angle-double-right"></i>
<span class="menu-text">
<?php echo $menu_name; ?>
</span>
</a>
</li>
<?php } } if(APP_DEBUG): ?>
<style>
#think_page_trace_open {
left: 0 !important;
right: initial !important;
}
</style>
<?php endif; ?>
</head>
<body style="min-width:900px;overflow: hidden;">
<div id="loading"><i class="loadingicon"></i><span><?php echo lang('LOADING'); ?></span></div>
<div id="right-tools-wrapper">
<!--<span id="right_tools_clearcache" title="清除缓存" onclick="javascript:openapp('<?php echo url('admin/Setting/clearcache'); ?>','right_tool_clearcache','清除缓存');"><i class="fa fa-trash-o right_tool_icon"></i></span>-->
<!--<span id="refresh-wrapper" title="<?php echo lang('REFRESH_CURRENT_PAGE'); ?>"><i-->
<!--class="fa fa-refresh right_tool_icon"></i></span>-->
</div>
<div class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a href="<?php echo url('admin/index/index'); ?>" class="navbar-brand" style="min-width: 200px;text-align: center;">QnbugBMS</a>
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse" id="navbar-main">
<div class="pull-left" style="position: relative;">
<a id="task-pre" class="task-changebt"><i class="fa fa-chevron-left"></i></a>
<div id="task-content">
<ul class="nav navbar-nav cmf-component-tab" id="task-content-inner">
<li class="cmf-component-tabitem noclose" app-id="0" app-url="<?php echo url('main/index'); ?>"
app-name="首页">
<a class="cmf-tabs-item-text"><?php echo lang('HOME'); ?></a>
</li>
</ul>
<div style="clear:both;"></div>
</div>
<a id="task-next" class="task-changebt"><i class="fa fa-chevron-right"></i></a>
</div>
<ul class="nav navbar-nav navbar-right simplewind-nav">
<li class="light-blue" style="border-left:none;display: none;" id="close-all-tabs-btn">
<a id="close-wrapper" href="javascript:void(0);" title="<?php echo lang('CLOSE_TOP_MENU'); ?>" style="color:#fff;font-size: 16px">
<i class="fa fa-times right_tool_icon"></i>
</a>
</li>
<li class="light-blue" style="border-left:none;">
<a id="refresh-wrapper" href="javacript:void(0);" title="<?php echo lang('REFRESH_CURRENT_PAGE'); ?>" style="color:#fff;font-size: 16px">
<i class="fa fa-refresh right_tool_icon"></i>
</a>
</li>
<li class="light-blue dropdown" style="border-left:none;">
<a data-toggle="dropdown" href="#" class="dropdown-toggle">
<?php if(isset($admin['avatar']) && $admin['avatar']): ?>
<img class="nav-user-photo" width="30" height="30"
src="<?php echo cmf_get_user_avatar_url($admin['avatar']); ?>" alt="<?php echo $admin['user_login']; ?>">
<?php else: ?>
<img class="nav-user-photo" width="30" height="30"
src="/themes/admin_simpleboot3/public/assets/images/logo-18.png" alt="<?php echo (isset($admin['user_login']) && ($admin['user_login'] !== '')?$admin['user_login']:''); ?>">
<?php endif; ?>
<span class="user-info">
<?php echo lang('WELCOME_USER',array('user_nickname' => empty($admin['user_nickname'] )? $admin['user_login'] : $admin['user_nickname'])); ?>
</span>
<i class="fa fa-caret-down"></i>
</a>
<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-closer">
<?php if(cmf_auth_check(cmf_get_current_admin_id(),'admin/Setting/site')): ?>
<li>
<a href="javascript:openapp('<?php echo url('setting/site'); ?>','index_site','<?php echo lang('ADMIN_SETTING_SITE'); ?>');"><i
class="fa fa-cog"></i> <?php echo lang('ADMIN_SETTING_SITE'); ?></a></li>
<?php endif; if(cmf_auth_check(cmf_get_current_admin_id(),'admin/user/userinfo')): ?>
<li>
<a href="javascript:openapp('<?php echo url('user/userinfo'); ?>','index_userinfo','<?php echo lang('ADMIN_USER_USERINFO'); ?>');"><i
class="fa fa-user"></i> <?php echo lang('ADMIN_USER_USERINFO'); ?></a></li>
<?php endif; if(cmf_auth_check(cmf_get_current_admin_id(),'admin/Setting/password')): ?>
<li>
<a href="javascript:openapp('<?php echo url('setting/password'); ?>','index_password','<?php echo lang('ADMIN_SETTING_PASSWORD'); ?>');"><i
class="fa fa-lock"></i> <?php echo lang('ADMIN_SETTING_PASSWORD'); ?></a></li>
<?php endif; ?>
<li><a href="<?php echo url('Public/logout'); ?>"><i class="fa fa-sign-out"></i> <?php echo lang('LOGOUT'); ?></a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="main-container container-fluid">
<div class="sidebar" id="sidebar">
<div class="sidebar-shortcuts" id="sidebar-shortcuts">
<?php if(cmf_auth_check(cmf_get_current_admin_id(),'admin/Setting/clearcache')): ?>
<a class="btn btn-sm btn-danger"
href="javascript:openapp('<?php echo url('admin/Setting/clearcache'); ?>','index_clearcache','<?php echo lang('ADMIN_SETTING_CLEARCACHE'); ?>',true);"
title="<?php echo lang('ADMIN_SETTING_CLEARCACHE'); ?>"
data-toggle="tooltip">
<i class="fa fa-trash-o"></i>
</a>
<?php endif; if(APP_DEBUG): ?>
<a class="btn btn-sm btn-default"
href="javascript:openapp('<?php echo url('admin/Menu/index'); ?>','index_menu','<?php echo lang('ADMIN_MENU_INDEX'); ?>',true);"
title="<?php echo lang('ADMIN_MENU_INDEX'); ?>"
data-toggle="tooltip">
<i class="fa fa-list"></i>
</a>
<?php endif; ?>
</div>
<div id="nav-wrapper">
<ul class="nav nav-list">
<?php echo getsubmenu($submenus); ?>
</ul>
</div>
</div>
<div class="main-content">
<div class="page-content" id="content">
<iframe src="<?php echo url('Main/index'); ?>" style="width:100%;height: 100%;" frameborder="0" id="appiframe-0"
class="appiframe"></iframe>
</div>
</div>
</div>
<script src="/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/static/js/wind.js"></script>
<script src="/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
<script src="/static/js/admin.js"></script>
<script src="/themes/admin_simpleboot3/public/assets/simpleboot3/js/adminindex.js"></script>
<script>
$(function () {
$("[data-toggle='tooltip']").tooltip();
$("li.dropdown").hover(function () {
$(this).addClass("open");
}, function () {
$(this).removeClass("open");
});
var menus= <?php echo $menus_js_var; ?>;
//读取url参数。尝试执行菜单功能。
if(typeof(menus) != "undefined"){
var tw = window.top;
var twa =tw.location.href.split("#");
var url = twa[1];
var urlTmp = url;
if (url !=null ){
//去掉/ 去掉_ 全部小写。
urlTmp = urlTmp.replace(/[\\/|_|]/g,"");
urlTmp = urlTmp.replace(".html","");
var menu = menus[urlTmp];
if (menu){
openapp(url,menu.id+menu.app,menu.name,true);
}
}
}
});
var ismenumin = $("#sidebar").hasClass("menu-min");
$(".nav-list").on("click", function (event) {
var closest_a = $(event.target).closest("a");
if (!closest_a || closest_a.length == 0) {
return
}
if (!closest_a.hasClass("dropdown-toggle")) {
if (ismenumin && "click" == "tap" && closest_a.get(0).parentNode.parentNode == this) {
var closest_a_menu_text = closest_a.find(".menu-text").get(0);
if (event.target != closest_a_menu_text && !$.contains(closest_a_menu_text, event.target)) {
return false
}
}
return
}
var closest_a_next = closest_a.next().get(0);
if (!$(closest_a_next).is(":visible")) {
var closest_ul = $(closest_a_next.parentNode).closest("ul");
if (ismenumin && closest_ul.hasClass("nav-list")) {
return
}
closest_ul.find("> .open > .submenu").each(function () {
if (this != closest_a_next && !$(this.parentNode).hasClass("active")) {
$(this).slideUp(150).parent().removeClass("open")
}
});
}
if (ismenumin && $(closest_a_next.parentNode.parentNode).hasClass("nav-list")) {
return false;
}
$(closest_a_next).slideToggle(150).parent().toggleClass("open");
return false;
});
</script>
</body>
</html>