49 lines
2.1 KiB
PHP
Executable File
49 lines
2.1 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
|
|
// -----------------------------------------------------
|
|
// Recup depuis langueNav
|
|
// -----------------------------------------------------
|
|
$reqSelect="SELECT afficher, " .$_SESSION['lgCouranteCode']. ", title" .$_SESSION['lgCouranteCode']. ", alt" .$_SESSION['lgCouranteCode']. " from `languenav` WHERE id=99;";
|
|
if (isset($debug[2]) && $debug[2] == '1') $debugMsg .= monDebug(2,['reqSelect' => $reqSelect],'titreReqSelect.php');
|
|
$resConn='';
|
|
$tabResult=array();
|
|
$resConn=$idPdo->query($reqSelect);
|
|
if ($resConn) { // si la requête a fonctionnée
|
|
if ($resConn->rowCount()>0) { // si la requête a retourné au moins un enregistrement
|
|
$tabResult = $resConn->fetch(PDO::FETCH_ASSOC);
|
|
// $titreAff=$tabResult['afficher']; pas besoin fait séparement
|
|
$thePopup=$tabResult['title' .$_SESSION['lgCouranteCode']];
|
|
$theAlt=$tabResult['alt' .$_SESSION['lgCouranteCode']];
|
|
$theMsg=$tabResult[$_SESSION['lgCouranteCode']];
|
|
// $lien=$tabResult['lien' .$_SESSION['lgCouranteCode']];
|
|
if (isset($debug[2]) && $debug[2] == '1') {
|
|
$debugMsg .= monDebug(2, [
|
|
'theMsg=' => $theMsg,
|
|
'thePopup=' => $thePopup,
|
|
'theAlt=' => $theAlt,
|
|
'Il est possible de retrouver les données' => $_SESSION['lgCouranteCode']
|
|
], '');
|
|
}
|
|
}
|
|
else {
|
|
$admMsg .= "Il est impossible de retrouver les données titre. "; $admMsgClass='ko';
|
|
}
|
|
}
|
|
else {
|
|
$admMsg .= "Nous sommes désolés, les données titre ne peuvent pas être affichées. "; $admMsgClass='ko';
|
|
}
|
|
|
|
// -----------------------------------------------------
|
|
// Pour chaque langue
|
|
// -----------------------------------------------------
|
|
if( isset($_SESSION['nbLgActives']) && $_SESSION['nbLgActives'] > 0 ){
|
|
for ($i=0; $i<($_SESSION['nbLgActives'] ); $i++) {
|
|
if ($tableLangueCode[$i]==$_SESSION['lgCouranteCode']) {
|
|
$_SESSION['lgCouranteLibelle']=$tableLangueMsg[$i];
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['langueEnCours -->' => $_SESSION['lgCouranteLibelle']], '');}
|
|
}
|
|
}
|
|
}
|
|
include ("reqSelectCss.php");
|
|
?>
|