7d23f8d9e8787ab3673b42b71a8f14da.php
5.8 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
<?php /*a:3:{s:87:"/Applications/XAMPP/xamppfiles/htdocs/cltphp/application/admin/view/template/index.html";i:1535094388;s:84:"/Applications/XAMPP/xamppfiles/htdocs/cltphp/application/admin/view/common/head.html";i:1534993700;s:84:"/Applications/XAMPP/xamppfiles/htdocs/cltphp/application/admin/view/common/foot.html";i:1535107019;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo config('sys_name'); ?>后台管理</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
<link rel="stylesheet" href="/static/admin/css/global.css" media="all">
<link rel="stylesheet" href="/static/common/css/font.css" media="all">
</head>
<body class="skin-<?php if(!empty($_COOKIE['skin'])){echo $_COOKIE['skin'];}else{echo '0';setcookie('skin','0');}?>">
<style>
a{text-decoration: none;}
.table-list ul.pic { list-style: none;}
.table-list ul.pic li {float:left;position:relative;margin:5px 10px;_margin:5px 8px;text-align: center;}
.table-list ul.pic li span { width:82px;height:82px;display: block;border: 1px solid #dedede;}
.table-list ul.pic li span a {border:1px solid #eee;width:80px;height:80px;*font-size: 75px;display: table-cell; vertical-align: middle; overflow: hidden;}
.table-list ul.pic li img {max-height:80px;max-width:80px ;_width:80px;_height:80px;}
.table-list ul.pic li b {display:block;line-height:20px;height:20px;font-weight:normal;width:82px;overflow:hidden;}
.table-list ul.pic li em {position:absolute;right:25px;bottom:20px;font-style: normal;}
.table-list ul.pic li em a{color: #f00;}
</style>
<div class="admin-main fadeInUp animated">
<fieldset class="layui-elem-field layui-field-title">
<legend><?php echo htmlentities($title); ?></legend>
</fieldset>
<div class="layui-field-box">
<blockquote class="layui-elem-quote">
<a href="<?php echo url('images'); ?>" class="layui-btn layui-btn-sm layui-btn-danger">
<i class="fa fa-file-image-o"></i> 二维码管理
</a>
</blockquote>
<div class="table-list">
<ul class="pic">
<?php if($leve): ?>
<li>
<span><a href="<?php echo url('qrcode'); ?>?folder=<?php echo htmlentities($uppath); ?>"><img src="/static/admin/images/upback.gif"></a></span>
<b><font color="#665aff">返回上一级</font></b></li>
<?php endif; if(is_array($folders) || $folders instanceof \think\Collection || $folders instanceof \think\Paginator): $i = 0; $__LIST__ = $folders;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li>
<span><a href="<?php echo url('qrcode'); ?>?folder=<?php echo input('folder'); ?><?php echo htmlentities($vo['filename']); ?>/"><img src="/static/admin/images/folder.gif"></a></span>
<b><?php echo htmlentities($vo['filename']); ?></b>
<em>
<a href="javascript:confirm_delete('<?php echo input('folder'); ?>','<?php echo htmlentities($vo['filename']); ?>','<?php echo htmlentities($path); ?>')">打包</a>
</em>
</li>
<?php endforeach; endif; else: echo "" ;endif; if(is_array($files) || $files instanceof \think\Collection || $files instanceof \think\Paginator): $i = 0; $__LIST__ = $files;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<li>
<span>
<a href="/static/home/images/<?php echo input('folder'); ?><?php echo htmlentities($vo['filename']); ?>" target="_blank">
<?php if(!empty($vo['ico'])): ?>
<img src="/static/home/images/ext/<?php echo htmlentities($vo['ext']); ?>.png">
<?php else: ?>
<img src="/static/home/images/<?php echo input('folder'); ?><?php echo htmlentities($vo['filename']); ?>" >
<?php endif; ?>
</a>
</span>
<b><?php echo htmlentities($vo['filename']); ?></b>
<em><a href="javascript:confirm_delete('<?php echo input("folder"); ?>','<?php echo htmlentities($vo['filename']); ?>','<?php echo htmlentities($path); ?>')">打包</a></em>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
</div>
</div>
<script type="text/javascript" src="/static/plugins/layui/layui.js"></script>
<script src="/static/common/js/jquery.2.1.1.min.js"></script>
<script>
layui.use('form',function() {
var form = layui.form, $ = layui.jquery;
});
function confirm_delete(folder,filename,path) {
var loading = layer.load(1, {shade: [0.1, '#fff']});
$.post("<?php echo url('PackzipDownload'); ?>",{folder:folder,path:path,filename:filename},function(data){
alert(data);die;
layer.close(loading);
if(data.code==1){
layer.alert(data.msg, {icon: 6}, function(index){
layer.close(index);
location.replace(location.href);
});
}else{
layer.alert(data.msg, {icon: 5}, function(index){
layer.close(index);
});
}
})
}
</script>