From dea70b4bd81bb0d0d8012d0d910d8e7bbd6b61d7 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Mon, 24 Dec 2018 22:31:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .htaccess | 8 +++++--- application/views/admin/images.php | 4 ++-- application/views/user/header.php | 1 - static/js/admin.js | 16 +++++++++++++++- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/.htaccess b/.htaccess index 9e25198..221c82c 100644 --- a/.htaccess +++ b/.htaccess @@ -1,4 +1,6 @@ RewriteEngine On -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.*)$ index.php/$1 [L] \ No newline at end of file +RewriteCond %{REQUEST_FILENAME} -s [OR] +RewriteCond %{REQUEST_FILENAME} -l [OR] +RewriteCond %{REQUEST_FILENAME} -d +RewriteRule ^.*$ - [NC,L] +RewriteRule ^.*$ index.php [NC,L] \ No newline at end of file diff --git a/application/views/admin/images.php b/application/views/admin/images.php index 4b6b165..003433f 100644 --- a/application/views/admin/images.php +++ b/application/views/admin/images.php @@ -25,7 +25,7 @@
-
+
- +
diff --git a/application/views/user/header.php b/application/views/user/header.php index 4e39827..37fe49c 100644 --- a/application/views/user/header.php +++ b/application/views/user/header.php @@ -19,7 +19,6 @@ - diff --git a/static/js/admin.js b/static/js/admin.js index 58b1a0a..9fb9930 100644 --- a/static/js/admin.js +++ b/static/js/admin.js @@ -215,4 +215,18 @@ function version(){ type: 2, content: '/maintain/version' //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no'] }); -} \ No newline at end of file +} + +//全选按钮 +$("#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"); + }) + } +})