-
Notifications
You must be signed in to change notification settings - Fork 1
/
head.php
320 lines (314 loc) · 12 KB
/
head.php
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
<?php
if($conf['cdnpublic']==1){
$cdnpublic = '//lib.baomitu.com/';
}elseif($conf['cdnpublic']==2){
$cdnpublic = 'https://cdn.bootcdn.net/ajax/libs/';
}elseif($conf['cdnpublic']==4){
$cdnpublic = '//s1.pstatp.com/cdn/expire-1-M/';
}else{
$cdnpublic = '//cdn.staticfile.org/';
}
if(!empty($conf['staticurl'])){
$cdnserver = '//'.$conf['staticurl'].'/';
}else{
$cdnserver = '../';
}
if($conf['ui_user']==1){
$ui_user = array('bg-dark','bg-white-only','bg-dark');
}else{
$ui_user = array('bg-primary','bg-primary','bg-light dker');
}
if(substr($userrow['user'],0,3)=='qq_' && !empty($userrow['nickname'])){
$nickname = htmlspecialchars($userrow['nickname']);
}else{
$nickname = $userrow['user'];
}
if(empty($userrow['qq']) && !empty($userrow['faceimg'])){
$faceimg = htmlspecialchars($userrow['faceimg']);
}elseif(!empty($userrow['qq'])){
$faceimg = '//q4.qlogo.cn/headimg_dl?dst_uin='.$userrow['qq'].'&spec=100';
}else{
$faceimg = '../assets/img/user.png';
}
$newuserhead=null;
$newuserfoot=null;
$template_route = \lib\Template::loadRoute();
if($template_route){
$newuserhead = $template_route['userhead'];
$newuserfoot = $template_route['userfoot'];
if($template_route['userindex'] && checkIfActive(',index')){
include($template_route['userindex']);exit;
}
}
if($newuserhead){
include($newuserhead);
return;
}
@header('Content-Type: text/html; charset=UTF-8');
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title><?php echo $title ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link href="<?php echo $cdnpublic?>twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<link href="<?php echo $cdnpublic?>font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="<?php echo $cdnserver?>assets/user/css/animate.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $cdnserver?>assets/user/css/app.css" type="text/css" />
<!--[if lt IE 9]>
<script src="<?php echo $cdnpublic?>html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="<?php echo $cdnpublic?>respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<?php if($islogin2==1){
if($userrow['status']==0){
sysmsg('你的账号已被封禁!',true);exit;
}elseif($userrow['power']>0 && $conf['fenzhan_expiry']>0 && $userrow['endtime']<$date){
sysmsg('你的账号已到期,请联系管理员续费!',true);exit;
}
?>
<div class="app app-header-fixed ">
<header id="header" class="app-header navbar ng-scope" role="menu">
<div class="navbar-header <?php echo $ui_user[0]?>">
<button class="pull-right visible-xs" ui-toggle="off-screen" target=".app-aside" ui-scroll="app">
<i class="glyphicon glyphicon-align-justify"></i>
</button>
<a href="./" class="navbar-brand text-lt">
<i class="fa fa-desktop hidden-xs"></i>
<span class="hidden-folded m-l-xs">系统管理中心</span>
</a>
</div>
<div class="collapse pos-rlt navbar-collapse box-shadow <?php echo $ui_user[1]?>">
<!-- buttons -->
<div class="nav navbar-nav hidden-xs">
<a href="#" class="btn no-shadow navbar-btn" ui-toggle="app-aside-folded" target=".app">
<i class="fa fa-dedent fa-fw text"> 菜单</i>
<i class="fa fa-indent fa-fw text-active">菜单</i>
</a>
</div>
<!-- / buttons -->
<!-- nabar right -->
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle clear" data-toggle="dropdown">
<span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
<img src="<?php echo $faceimg ?>">
<i class="on md b-white bottom"></i>
</span>
<span class="hidden-sm hidden-md"><?php echo $nickname ?></span> <b class="caret"></b>
</a>
<!-- dropdown -->
<ul class="dropdown-menu animated fadeInRight w">
<li>
<a href="./">
<span>用户中心</span>
</a>
</li>
<li>
<a href="./uset.php?mod=user">
<span>修改资料</span>
</a>
</li>
<li>
<a href="../">
<span>返回首页</span>
</a>
</li>
<li class="divider"></li>
<li>
<a ui-sref="access.signin" href="login.php?logout">退出登录</a>
</li>
</ul>
<!-- / dropdown -->
</li>
</ul>
<!-- / navbar right -->
</div>
<!-- / navbar collapse -->
</header>
<!-- / header -->
<!-- aside -->
<aside id="aside" class="app-aside hidden-xs <?php echo $ui_user[2]?>">
<div class="aside-wrap">
<div class="navi-wrap">
<!-- nav -->
<nav ui-nav class="navi">
<ul class="nav">
<li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
<span>导航</span>
</li>
<li class="<?php echo checkIfActive(',index')?>">
<a href="./">
<i class="fa fa-user"></i>
<span>用户中心</span>
</a>
</li>
<li class="">
<a href="../">
<i class="fa fa-home"></i>
<span>返回首页</span>
</a>
</li>
<li class="<?php echo checkIfActive('shop')?>">
<a href="<?php echo $userrow['power']>0?'./shop.php':'../'?>">
<i class="fa fa-cart-plus"></i>
<span>自助下单</span>
</a>
</li>
<?php if($conf['openbatchorder']==1){?><li class="<?php echo checkIfActive('shops')?>">
<a href="./shops.php">
<i class="fa fa-clone"></i>
<span>批量下单</span>
</a>
</li><?php }?>
<?php if($conf['workorder_open']==1){?>
<li class="<?php echo checkIfActive('workorder')?>">
<a href="./workorder.php">
<i class="fa fa-check-square-o"></i>
<span>我的工单</span>
</a>
</li>
<?php }?>
<?php if($userrow['power']==0&&!empty($conf['appurl'])){?>
<li class="">
<a href="<?php echo $conf['appurl']?>">
<i class="fa fa-cloud-download"></i>
<span>APP下载</span>
</a>
</li>
<?php }?>
<?php if($userrow['power']>0){?>
<li class="<?php echo checkIfActive('classlist,shoplist,sitelist,userlist')?>">
<a href class="auto">
<span class="pull-right text-muted">
<i class="fa fa-fw fa-angle-right text"></i>
<i class="fa fa-fw fa-angle-down text-active"></i>
</span>
<i class="fa fa-codepen"></i>
<span>网站管理</span>
</a>
<ul class="nav nav-sub dk">
<li class="<?php echo checkIfActive('classlist')?>">
<a href="./classlist.php">
<span>分类管理</span>
</a>
</li>
<li class="<?php echo checkIfActive('shoplist')?>">
<a href="./shoplist.php">
<span>商品管理</span>
</a>
</li>
<?php if($userrow['power']==2){?>
<li class="<?php echo checkIfActive('sitelist')?>">
<a href="./sitelist.php">
<span>分站列表</span>
</a>
</li><?php }?>
<li class="<?php echo checkIfActive('userlist')?>">
<a href="./userlist.php">
<span>用户列表</span>
</a>
</li>
</ul>
</li>
<?php }?>
<li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
<span>查询</span>
</li>
<li class="<?php echo checkIfActive('list')?>">
<a href="<?php echo $userrow['power']>0?'./list.php':'../?chadan=1'?>">
<i class="fa fa-list"></i>
<span>订单查询</span>
</a>
</li>
<li class="<?php echo checkIfActive('record')?>">
<a href="./record.php">
<i class="fa fa-hashtag"></i>
<span>收支明细</span>
</a>
</li>
<?php if($userrow['power']>0 && $conf['fenzhan_rank']==1){?>
<li class="<?php echo checkIfActive('rank')?>">
<a href="./rank.php">
<i class="fa fa-line-chart"></i>
<span>分站排行</span>
</a>
</li>
<?php }?>
<li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
<span>其他</span>
</li>
<li class="<?php echo checkIfActive('uset')?>">
<a href class="auto">
<span class="pull-right text-muted">
<i class="fa fa-fw fa-angle-right text"></i>
<i class="fa fa-fw fa-angle-down text-active"></i>
</span>
<i class="fa fa-resistance"></i>
<span>系统设置</span>
</a>
<ul class="nav nav-sub dk">
<li class="<?php echo checkIfActive('user')?>">
<a href="./uset.php?mod=user">
<span>用户资料设置</span>
</a>
</li>
<?php if($userrow['power']>0){?>
<li class="<?php echo checkIfActive('site')?>">
<a href="./uset.php?mod=site">
<span>网站信息设置</span>
</a>
</li>
<?php if($conf['fenzhan_edithtml']==1){?>
<li class="<?php echo checkIfActive('logo')?>">
<a href="./uset.php?mod=logo">
<span>网站Logo设置</span>
</a>
</li>
<?php }?>
<li class="<?php echo checkIfActive('skimg')?>">
<a href="./uset.php?mod=skimg">
<span>收款图设置</span>
</a>
</li>
<?php }?>
</ul>
</li>
<li class="<?php echo checkIfActive('message')?>">
<a href="./message.php">
<i class="fa fa-bullhorn"></i>
<span>消息通知</span>
</a>
</li>
<?php if($userrow['power']>0){?>
<li class="<?php echo checkIfActive('faq')?>">
<a href="./faq.php">
<i class="fa fa-exclamation-circle"></i>
<span>常见问题</span>
</a>
</li>
<?php }?>
<li>
<a ui-sref="access.signin" href="login.php?logout">
<i class="fa fa-power-off"></i>
<span>退出登录</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
</aside>
<div id="content" class="app-content" role="main">
<div class="app-content-body ">
<div class="bg-light lter b-b wrapper-sm ng-scope">
<ul class="breadcrumb" style="padding: 0;margin: 0;">
<li><i class="fa fa-home"></i><a href="./">管理中心</a></li>
<li><?php echo $title ?></li>
</ul>
</div>
<!-- / aside -->
<?php }?>