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

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

View File

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

View File

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