5
ok i try to add check all/uncheckall in groups
based on this code
http://www.hscripts.com/scripts/JavaScript/select-all-checkbox.phpin include/xoops.js, add this at end of the file
checked=false;
function checkedAll (groupform) {
var aa= document.getElementById('groupform');
if (checked == false)
{
checked = true
}
else
{
checked = false
}
for (var i =0; i < aa.elements.length; i++)
{
aa.elements[i].checked = checked;
}
}
in class/xoopsform/formcheckboxes.php
somewhere in line 237
replace this
$ret .= '';
with
$ret .= 'Check/Uncheck All |
';
result: it is working.....but when i select the check all checkbox in group setting all the checkboxes are selected...
supposed only the checkboxes in each row are selected
system admin rights
module admin rights
module access rights
etc and so on
help
this is almost working perfectly
demo:
http://img268.imageshack.us/img268/939/demoaa.png