From 183095bae3383f476ee080238572dfe637e63b61 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Wed, 3 Jun 2015 22:57:38 +0200 Subject: [PATCH] add multicheck --- index.php | 4 +++- js/checkbox.js | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 1dc0606..396e119 100644 --- a/index.php +++ b/index.php @@ -33,7 +33,9 @@ echo "$numrows quarantined mail(s)"; echo ""; echo "
"; - echo ""; + echo "" + echo ""; echo ""; $mailInfo = array(); diff --git a/js/checkbox.js b/js/checkbox.js index da738c2..ca9170f 100644 --- a/js/checkbox.js +++ b/js/checkbox.js @@ -15,3 +15,13 @@ function checkAction(action) { var url = 'quarantine.php?op=' + action + '&id=' + ids; location.href=url; } + +function updataAction(chkBtn) { + var checked = chkBtn.checked; + var c = document.getElementsByName('action'); + for (var i = 0; i < c.length; i++) { + if (c[i].type == 'checkbox' && c[i].checked != checked) { + c[i].checked == checked; + } + } +} -- 2.39.2
ReceivedCauseSenderRecipientSubjectActionSenderRecipientSubjectAction