|
@@ -1,622 +0,0 @@
|
1
|
|
-<!DOCTYPE html>
|
2
|
|
-<html>
|
3
|
|
-<head>
|
4
|
|
- <meta charset="utf-8">
|
5
|
|
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
6
|
|
- <meta name="renderer" content="webkit">
|
7
|
|
- <title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
8
|
|
- <link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
9
|
|
- <link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
10
|
|
- <link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
11
|
|
- <link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
12
|
|
- <link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
13
|
|
- <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
14
|
|
- <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
15
|
|
-</head>
|
16
|
|
-
|
17
|
|
-<body class="layui-layout-body">
|
18
|
|
-
|
19
|
|
-<!--定义部分地址方便JS调用-->
|
20
|
|
-<div style="display: none">
|
21
|
|
- <span id="controller" data-controller="<?php echo C;?>"></span>
|
22
|
|
- <span id="url" data-url="<?php echo URL;?>"></span>
|
23
|
|
- <span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
24
|
|
- <span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
25
|
|
- <span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
26
|
|
-</div>
|
27
|
|
-
|
28
|
|
-<div class="layui-layout layui-layout-admin">
|
29
|
|
- <div class="layui-header">
|
30
|
|
- <div class="layui-logo">
|
31
|
|
- <a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
32
|
|
-
|
33
|
|
- <?php echo CMSNAME;?> 控制台
|
34
|
|
- </a>
|
35
|
|
- </div>
|
36
|
|
-
|
37
|
|
- <ul class="menu">
|
38
|
|
- <li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
39
|
|
- </ul>
|
40
|
|
- <?php if (!$this->getVar('one_area')) {?>
|
41
|
|
- <form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
42
|
|
- <input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
43
|
|
- <div class="layui-col-xs8">
|
44
|
|
- <select name="acode">
|
45
|
|
- <?php echo $this->getVar('area_html');?>
|
46
|
|
- </select>
|
47
|
|
- </div>
|
48
|
|
- <div class="layui-col-xs4">
|
49
|
|
- <button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
50
|
|
- </div>
|
51
|
|
- </form>
|
52
|
|
- <?php } ?>
|
53
|
|
-
|
54
|
|
- <ul class="layui-nav layui-layout-right">
|
55
|
|
-
|
56
|
|
- <li class="layui-nav-item layui-hide-xs">
|
57
|
|
- <a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
58
|
|
- </li>
|
59
|
|
-
|
60
|
|
- <li class="layui-nav-item layui-hide-xs">
|
61
|
|
- <a href="<?php echo \core\basic\Url::get('//admin/City/index');?>"><i class="fa fa-university" aria-hidden="true"></i> 城市分站</a>
|
62
|
|
- </li>
|
63
|
|
-
|
64
|
|
- <li class="layui-nav-item layui-hide-xs">
|
65
|
|
- <a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
66
|
|
- </li>
|
67
|
|
-
|
68
|
|
- <li class="layui-nav-item layui-hide-xs">
|
69
|
|
- <a href="javascript:;">
|
70
|
|
- <i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
71
|
|
- </a>
|
72
|
|
- <dl class="layui-nav-child">
|
73
|
|
- <dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
74
|
|
- <dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
75
|
|
- <!-- <?php if (session('ucode')==10001) {?>
|
76
|
|
- <dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
77
|
|
- <dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
78
|
|
- <?php } ?> -->
|
79
|
|
- </dl>
|
80
|
|
- </li>
|
81
|
|
- </ul>
|
82
|
|
- </div>
|
83
|
|
-
|
84
|
|
- <div class="layui-side layui-bg-black">
|
85
|
|
- <div class="layui-side-scroll">
|
86
|
|
- <!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
87
|
|
- <ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
88
|
|
- <?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
89
|
|
- <li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
90
|
|
- <a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
91
|
|
- <dl class="layui-nav-child">
|
92
|
|
- <?php if ($value->mcode=='M130') {?>
|
93
|
|
- <?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
94
|
|
- <?php if ($value3->type==1) {?>
|
95
|
|
- <dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
96
|
|
- <?php } ?>
|
97
|
|
- <?php if ($value3->type==2) {?>
|
98
|
|
- <dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
99
|
|
- <?php } ?>
|
100
|
|
- <?php } ?>
|
101
|
|
- <?php } else { ?>
|
102
|
|
- <?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
103
|
|
- <?php if (!isset($value2->status)|| $value2->status==1) {?>
|
104
|
|
- <dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
105
|
|
- <?php } ?>
|
106
|
|
- <?php } ?>
|
107
|
|
-
|
108
|
|
- <!-- <?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
109
|
|
- <dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
110
|
|
- <?php } ?> -->
|
111
|
|
- <?php } ?>
|
112
|
|
- </dl>
|
113
|
|
- </li>
|
114
|
|
- <?php } ?>
|
115
|
|
-
|
116
|
|
- <li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
117
|
|
-
|
118
|
|
- <li class="layui-nav-item layui-hide-sm">
|
119
|
|
- <a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
120
|
|
- </li>
|
121
|
|
-
|
122
|
|
- <li class="layui-nav-item layui-hide-sm">
|
123
|
|
- <a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
124
|
|
- </li>
|
125
|
|
-
|
126
|
|
- <li class="layui-nav-item layui-hide-sm">
|
127
|
|
- <a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
128
|
|
- </li>
|
129
|
|
-
|
130
|
|
- <li class="layui-nav-item layui-hide-sm">
|
131
|
|
- <a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
132
|
|
- </li>
|
133
|
|
-
|
134
|
|
- </ul>
|
135
|
|
- </div>
|
136
|
|
- </div>
|
137
|
|
-
|
138
|
|
-<div class="layui-body">
|
139
|
|
- <?php if ($this->getVar('list')) {?>
|
140
|
|
- <div class="layui-tab layui-tab-brief" lay-filter="tab">
|
141
|
|
- <ul class="layui-tab-title">
|
142
|
|
- <li class="layui-this" lay-id="t1"><?php echo $this->getVar('model_name');?>内容</li>
|
143
|
|
- </ul>
|
144
|
|
- <div class="layui-tab-content">
|
145
|
|
- <div class="layui-tab-item layui-show">
|
146
|
|
- <form action="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.get('mcode').'');?>" method="get" class="layui-form">
|
147
|
|
- <div class="layui-form-item nospace">
|
148
|
|
- <div class="layui-input-inline">
|
149
|
|
- <?php echo $this->getVar('pathinfo');?>
|
150
|
|
- <select name="field" class="form-control input-sm" style="width:auto;">
|
151
|
|
- <option value="b.name" <?php if (get('field')=='b.name') {?>selected="selected" <?php } ?>>栏目名称</option>
|
152
|
|
- <option value="a.title" <?php if (get('field')=='a.title') {?>selected="selected" <?php } ?> >文章标题</option>
|
153
|
|
- <option value="a.content" <?php if (get('field')=='a.content') {?>selected="selected" <?php } ?>>文章内容</option>
|
154
|
|
- </select>
|
155
|
|
- </div>
|
156
|
|
- <div class="layui-input-inline">
|
157
|
|
- <input type="text" name="keyword" value="<?php echo get('keyword');?>" placeholder="请输入搜索关键字" class="layui-input">
|
158
|
|
- </div>
|
159
|
|
- <div class="layui-input-inline">
|
160
|
|
- <button class="layui-btn" lay-submit>搜索</button>
|
161
|
|
- <a class="layui-btn layui-btn-primary" href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.get('mcode').'');?>">清除搜索</a>
|
162
|
|
- </div>
|
163
|
|
- </div>
|
164
|
|
- </form>
|
165
|
|
-
|
166
|
|
- <table class="layui-table">
|
167
|
|
- <thead>
|
168
|
|
- <tr>
|
169
|
|
- <th>ID</th>
|
170
|
|
- <th>栏目</th>
|
171
|
|
- <th>标题</th>
|
172
|
|
- <th>时间</th>
|
173
|
|
- <th>状态</th>
|
174
|
|
- <th>访问量</th>
|
175
|
|
- <th>操作</th>
|
176
|
|
- </tr>
|
177
|
|
- </thead>
|
178
|
|
- <tbody>
|
179
|
|
- <?php $num = 0;foreach ($this->getVar('contents') as $key => $value) { $num++;?>
|
180
|
|
- <tr>
|
181
|
|
- <td><?php echo $value->id; ?></td>
|
182
|
|
- <td title="<?php echo $value->scode; ?>"><?php echo $value->sortname; ?></td>
|
183
|
|
- <td title="<?php echo $value->title; ?>">
|
184
|
|
- <?php echo substr_both($value->title,0,15);?>
|
185
|
|
- <?php if ($value->ico) {?>
|
186
|
|
- <span class="layui-badge layui-bg-orange">缩</span>
|
187
|
|
- <?php } ?>
|
188
|
|
- <?php if ($value->pics) {?>
|
189
|
|
- <span class="layui-badge">图</span>
|
190
|
|
- <?php } ?>
|
191
|
|
- <?php if ($value->outlink) {?>
|
192
|
|
- <span class="layui-badge layui-bg-black">链</span>
|
193
|
|
- <?php } ?>
|
194
|
|
- </td>
|
195
|
|
- <td><?php echo $value->date; ?></td>
|
196
|
|
- <td>
|
197
|
|
- <?php if ($value->status) {?>
|
198
|
|
- <a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/id/'.$value->id.'/field/status/value/0');?>" class="switch"><i class='fa fa-toggle-on' title="点击关闭"></i></a>
|
199
|
|
- <?php } else { ?>
|
200
|
|
- <a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/id/'.$value->id.'/field/status/value/1');?>" class="switch"><i class='fa fa-toggle-off' title="点击开启"></i></a>
|
201
|
|
- <?php } ?>
|
202
|
|
- </td>
|
203
|
|
- <td><?php echo $value->visits; ?></td>
|
204
|
|
- <td>
|
205
|
|
- <?php if (!$value->outlink) {?>
|
206
|
|
- <?php
|
207
|
|
- $Parser=new app\home\controller\ParserController();
|
208
|
|
- $link=$Parser->parserLink(1,$value->urlname,'about',$value->scode,$value->filename,'','');
|
209
|
|
- ?>
|
210
|
|
- <a href="<?php echo $link?>" class="layui-btn layui-btn-xs layui-btn-primary" target="_blank">查看</a>
|
211
|
|
- <?php } ?>
|
212
|
|
-
|
213
|
|
- <?php if (check_level('mod')) {?>
|
214
|
|
- <a href="<?php echo \core\basic\Url::get('/admin/Single/mod/mcode/'.$value->mcode.'/id/'.$value->id.'');?><?php echo $this->getVar('btnqs');?>" class="layui-btn layui-btn-xs" >修改</a>
|
215
|
|
- <?php if ($this->getVar('baidu_zz_token') && !$value->outlink) {?>
|
216
|
|
- <a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/baiduzz/'.$value->id.'');?>" class="layui-btn layui-btn-xs layui-btn-primary" >百度普通推送</a>
|
217
|
|
- <?php } ?>
|
218
|
|
- <?php if ($this->getVar('baidu_ks_token') && !$value->outlink) {?>
|
219
|
|
- <a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/baiduks/'.$value->id.'');?>" class="layui-btn layui-btn-xs layui-btn-primary" >百度快速推送</a>
|
220
|
|
- <?php } ?>
|
221
|
|
- <?php } ?>
|
222
|
|
- </td>
|
223
|
|
- </tr>
|
224
|
|
- <?php } ?>
|
225
|
|
- </tbody>
|
226
|
|
- </table>
|
227
|
|
- </div>
|
228
|
|
- </div>
|
229
|
|
- </div>
|
230
|
|
- <?php } ?>
|
231
|
|
-
|
232
|
|
- <?php if ($this->getVar('mod')) {?>
|
233
|
|
-
|
234
|
|
- <div class="layui-tab layui-tab-brief" lay-filter="tab">
|
235
|
|
- <ul class="layui-tab-title">
|
236
|
|
- <li class="layui-this">单页修改</li>
|
237
|
|
- </ul>
|
238
|
|
- <div class="layui-tab-content">
|
239
|
|
- <div class="layui-tab-item layui-show">
|
240
|
|
- <form action="<?php echo \core\basic\Url::get('/admin/Single/mod/id/'.get('id').'');?><?php echo $this->getVar('backurl');?>" method="post" class="layui-form" id="edit">
|
241
|
|
- <input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
242
|
|
- <div class="layui-tab">
|
243
|
|
- <ul class="layui-tab-title">
|
244
|
|
- <li class="layui-this">基本内容</li>
|
245
|
|
- <li>高级内容</li>
|
246
|
|
- </ul>
|
247
|
|
- <div class="layui-tab-content">
|
248
|
|
- <div class="layui-tab-item layui-show">
|
249
|
|
-
|
250
|
|
- <div class="layui-form-item">
|
251
|
|
- <label class="layui-form-label">内容标题 <span class="layui-text-red">*</span></label>
|
252
|
|
- <div class="layui-input-block">
|
253
|
|
- <input type="text" name="title" required lay-verify="required" value="<?php echo @$this->getVar('content')->title;?>" placeholder="请输入内容标题" class="layui-input">
|
254
|
|
- </div>
|
255
|
|
- </div>
|
256
|
|
-
|
257
|
|
- <?php $num = 0;foreach ($this->getVar('extfield') as $key => $value) { $num++;?>
|
258
|
|
- <?php if ($value->type==1) {?> <!-- 单行文本 -->
|
259
|
|
- <div class="layui-form-item">
|
260
|
|
- <label class="layui-form-label"><?php echo $value->description; ?></label>
|
261
|
|
- <div class="layui-input-block">
|
262
|
|
- <input type="text" name="<?php echo $value->name; ?>" value="<?php echo @$this->getVar('content')->{$value->name};?>" placeholder="请输入<?php echo $value->description; ?>" class="layui-input">
|
263
|
|
- </div>
|
264
|
|
- </div>
|
265
|
|
- <?php } ?>
|
266
|
|
-
|
267
|
|
- <?php if ($value->type==2) {?><!-- 多行文本 -->
|
268
|
|
- <div class="layui-form-item">
|
269
|
|
- <label class="layui-form-label"><?php echo $value->description; ?></label>
|
270
|
|
- <div class="layui-input-block">
|
271
|
|
- <textarea name="<?php echo $value->name; ?>" class="layui-textarea" placeholder="请输入<?php echo $value->description; ?>"><?php $name=$value->name;echo str_replace('<br>', "\r\n",$this->vars['content']->$name);?></textarea>
|
272
|
|
- </div>
|
273
|
|
- </div>
|
274
|
|
- <?php } ?>
|
275
|
|
-
|
276
|
|
- <?php if ($value->type==3) {?><!-- 单选 -->
|
277
|
|
- <div class="layui-form-item">
|
278
|
|
- <label class="layui-form-label"><?php echo $value->description; ?></label>
|
279
|
|
- <div class="layui-input-block">
|
280
|
|
- <div>
|
281
|
|
- <?php
|
282
|
|
- $radios=explode(',',$value->value);
|
283
|
|
- $name=$value->name;
|
284
|
|
- foreach ($radios as $value2) {
|
285
|
|
- if($this->vars['content']->$name==$value2){
|
286
|
|
- echo '<input type="radio" name="'.$value->name.'" value="'.$value2.'" title="'.$value2.'" checked>';
|
287
|
|
- }else{
|
288
|
|
- echo '<input type="radio" name="'.$value->name.'" value="'.$value2.'" title="'.$value2.'">';
|
289
|
|
- }
|
290
|
|
- }
|
291
|
|
- ?>
|
292
|
|
- </div>
|
293
|
|
- </div>
|
294
|
|
- </div>
|
295
|
|
- <?php } ?>
|
296
|
|
-
|
297
|
|
- <?php if ($value->type==4) {?><!-- 多选 -->
|
298
|
|
- <div class="layui-form-item">
|
299
|
|
- <label class="layui-form-label"><?php echo $value->description; ?></label>
|
300
|
|
- <div class="layui-input-block">
|
301
|
|
- <div>
|
302
|
|
- <?php
|
303
|
|
- $checkboxs=explode(',',$value->value);
|
304
|
|
- $name=$value->name;
|
305
|
|
- echo '<input name="'.$value->name.'" type="hidden">';//占位清空
|
306
|
|
- $values=explode(',',$this->vars['content']->$name);
|
307
|
|
- foreach ($checkboxs as $value2) {
|
308
|
|
- if(in_array($value2,$values)){
|
309
|
|
- echo '<input type="checkbox" name="'.$value->name.'[]" value="'.$value2.'" title="'.$value2.'" checked>';
|
310
|
|
- }else{
|
311
|
|
- echo '<input type="checkbox" name="'.$value->name.'[]" value="'.$value2.'" title="'.$value2.'">';
|
312
|
|
- }
|
313
|
|
- }
|
314
|
|
- ?>
|
315
|
|
- </div>
|
316
|
|
- </div>
|
317
|
|
- </div>
|
318
|
|
- <?php } ?>
|
319
|
|
-
|
320
|
|
- <?php if ($value->type==5) {?><!-- 图片 -->
|
321
|
|
- <div class="layui-form-item">
|
322
|
|
- <label class="layui-form-label"><?php echo $value->description; ?></label>
|
323
|
|
- <div class="layui-input-inline">
|
324
|
|
- <input type="text" name="<?php echo $value->name; ?>" id="<?php echo $value->name; ?>" value="<?php echo @$this->getVar('content')->{$value->name};?>" placeholder="请上传<?php echo $value->description; ?>" class="layui-input">
|
325
|
|
- </div>
|
326
|
|
- <button type="button" class="layui-btn upload watermark" data-des="<?php echo $value->name; ?>">
|
327
|
|
- <i class="layui-icon"></i>上传图片
|
328
|
|
- </button>
|
329
|
|
- <?php $name=$value->name; ?>
|
330
|
|
- <div id="<?php echo $value->name; ?>_box" class="pic"><dl><dt><?php if ($this->getVar('content')->$name) {?><img src='<?php echo SITE_DIR;?><?php echo @$this->getVar('content')->{$value->name};?>' data-url="<?php echo @$this->getVar('content')->{$value->name};?>"></dt><dd>删除</dd></dl><?php } ?></div>
|
331
|
|
- </div>
|
332
|
|
- <?php } ?>
|
333
|
|
-
|
334
|
|
- <?php if ($value->type==6) {?><!-- 文件 -->
|
335
|
|
- <div class="layui-form-item">
|
336
|
|
- <label class="layui-form-label"><?php echo $value->description; ?></label>
|
337
|
|
- <div class="layui-input-inline">
|
338
|
|
- <input type="text" name="<?php echo $value->name; ?>" id="<?php echo $value->name; ?>" value="<?php echo @$this->getVar('content')->{$value->name};?>" placeholder="请上传<?php echo $value->description; ?>" class="layui-input">
|
339
|
|
- </div>
|
340
|
|
- <button type="button" class="layui-btn file" data-des="<?php echo $value->name; ?>">
|
341
|
|
- <i class="layui-icon"></i>上传文件
|
342
|
|
- </button>
|
343
|
|
- </div>
|
344
|
|
- <?php } ?>
|
345
|
|
-
|
346
|
|
- <?php if ($value->type==7) {?><!-- 日期 -->
|
347
|
|
- <div class="layui-form-item">
|
348
|
|
- <label class="layui-form-label"><?php echo $value->description; ?></label>
|
349
|
|
- <div class="layui-input-block">
|
350
|
|
- <input type="text" name="<?php echo $value->name; ?>" value="<?php echo @$this->getVar('content')->{$value->name};?>" readonly placeholder="请选择<?php echo $value->description; ?>" class="layui-input datetime">
|
351
|
|
- </div>
|
352
|
|
- </div>
|
353
|
|
- <?php } ?>
|
354
|
|
-
|
355
|
|
- <?php if ($value->type==8) {?><!-- 编辑器 -->
|
356
|
|
- <div class="layui-form-item">
|
357
|
|
- <label class="layui-form-label"><?php echo $value->description; ?></label>
|
358
|
|
- <div class="layui-input-block">
|
359
|
|
- <?php
|
360
|
|
- $name=@$value->name;
|
361
|
|
- ?>
|
362
|
|
- <script type="text/plain" id="editor_<?php echo $value->name; ?>" name="<?php echo $value->name; ?>" style="width:100%;height:240px;"><?php echo decode_string($this->getVar('content')->$name);?></script>
|
363
|
|
- <script>
|
364
|
|
- //初始化编辑器
|
365
|
|
- $(document).ready(function (e) {
|
366
|
|
- var ue = UE.getEditor('editor_<?php echo $value->name; ?>',{
|
367
|
|
- maximumWords:10000
|
368
|
|
- });
|
369
|
|
- })
|
370
|
|
- </script>
|
371
|
|
- </div>
|
372
|
|
- </div>
|
373
|
|
- <?php } ?>
|
374
|
|
-
|
375
|
|
- <?php if ($value->type==9) {?><!-- 下拉 -->
|
376
|
|
- <div class="layui-form-item">
|
377
|
|
- <label class="layui-form-label"><?php echo $value->description; ?></label>
|
378
|
|
- <div class="layui-input-block">
|
379
|
|
- <select name="<?php echo $value->name; ?>">
|
380
|
|
- <?php
|
381
|
|
- $selects=explode(',',$value->value);
|
382
|
|
- $name=$value->name;
|
383
|
|
- foreach ($selects as $value2) {
|
384
|
|
- if($this->vars['content']->$name==$value2){
|
385
|
|
- echo '<option value="'.$value2.'" selected>'.$value2.'</option>';
|
386
|
|
- }else{
|
387
|
|
- echo '<option value="'.$value2.'">'.$value2.'</option>';
|
388
|
|
- }
|
389
|
|
- }
|
390
|
|
- ?>
|
391
|
|
- </select>
|
392
|
|
- </div>
|
393
|
|
- </div>
|
394
|
|
- <?php } ?>
|
395
|
|
-
|
396
|
|
- <?php } ?>
|
397
|
|
-
|
398
|
|
- <div class="layui-form-item">
|
399
|
|
- <label class="layui-form-label">内容</label>
|
400
|
|
- <div class="layui-input-block">
|
401
|
|
- <script type="text/plain" id="editor" name="content" style="width:100%;height:240px;"><?php echo decode_string($this->getVar('content')->content);?></script>
|
402
|
|
- </div>
|
403
|
|
- </div>
|
404
|
|
-
|
405
|
|
- <div class="layui-form-item">
|
406
|
|
- <label class="layui-form-label">tags</label>
|
407
|
|
- <div class="layui-input-block">
|
408
|
|
- <input type="text" name="tags" placeholder="请输入文章tag,英文逗号隔开" value="<?php echo @$this->getVar('content')->tags;?>" class="layui-input">
|
409
|
|
- </div>
|
410
|
|
- </div>
|
411
|
|
-
|
412
|
|
- <div class="layui-form-item">
|
413
|
|
- <label class="layui-form-label">作者</label>
|
414
|
|
- <div class="layui-input-block">
|
415
|
|
- <input type="text" name="author" placeholder="请输入作者" value="<?php echo @$this->getVar('content')->author;?>" class="layui-input">
|
416
|
|
- </div>
|
417
|
|
- </div>
|
418
|
|
-
|
419
|
|
- <div class="layui-form-item">
|
420
|
|
- <label class="layui-form-label">来源</label>
|
421
|
|
- <div class="layui-input-block">
|
422
|
|
- <input type="text" name="source" placeholder="请输入来源" value="<?php echo @$this->getVar('content')->source;?>" class="layui-input">
|
423
|
|
- </div>
|
424
|
|
- </div>
|
425
|
|
-
|
426
|
|
- <div class="layui-form-item">
|
427
|
|
- <label class="layui-form-label">缩略图</label>
|
428
|
|
- <div class="layui-input-inline">
|
429
|
|
- <input type="text" name="ico" id="ico" value="<?php echo @$this->getVar('content')->ico;?>" placeholder="请上传缩略图" class="layui-input">
|
430
|
|
- </div>
|
431
|
|
- <button type="button" class="layui-btn upload watermark" data-des="ico">
|
432
|
|
- <i class="layui-icon"></i>上传图片
|
433
|
|
- </button>
|
434
|
|
- <div id="ico_box" class="pic addedit"><?php if ($this->getVar('content')->ico) {?><dl><dt><img src="<?php echo SITE_DIR;?><?php echo @$this->getVar('content')->ico;?>" data-url="<?php echo @$this->getVar('content')->ico;?>"></dt><dd>删除</dd></dl><?php } ?></div>
|
435
|
|
- </div>
|
436
|
|
-
|
437
|
|
- <div class="layui-form-item">
|
438
|
|
- <label class="layui-form-label">轮播多图</label>
|
439
|
|
- <div class="layui-input-inline">
|
440
|
|
- <input type="text" name="pics" id="pics" value="<?php echo @$this->getVar('content')->pics;?>" placeholder="请上传轮播多图" class="layui-input">
|
441
|
|
- </div>
|
442
|
|
- <button type="button" class="layui-btn uploads watermark" data-des="pics">
|
443
|
|
- <i class="layui-icon"></i>上传多图
|
444
|
|
- </button>
|
445
|
|
- <div id="pics_box" class="pic addedit">
|
446
|
|
- <dl></dl> <!-- 规避空内容拖动bug -->
|
447
|
|
- <?php
|
448
|
|
- if($this->getVar('content')->pics){
|
449
|
|
- $pics=explode(',',$this->getVar('content')->pics);
|
450
|
|
- }else{
|
451
|
|
- $pics = array();
|
452
|
|
- }
|
453
|
|
- if($this->getVar('content')->picstitle){
|
454
|
|
- $picstitle=explode(',',$this->getVar('content')->picstitle);
|
455
|
|
- }else{
|
456
|
|
- $picstitle = array();
|
457
|
|
- }
|
458
|
|
- foreach ($pics as $key=>$value) {
|
459
|
|
- //需要留一个空,不然被解析为标签了
|
460
|
|
- echo "<dl><dt><img src='".SITE_DIR.$value."' data-url='".$value."'></dt><dd>删除</dd><dt><input type='text' value='".$picstitle[$key ]."' name='picstitle[]' style='width:95%' /></dt></dl>";
|
461
|
|
- }
|
462
|
|
- ?>
|
463
|
|
- </div>
|
464
|
|
- </div>
|
465
|
|
- </div>
|
466
|
|
-
|
467
|
|
- <div class="layui-tab-item ">
|
468
|
|
-
|
469
|
|
- <div class="layui-form-item">
|
470
|
|
- <label class="layui-form-label">标题颜色</label>
|
471
|
|
- <div class="layui-input-inline">
|
472
|
|
- <input type="text" name="titlecolor" value="<?php echo @$this->getVar('content')->titlecolor;?>" placeholder="请选择标题颜色" class="layui-input jscolor {hash:true}">
|
473
|
|
- </div>
|
474
|
|
- </div>
|
475
|
|
-
|
476
|
|
- <div class="layui-form-item">
|
477
|
|
- <label class="layui-form-label">副标题</label>
|
478
|
|
- <div class="layui-input-block">
|
479
|
|
- <input type="text" name="subtitle" value="<?php echo @$this->getVar('content')->subtitle;?>" placeholder="请输入副标题" class="layui-input">
|
480
|
|
- </div>
|
481
|
|
- </div>
|
482
|
|
-
|
483
|
|
- <div class="layui-form-item">
|
484
|
|
- <label class="layui-form-label">时间</label>
|
485
|
|
- <div class="layui-input-inline">
|
486
|
|
- <input type="text" name="date" value="<?php echo @$this->getVar('content')->date;?>" readonly placeholder="请选择发布时间" class="layui-input datetime">
|
487
|
|
- </div>
|
488
|
|
- <div class="layui-form-mid layui-word-aux">温馨提示:单页不支持定时发布!</div>
|
489
|
|
- </div>
|
490
|
|
-
|
491
|
|
- <div class="layui-form-item">
|
492
|
|
- <label class="layui-form-label">附件</label>
|
493
|
|
- <div class="layui-input-inline">
|
494
|
|
- <input type="text" name="enclosure" id="enclosure" value="<?php echo @$this->getVar('content')->enclosure;?>" placeholder="请上传附件" class="layui-input">
|
495
|
|
- </div>
|
496
|
|
- <button type="button" class="layui-btn file" data-des="enclosure">
|
497
|
|
- <i class="layui-icon"></i>上传附件
|
498
|
|
- </button>
|
499
|
|
- </div>
|
500
|
|
-
|
501
|
|
- <div class="layui-form-item">
|
502
|
|
- <label class="layui-form-label">SEO关键字</label>
|
503
|
|
- <div class="layui-input-block">
|
504
|
|
- <input type="text" name="keywords" value="<?php echo @$this->getVar('content')->keywords;?>" placeholder="请输入详情页SEO关键字" class="layui-input">
|
505
|
|
- </div>
|
506
|
|
- </div>
|
507
|
|
-
|
508
|
|
- <div class="layui-form-item">
|
509
|
|
- <label class="layui-form-label">SEO描述</label>
|
510
|
|
- <div class="layui-input-block">
|
511
|
|
- <textarea name="description" placeholder="请输入详情页SEO描述" class="layui-textarea"><?php echo @$this->getVar('content')->description;?></textarea>
|
512
|
|
- </div>
|
513
|
|
- </div>
|
514
|
|
-
|
515
|
|
- <div class="layui-form-item">
|
516
|
|
- <label class="layui-form-label">状态</label>
|
517
|
|
- <div class="layui-input-block">
|
518
|
|
- <input type="radio" name="status" value="1" title="显示" <?php if ($this->getVar('content')->status==1) {?> checked="checked"<?php } ?>>
|
519
|
|
- <input type="radio" name="status" value="0" title="隐藏" <?php if ($this->getVar('content')->status==0) {?> checked="checked"<?php } ?>>
|
520
|
|
- </div>
|
521
|
|
- </div>
|
522
|
|
- </div>
|
523
|
|
- </div>
|
524
|
|
- </div>
|
525
|
|
- <div class="layui-form-item">
|
526
|
|
- <div class="layui-input-block">
|
527
|
|
- <button class="layui-btn" lay-submit>立即提交</button>
|
528
|
|
- <button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
529
|
|
- <?php echo get_btn_back();?>
|
530
|
|
- </div>
|
531
|
|
- </div>
|
532
|
|
- </form>
|
533
|
|
- </div>
|
534
|
|
- </div>
|
535
|
|
- </div>
|
536
|
|
- <?php } ?>
|
537
|
|
-
|
538
|
|
-</div>
|
539
|
|
-
|
540
|
|
-<style>.placeHolder {border:dashed 2px gray; }</style>
|
541
|
|
-<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.dragsort-0.5.2.min.js"></script>
|
542
|
|
-<script type="text/javascript">
|
543
|
|
-$("#pics_box").dragsort({
|
544
|
|
- dragSelector: "dl",
|
545
|
|
- dragSelectorExclude: "input,textarea,dd",
|
546
|
|
- dragBetween: false,
|
547
|
|
- dragEnd: saveOrder,
|
548
|
|
- placeHolderTemplate: "<dl class='placeHolder'><dt></dt></dl>"
|
549
|
|
-});
|
550
|
|
-
|
551
|
|
-function saveOrder() {
|
552
|
|
- var data = $("#pics_box dl dt img").map(function() {
|
553
|
|
- return $(this).data("url");
|
554
|
|
- }).get();
|
555
|
|
- $("input[name=pics]").val(data.join(","))
|
556
|
|
-};
|
557
|
|
-</script>
|
558
|
|
-<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jscolor.js"></script>
|
559
|
|
-
|
560
|
|
-<!-- 引入编辑器文件 -->
|
561
|
|
-<script type="text/javascript" charset="utf-8" src="<?php echo CORE_DIR;?>/extend/ueditor/ueditor.config.js"></script>
|
562
|
|
-<script type="text/javascript" charset="utf-8" src="<?php echo CORE_DIR;?>/extend/ueditor/ueditor.all.js"> </script>
|
563
|
|
-<script type="text/javascript" charset="utf-8" src="<?php echo CORE_DIR;?>/extend/ueditor/lang/zh-cn/zh-cn.js"></script>
|
564
|
|
-<script>
|
565
|
|
-//初始化编辑器
|
566
|
|
-$(document).ready(function (e) {
|
567
|
|
- var ue = UE.getEditor('editor',{
|
568
|
|
- maximumWords:30000
|
569
|
|
- });
|
570
|
|
-})
|
571
|
|
-</script>
|
572
|
|
-
|
573
|
|
-
|
574
|
|
-<script type="text/javascript">
|
575
|
|
- <!-- 解决源码模式无法保存 -->
|
576
|
|
- function editor_init() {
|
577
|
|
- $('#edit').submit(function () {
|
578
|
|
- editor=UE.getEditor('editor');
|
579
|
|
- if(editor.queryCommandState('source')==1) editor.execCommand('source');
|
580
|
|
- })
|
581
|
|
- }
|
582
|
|
-
|
583
|
|
- <!-- 点击后添加到编辑器 -->
|
584
|
|
- $(".addedit").on("click",'img',function(){
|
585
|
|
- editor=UE.getEditor('editor');
|
586
|
|
- $img = $(this).attr("src");
|
587
|
|
- editor.execCommand('inserthtml',"<img src='"+$img+"'>");
|
588
|
|
- });
|
589
|
|
-
|
590
|
|
-</script>
|
591
|
|
-
|
592
|
|
-<script type="text/javascript">editor_init();</script>
|
593
|
|
-
|
594
|
|
-
|
595
|
|
-
|
596
|
|
-
|
597
|
|
-<input type="hidden" id="do_check" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/check');?>">
|
598
|
|
-<input type="hidden" id="do_down" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/down');?>">
|
599
|
|
-<input type="hidden" id="do_update" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/update');?>">
|
600
|
|
-<input type="hidden" id="check_version" data-url="/index.php?p=upgrade/check&version=<?php echo APP_VERSION;?>.<?php echo RELEASE_TIME;?>.<?php echo $this->getVar('revise');?>&branch=<?php echo $this->getVar('branch');?>&snuser=<?php echo $this->getVar('snuser');?>&site=<?php echo $this->getVar('site');?>">
|
601
|
|
-<input type="hidden" id="check_cache" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/checkCache');?>">
|
602
|
|
-</div>
|
603
|
|
-
|
604
|
|
-<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
605
|
|
-<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
606
|
|
-<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
607
|
|
-
|
608
|
|
-<script type="text/javascript" src="https://www.pbootcms.com/res/v1/js/update.js?v=v3.1.3" ></script>
|
609
|
|
-<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
610
|
|
-<!--[if lt IE 9]>
|
611
|
|
- <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
612
|
|
- <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
613
|
|
-<![endif]-->
|
614
|
|
-
|
615
|
|
-</body>
|
616
|
|
-</html>
|
617
|
|
-
|
618
|
|
-<?php return array (
|
619
|
|
- 0 => 'H:/phpEnv/www/tyqngp.cn/www.tyqngp.cn_JLmEc/www.tyqngp.cn/apps/admin/view/default/common/head.html',
|
620
|
|
- 1 => 'H:/phpEnv/www/tyqngp.cn/www.tyqngp.cn_JLmEc/www.tyqngp.cn/apps/admin/view/default/common/ueditor.html',
|
621
|
|
- 2 => 'H:/phpEnv/www/tyqngp.cn/www.tyqngp.cn_JLmEc/www.tyqngp.cn/apps/admin/view/default/common/foot.html',
|
622
|
|
-); ?>
|