167 lines
4.5 KiB
PHP
Executable File
167 lines
4.5 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
|
|
// la numérotation des sous menus est contrainte par ce qui est déjà en base
|
|
// du coup on ne peut pas faire ce qu'on veut ( a cause de l'alimentation des sous-menus dynamique par requete ).
|
|
// l'ideal aurait été de faire 10: Catalogue, pouis 101,102,103....20: Clients, puis 201,202...Mais maintenant cela aurait bcp d'impact de renuméoter.
|
|
// Néanmoins ca vaut le coup un jour, car c'est difficile a maintenir en l'état
|
|
|
|
if(!isset($textesAffSection)) $textesAffSection=1;
|
|
|
|
switch ($numeroSousMenu) {
|
|
// ---------------------------------------------------
|
|
// Accueil:
|
|
// ---------------------------------------------------
|
|
case 100 :
|
|
$theIdPage=11;
|
|
break;
|
|
|
|
case 101 :
|
|
//menus et menus deroulant
|
|
$theVoletCss = "Menu déroulant";
|
|
$textesAffSection = 5;
|
|
break;
|
|
|
|
case 102 :
|
|
//logo
|
|
$theVoletCss = "Eléments d'entête";
|
|
$textesAffSection = 7;
|
|
break;
|
|
|
|
// ---------------------------------------------------
|
|
// Catalogue
|
|
// ---------------------------------------------------
|
|
case 5 : //Recherche
|
|
$theVoletCss = 'Barre rechercher';
|
|
$textesAffSection = 1;
|
|
break;
|
|
|
|
case 2 : //Nos promos//
|
|
case 3 : //Meilleurs choix
|
|
case 4 : //Tous nos articles
|
|
case 28 : //Nos rayons => categories
|
|
case 30 : //Nouveautés
|
|
$theVoletCss = "Barre des promos";
|
|
$textesAffSection = 1;
|
|
break;
|
|
|
|
case 35 : //detail articles
|
|
$theVoletCss = 'Catalogue'; // ? a confirmer
|
|
$textesAffSection = 1;
|
|
break;
|
|
|
|
case 36 : //Menu indep
|
|
$theVoletCss = 'Menu familles';
|
|
$textesAffSection = 1;
|
|
break;
|
|
|
|
// ---------------------------------------------------
|
|
// Client
|
|
// ---------------------------------------------------
|
|
case 7 : //connexion
|
|
$theVoletCss = 'Connexion';
|
|
$textesAffSection = 11;
|
|
// if ($agencementOnglet !=1) $idLanguenav = 298;// si on n'est pas sur menu,
|
|
break;
|
|
|
|
case 8 : //deconnexion
|
|
// if ($agencementOnglet !=1) $idLanguenav = 82;// si on n'est pas sur menu,
|
|
$theVoletCss = 'Connexion';
|
|
$textesAffSection = 2;
|
|
break;
|
|
|
|
case 9 : //mon compte
|
|
case 10 : //mes Cdes
|
|
case 11 : //ouvrir compte
|
|
// if ($agencementOnglet !=1) $idLanguenav = 82;// si on n'est pas sur menu,
|
|
$theVoletCss = 'Clients';
|
|
$textesAffSection = 3;
|
|
break;
|
|
|
|
// ---------------------------------------------------
|
|
// Panier
|
|
// ---------------------------------------------------
|
|
case 13 : //Menu panier
|
|
$theVoletCss = 'Panier';
|
|
$textesAffSection = 4;
|
|
break;
|
|
|
|
case 14 : //Menu paiement
|
|
$theVoletCss = 'Informations';
|
|
$textesAffSection = 4;
|
|
$theIdPage = 9;
|
|
break;
|
|
|
|
case 15 : //Menu livraison
|
|
$theVoletCss = 'Informations';
|
|
$theIdPage = 10;
|
|
$textesAffSection = 4;
|
|
break;
|
|
|
|
// ---------------------------------------------------
|
|
// Information
|
|
// ---------------------------------------------------
|
|
case 17 : //qsm
|
|
$theVoletCss = 'Informations';
|
|
$textesAffSection = 8;
|
|
$theIdPage = 6;
|
|
break;
|
|
|
|
case 18 : //contact
|
|
$theVoletCss = 'Informations';
|
|
$textesAffSection = 8;
|
|
$theIdPage = 7;
|
|
break;
|
|
|
|
case 19 : //cdv
|
|
$theVoletCss = 'Informations';
|
|
$textesAffSection = 8;
|
|
$theIdPage = 8;
|
|
break;
|
|
|
|
// ---------------------------------------------------
|
|
//Publicité
|
|
// ---------------------------------------------------
|
|
case 21:
|
|
$theVoletCss = 'Publicité';
|
|
$textesAffSection = 5;
|
|
$theIdPage = 1;
|
|
$idLanguenav=74;
|
|
break;
|
|
|
|
case 22:
|
|
$theVoletCss = 'Publicité';
|
|
$textesAffSection = 5;
|
|
$theIdPage = 2;
|
|
$idLanguenav=297;
|
|
break;
|
|
|
|
case 23:
|
|
$theVoletCss = 'Publicité';
|
|
$textesAffSection = 5;
|
|
$theIdPage = 3;
|
|
$idLanguenav=337;
|
|
break;
|
|
|
|
//Transverse
|
|
case 108://boutons
|
|
$theVoletCss = 'Transverses site';
|
|
$textesAffSection = 10;
|
|
$idLanguenav=97;
|
|
break;
|
|
|
|
case 42://pdp
|
|
$theVoletCss = 'Pied de page';
|
|
$textesAffSection = 5;
|
|
$idLanguenav=17;
|
|
break;
|
|
}
|
|
|
|
// a valider: si on vient de MC toujours prendre le get car plus précis
|
|
if(isset($_GET['theVoletCss'])) $theVoletCss=$_GET['theVoletCss'];
|
|
|
|
if (isset($debug[1]) && $debug[1] == '1') { $debugMsg .= monDebug(1, ['numeroSousMenu' => $numeroSousMenu, 'textesAffSection' => $textesAffSection, 'theVoletCss' => $theVoletCss, 'idLanguenav' => $idLanguenav ], 'sous_menus_mapping'); }
|
|
|
|
$_SESSION['textesAffSection']=$textesAffSection;
|
|
?>
|