delete users

This commit is contained in:
Alexander M. Turek
2002-12-22 23:47:11 +00:00
parent 8d50c33083
commit f0584cf4a2
93 changed files with 1131 additions and 29 deletions

View File

@@ -190,3 +190,30 @@ function checkForm(the_form, do_check) {
return true;
} // end of the 'checkForm()' function
/**
* Checks/unchecks all tables
*
* @param string the form name
* @param boolean whether to check or to uncheck the element
*
* @return boolean always true
*/
function setCheckboxes(the_form, do_check)
{
var elts = document.forms[the_form].elements['selected_usr[]'];
var elts_cnt = (typeof(elts.length) != 'undefined')
? elts.length
: 0;
if (elts_cnt) {
for (var i = 0; i < elts_cnt; i++) {
elts[i].checked = do_check;
} // end for
} else {
elts.checked = do_check;
} // end if... else
return true;
} // end of the 'setCheckboxes()' function