alpha_full/admin/agencement/req/01-agencementReqChapeau.php
2026-04-06 22:58:51 +02:00

130 lines
6.6 KiB
PHP
Executable File

<?php
$nomFicAppelant = basename(__FILE__);
//
// CAS1 CAS2 CAS3
// _____________________________________________________________________________________________________________________
// 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5
// |-----------------------------------| |-----------------------------------| |-----------------------------------|
// 1 En-tete | | En-tete | | En-tete |
// |___________________________________| |___________________________________| |___________________________________|
// 2 Menu | | Menu | | Menu |
// |___________________________________| |___________________________________| |___________________________________|
// 3 | <barre rech> | | <barre rech> | | <barre rech> |
// | |___________________________| |___________________________________| |___________________________________|
// 4 | <Bandeau> | | <Bandeau> | | | <Bandeau> |
// | |___________________________| |_______________________| | |___________________________________|
// 5 | <Msg> | | <Msg> | | | <Msg> |
// | |___________________________| |_______________________| | |___________________________________|
// | | | | | <Pub1> | | |
// 6 i | #page-container | | #page-container | | | #page-container |
// | n | | | | | | |
// | d | tablePages | | tablePages | | | tablePages |
// | e | | | | | | |
// 7 p | | | | <Pub2>| | |
// | | | | | | | |
// | | | | | | | |
// | | | | | | | |
// |___________________________________| | | | |___________________________________|
// | | | | | | <Pub3> | | | | |
// 8 <Pub1> | <Pub2> | <Pub3> | | | | |<Pub1> | <Pub2> | <Pub3> |
// | | | | | | | | | | |
// | | | | | | | | | | |
// |___________________________________| |___________________________________| |___________________________________|
// 9 | | | | |
// | Infos | | Infos | | Infos |
// |___________________________________| |___________________________________| |___________________________________|
//
// CAS1 CAS2 CAS3
// _____________________________________________________________________________________________________________________
// 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5
// |-----------------------------------| |-----------------------------------| |-----------------------------------|
// 1 En-tete | | En-tete | | En-tete |
// |___________________________________| |___________________________________| |___________________________________|
// 2 Menu | | Menu | | Menu |
// |___________________________________| |___________________________________| |___________________________________|
// 3 <barre rech> | | <barre rech> | | <barre rech> |
// |___________________________________| |___________________________________| |___________________________________|
// 4 <Bandeau> | | <Bandeau> | | <Bandeau> |
// |___________________________________| |___________________________________| |___________________________________|
// 5 <Msg> | | <Msg> | | <Msg> |
// |___________________________________| |___________________________________| |___________________________________|
// | | | | | <Pub1> | | |
// 6 i | #page-container | | #page-container | | | #page-container |
// | n | | | | | | |
// | d | tablePages | | tablePages | | | tablePages |
// | e | | | | | | |
// 7 p | | | | <Pub2>| | |
// | | | | | | | |
// | | | | | | | |
// | | | | | | | |
// |___________________________________| | | | |___________________________________|
// | | | | | | <Pub3> | | | | |
// 8 <Pub1> | <Pub2> | <Pub3> | | | | |<Pub1> | <Pub2> | <Pub3> |
// | | | | | | | | | | |
// | | | | | | | | | | |
// |___________________________________| |___________________________________| |___________________________________|
// 9 | | | | |
// | Infos | | Infos | | Infos |
// |___________________________________| |___________________________________| |___________________________________|
// -----------------------------------------------------
// Recup du theme
// -----------------------------------------------------
$nomThemeCss=$_SESSION['nomThemeCss'];
// -----------------------------------------------------
// UPDATE aff pub
// -----------------------------------------------------
include ("./agencement/req/agencementReq.pubAff.php");
// -----------------------------------------------------
// UPDATE aff bandeau
// -----------------------------------------------------
include ("./agencement/req/bandeauUpdateAff.php");
// -----------------------------------------------------
// UPDATE de l'agencement sur theme
// -----------------------------------------------------
if (!isset($agcmtType)) $agcmtType =$_SESSION['numStruct'];
$reqUpdate="UPDATE `cssthemes` SET agcType=" .$agcmtType. " WHERE nom='" .$nomThemeCss. "';";
$resConn='';
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['bdd' => $bdd], 'agencementReqChapeau.php');}
$resConn=$idPdo->query($reqUpdate) ;
if ($resConn) {
$admMsg .= '<br>L\'agencement du thème ' .$nomThemeCss. ' a bien été mis à jour ';
$admMsgClass='ok';
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['reqUpdate' => $reqUpdate], '');}
}
else {
$admMsg .= 'Erreur lors de la mise à jour de l\'agencement du thème' .$nomThemeCss;
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['Erreur mysql :' => $idPdo->errorInfo()[2] ], ''); }
$admMsgClass='ko';
}
$_SESSION['numStruct']=$agcmtType;
// -----------------------------------------------------
// Préparation
// -----------------------------------------------------
include ("./agencement/req/02-agencementReqUpdate.prepare.php");
// -----------------------------------------------------
// Execution des requetes
// -----------------------------------------------------
include ("./agencement/req/03-agencementReqUpdate.php");
?>