mirror of https://github.com/helloxz/imgurl
pull/35/head
parent
4f54b88c71
commit
dea70b4bd8
|
@ -1,4 +1,6 @@
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||||
RewriteRule ^(.*)$ index.php/$1 [L]
|
RewriteCond %{REQUEST_FILENAME} -d
|
||||||
|
RewriteRule ^.*$ - [NC,L]
|
||||||
|
RewriteRule ^.*$ index.php [NC,L]
|
|
@ -25,7 +25,7 @@
|
||||||
<div class="layui-col-lg3" id = "img<?php echo $img['id']; ?>">
|
<div class="layui-col-lg3" id = "img<?php echo $img['id']; ?>">
|
||||||
<div class = "operate">
|
<div class = "operate">
|
||||||
<!-- 选择按钮 -->
|
<!-- 选择按钮 -->
|
||||||
<div class = "choose"><input type="checkbox" name="" value = "<?php echo $img['id']; ?>"></div>
|
<div class = "choose"><input type="checkbox" name="chk" value = "<?php echo $img['id']; ?>"></div>
|
||||||
<!-- 压缩图标 -->
|
<!-- 压缩图标 -->
|
||||||
<div>
|
<div>
|
||||||
<button class="layui-btn layui-btn-xs <?php echo $css; ?>" title = "压缩图片" onclick = "compress(<?php echo $img['id']; ?>)">
|
<button class="layui-btn layui-btn-xs <?php echo $css; ?>" title = "压缩图片" onclick = "compress(<?php echo $img['id']; ?>)">
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
<?php echo $page; ?>
|
<?php echo $page; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-lg6">
|
<div class="layui-col-lg6">
|
||||||
<label>选中项:</label><button class="layui-btn layui-btn-sm layui-btn-danger" onclick = "del_more()">删除</button>
|
<!-- <button class="layui-btn layui-btn-xs" id = "checkAll">全选</button>--> <label>选中项:</label><button class="layui-btn layui-btn-xs layui-btn-danger" onclick = "del_more()">删除</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 分页按钮 -->
|
<!-- 分页按钮 -->
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
<link rel="Bookmark" href="/favicon.ico" />
|
<link rel="Bookmark" href="/favicon.ico" />
|
||||||
<link rel="stylesheet" href="/static/layui/css/layui.css">
|
<link rel="stylesheet" href="/static/layui/css/layui.css">
|
||||||
<link rel="stylesheet" href="/static/font-awesome/css/font-awesome.min.css">
|
<link rel="stylesheet" href="/static/font-awesome/css/font-awesome.min.css">
|
||||||
<link rel="stylesheet" href="/static/lightGallery/src/css/lightgallery.css">
|
|
||||||
<link rel="stylesheet" href="/static/style.css?v=<?php echo $version; ?>">
|
<link rel="stylesheet" href="/static/style.css?v=<?php echo $version; ?>">
|
||||||
<script src="/static/jquery.min.js"></script>
|
<script src="/static/jquery.min.js"></script>
|
||||||
<!-- 统计代码 -->
|
<!-- 统计代码 -->
|
||||||
|
|
|
@ -216,3 +216,17 @@ function version(){
|
||||||
content: '/maintain/version' //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
|
content: '/maintain/version' //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//全选按钮
|
||||||
|
$("#checkAll").click(function() {
|
||||||
|
if (this.checked) {
|
||||||
|
$("input[name='chk']:checkbox").each(function() { //遍历所有的name为selectFlag的 checkbox
|
||||||
|
$(this).attr("checked", true);
|
||||||
|
})
|
||||||
|
} else { //反之 取消全选
|
||||||
|
$("input[name='chk']:checkbox").each(function() { //遍历所有的name为selectFlag的 checkbox
|
||||||
|
$(this).attr("checked", false);
|
||||||
|
//alert("f");
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue