32 lines
1.4 KiB
PHP
Executable File
32 lines
1.4 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
|
|
// -----------------------------------------------------
|
|
// Requete UPDATE pour afficher menu info en bas ou dans menu deroulant
|
|
// -----------------------------------------------------
|
|
if($posMenuInfo!='') {
|
|
$reqUpdate="UPDATE `thmParam` SET val=" .$posMenuInfo. " WHERE idTheme = " .$_SESSION['idTheme']. " AND id = 23";
|
|
if (isset($debug[2]) && $debug[2] == '1') $debugMsg .= monDebug(2,['reqUpdate' => $reqUpdate],'posMenuInfoAff.php');
|
|
|
|
$resConn='';
|
|
try{
|
|
$resConn=$idPdo->query($reqUpdate) ;
|
|
if ($posMenuInfo==2) {$lib='dans le pied de page';} else {$lib='dans le menu déroulant';}
|
|
if ($resConn) {
|
|
$admMsg .= 'Position du menu information définie ' .$lib. ' avec succès !'; $admMsgClass='ok';
|
|
}
|
|
else {
|
|
$admMsg .= 'Erreur lors du changement de position du menu ionformation !';
|
|
$erreur = $idPdo->errorInfo();
|
|
if (isset($debug[2]) && $debug[2] == '1') $debugMsg .= monDebug (2,['Erreur mysql' => $erreur[2] ],'');
|
|
$erreurSQL=1;
|
|
$admMsgClass='ko';
|
|
}
|
|
}
|
|
catch (PDOException $e) {
|
|
if (isset($debug[2]) && $debug[2] == '1') $debugMsg .= monDebug(2,['Erreur mysql' => $e->getMessage() ],'');
|
|
}
|
|
$_SESSION['posMenuInfo']=$posMenuInfo;
|
|
}
|
|
else if (isset($debug[2]) && $debug[2] == '1') $debugMsg .= monDebug(2,['posMenuInfo vide' => ''],'posMenuInfoAff.php');
|
|
?>
|