PHP Classes

File: htdocs/js/CheckAll.js

Recommend this page to a friend!
  Classes of ask sa sa   PHP LDAP admin   htdocs/js/CheckAll.js   Download  
File: htdocs/js/CheckAll.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP LDAP admin
Perform operations to administer a LDAP server
Author: By
Last change:
Date: 1 year ago
Size: 545 bytes
 

Contents

Class file image Download
function CheckAll(setbgcolor,form,index) { htmlform = document.getElementById(form+index); for (var i=0;i<htmlform.elements.length;i++) { var e = htmlform.elements[i]; if (e.type == 'checkbox' && e.name != 'allbox') { e.checked = htmlform.allbox.checked; if (!document.layers && setbgcolor) { var tr = document.getElementById('tr_'+e.id); if (e.checked) { tr.style.backgroundColor='#DDDDFF'; } else { var id = e.id.substr(3); tr.style.backgroundColor= id%2 ? '#E0E0E0' : '#F0F0F0'; } } } } }