dolibarr 18.0.6
style.css.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
4 * Copyright (C) 2007-2017 Regis Houssin <regis.houssin@inodbox.com>
5 * Copyright (C) 2011 Philippe Grand <philippe.grand@atoo-net.com>
6 * Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
7 * Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
8 * Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <https://www.gnu.org/licenses/>.
22 */
23
29//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled because need to load personalized language
30//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url.
31if (!defined('NOREQUIRESOC')) {
32 define('NOREQUIRESOC', '1');
33}
34//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
35if (!defined('NOCSRFCHECK')) {
36 define('NOCSRFCHECK', 1);
37}
38if (!defined('NOTOKENRENEWAL')) {
39 define('NOTOKENRENEWAL', 1);
40}
41if (!defined('NOLOGIN')) {
42 define('NOLOGIN', 1); // File must be accessed by logon page so without login.
43}
44//if (!defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); // We load menu manager class (note that object loaded may have wrong content because NOLOGIN is set and some values depends on login)
45if (!defined('NOREQUIREHTML')) {
46 define('NOREQUIREHTML', 1);
47}
48if (!defined('NOREQUIREAJAX')) {
49 define('NOREQUIREAJAX', '1');
50}
51
52
53define('ISLOADEDBYSTEELSHEET', '1');
54
55
56require __DIR__.'/theme_vars.inc.php';
57if (defined('THEME_ONLY_CONSTANT')) {
58 return;
59}
60
61
62session_cache_limiter('public');
63
64require_once __DIR__.'/../../main.inc.php'; // __DIR__ allow this script to be included in custom themes
65require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
66
67// Load user to have $user->conf loaded (not done into main because of NOLOGIN constant defined)
68// and permission, so we can later calculate number of top menu ($nbtopmenuentries) according to user profile.
69if (empty($user->id) && !empty($_SESSION['dol_login'])) {
70 $user->fetch('', $_SESSION['dol_login'], '', 1);
71 $user->getrights();
72
73 // Reload menu now we have the good user (and we need the good menu to have ->showmenu('topnb') correct.
74 $menumanager = new MenuManager($db, empty($user->socid) ? 0 : 1);
75 $menumanager->loadMenu();
76}
77
78
79// Define css type
80top_httphead('text/css');
81// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
82if (empty($dolibarr_nocache)) {
83 header('Cache-Control: max-age=10800, public, must-revalidate');
84} else {
85 header('Cache-Control: no-cache');
86}
87
88if (GETPOST('theme', 'aZ09')) {
89 $conf->theme = GETPOST('theme', 'aZ09'); // If theme was forced on URL
90}
91if (GETPOST('lang', 'aZ09')) {
92 $langs->setDefaultLang(GETPOST('lang', 'aZ09')); // If language was forced on URL
93}
94if (GETPOSTISSET('THEME_DARKMODEENABLED')) {
95 $conf->global->THEME_DARKMODEENABLED = GETPOST('THEME_DARKMODEENABLED', 'int'); // If darkmode was forced on URL
96}
97
98$langs->load("main", 0, 1);
99$right = ($langs->trans("DIRECTION") == 'rtl' ? 'left' : 'right');
100$left = ($langs->trans("DIRECTION") == 'rtl' ? 'right' : 'left');
101
102$path = ''; // This value may be used in future for external module to overwrite theme
103$theme = 'eldy'; // Value of theme
104if (!empty($conf->global->MAIN_OVERWRITE_THEME_RES)) {
105 $path = '/'.$conf->global->MAIN_OVERWRITE_THEME_RES; $theme = $conf->global->MAIN_OVERWRITE_THEME_RES;
106}
107
108// Define image path files and other constants
109$fontlist = 'arial,tahoma,verdana,helvetica'; //$fontlist='helvetica, verdana, arial, sans-serif';
110//$fontlist='"open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;';
111$img_head = '';
112$img_button = dol_buildpath($path.'/theme/'.$theme.'/img/button_bg.png', 1);
113$dol_hide_topmenu = $conf->dol_hide_topmenu;
114$dol_hide_leftmenu = $conf->dol_hide_leftmenu;
115$dol_optimize_smallscreen = $conf->dol_optimize_smallscreen;
116$dol_no_mouse_hover = $conf->dol_no_mouse_hover;
117
118//$conf->global->THEME_ELDY_ENABLE_PERSONALIZED=0;
119//$user->conf->THEME_ELDY_ENABLE_PERSONALIZED=0;
120//var_dump($user->conf->THEME_ELDY_RGB);
121
122$useboldtitle = getDolGlobalInt('THEME_ELDY_USEBOLDTITLE');
123$userborderontable = getDolGlobalInt('THEME_ELDY_USEBORDERONTABLE');
124$borderwidth = 1;
125
126// Case of option always editable
127if (!isset($conf->global->THEME_ELDY_BACKBODY)) {
128 $conf->global->THEME_ELDY_BACKBODY = $colorbackbody;
129}
130if (!isset($conf->global->THEME_ELDY_TOPMENU_BACK1)) {
131 $conf->global->THEME_ELDY_TOPMENU_BACK1 = $colorbackhmenu1;
132}
133if (!isset($conf->global->THEME_ELDY_VERMENU_BACK1)) {
134 $conf->global->THEME_ELDY_VERMENU_BACK1 = $colorbackvmenu1;
135}
136if (!isset($conf->global->THEME_ELDY_BACKTITLE1)) {
137 $conf->global->THEME_ELDY_BACKTITLE1 = $colorbacktitle1;
138}
139if (!isset($conf->global->THEME_ELDY_USE_HOVER)) {
140 $conf->global->THEME_ELDY_USE_HOVER = $colorbacklinepairhover;
141}
142if (!isset($conf->global->THEME_ELDY_USE_CHECKED)) {
143 $conf->global->THEME_ELDY_USE_CHECKED = $colorbacklinepairchecked;
144}
145if (!isset($conf->global->THEME_ELDY_LINEBREAK)) {
146 $conf->global->THEME_ELDY_LINEBREAK = $colorbacklinebreak;
147}
148if (!isset($conf->global->THEME_ELDY_TEXTTITLENOTAB)) {
149 $conf->global->THEME_ELDY_TEXTTITLENOTAB = $colortexttitlenotab;
150}
151if (!isset($conf->global->THEME_ELDY_TEXTLINK)) {
152 $conf->global->THEME_ELDY_TEXTLINK = $colortextlink;
153}
154if (!isset($conf->global->THEME_ELDY_BTNACTION)) {
155 $conf->global->THEME_ELDY_BTNACTION = $butactionbg;
156}
157if (!isset($conf->global->THEME_ELDY_TEXTBTNACTION)) {
158 $conf->global->THEME_ELDY_TEXTBTNACTION = $textbutaction;
159}
160// Case of option editable only if option THEME_ELDY_ENABLE_PERSONALIZED is on
161if (empty($conf->global->THEME_ELDY_ENABLE_PERSONALIZED)) {
162 $conf->global->THEME_ELDY_BACKTABCARD1 = '255,255,255'; // card
163 $conf->global->THEME_ELDY_BACKTABACTIVE = '234,234,234';
164 $conf->global->THEME_ELDY_TEXT = '0,0,0';
165 $conf->global->THEME_ELDY_FONT_SIZE1 = $fontsize;
166 $conf->global->THEME_ELDY_FONT_SIZE2 = '0.75em';
167}
168
169// Case of option availables only if THEME_ELDY_ENABLE_PERSONALIZED is on
170$colorbackhmenu1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TOPMENU_BACK1) ? $colorbackhmenu1 : $conf->global->THEME_ELDY_TOPMENU_BACK1) : (empty($user->conf->THEME_ELDY_TOPMENU_BACK1) ? $colorbackhmenu1 : $user->conf->THEME_ELDY_TOPMENU_BACK1);
171$colorbackvmenu1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_VERMENU_BACK1) ? $colorbackvmenu1 : $conf->global->THEME_ELDY_VERMENU_BACK1) : (empty($user->conf->THEME_ELDY_VERMENU_BACK1) ? $colorbackvmenu1 : $user->conf->THEME_ELDY_VERMENU_BACK1);
172$colortopbordertitle1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TOPBORDER_TITLE1) ? $colortopbordertitle1 : $conf->global->THEME_ELDY_TOPBORDER_TITLE1) : (empty($user->conf->THEME_ELDY_TOPBORDER_TITLE1) ? $colortopbordertitle1 : $user->conf->THEME_ELDY_TOPBORDER_TITLE1);
173$colorbacktitle1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BACKTITLE1) ? $colorbacktitle1 : $conf->global->THEME_ELDY_BACKTITLE1) : (empty($user->conf->THEME_ELDY_BACKTITLE1) ? $colorbacktitle1 : $user->conf->THEME_ELDY_BACKTITLE1);
174$colorbacktabcard1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BACKTABCARD1) ? $colorbacktabcard1 : $conf->global->THEME_ELDY_BACKTABCARD1) : (empty($user->conf->THEME_ELDY_BACKTABCARD1) ? $colorbacktabcard1 : $user->conf->THEME_ELDY_BACKTABCARD1);
175$colorbacktabactive = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BACKTABACTIVE) ? $colorbacktabactive : $conf->global->THEME_ELDY_BACKTABACTIVE) : (empty($user->conf->THEME_ELDY_BACKTABACTIVE) ? $colorbacktabactive : $user->conf->THEME_ELDY_BACKTABACTIVE);
176$colorbacklineimpair1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEIMPAIR1) ? $colorbacklineimpair1 : $conf->global->THEME_ELDY_LINEIMPAIR1) : (empty($user->conf->THEME_ELDY_LINEIMPAIR1) ? $colorbacklineimpair1 : $user->conf->THEME_ELDY_LINEIMPAIR1);
177$colorbacklineimpair2 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEIMPAIR2) ? $colorbacklineimpair2 : $conf->global->THEME_ELDY_LINEIMPAIR2) : (empty($user->conf->THEME_ELDY_LINEIMPAIR2) ? $colorbacklineimpair2 : $user->conf->THEME_ELDY_LINEIMPAIR2);
178$colorbacklinepair1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEPAIR1) ? $colorbacklinepair1 : $conf->global->THEME_ELDY_LINEPAIR1) : (empty($user->conf->THEME_ELDY_LINEPAIR1) ? $colorbacklinepair1 : $user->conf->THEME_ELDY_LINEPAIR1);
179$colorbacklinepair2 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEPAIR2) ? $colorbacklinepair2 : $conf->global->THEME_ELDY_LINEPAIR2) : (empty($user->conf->THEME_ELDY_LINEPAIR2) ? $colorbacklinepair2 : $user->conf->THEME_ELDY_LINEPAIR2);
180$colorbacklinebreak = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_LINEBREAK) ? $colorbacklinebreak : $conf->global->THEME_ELDY_LINEBREAK) : (empty($user->conf->THEME_ELDY_LINEBREAK) ? $colorbacklinebreak : $user->conf->THEME_ELDY_LINEBREAK);
181$colorbackbody = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BACKBODY) ? $colorbackbody : $conf->global->THEME_ELDY_BACKBODY) : (empty($user->conf->THEME_ELDY_BACKBODY) ? $colorbackbody : $user->conf->THEME_ELDY_BACKBODY);
182$colortexttitlenotab = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TEXTTITLENOTAB) ? $colortexttitlenotab : $conf->global->THEME_ELDY_TEXTTITLENOTAB) : (empty($user->conf->THEME_ELDY_TEXTTITLENOTAB) ? $colortexttitlenotab : $user->conf->THEME_ELDY_TEXTTITLENOTAB);
183$colortexttitle = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TEXTTITLE) ? $colortexttitle : $conf->global->THEME_ELDY_TEXTTITLE) : (empty($user->conf->THEME_ELDY_TEXTTITLE) ? $colortexttitle : $user->conf->THEME_ELDY_TEXTTITLE);
184$colortexttitlelink = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TEXTTITLELINK) ? $colortexttitlelink : $conf->global->THEME_ELDY_TEXTTITLELINK) : (empty($user->conf->THEME_ELDY_TEXTTITLELINK) ? $colortexttitlelink : $user->conf->THEME_ELDY_TEXTTITLELINK);
185$colortext = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TEXT) ? $colortext : $conf->global->THEME_ELDY_TEXT) : (empty($user->conf->THEME_ELDY_TEXT) ? $colortext : $user->conf->THEME_ELDY_TEXT);
186$colortextlink = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TEXTLINK) ? $colortextlink : $conf->global->THEME_ELDY_TEXTLINK) : (empty($user->conf->THEME_ELDY_TEXTLINK) ? $colortextlink : $user->conf->THEME_ELDY_TEXTLINK);
187$butactionbg = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_BTNACTION) ? $butactionbg : $conf->global->THEME_ELDY_BTNACTION) : (empty($user->conf->THEME_ELDY_BTNACTION) ? $butactionbg : $user->conf->THEME_ELDY_BTNACTION);
188$textbutaction = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TEXTBTNACTION) ? $textbutaction : $conf->global->THEME_ELDY_TEXTBTNACTION) : (empty($user->conf->THEME_ELDY_TEXTBTNACTION) ? $textbutaction : $user->conf->THEME_ELDY_TEXTBTNACTION);
189$fontsize = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_FONT_SIZE1) ? $fontsize : $conf->global->THEME_ELDY_FONT_SIZE1) : (empty($user->conf->THEME_ELDY_FONT_SIZE1) ? $fontsize : $user->conf->THEME_ELDY_FONT_SIZE1);
190$fontsizesmaller = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_FONT_SIZE2) ? $fontsize : $conf->global->THEME_ELDY_FONT_SIZE2) : (empty($user->conf->THEME_ELDY_FONT_SIZE2) ? $fontsize : $user->conf->THEME_ELDY_FONT_SIZE2);
191
192// Hover color
193$colorbacklinepairhover = ((!isset($conf->global->THEME_ELDY_USE_HOVER) || (string) $conf->global->THEME_ELDY_USE_HOVER === '255,255,255') ? '' : ($conf->global->THEME_ELDY_USE_HOVER === '1' ? 'e6edf0' : $conf->global->THEME_ELDY_USE_HOVER));
194$colorbacklinepairchecked = ((!isset($conf->global->THEME_ELDY_USE_CHECKED) || (string) $conf->global->THEME_ELDY_USE_CHECKED === '255,255,255') ? '' : ($conf->global->THEME_ELDY_USE_CHECKED === '1' ? 'e6edf0' : $conf->global->THEME_ELDY_USE_CHECKED));
195if (!empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)) {
196 $colorbacklinepairhover = ((!isset($user->conf->THEME_ELDY_USE_HOVER) || $user->conf->THEME_ELDY_USE_HOVER === '0') ? '' : ($user->conf->THEME_ELDY_USE_HOVER === '1' ? 'e6edf0' : $user->conf->THEME_ELDY_USE_HOVER));
197 $colorbacklinepairchecked = ((!isset($user->conf->THEME_ELDY_USE_CHECKED) || $user->conf->THEME_ELDY_USE_CHECKED === '0') ? '' : ($user->conf->THEME_ELDY_USE_CHECKED === '1' ? 'e6edf0' : $user->conf->THEME_ELDY_USE_CHECKED));
198}
199
200
201// Set text color to black or white
202$colorbackhmenu1 = join(',', colorStringToArray($colorbackhmenu1)); // Normalize value to 'x,y,z'
203$tmppart = explode(',', $colorbackhmenu1);
204$tmpval = (!empty($tmppart[0]) ? $tmppart[0] : 0) + (!empty($tmppart[1]) ? $tmppart[1] : 0) + (!empty($tmppart[2]) ? $tmppart[2] : 0);
205if ($tmpval <= 460) {
206 $colortextbackhmenu = 'FFFFFF';
207} else {
208 $colortextbackhmenu = '000000';
209}
210
211$colorbackvmenu1 = join(',', colorStringToArray($colorbackvmenu1)); // Normalize value to 'x,y,z'
212$tmppart = explode(',', $colorbackvmenu1);
213$tmpval = (!empty($tmppart[0]) ? $tmppart[0] : 0) + (!empty($tmppart[1]) ? $tmppart[1] : 0) + (!empty($tmppart[2]) ? $tmppart[2] : 0);
214if ($tmpval <= 460) {
215 $colortextbackvmenu = 'FFFFFF';
216} else {
217 $colortextbackvmenu = '000000';
218}
219
220$colortopbordertitle1 = join(',', colorStringToArray($colortopbordertitle1)); // Normalize value to 'x,y,z'
221
222$colorbacktitle1 = join(',', colorStringToArray($colorbacktitle1)); // Normalize value to 'x,y,z'
223$tmppart = explode(',', $colorbacktitle1);
224if ($colortexttitle == '') {
225 $tmpval = (!empty($tmppart[0]) ? $tmppart[0] : 0) + (!empty($tmppart[1]) ? $tmppart[1] : 0) + (!empty($tmppart[2]) ? $tmppart[2] : 0);
226 if ($tmpval <= 460) {
227 $colortexttitle = 'FFFFFF'; $colorshadowtitle = '888888';
228 } else {
229 $colortexttitle = '000000'; $colorshadowtitle = 'FFFFFF';
230 }
231} else {
232 $colorshadowtitle = '888888';
233}
234
235$colorbacktabcard1 = join(',', colorStringToArray($colorbacktabcard1)); // Normalize value to 'x,y,z'
236$tmppart = explode(',', $colorbacktabcard1);
237$tmpval = (!empty($tmppart[0]) ? $tmppart[0] : 0) + (!empty($tmppart[1]) ? $tmppart[1] : 0) + (!empty($tmppart[2]) ? $tmppart[2] : 0);
238if ($tmpval <= 460) {
239 $colortextbacktab = 'FFFFFF';
240} else {
241 $colortextbacktab = '000000';
242}
243
244
245// Format color value to match expected format (may be 'FFFFFF' or '255,255,255')
246$colorbackhmenu1 = join(',', colorStringToArray($colorbackhmenu1));
247$colorbackvmenu1 = join(',', colorStringToArray($colorbackvmenu1));
248$colorbacktitle1 = join(',', colorStringToArray($colorbacktitle1));
249$colorbacktabcard1 = join(',', colorStringToArray($colorbacktabcard1));
250$colorbacktabactive = join(',', colorStringToArray($colorbacktabactive));
251$colorbacklineimpair1 = join(',', colorStringToArray($colorbacklineimpair1));
252$colorbacklineimpair2 = join(',', colorStringToArray($colorbacklineimpair2));
253$colorbacklinepair1 = join(',', colorStringToArray($colorbacklinepair1));
254$colorbacklinepair2 = join(',', colorStringToArray($colorbacklinepair2));
255if ($colorbacklinepairhover != '') {
256 $colorbacklinepairhover = join(',', colorStringToArray($colorbacklinepairhover));
257}
258if ($colorbacklinepairchecked != '') {
259 $colorbacklinepairchecked = join(',', colorStringToArray($colorbacklinepairchecked));
260}
261$colorbackbody = join(',', colorStringToArray($colorbackbody));
262$colortexttitlenotab = join(',', colorStringToArray($colortexttitlenotab));
263$colortexttitle = join(',', colorStringToArray($colortexttitle));
264$colortext = join(',', colorStringToArray($colortext));
265$colortextlink = join(',', colorStringToArray($colortextlink));
266
267$nbtopmenuentries = $menumanager->showmenu('topnb');
268
269if ($conf->browser->layout == 'phone') {
270 $nbtopmenuentries = max($nbtopmenuentries, 10);
271}
272
273
274$minwidthtmenu = 66; /* minimum width for one top menu entry */
275$heightmenu = 50; /* height of top menu, part with image */
276$heightmenu2 = 49; /* height of top menu, part with login */
277$disableimages = 0;
278$maxwidthloginblock = 180;
279if (getDolGlobalInt('THEME_TOPMENU_DISABLE_IMAGE') == 1) {
280 $disableimages = 1; $maxwidthloginblock = $maxwidthloginblock + 50; $minwidthtmenu = 0;
281}
282
283if (!empty($conf->global->MAIN_USE_TOP_MENU_QUICKADD_DROPDOWN)) {
284 $maxwidthloginblock = $maxwidthloginblock + 55;
285}
286if (!empty($conf->global->MAIN_USE_TOP_MENU_SEARCH_DROPDOWN)) {
287 $maxwidthloginblock = $maxwidthloginblock + 55;
288}
289if (!empty($conf->bookmark->enabled)) {
290 $maxwidthloginblock = $maxwidthloginblock + 55;
291}
292
293
294print '/*'."\n";
295print 'colorbackbody='.$colorbackbody."\n";
296print 'colorbackvmenu1='.$colorbackvmenu1."\n";
297print 'colorbackhmenu1='.$colorbackhmenu1."\n";
298print 'colorbacktitle1='.$colorbacktitle1."\n";
299print 'colorbacklineimpair1='.$colorbacklineimpair1."\n";
300print 'colorbacklineimpair2='.$colorbacklineimpair2."\n";
301print 'colorbacklinepair1='.$colorbacklinepair1."\n";
302print 'colorbacklinepair2='.$colorbacklinepair2."\n";
303print 'colorbacklinepairhover='.$colorbacklinepairhover."\n";
304print 'colorbacklinepairchecked='.$colorbacklinepairchecked."\n";
305print '$colortexttitlenotab='.$colortexttitlenotab."\n";
306print '$colortexttitle='.$colortexttitle."\n";
307print '$colortext='.$colortext."\n";
308print '$colortextlink='.$colortextlink."\n";
309print '$colortextbackhmenu='.$colortextbackhmenu."\n";
310print '$colortextbackvmenu='.$colortextbackvmenu."\n";
311print 'dol_hide_topmenu='.$dol_hide_topmenu."\n";
312print 'dol_hide_leftmenu='.$dol_hide_leftmenu."\n";
313print 'dol_optimize_smallscreen='.$dol_optimize_smallscreen."\n";
314print 'dol_no_mouse_hover='.$dol_no_mouse_hover."\n";
315print 'dol_screenwidth='.(empty($_SESSION['dol_screenwidth']) ? '' : $_SESSION['dol_screenwidth'])."\n";
316print 'dol_screenheight='.(empty($_SESSION['dol_screenheight']) ? '' : $_SESSION['dol_screenheight'])."\n";
317print 'fontsize='.$fontsize."\n";
318print 'nbtopmenuentries='.$nbtopmenuentries."\n";
319print 'fontsizesmaller='.$fontsizesmaller."\n";
320print 'topMenuFontSize='.$topMenuFontSize."\n";
321print 'toolTipBgColor='.$toolTipBgColor."\n";
322print 'toolTipFontColor='.$toolTipFontColor."\n";
323print 'conf->global->THEME_SATURATE_RATIO='.(empty($conf->global->THEME_SATURATE_RATIO) ? '' : $conf->global->THEME_SATURATE_RATIO)." (must be between 0 and 1)\n";
324print '*/'."\n";
325
326
327// Include the global.inc.php that include the badges, btn, info-box, dropdown, progress...
328require __DIR__.'/global.inc.php';
329
330
331if (is_object($db)) {
332 $db->close();
333}
Class to manage menu Auguria.
loadMenu($forcemainmenu='', $forceleftmenu='')
Load this->tabMenu.
colorStringToArray($stringcolor, $colorifnotfound=array(88, 88, 88))
Convert a string RGB value ('FFFFFF', '255,255,255') into an array RGB array(255,255,...
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
conf($dolibarr_main_document_root)
Load conf file (file must exists)
Definition inc.php:400
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.