Gestion du theme

This commit is contained in:
xdrm-brackets 2016-07-12 10:53:26 +02:00
parent 469648cdaa
commit b5785be786
3 changed files with 6 additions and 5 deletions

View File

@ -92,7 +92,8 @@
/* (2) On met à jour les informations de l'entrepot */ /* (2) On met à jour les informations de l'entrepot */
$_SESSION['WAREHOUSE'] = [ $_SESSION['WAREHOUSE'] = [
'id' => (int) $checkRoot->answer()[0]['id_warehouse'], 'id' => (int) $checkRoot->answer()[0]['id_warehouse'],
'name' => $checkRoot->answer()[0]['name'] 'name' => $checkRoot->answer()[0]['name'],
'theme' => $checkRoot->answer()[0]['theme']
]; ];
/* (3) On récupère les modules de l'entrepot */ /* (3) On récupère les modules de l'entrepot */

View File

@ -91,7 +91,7 @@
} }
</style> </style>
<body> <body style='background-color: #<?= $_SESSION['WAREHOUSE']['theme']; ?>;'>

View File

@ -35,8 +35,8 @@
<div id='WRAPPER'> <div id='WRAPPER'>
<!-- HEADER DE LA PAGE --> <!-- HEADER DE LA PAGE -->
<div id='HEADER'> <div id='HEADER' style='background-color: #<?= $_SESSION['WAREHOUSE']['theme']; ?>;border-bottom-color: #aaa; ?>;'>
<div class='icon'></div> <div class='icon' style='background-color: #<?= $_SESSION['WAREHOUSE']['theme']; ?>;'></div>
</div> </div>