Subversion Repositories wimsdev

Rev

Blame | Last modification | View Log | RSS feed

  1. !! put a master check box to check/uncheck all checkbox of class $wims_read_parm
  2.  
  3. <input id="$(wims_read_parm)_master" type="checkbox" onclick="allcheck('$wims_read_parm','$(wims_read_parm)_master')" />
  4.  
  5. !if $configuration_mastercheckboxread_!=yes
  6.   <script type="text/javascript" >
  7.       function allcheck(classe,masterid){
  8.          tabl_c = document.getElementsByClassName(classe);
  9.          if (document.getElementById(masterid).checked){
  10.              for (var i = 0; i < tabl_c.length; i++){
  11.               tabl_c[i].checked = true;
  12.              }
  13.          }
  14.          else {
  15.             for (var i = 0; i < tabl_c.length; i++){
  16.               tabl_c[i].checked = false;
  17.             }
  18.          }
  19.       }
  20.   </script>
  21.   !let configuration_mastercheckboxread_=yes
  22. !endif
  23.  
  24.