53 lines
2.3 KiB
PHP
Executable File
53 lines
2.3 KiB
PHP
Executable File
<?php
|
|
echo '<script type="text/javascript" src="' .$includeAdminJs. '/jquery-dropdown.js"></script>';
|
|
if (empty($tableLangueCode) or $refresh=='Oui') { include ($includePath. "/req/03-init.langueActives.php"); }
|
|
|
|
// en cas de repostage
|
|
if(!isset($niveau)) $niveau=0;
|
|
|
|
if (isset($debug[5]) && $debug[5] == '1') {
|
|
$debugMsg .= monDebug (5,[
|
|
'Nombre de langues' => $_SESSION['nbLgActives'],
|
|
'lg' => $lg,
|
|
'lg get' => isset($_GET['lg']) ?? $_GET['lg'],
|
|
'lg post' => isset($_POST['lg']) ?? $_POST['lg'],
|
|
'SESSION[lgCouranteCode] initiale' => $_SESSION['lgCouranteCode'],
|
|
'SESSION[lg] initiale' => $_SESSION['lg'],
|
|
'niveau' => $niveau,
|
|
'refresh' => $refresh
|
|
],'drapeauxLangueActive.php', $nomFicAppelant);
|
|
}
|
|
|
|
|
|
// Boucle sur toutes les langues et activation de la courante dans la listeBox + mise a jour du lien
|
|
for ($nn=0; $nn<count($tableLangueCode); $nn++) {
|
|
// if ($tableLangueCode[$nn]==$_SESSION['lg']) {
|
|
if ($tableLangueCode[$nn]==$_SESSION['lgCouranteCode']) {
|
|
$_SESSION['listBoxAffLg']=$tableLangueMsg[$nn];
|
|
|
|
if($niveau==0) {$drapeau=str_replace("./", "../", $tableLangueImgPt[$nn]);}
|
|
if($niveau==1) {$drapeau=str_replace("./", "../../", $tableLangueImgPt[$nn]);}
|
|
if($niveau==2) {$drapeau=str_replace("./", "../../../../", $tableLangueImgPt[$nn]);}
|
|
if($niveau==3) {$drapeau=str_replace("./", "../../../../", $tableLangueImgPt[$nn]);}
|
|
|
|
$_SESSION['AffichageDrapeau']=$drapeau;
|
|
$_SESSION['lgCouranteCode']=$tableLangueCode[$nn];
|
|
$_SESSION['lgCouranteLibelle']=$tableLangueMsg[$nn];
|
|
// $lg=$tableLangueCode[$nn];
|
|
|
|
if (isset($debug[5]) && $debug[5] == '1') {
|
|
$debugMsg .= monDebug (5,[
|
|
'<br>tableLangueMsg[nn]' => $tableLangueMsg[$nn],
|
|
'SESSION[lgCouranteCode]' => $_SESSION['lgCouranteCode'],
|
|
'SESSION[lg]' => $_SESSION['lg'],
|
|
'lg' => $lg,
|
|
'lisBoxAff' => $_SESSION['listBoxAffLg'],
|
|
'src' => '<img width="20" width="20" border="0" src="' .$drapeau. '" alt="' .$tableLangueAlt[$nn]. '" title="' .$tableLangueTitle[$nn]. '" />'
|
|
],'');
|
|
}
|
|
}
|
|
}
|
|
|
|
// Affichage du drapeau, libellé et lien dans la listBox
|
|
echo '<script type="text/javascript" src="' .$includeAdminJs. '/drapeaux_jQuery.php?libLg=' .$_SESSION['listBoxAffLg']. '&drapeau=' .$_SESSION['AffichageDrapeau']. '"></script>';
|
|
?>
|