28 lines
725 B
PHP
Executable File
28 lines
725 B
PHP
Executable File
<?php
|
|
header("Content-Type: application/javascript");
|
|
?>
|
|
function affDrapeau(lg, idLg, nbLg) {
|
|
debugLocal=0;
|
|
if(debugLocal==1) alert('lg= '+lg+' idLg= '+idLg+' nbLg= '+nbLg);
|
|
if ( document.getElementById('lg') && document.getElementById('fLangues') ) {
|
|
document.getElementById('lg').value=lg;
|
|
|
|
//eviter que le clic sur titre prenne le dessus
|
|
event.stopPropagation()
|
|
document.fLangues.submit();
|
|
}
|
|
else {
|
|
if(debugLocal==1) alert (' document.getElementById(\'lg\') not atteignable');
|
|
}
|
|
}
|
|
|
|
function affDrapeauAll(nbLg) {
|
|
debugLocal=0;
|
|
// if(debugLocal==1) alert('nbLg= '+nbLg);
|
|
|
|
for (i=0; i<nbLg; i++) {
|
|
item='a-lg'+i;
|
|
document.getElementById(item).style.display='block';
|
|
}
|
|
}
|