61 lines
2.4 KiB
PHP
Executable File
61 lines
2.4 KiB
PHP
Executable File
<?php
|
|
if (!isset($refresh)) $refresh='N';
|
|
if (isset($debug[9]) && $debug[9] == '1' ) { $debugMsg .= monDebug (1, ['refresh' => $refresh], '10-init.btnList.php'); }
|
|
if (empty($_SESSION['boutonMsg']) or ($refresh==='Oui')) {
|
|
$i=0;
|
|
$reqSelect="SELECT * FROM languenav WHERE description like 'Bouton%' order by id;";
|
|
$resConn='';
|
|
if (isset($debug[9]) && $debug[9] == '1' ) { $debugMsg .= monDebug (1, ['reqSelect' => $reqSelect], '');}
|
|
$resConn=$idPdo->query($reqSelect);
|
|
if ($resConn) {
|
|
while ($tabResult = $resConn->fetch(PDO::FETCH_ASSOC)) {
|
|
$boutonID[$i]=$tabResult['id'];
|
|
$boutonMsg[$i]=$tabResult[$lg];
|
|
$boutonDesc[$i]=$tabResult['description'];
|
|
$boutonAlt[$i]=$tabResult['alt' .$lg];
|
|
$boutonTitle[$i]=$tabResult['title' .$lg];
|
|
$boutonLien[$i]=$tabResult['lien'];
|
|
$boutonImgPt[$i]=$tabResult['imgPt' .$lg];
|
|
$boutonAfficher[$i]=$tabResult['afficher'];
|
|
$boutonClasse[$i]=$tabResult['class'];
|
|
$boutonStyle[$i]=$tabResult['style'];
|
|
|
|
if (isset($debug[10]) && $debug[10] == '1' ) {
|
|
$debugMsg .= monDebug (1,['num' => $i, 'boutonDesc' => $boutonDesc[$i] ],'');
|
|
}
|
|
$i++;
|
|
|
|
}
|
|
$_SESSION['boutonID']= $boutonID;
|
|
$_SESSION['boutonMsg']= $boutonMsg;
|
|
$_SESSION['boutonDesc']= $boutonDesc;
|
|
$_SESSION['boutonAlt']= $boutonAlt;
|
|
$_SESSION['boutonTitle']= $boutonTitle;
|
|
$_SESSION['boutonLien']= $boutonLien;
|
|
$_SESSION['boutonImgPt']= $boutonImgPt;
|
|
$_SESSION['boutonAfficher']= $boutonAfficher;
|
|
$_SESSION['boutonClasse']= $boutonClasse;
|
|
$_SESSION['boutonStyle']= $boutonStyle;
|
|
|
|
$tabResult='';
|
|
if (isset($debug[9]) && $debug[9] == '1' ) { $debugMsg .= monDebug (1,['session re-chargée' => 'Oui'],'');}
|
|
}
|
|
else {
|
|
if (isset($debug[9]) && $debug[9] == '1' ) echo " Impossible de récupérer les données de la table";
|
|
}
|
|
}
|
|
else {
|
|
if (isset($debug[9]) && $debug[9] == '1' ) { $debugMsg .= monDebug (1,['session déjà chargée' => 'Oui'],'');}
|
|
if (empty($boutonID)) $boutonID=$_SESSION['boutonID'];
|
|
$boutonDesc=$_SESSION['boutonDesc'];
|
|
$boutonMsg=$_SESSION['boutonMsg'];
|
|
$boutonAlt=$_SESSION['boutonAlt'];
|
|
$boutonTitle=$_SESSION['boutonTitle'];
|
|
$boutonLien=$_SESSION['boutonLien'];
|
|
$boutonImgPt=$_SESSION['boutonImgPt'];
|
|
$boutonAfficher=$_SESSION['boutonAfficher'];
|
|
$boutonClasse=$_SESSION['boutonClasse'];
|
|
$boutonStyle=$_SESSION['boutonStyle'];
|
|
}
|
|
//
|
|
?>
|