'; $agencementOnglet=2; $textesAffSection=7; if (isset($_POST['thePage'])) $thePage=$_POST['thePage']; if (!isset($thePage) || empty($thePage) && isset($_SESSION['affPageAcc'])) $thePage=$_SESSION['affPageAcc']; if ($thePage==2) {$theIdPage=11; $agencementOnglet=4;} // ----------------------------------------------------- // req UPDATE page acueil param // ----------------------------------------------------- if ($codeOpe == "faireMaj") { $reqUpdate = "UPDATE `thmParam` SET val = :thePage WHERE id = 1 AND idTheme = :idTheme"; if (isset($debug[1]) && $debug[1] == '1') $debugMsg .= monDebug (1,['reqUpdate' => $reqUpdate ], 'accueil.modale.php'); $stmt = $idPdo->prepare($reqUpdate); $stmt->bindParam(':thePage', $thePage, PDO::PARAM_INT); $stmt->bindParam(':idTheme', $_SESSION['idTheme'], PDO::PARAM_INT); if ($stmt->execute()) { $admMsg .= 'Le modèle à bien été appliqué.'; $admMsgClass = 'ok'; } else { $admMsg .= 'Erreur lors de la mise à jour'; if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug (2, ['Erreur mysql' => $idPdo->errorInfo(), 'N°' => $idPdo->errorCode()], ''); } $admMsgClass = 'ko'; } } // ----------------------------------------------------- // Recup n° de modele depuis thmParam // ----------------------------------------------------- $refresh='Oui'; include ($includePath. "/req/16-init.thmParam.php"); $refresh='N'; if (empty($thePage) && isset($_SESSION['affPageAcc'])) {$thePage = $_SESSION['affPageAcc'];} $numeroSousMenu=100; $_SESSION['numeroSousMenu']=100; // ----------------------------------------------------- // Debug // ----------------------------------------------------- if (isset($debug[1]) && $debug[1] == '1') { $debugMsg .= monDebug (1,[ 'thePage' => $thePage, '_SESSION[affPageAcc]' => isset($_SESSION['affPageAcc']) ? $_SESSION['affPageAcc'] : '', 'codeOpe' => $codeOpe, 'theIdPage' => $theIdPage, 'numeroSousMenu' => $_SESSION['numeroSousMenu'], 'textesAffSection' => $textesAffSection ],''); } // ----------------------------------------------------- // Form // ----------------------------------------------------- echo '
'; } else { $confPath="../_conf"; include ("./adminInclude/redirectionAdmin.php"); } ?>