v2.6.3
parent
67ed4ff05f
commit
74e57dbdcd
|
@ -236,7 +236,7 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
header("refresh:1;url=/admin/admin.inc.php");
|
||||
}
|
||||
?>
|
||||
<div class="row" style="margin-bottom:100px">
|
||||
<div class="row">
|
||||
<div class="alert alert-primary alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">x</button>
|
||||
<h5>目录保存以 年/月/日/ 递进,非必要请勿修改! 否则会导致部分操作不可用;</h5>
|
||||
|
|
|
@ -65,7 +65,7 @@ if (is_array($char_data)) {
|
|||
box-shadow: 3px 2px 3px 2px rgba(19, 17, 36, 0.5);
|
||||
}
|
||||
</style>
|
||||
<div class="row" style="margin-bottom:100px">
|
||||
<div class="row">
|
||||
<div class="clo-md-12">
|
||||
<div class="alert alert-warning">
|
||||
<form action="chart.php" method="post">
|
||||
|
|
|
@ -133,12 +133,12 @@ if (isset($_POST['password']) and isset($_POST['user'])) {
|
|||
<input type="password" name="password" id="password" class="form-control" value="" placeholder="输入登录密码" autocomplete="off" required="required">
|
||||
<input type="hidden" name="password" id="md5_password">
|
||||
<?php if ($config['captcha']) : ?>
|
||||
<input class="form-control" type="text" name="code" value="" placeholder="输入下方4位数验证码" autocomplete="off" required="required" />
|
||||
<div class="form-group">
|
||||
<div class="col">
|
||||
<label><img src="../application/captcha.php" onClick="this.src='../application/captcha.php?nocache='+Math.random()" title="点击换一张" /></label>
|
||||
</div>
|
||||
<input class="form-control" type="text" name="code" value="" placeholder="输入下方4位数验证码" autocomplete="off" required="required" />
|
||||
<div class="form-group">
|
||||
<div class="col">
|
||||
<label><img src="../application/captcha.php" onClick="this.src='../application/captcha.php?nocache='+Math.random()" title="点击换一张" /></label>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<button type="submit" class="btn btn-block btn-primary">登 录</button>
|
||||
<p class="signup">忘记账号或密码请查看<a href="#fogot" data-moveable="inside" data-remember-pos="false" data-toggle="modal" data-target="#fogot" data-position="center">帮助信息</a></p>
|
||||
|
|
|
@ -36,6 +36,8 @@ if ($config['notice_status'] == 1 && !empty($config['notice'])) : ?>
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 占位符 -->
|
||||
<div class="col-md-12 clo-xs-12" style="margin-bottom: 108px;position:relative;"></div>
|
||||
<footer class="container text-muted small navbar-fixed-bottom" style="text-align: center;background-color:rgba(255,255,255,0.7);z-index: 0;">
|
||||
<hr>
|
||||
<?php /** 页脚信息 */ if (!empty($config['footer'])) echo $config['footer']; ?>
|
||||
|
@ -119,7 +121,7 @@ if ($config['notice_status'] == 1 && !empty($config['notice'])) : ?>
|
|||
setItem: function(name, value, days) {
|
||||
var date = new Date();
|
||||
date.setDate(date.getDate() + days);
|
||||
document.cookie = name + '=' + value + ';expires=' + date;
|
||||
document.cookie = name + '=' + value + ';expires=' + date + ';path=' + '/';
|
||||
},
|
||||
// 获取cookie
|
||||
getItem: function(name) {
|
||||
|
|
|
@ -6,7 +6,7 @@ require_once __DIR__ . '/header.php';
|
|||
/** 顶部广告 */
|
||||
if ($config['ad_top']) echo $config['ad_top_info'];
|
||||
?>
|
||||
<div class="row" style="margin-bottom:100px">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php
|
||||
if (!$config['showSwitch'] && !is_who_login('admin')) : ?>
|
||||
|
@ -88,33 +88,34 @@ if ($config['ad_top']) echo $config['ad_top_info'];
|
|||
/** 底部广告 */
|
||||
if ($config['ad_bot']) echo $config['ad_bot_info']; ?>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<hr />
|
||||
<div class="col-md-8 col-xs-12" style="padding-bottom:5px">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-danger btn-mini" href="?<?php echo http_build_query($httpUrl); ?>">当前<?php echo $allUploud; ?></a>
|
||||
<a class="btn btn-primary btn-mini" href="list.php">今日<?php echo get_file_by_glob(APP_ROOT . config_path() . '*.*', 'number'); ?></a>
|
||||
<a class="btn btn-mini" href="?date=<?php echo date("Y/m/d/", strtotime("-1 day")) ?>">昨日<?php echo get_file_by_glob(APP_ROOT . $config['path'] . date("Y/m/d/", strtotime("-1 day")), 'number'); ?></a>
|
||||
<?php
|
||||
// 倒推日期显示上传图片 @param $listDate 配置的倒退日期
|
||||
for ($x = 2; $x <= $listDate; $x++)
|
||||
echo '<a class="btn btn-mini hidden-xs inline-block" href="?date=' . date('Y/m/d/', strtotime("-$x day")) . '">' . date('j号', strtotime("-$x day")) . '</a>';
|
||||
?>
|
||||
</div>
|
||||
<?php if (is_who_login('admin')) : ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<hr />
|
||||
<div class="col-md-8 col-xs-12" style="padding-bottom:5px">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-mini" onclick="opcheckboxed('checkbox', 'checkall')">全选</a>
|
||||
<a class="btn btn-mini" onclick="opcheckboxed('checkbox', 'reversecheck')">反选</a>
|
||||
<a class="btn btn-mini" onclick="opcheckboxed('checkbox', 'uncheckall')">取消</a>
|
||||
<a class="btn btn-mini" onclick="recycle_img()">回收</a>
|
||||
<a class="btn btn-mini" onclick="delete_img()">删除</a>
|
||||
<a class="btn btn-danger btn-mini" href="?<?php echo http_build_query($httpUrl); ?>">当前<?php echo $allUploud; ?></a>
|
||||
<a class="btn btn-primary btn-mini" href="list.php">今日<?php echo get_file_by_glob(APP_ROOT . config_path() . '*.*', 'number'); ?></a>
|
||||
<a class="btn btn-mini" href="?date=<?php echo date("Y/m/d/", strtotime("-1 day")) ?>">昨日<?php echo get_file_by_glob(APP_ROOT . $config['path'] . date("Y/m/d/", strtotime("-1 day")), 'number'); ?></a>
|
||||
<?php
|
||||
// 倒推日期显示上传图片 @param $listDate 配置的倒退日期
|
||||
for ($x = 2; $x <= $listDate; $x++)
|
||||
echo '<a class="btn btn-mini hidden-xs inline-block" href="?date=' . date('Y/m/d/', strtotime("-$x day")) . '">' . date('j号', strtotime("-$x day")) . '</a>';
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (is_who_login('admin')) : ?>
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-mini" onclick="opcheckboxed('checkbox', 'checkall')">全选</a>
|
||||
<a class="btn btn-mini" onclick="opcheckboxed('checkbox', 'reversecheck')">反选</a>
|
||||
<a class="btn btn-mini" onclick="opcheckboxed('checkbox', 'uncheckall')">取消</a>
|
||||
<a class="btn btn-mini" onclick="recycle_img()">回收</a>
|
||||
<a class="btn btn-mini" onclick="delete_img()">删除</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 按格式 -->
|
||||
<!-- <div class="row">
|
||||
<!-- 按格式 -->
|
||||
<!-- <div class="row">
|
||||
<div class="col-md-2 col-xs-6">
|
||||
<form action="<php echo '?' . http_build_query($httpUrl) . '&'; ?>" method="get">
|
||||
<div class="input-group">
|
||||
|
@ -130,247 +131,247 @@ if ($config['ad_top']) echo $config['ad_top_info'];
|
|||
</div>
|
||||
</form>
|
||||
</div> -->
|
||||
<div class="col-md-2 col-xs-7">
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-mini" href="<?php echo '?' . http_build_query($httpUrl) . '&search=jpg'; ?>">JPG</a>
|
||||
<a class="btn btn-mini" href="<?php echo '?' . http_build_query($httpUrl) . '&search=png'; ?>">PNG</a>
|
||||
<a class="btn btn-mini" href="<?php echo '?' . http_build_query($httpUrl) . '&search=gif'; ?>">GIF</a>
|
||||
<a class="btn btn-mini" href="<?php echo '?' . http_build_query($httpUrl) . '&search=webp'; ?>">Webp</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 按日期-->
|
||||
<div class="col-md-2 col-xs-5">
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="get">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon fix-border fix-padding"></span>
|
||||
<input type="text" class="form-control form-date input-sm" name="date" value="<?php echo date('Y/m/d/'); ?>" readonly="readonly">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-primary input-sm">按日期</button>
|
||||
</span>
|
||||
<div class="col-md-2 col-xs-7">
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-mini" href="<?php echo '?' . http_build_query($httpUrl) . '&search=jpg'; ?>">JPG</a>
|
||||
<a class="btn btn-mini" href="<?php echo '?' . http_build_query($httpUrl) . '&search=png'; ?>">PNG</a>
|
||||
<a class="btn btn-mini" href="<?php echo '?' . http_build_query($httpUrl) . '&search=gif'; ?>">GIF</a>
|
||||
<a class="btn btn-mini" href="<?php echo '?' . http_build_query($httpUrl) . '&search=webp'; ?>">Webp</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- 按日期-->
|
||||
<div class="col-md-2 col-xs-5">
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="get">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon fix-border fix-padding"></span>
|
||||
<input type="text" class="form-control form-date input-sm" name="date" value="<?php echo date('Y/m/d/'); ?>" readonly="readonly">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-primary input-sm">按日期</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- 返回顶部-->
|
||||
<div class="btn btn-mini btn-primary btn-back-to-top"><i class="icon icon-arrow-up"></i></div>
|
||||
</div>
|
||||
<!-- 返回顶部-->
|
||||
<div class="btn btn-mini btn-primary btn-back-to-top"><i class="icon icon-arrow-up"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
<link rel="stylesheet" href="<?php static_cdn(); ?>/public/static/EasyImage.css">
|
||||
<link rel="stylesheet" href="<?php static_cdn(); ?>/public/static/viewjs/viewer.min.css">
|
||||
<link rel="stylesheet" href="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.css">
|
||||
<link rel="stylesheet" href="<?php static_cdn(); ?>/public/static/zui/lib/bootbox/bootbox.min.css">
|
||||
<style>
|
||||
/* 返回顶部 */
|
||||
.btn-back-to-top {
|
||||
padding: 0.5rem 1rem;
|
||||
position: fixed;
|
||||
right: 2rem;
|
||||
bottom: 1rem;
|
||||
z-index: 2;
|
||||
-webkit-transition: -webkit-transform 0.2s ease;
|
||||
transition: transform 0.2s ease;
|
||||
-webkit-transform: translateY(200%);
|
||||
transform: translateY(200%);
|
||||
}
|
||||
<link rel="stylesheet" href="<?php static_cdn(); ?>/public/static/EasyImage.css">
|
||||
<link rel="stylesheet" href="<?php static_cdn(); ?>/public/static/viewjs/viewer.min.css">
|
||||
<link rel="stylesheet" href="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.css">
|
||||
<link rel="stylesheet" href="<?php static_cdn(); ?>/public/static/zui/lib/bootbox/bootbox.min.css">
|
||||
<style>
|
||||
/* 返回顶部 */
|
||||
.btn-back-to-top {
|
||||
padding: 0.5rem 1rem;
|
||||
position: fixed;
|
||||
right: 2rem;
|
||||
bottom: 1rem;
|
||||
z-index: 2;
|
||||
-webkit-transition: -webkit-transform 0.2s ease;
|
||||
transition: transform 0.2s ease;
|
||||
-webkit-transform: translateY(200%);
|
||||
transform: translateY(200%);
|
||||
}
|
||||
|
||||
.btn-back-to-top.scrolled {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
</style>
|
||||
<script src="<?php static_cdn(); ?>/public/static/zui/lib/bootbox/bootbox.min.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/lazyload/lazyload.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/viewjs/viewer.min.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/zui/lib/clipboard/clipboard.min.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.js"></script>
|
||||
<script>
|
||||
// viewjs
|
||||
new Viewer(document.getElementById('viewjs'), {
|
||||
url: 'data-original',
|
||||
});
|
||||
.btn-back-to-top.scrolled {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
</style>
|
||||
<script src="<?php static_cdn(); ?>/public/static/zui/lib/bootbox/bootbox.min.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/lazyload/lazyload.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/viewjs/viewer.min.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/zui/lib/clipboard/clipboard.min.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.js"></script>
|
||||
<script>
|
||||
// viewjs
|
||||
new Viewer(document.getElementById('viewjs'), {
|
||||
url: 'data-original',
|
||||
});
|
||||
|
||||
// 复制url
|
||||
var clipboard = new Clipboard('.copy');
|
||||
clipboard.on('success', function(e) {
|
||||
new $.zui.Messager("复制直链成功", {
|
||||
type: "success", // 定义颜色主题
|
||||
icon: "ok-sign" // 定义消息图标
|
||||
}).show();
|
||||
// 复制url
|
||||
var clipboard = new Clipboard('.copy');
|
||||
clipboard.on('success', function(e) {
|
||||
new $.zui.Messager("复制直链成功", {
|
||||
type: "success", // 定义颜色主题
|
||||
icon: "ok-sign" // 定义消息图标
|
||||
}).show();
|
||||
|
||||
});
|
||||
clipboard.on('error', function(e) {
|
||||
document.querySelector('.copy');
|
||||
new $.zui.Messager("复制失败", {
|
||||
type: "danger", // 定义颜色主题
|
||||
icon: "exclamation-sign" // 定义消息图标
|
||||
}).show();
|
||||
});
|
||||
});
|
||||
clipboard.on('error', function(e) {
|
||||
document.querySelector('.copy');
|
||||
new $.zui.Messager("复制失败", {
|
||||
type: "danger", // 定义颜色主题
|
||||
icon: "exclamation-sign" // 定义消息图标
|
||||
}).show();
|
||||
});
|
||||
|
||||
// 取消/全选文件
|
||||
function opcheckboxed(objName, type) {
|
||||
var objNameList = document.getElementsByName(objName);
|
||||
if (null != objNameList) {
|
||||
for (var i = 0; i < objNameList.length; i++) {
|
||||
if (objNameList[i].checked == true) {
|
||||
if (type != 'checkall') { // 非全选
|
||||
objNameList[i].checked = false;
|
||||
}
|
||||
} else {
|
||||
if (type != 'uncheckall') { // 非取消全选
|
||||
objNameList[i].checked = true;
|
||||
// 取消/全选文件
|
||||
function opcheckboxed(objName, type) {
|
||||
var objNameList = document.getElementsByName(objName);
|
||||
if (null != objNameList) {
|
||||
for (var i = 0; i < objNameList.length; i++) {
|
||||
if (objNameList[i].checked == true) {
|
||||
if (type != 'checkall') { // 非全选
|
||||
objNameList[i].checked = false;
|
||||
}
|
||||
} else {
|
||||
if (type != 'uncheckall') { // 非取消全选
|
||||
objNameList[i].checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 回收图片
|
||||
function recycle_img() {
|
||||
bootbox.confirm({
|
||||
message: "确认要放入回收站? <br /> 可在可疑图片中恢复!",
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: '确定',
|
||||
className: 'btn-success'
|
||||
},
|
||||
cancel: {
|
||||
label: '取消',
|
||||
className: 'btn-danger'
|
||||
}
|
||||
},
|
||||
callback: function(result) {
|
||||
if (result == true) {
|
||||
obj = document.getElementsByName("checkbox");
|
||||
check_val = [];
|
||||
for (k in obj) {
|
||||
//判断复选框是否被选中
|
||||
if (obj[k].checked)
|
||||
//获取被选中的复选框的值
|
||||
check_val.push(obj[k].value);
|
||||
console.log(check_val);
|
||||
// 回收图片
|
||||
function recycle_img() {
|
||||
bootbox.confirm({
|
||||
message: "确认要放入回收站? <br /> 可在可疑图片中恢复!",
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: '确定',
|
||||
className: 'btn-success'
|
||||
},
|
||||
cancel: {
|
||||
label: '取消',
|
||||
className: 'btn-danger'
|
||||
}
|
||||
$.post("./post_del.php", {
|
||||
'recycle_url_array': check_val
|
||||
}, );
|
||||
new $.zui.Messager("放入回收站成功", {
|
||||
type: "success", // 定义颜色主题
|
||||
icon: "ok-sign" // 定义消息图标
|
||||
}).show();
|
||||
// 延时2秒刷新
|
||||
window.setTimeout(function() {
|
||||
window.location.reload();
|
||||
}, 1500)
|
||||
} else {
|
||||
new $.zui.Messager("取消回收", {
|
||||
type: "primary", // 定义颜色主题
|
||||
icon: "info-sign" // 定义消息图标
|
||||
}).show();
|
||||
}
|
||||
console.log('是否回收图片: ' + result);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
// 删除图片
|
||||
function delete_img() {
|
||||
bootbox.confirm({
|
||||
message: "确认要删除?<br />* 删除文件夹后将无法恢复!",
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: '确定',
|
||||
className: 'btn-success'
|
||||
},
|
||||
cancel: {
|
||||
label: '取消',
|
||||
className: 'btn-danger'
|
||||
}
|
||||
},
|
||||
callback: function(result) {
|
||||
if (result == true) {
|
||||
obj = document.getElementsByName("checkbox");
|
||||
check_val = [];
|
||||
for (k in obj) {
|
||||
//判断复选框是否被选中
|
||||
if (obj[k].checked)
|
||||
//获取被选中的复选框的值
|
||||
check_val.push(obj[k].value);
|
||||
console.log(check_val);
|
||||
callback: function(result) {
|
||||
if (result == true) {
|
||||
obj = document.getElementsByName("checkbox");
|
||||
check_val = [];
|
||||
for (k in obj) {
|
||||
//判断复选框是否被选中
|
||||
if (obj[k].checked)
|
||||
//获取被选中的复选框的值
|
||||
check_val.push(obj[k].value);
|
||||
console.log(check_val);
|
||||
}
|
||||
$.post("./post_del.php", {
|
||||
'recycle_url_array': check_val
|
||||
}, );
|
||||
new $.zui.Messager("放入回收站成功", {
|
||||
type: "success", // 定义颜色主题
|
||||
icon: "ok-sign" // 定义消息图标
|
||||
}).show();
|
||||
// 延时2秒刷新
|
||||
window.setTimeout(function() {
|
||||
window.location.reload();
|
||||
}, 1500)
|
||||
} else {
|
||||
new $.zui.Messager("取消回收", {
|
||||
type: "primary", // 定义颜色主题
|
||||
icon: "info-sign" // 定义消息图标
|
||||
}).show();
|
||||
}
|
||||
$.post("./post_del.php", {
|
||||
'del_url_array': check_val
|
||||
},
|
||||
function(data) {
|
||||
if (data.search('success') > 0) {
|
||||
new $.zui.Messager("删除成功", {
|
||||
type: "success", // 定义颜色主题
|
||||
icon: "ok-sign" // 定义消息图标
|
||||
}).show();
|
||||
// 延时2秒刷新
|
||||
window.setTimeout(function() {
|
||||
window.location.reload();
|
||||
}, 1500)
|
||||
} else {
|
||||
new $.zui.Messager("删除失败 请登录后再删除!", {
|
||||
type: "danger", // 定义颜色主题
|
||||
icon: "exclamation-sign" // 定义消息图标
|
||||
}).show();
|
||||
// 延时2s跳转
|
||||
window.setTimeout("window.location=\'/../admin/index.php \'", 2000);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
new $.zui.Messager("取消删除", {
|
||||
type: "primary", // 定义颜色主题
|
||||
icon: "info-sign" // 定义消息图标
|
||||
}).show();
|
||||
console.log('是否回收图片: ' + result);
|
||||
}
|
||||
console.log('是否删除图片: ' + result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 返回顶部
|
||||
var back_to_top_button = jQuery('.btn-back-to-top');
|
||||
jQuery(window).scroll(function() {
|
||||
if (jQuery(this).scrollTop() > 100 && !back_to_top_button.hasClass('scrolled')) {
|
||||
back_to_top_button.addClass('scrolled');
|
||||
|
||||
} else if (jQuery(this).scrollTop() < 100 && back_to_top_button.hasClass('scrolled')) {
|
||||
back_to_top_button.removeClass('scrolled');
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
// 返回顶部
|
||||
back_to_top_button.click(function() {
|
||||
jQuery('html, body').animate({
|
||||
scrollTop: 0
|
||||
}, 800);
|
||||
return false;
|
||||
});
|
||||
// 删除图片
|
||||
function delete_img() {
|
||||
bootbox.confirm({
|
||||
message: "确认要删除?<br />* 删除文件夹后将无法恢复!",
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: '确定',
|
||||
className: 'btn-success'
|
||||
},
|
||||
cancel: {
|
||||
label: '取消',
|
||||
className: 'btn-danger'
|
||||
}
|
||||
},
|
||||
callback: function(result) {
|
||||
if (result == true) {
|
||||
obj = document.getElementsByName("checkbox");
|
||||
check_val = [];
|
||||
for (k in obj) {
|
||||
//判断复选框是否被选中
|
||||
if (obj[k].checked)
|
||||
//获取被选中的复选框的值
|
||||
check_val.push(obj[k].value);
|
||||
console.log(check_val);
|
||||
}
|
||||
$.post("./post_del.php", {
|
||||
'del_url_array': check_val
|
||||
},
|
||||
function(data) {
|
||||
if (data.search('success') > 0) {
|
||||
new $.zui.Messager("删除成功", {
|
||||
type: "success", // 定义颜色主题
|
||||
icon: "ok-sign" // 定义消息图标
|
||||
}).show();
|
||||
// 延时2秒刷新
|
||||
window.setTimeout(function() {
|
||||
window.location.reload();
|
||||
}, 1500)
|
||||
} else {
|
||||
new $.zui.Messager("删除失败 请登录后再删除!", {
|
||||
type: "danger", // 定义颜色主题
|
||||
icon: "exclamation-sign" // 定义消息图标
|
||||
}).show();
|
||||
// 延时2s跳转
|
||||
window.setTimeout("window.location=\'/../admin/index.php \'", 2000);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
new $.zui.Messager("取消删除", {
|
||||
type: "primary", // 定义颜色主题
|
||||
icon: "info-sign" // 定义消息图标
|
||||
}).show();
|
||||
}
|
||||
console.log('是否删除图片: ' + result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//懒加载
|
||||
var lazy = new Lazy({
|
||||
onload: function(elem) {
|
||||
console.log(elem)
|
||||
},
|
||||
delay: 300
|
||||
})
|
||||
// 返回顶部
|
||||
var back_to_top_button = jQuery('.btn-back-to-top');
|
||||
jQuery(window).scroll(function() {
|
||||
if (jQuery(this).scrollTop() > 100 && !back_to_top_button.hasClass('scrolled')) {
|
||||
back_to_top_button.addClass('scrolled');
|
||||
|
||||
// 按日期浏览
|
||||
$(".form-date").datetimepicker({
|
||||
weekStart: 1,
|
||||
todayBtn: 1,
|
||||
autoclose: 1,
|
||||
todayHighlight: 1,
|
||||
startView: 2,
|
||||
minView: 2,
|
||||
forceParse: 0,
|
||||
pickerPosition: "top-right",
|
||||
format: "yyyy/mm/dd/",
|
||||
endDate: new Date() // 只能选当前日期之前
|
||||
});
|
||||
} else if (jQuery(this).scrollTop() < 100 && back_to_top_button.hasClass('scrolled')) {
|
||||
back_to_top_button.removeClass('scrolled');
|
||||
|
||||
// 更改网页标题
|
||||
document.title = "图床广场 - 今日上传<?php echo get_file_by_glob(APP_ROOT . config_path(), 'number'); ?>张 昨日<?php echo get_file_by_glob(APP_ROOT . $config['path'] . date("Y/m/d/", strtotime("-1 day")) . '*.*', 'number'); ?>张 - <?php echo $config['title']; ?>"
|
||||
</script>
|
||||
<?php
|
||||
/** 引入底部 */
|
||||
require_once APP_ROOT . '/application/footer.php';
|
||||
}
|
||||
});
|
||||
// 返回顶部
|
||||
back_to_top_button.click(function() {
|
||||
jQuery('html, body').animate({
|
||||
scrollTop: 0
|
||||
}, 800);
|
||||
return false;
|
||||
});
|
||||
|
||||
//懒加载
|
||||
var lazy = new Lazy({
|
||||
onload: function(elem) {
|
||||
console.log(elem)
|
||||
},
|
||||
delay: 300
|
||||
})
|
||||
|
||||
// 按日期浏览
|
||||
$(".form-date").datetimepicker({
|
||||
weekStart: 1,
|
||||
todayBtn: 1,
|
||||
autoclose: 1,
|
||||
todayHighlight: 1,
|
||||
startView: 2,
|
||||
minView: 2,
|
||||
forceParse: 0,
|
||||
pickerPosition: "top-right",
|
||||
format: "yyyy/mm/dd/",
|
||||
endDate: new Date() // 只能选当前日期之前
|
||||
});
|
||||
|
||||
// 更改网页标题
|
||||
document.title = "图床广场 - 今日上传<?php echo get_file_by_glob(APP_ROOT . config_path(), 'number'); ?>张 昨日<?php echo get_file_by_glob(APP_ROOT . $config['path'] . date("Y/m/d/", strtotime("-1 day")) . '*.*', 'number'); ?>张 - <?php echo $config['title']; ?>"
|
||||
</script>
|
||||
<?php
|
||||
/** 引入底部 */
|
||||
require_once APP_ROOT . '/application/footer.php';
|
||||
|
|
|
@ -37,7 +37,7 @@ try {
|
|||
exit;
|
||||
}
|
||||
?>
|
||||
<div class="col-md-12" style="margin-bottom: 88px;">
|
||||
<div class="col-md-12">
|
||||
<div id="logs" class="datagrid table-bordered">
|
||||
<div class="input-control search-box search-box-circle has-icon-left has-icon-right" id="searchboxExample2" style="margin-bottom: 10px;">
|
||||
<input id="inputSearchExample2" type="search" class="form-control search-input input-sm" placeholder="日志搜索...">
|
||||
|
@ -128,7 +128,7 @@ try {
|
|||
md5: '<input class="form-control input-sm" type="text" value="<?php echo $v['md5']; ?>" readonly>',
|
||||
checkImg: '<?php echo $v['checkImg']; ?>',
|
||||
from: '<?php echo $v['from']; ?>',
|
||||
manage: "<a href='<?php echo $config['domain'] . $v['path']; ?>' target='_blank' class='btn btn-mini btn-success'>查看</a> <a href='/application/del.php?recycle_url=<?php echo $v['path']; ?>' target='_blank' class='btn btn-mini btn-info'>回收</a> <a href='/application/del.php?url=<?php echo $v['path']; ?>' target='_blank' class='btn btn-mini btn-danger'>删除</a> ",
|
||||
manage: "<div class='btn-group'><a href='<?php echo $config['domain'] . $v['path']; ?>' target='_blank' class='btn btn-mini btn-success'>查看</a> <a href='/application/info.php?img=<?php echo $v['path']; ?>' target='_blank' class='btn btn-mini'>信息</a> <a href='/application/del.php?recycle_url=<?php echo $v['path']; ?>' target='_blank' class='btn btn-mini btn-info'>回收</a> <a href='/application/del.php?url=<?php echo $v['path']; ?>' target='_blank' class='btn btn-mini btn-danger'>删除</a></div>",
|
||||
},
|
||||
<?php endforeach; ?>
|
||||
]
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -19,7 +19,7 @@ mustLogin();
|
|||
<div class="content"></div>
|
||||
<button type="button" class="close">x</button>
|
||||
</div>
|
||||
<div class="uploader-files file-list file-list-lg file-rename-by-click" data-drag-placeholder="选择文件/Ctrl+V粘贴/拖拽至此处" style="min-height: 160px; border-style: dashed;"></div>
|
||||
<div class="uploader-files file-list file-list-lg file-rename-by-click" data-drag-placeholder="选择文件/Ctrl+V粘贴/拖拽至此处" style="min-height: 188px; border-style: dashed;"></div>
|
||||
<div class="uploader-actions">
|
||||
<div class="uploader-status pull-right text-muted"></div>
|
||||
<button type="button" class="btn btn-link uploader-btn-browse"><i class="icon icon-plus"></i> 选择文件</button>
|
||||
|
@ -27,7 +27,7 @@ mustLogin();
|
|||
<button type="button" class="btn btn-link uploader-btn-stop"><i class="icon icon-pause"></i> 暂停上传</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 clo-xs-12" style="margin-bottom:90px;">
|
||||
<div class="col-md-12 clo-xs-12">
|
||||
<ul class="nav nav-tabs">
|
||||
<li <?php if ($config['upload_first_show'] == 1) echo 'class="active"'; ?>>
|
||||
<a href="#" data-target="#tab2Content1" data-toggle="tab"><i class="icon icon-link"></i> 直链</a>
|
||||
|
|
|
@ -85,8 +85,13 @@
|
|||
}
|
||||
|
||||
.bottom-bar {
|
||||
opacity: 0;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0.1px;
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.bottom-bar:hover {
|
||||
opacity: 1;
|
||||
}
|
Loading…
Reference in New Issue