37 global $langs, $conf, $user, $db;
39 $langs->load(
"users");
43 $canreadperms = ($user->admin || ($user->id != $object->id && $user->hasRight(
'user',
'user_advance',
'readperms')) || ($user->id == $object->id && $user->hasRight(
'user',
'self_advance',
'readperms')));
49 $head[$h][0] = DOL_URL_ROOT.
'/user/card.php?id='.$object->id;
50 $head[$h][1] = $langs->trans(
"User");
51 $head[$h][2] =
'user';
57 $head[$h][0] = DOL_URL_ROOT.
'/user/ldap.php?id='.$object->id;
58 $head[$h][1] = $langs->trans(
"LDAPCard");
59 $head[$h][2] =
'ldap';
64 $head[$h][0] = DOL_URL_ROOT.
'/user/perms.php?id='.$object->id;
65 $head[$h][1] = $langs->trans(
"Rights").(!
getDolGlobalString(
'MAIN_OPTIMIZEFORTEXTBROWSER') ?
'<span class="badge marginleftonlyshort">'.($object->nb_rights).
'</span>' :
'');
66 $head[$h][2] =
'rights';
70 $head[$h][0] = DOL_URL_ROOT.
'/user/param_ihm.php?id='.$object->id;
71 $head[$h][1] = $langs->trans(
"UserGUISetup");
72 $head[$h][2] =
'guisetup';
75 if (isModEnabled(
'agenda')) {
77 $conf->global->AGENDA_EXT_NB = 5;
79 $MAXAGENDA = $conf->global->AGENDA_EXT_NB;
83 while ($i <= $MAXAGENDA) {
85 $name =
'AGENDA_EXT_NAME_'.$object->id.
'_'.$key;
86 $src =
'AGENDA_EXT_SRC_'.$object->id.
'_'.$key;
87 $offsettz =
'AGENDA_EXT_OFFSETTZ_'.$object->id.
'_'.$key;
88 $color =
'AGENDA_EXT_COLOR_'.$object->id.
'_'.$key;
91 if (!empty($object->conf->$name)) {
96 $head[$h][0] = DOL_URL_ROOT.
'/user/agenda_extsites.php?id='.$object->id;
97 $head[$h][1] = $langs->trans(
"ExtSites").($nbagenda ?
'<span class="badge marginleftonlyshort">'.$nbagenda.
'</span>' :
'');
98 $head[$h][2] =
'extsites';
102 if (isModEnabled(
'clicktodial')) {
103 $head[$h][0] = DOL_URL_ROOT.
'/user/clicktodial.php?id='.$object->id;
104 $head[$h][1] = $langs->trans(
"ClickToDial");
105 $head[$h][2] =
'clicktodial';
110 if ($user->socid == 0 && isModEnabled(
'notification')) {
112 $sql =
"SELECT COUNT(n.rowid) as nb";
113 $sql .=
" FROM ".MAIN_DB_PREFIX.
"notify_def as n";
114 $sql .=
" WHERE fk_user = ".((int) $object->id);
115 $resql = $db->query($sql);
117 $num = $db->num_rows($resql);
120 $obj = $db->fetch_object($resql);
128 $langs->load(
"mails");
129 $head[$h][0] = DOL_URL_ROOT.
'/user/notify/card.php?id='.$object->id;
130 $head[$h][1] = $langs->trans(
"NotificationsAuto");
132 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbNote.
'</span>';
134 $head[$h][2] =
'notify';
144 if ((isModEnabled(
'salaries') && $user->hasRight(
'salaries',
'read'))
145 || (isModEnabled(
'hrm') && $user->hasRight(
'hrm',
'employee',
'read'))
146 || (isModEnabled(
'expensereport') && $user->hasRight(
'expensereport',
'lire') && ($user->id == $object->id || $user->hasRight(
'expensereport',
'readall')))
147 || (isModEnabled(
'holiday') && $user->hasRight(
'holiday',
'read') && ($user->id == $object->id || $user->hasRight(
'holiday',
'readall')))
150 $head[$h][0] = DOL_URL_ROOT.
'/user/bank.php?id='.$object->id;
151 $head[$h][1] = $langs->trans(
"HRAndBank");
152 $head[$h][2] =
'bank';
157 if (empty($user->socid)) {
160 if (!empty($object->note_public)) {
163 if (!empty($object->note_private)) {
166 $head[$h][0] = DOL_URL_ROOT.
'/user/note.php?id='.$object->id;
167 $head[$h][1] = $langs->trans(
"Note");
169 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbNote.
'</span>';
171 $head[$h][2] =
'note';
175 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
176 require_once DOL_DOCUMENT_ROOT.
'/core/class/link.class.php';
177 $upload_dir = $conf->user->dir_output.
"/".$object->id;
178 $nbFiles = count(
dol_dir_list($upload_dir,
'files', 0,
'',
'(\.meta|_preview.*\.png)$'));
179 $nbLinks =
Link::count($db, $object->element, $object->id);
180 $head[$h][0] = DOL_URL_ROOT.
'/user/document.php?userid='.$object->id;
181 $head[$h][1] = $langs->trans(
"Documents");
182 if (($nbFiles + $nbLinks) > 0) {
183 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.($nbFiles + $nbLinks).
'</span>';
185 $head[$h][2] =
'document';
188 $head[$h][0] = DOL_URL_ROOT.
'/user/info.php?id='.$object->id;
189 $head[$h][1] = $langs->trans(
"Info");
190 $head[$h][2] =
'info';
313function showSkins($fuser, $edit = 0, $foruserprofile =
false)
315 global $conf, $langs, $db, $form;
317 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formother.class.php';
321 $dirthemes = array(
'/theme');
322 if (!empty($conf->modules_parts[
'theme'])) {
323 foreach ($conf->modules_parts[
'theme'] as $reldir) {
324 $dirthemes = array_merge($dirthemes, (array) ($reldir.
'theme'));
327 $dirthemes = array_unique($dirthemes);
330 $selected_theme =
'';
331 if (empty($foruserprofile)) {
332 $selected_theme = $conf->global->MAIN_THEME;
334 $selected_theme = ((is_object($fuser) && !empty($fuser->conf->MAIN_THEME)) ? $fuser->conf->MAIN_THEME :
'');
338 if (empty($foruserprofile)) {
341 $hoverdisabled = (is_object($fuser) ? (empty($fuser->conf->THEME_ELDY_USE_HOVER) || $fuser->conf->THEME_ELDY_USE_HOVER ==
'0') :
'');
344 $checkeddisabled =
'';
345 if (empty($foruserprofile)) {
348 $checkeddisabled = (is_object($fuser) ? (empty($fuser->conf->THEME_ELDY_USE_CHECKED) || $fuser->conf->THEME_ELDY_USE_CHECKED ==
'0') :
'');
352 if ($foruserprofile) {
357 print
'<div class="div-table-responsive-no-min">';
358 print
'<table class="noborder centpercent'.($edit ?
' editmodeforshowskin' :
'').
'">';
361 if ($foruserprofile) {
362 print
'<tr class="liste_titre"><th class="titlefieldmiddle">'.$langs->trans(
"Parameter").
'</th><th>'.$langs->trans(
"DefaultValue").
'</th>';
363 print
'<th colspan="2"> </th>';
367 print
'<td>'.$langs->trans(
"DefaultSkin").
'</td>';
369 print
'<td class="nowrap left"><input id="check_MAIN_THEME" name="check_MAIN_THEME"'.($edit ?
'' :
' disabled').
' type="checkbox" '.($selected_theme ?
" checked" :
"").
'> <label for="check_MAIN_THEME">'.$langs->trans(
"UsePersonalValue").
'</label></td>';
370 print
'<td> </td>';
373 $dirthemestring =
'';
374 foreach ($dirthemes as $dirtheme) {
375 $dirthemestring .=
'"'.$dirtheme.
'" ';
378 print
'<tr class="liste_titre"><th class="titlefieldmiddle">';
379 print $form->textwithpicto($langs->trans(
"DefaultSkin"), $langs->trans(
"ThemeDir").
' : '.$dirthemestring);
381 print
'<th class="right">';
382 $url =
'https://www.dolistore.com/9-skins';
383 print
'<a href="'.$url.
'" target="_blank" rel="noopener noreferrer external">';
384 print $langs->trans(
'DownloadMoreSkins');
385 print
img_picto(
'',
'globe',
'class="paddingleft"');
390 print
'<tr><td colspan="'.$colspan.
'" class="center">';
393 $langs->load(
"errors");
394 print $langs->trans(
"WarningThemeForcedTo", $conf->global->MAIN_FORCETHEME);
397 print
'<table class="nobordernopadding centpercent"><tr><td><div class="center">';
400 foreach ($dirthemes as $dir) {
405 if (is_dir($dirtheme)) {
406 $handle = opendir($dirtheme);
407 if (is_resource($handle)) {
408 while (($subdir = readdir($handle)) !==
false) {
409 if (is_dir($dirtheme.
"/".$subdir) && substr($subdir, 0, 1) !=
'.'
410 && substr($subdir, 0, 3) !=
'CVS' && !preg_match(
'/common|phones/i', $subdir)) {
412 if (
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2 && preg_match(
'/_dev$/i', $subdir)) {
415 if (
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1 && preg_match(
'/_exp$/i', $subdir)) {
419 print
'<div class="inline-block" style="margin-top: 10px; margin-bottom: 10px; margin-right: 20px; margin-left: 20px;">';
420 $file = $dirtheme.
"/".$subdir.
"/thumb.png";
421 $url = $urltheme.
"/".$subdir.
"/thumb.png";
422 if (!file_exists($file)) {
423 $url = DOL_URL_ROOT.
'/public/theme/common/nophoto.png';
425 print
'<a href="'.$_SERVER[
"PHP_SELF"].($edit ?
'?action=edit&token='.newToken().
'&mode=template&theme=' :
'?theme=').$subdir.(GETPOST(
'optioncss',
'alpha', 1) ?
'&optioncss='.GETPOST(
'optioncss',
'alpha', 1) :
'').($fuser ?
'&id='.$fuser->id :
'').
'" style="font-weight: normal;" alt="'.$langs->trans(
"Preview").
'">';
426 if ($subdir == $conf->global->MAIN_THEME) {
427 $title = $langs->trans(
"ThemeCurrentlyActive");
429 $title = $langs->trans(
"ShowPreview");
431 print
'<img class="img-skinthumb shadow" src="'.$url.
'" alt="'.
dol_escape_htmltag($title).
'" title="'.
dol_escape_htmltag($title).
'" style="border: none; margin-bottom: 5px;">';
433 if ($subdir == $selected_theme) {
434 print
'<input '.($edit ?
'' :
'disabled').
' type="radio" class="themethumbs" style="border: 0px;" id="main_theme'.$subdir.
'" checked name="main_theme" value="'.$subdir.
'"><label for="main_theme'.$subdir.
'"> <b>'.$subdir.
'</b></label>';
436 print
'<input '.($edit ?
'' :
'disabled').
' type="radio" class="themethumbs" style="border: 0px;" id="main_theme'.$subdir.
'" name="main_theme" value="'.$subdir.
'"><label for="main_theme'.$subdir.
'"> '.$subdir.
'</label>';
447 print
'</div></td></tr></table>';
452 $colorbackhmenu1 =
'';
453 $colorbackvmenu1 =
'';
454 $colortexttitlenotab =
'';
455 $colortexttitlelink =
'';
456 $colorbacktitle1 =
'';
457 $colortexttitle =
'';
458 $colorbacklineimpair1 =
'';
459 $colorbacklineimpair2 =
'';
460 $colorbacklinepair1 =
'';
461 $colorbacklinepair2 =
'';
463 $colorbacklinepairhover =
'';
464 $colorbacklinepairhover =
'';
465 $colorbacklinepairchecked =
'';
469 if (file_exists(DOL_DOCUMENT_ROOT.
'/theme/'.$conf->theme.
'/theme_vars.inc.php')) {
470 include DOL_DOCUMENT_ROOT.
'/theme/'.$conf->theme.
'/theme_vars.inc.php';
474 if ($foruserprofile) {
477 $listofdarkmodes = array(
478 '0' => $langs->trans(
"AlwaysDisabled"),
479 '1' => $langs->trans(
"AccordingToBrowser"),
480 '2' => $langs->trans(
"AlwaysEnabled")
482 print
'<tr class="oddeven">';
483 print
'<td>'.$langs->trans(
"DarkThemeMode").
'</td>';
484 print
'<td colspan="'.($colspan - 1).
'">';
486 print $form->selectarray(
'THEME_DARKMODEENABLED', $listofdarkmodes, isset($conf->global->THEME_DARKMODEENABLED) ? $conf->global->THEME_DARKMODEENABLED : 0);
488 print $listofdarkmodes[isset($conf->global->THEME_DARKMODEENABLED) ? $conf->global->THEME_DARKMODEENABLED : 0];
490 print $form->textwithpicto(
'', $langs->trans(
"DoesNotWorkWithAllThemes"));
496 if ($foruserprofile) {
518 $listoftopmenumodes = array(
519 '0' => $langs->transnoentitiesnoconv(
"IconAndText"),
520 '1' => $langs->transnoentitiesnoconv(
"TextOnly"),
521 '2' => $langs->transnoentitiesnoconv(
"IconOnlyAllTextsOnHover"),
522 '3' => $langs->transnoentitiesnoconv(
"IconOnlyTextOnHover"),
523 '4' => $langs->transnoentitiesnoconv(
"IconOnly"),
525 print
'<tr class="oddeven">';
526 print
'<td>'.$langs->trans(
"TopMenuDisableImages").
'</td>';
527 print
'<td colspan="'.($colspan - 1).
'">';
530 print $form->selectarray(
'THEME_TOPMENU_DISABLE_IMAGE', $listoftopmenumodes, isset($conf->global->THEME_TOPMENU_DISABLE_IMAGE) ? $conf->global->THEME_TOPMENU_DISABLE_IMAGE : 0, 0, 0, 0,
'', 0, 0, 0,
'',
'widthcentpercentminusx maxwidth500');
535 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes"));
541 if ($foruserprofile) {
545 print
'<tr class="oddeven"><td class="titlefieldmiddle">'.$langs->trans(
"EnableShowLogo").
'</td>';
546 print
'<td colspan="'.($colspan - 1).
'" class="valignmiddle">';
548 print ajax_constantonoff(
'MAIN_SHOW_LOGO', array(),
null, 0, 0, 1);
551 print
yn($conf->global->MAIN_SHOW_LOGO);
553 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes"), 1,
'help',
'inline-block');
562 if ($foruserprofile) {
564 print
'<tr class="oddeven">';
565 print
'<td>'.$langs->trans(
"UseBorderOnTable").
'</td>';
566 print
'<td colspan="'.($colspan - 1).
'" class="valignmiddle">';
568 print ajax_constantonoff(
'THEME_ELDY_USEBORDERONTABLE', array(),
null, 0, 0, 1);
571 print
yn($conf->global->THEME_ELDY_USEBORDERONTABLE);
573 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes"), 1,
'help',
'inline-block');
602 if ($foruserprofile) {
625 print
'<tr class="oddeven">';
626 print
'<td>'.$langs->trans(
"BackgroundColor").
'</td>';
627 print
'<td colspan="'.($colspan - 1).
'">';
634 print
'<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.
'" value="'.$color.
'">';
636 print $langs->trans(
"Default");
639 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong>'.$default.
'</strong> ';
640 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
646 if ($foruserprofile) {
670 print
'<tr class="oddeven">';
671 print
'<td>'.$langs->trans(
"TopMenuBackgroundColor").
'</td>';
672 print
'<td colspan="'.($colspan - 1).
'">';
674 print $formother->selectColor(
colorArrayToHex(
colorStringToArray((
getDolGlobalString(
'THEME_ELDY_TOPMENU_BACK1') ? $conf->global->THEME_ELDY_TOPMENU_BACK1 :
''), array()),
''),
'THEME_ELDY_TOPMENU_BACK1',
'', 1,
'',
'',
'colorbackhmenu1', $default).
' ';
678 print
'<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.
'" value="'.$color.
'">';
680 print $langs->trans(
"Default");
683 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong>'.$default.
'</strong> ';
684 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
690 if ($foruserprofile) {
714 print
'<tr class="oddeven">';
715 print
'<td>'.$langs->trans(
"LeftMenuBackgroundColor").
'</td>';
716 print
'<td colspan="'.($colspan - 1).
'">';
718 print $formother->selectColor(
colorArrayToHex(
colorStringToArray((
getDolGlobalString(
'THEME_ELDY_VERMENU_BACK1') ? $conf->global->THEME_ELDY_VERMENU_BACK1 :
''), array()),
''),
'THEME_ELDY_VERMENU_BACK1',
'', 1,
'',
'',
'colorbackvmenu1', $default).
' ';
722 print
'<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.
'" value="'.$color.
'">';
724 print $langs->trans(
"Default");
727 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong>'.$default.
'</strong> ';
728 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
734 if ($foruserprofile) {
738 print
'<tr class="oddeven">';
739 print
'<td>'.$langs->trans(
"TextTitleColor").
'</td>';
740 print
'<td colspan="'.($colspan - 1).
'">';
742 print $formother->selectColor(
colorArrayToHex(
colorStringToArray((
getDolGlobalString(
'THEME_ELDY_TEXTTITLENOTAB') ? $conf->global->THEME_ELDY_TEXTTITLENOTAB :
''), array()),
''),
'THEME_ELDY_TEXTTITLENOTAB',
'', 1,
'',
'',
'colortexttitlenotab', $default).
' ';
744 print $formother->showColor($conf->global->THEME_ELDY_TEXTTITLENOTAB, $langs->trans(
"Default"));
746 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong><span style="color: #'.$default.
'">'.$default.
'</span></strong> ';
747 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
754 if ($foruserprofile) {
758 print
'<tr class="oddeven">';
759 print
'<td>'.$langs->trans(
"BackgroundTableTitleColor").
'</td>';
760 print
'<td colspan="'.($colspan - 1).
'">';
764 print $formother->showColor($conf->global->THEME_ELDY_BACKTITLE1, $langs->trans(
"Default"));
766 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong>'.$default.
'</strong> ';
767 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
774 if ($foruserprofile) {
778 print
'<tr class="oddeven">';
779 print
'<td>'.$langs->trans(
"BackgroundTableTitleTextColor").
'</td>';
780 print
'<td colspan="'.($colspan - 1).
'">';
784 print $formother->showColor($conf->global->THEME_ELDY_TEXTTITLE, $langs->trans(
"Default"));
786 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong><span style="color: #'.$default.
'">'.$default.
'</span></strong> ';
787 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
794 if ($foruserprofile) {
798 print
'<tr class="oddeven">';
799 print
'<td>'.$langs->trans(
"BackgroundTableTitleTextlinkColor").
'</td>';
800 print
'<td colspan="'.($colspan - 1).
'">';
802 print $formother->selectColor(
colorArrayToHex(
colorStringToArray((
getDolGlobalString(
'THEME_ELDY_TEXTTITLELINK') ? $conf->global->THEME_ELDY_TEXTTITLELINK :
''), array()),
''),
'THEME_ELDY_TEXTTITLELINK',
'', 1,
'',
'',
'colortexttitlelink', $default).
' ';
804 print $formother->showColor($conf->global->THEME_ELDY_TEXTTITLELINK, $langs->trans(
"Default"));
806 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong><span style="color: #'.$default.
'">'.$default.
'</span></strong> ';
807 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
815 if ($foruserprofile) {
819 print
'<tr class="oddeven">';
820 print
'<td>'.$langs->trans(
"BackgroundTableLineOddColor").
'</td>';
821 print
'<td colspan="'.($colspan - 1).
'">';
823 print $formother->selectColor(
colorArrayToHex(
colorStringToArray((
getDolGlobalString(
'THEME_ELDY_LINEIMPAIR1') ? $conf->global->THEME_ELDY_LINEIMPAIR1 :
''), array()),
''),
'THEME_ELDY_LINEIMPAIR1',
'', 1,
'',
'',
'colorbacklineimpair2', $default).
' ';
827 print
'<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.
'" value="'.$color.
'">';
829 print $langs->trans(
"Default");
832 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong>'.$default.
'</strong> ';
833 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
839 if ($foruserprofile) {
843 print
'<tr class="oddeven">';
844 print
'<td>'.$langs->trans(
"BackgroundTableLineEvenColor").
'</td>';
845 print
'<td colspan="'.($colspan - 1).
'">';
851 print
'<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.
'" value="'.$color.
'">';
853 print $langs->trans(
"Default");
856 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong>'.$default.
'</strong> ';
857 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
863 if ($foruserprofile) {
887 print
'<tr class="oddeven">';
888 print
'<td>'.$langs->trans(
"LinkColor").
'</td>';
889 print
'<td colspan="'.($colspan - 1).
'">';
895 print
'<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.
'" value="'.$color.
'">';
899 print $langs->trans(
"Default");
902 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong><span style="color: #'.$default.
'">'.$default.
'</span></strong> ';
903 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
909 if ($foruserprofile) {
923 print
'<tr class="oddeven">';
924 print
'<td>'.$langs->trans(
"HighlightLinesColor").
'</td>';
925 print
'<td colspan="'.($colspan - 1).
'">';
934 print $formother->selectColor($color,
'THEME_ELDY_USE_HOVER',
'', 1,
'',
'',
'colorbacklinepairhover', $default).
' ';
943 print
'<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.
'" value="'.$color.
'">';
945 print $langs->trans(
"Default");
948 print $langs->trans(
"Default");
951 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong>'.$default.
'</strong> ';
952 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
957 if ($foruserprofile) {
971 print
'<tr class="oddeven">';
972 print
'<td>'.$langs->trans(
"HighlightLinesChecked").
'</td>';
973 print
'<td colspan="'.($colspan - 1).
'">';
982 print $formother->selectColor($color,
'THEME_ELDY_USE_CHECKED',
'', 1,
'',
'',
'colorbacklinepairchecked', $default).
' ';
990 if ($color !=
'e6edf0') {
991 print
'<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.
'" value="'.$color.
'">';
993 print $langs->trans(
"Default");
996 print $langs->trans(
"Default");
999 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong>'.$default.
'</strong> ';
1000 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
1006 if ($foruserprofile) {
1030 print
'<tr class="oddeven">';
1031 print
'<td>'.$langs->trans(
"BtnActionColor").
'</td>';
1032 print
'<td colspan="'.($colspan - 1).
'">';
1038 print
'<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.
'" value="'.$color.
'">';
1042 print $langs->trans(
"Default");
1045 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong><span style="color: #'.$default.
'">'.$default.
'</span></strong> ';
1046 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
1052 if ($foruserprofile) {
1076 print
'<tr class="oddeven">';
1077 print
'<td>'.$langs->trans(
"TextBtnActionColor").
'</td>';
1078 print
'<td colspan="'.($colspan - 1).
'">';
1080 print $formother->selectColor(
colorArrayToHex(
colorStringToArray((
getDolGlobalString(
'THEME_ELDY_TEXTBTNACTION') ? $conf->global->THEME_ELDY_TEXTBTNACTION :
''), array()),
''),
'THEME_ELDY_TEXTBTNACTION',
'', 1,
'',
'',
'textbutaction', $default).
' ';
1084 print
'<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.
'" value="'.$color.
'">';
1088 print $langs->trans(
"Default");
1091 print
' <span class="nowraponall opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong><span style="color: #000">'.$default.
'</span></strong> ';
1092 print $form->textwithpicto(
'', $langs->trans(
"NotSupportedByAllThemes").
', '.$langs->trans(
"PressF5AfterChangingThis"));
1098 if ($foruserprofile) {
1100 $default = $langs->trans(
'No');
1101 print
'<tr class="oddeven">';
1102 print
'<td>'.$langs->trans(
"MAIN_OPTIMIZEFORTEXTBROWSER").
'</td>';
1103 print
'<td colspan="'.($colspan - 1).
'">';
1106 print $form->selectyesno(
'MAIN_OPTIMIZEFORTEXTBROWSER', (isset($fuser->conf->MAIN_OPTIMIZEFORTEXTBROWSER) ? $fuser->conf->MAIN_OPTIMIZEFORTEXTBROWSER : 0), 1);
1109 print
yn(isset($fuser->conf->MAIN_OPTIMIZEFORTEXTBROWSER) ? $fuser->conf->MAIN_OPTIMIZEFORTEXTBROWSER : 0);
1112 if (empty($fuser->conf->MAIN_OPTIMIZEFORTEXTBROWSER)) {
1113 print
' ('.$langs->trans(
"ForcedByGlobalSetup").
')';
1117 print
' <span class="opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong>'.$default.
'</strong> ';
1118 print $form->textwithpicto(
'', $langs->trans(
"MAIN_OPTIMIZEFORTEXTBROWSERDesc"));
1143 if ($foruserprofile) {
1145 $default = $langs->trans(
'No');
1146 print
'<tr class="oddeven">';
1147 print
'<td>'.$langs->trans(
"MAIN_OPTIMIZEFORCOLORBLIND").
'</td>';
1148 print
'<td colspan="'.($colspan - 1).
'">';
1150 $colorBlindOptions = array(
1151 0 => $langs->trans(
'No'),
1152 'flashy' => $langs->trans(
'Flashy'),
1153 'protanopia' => $langs->trans(
'Protanopia'),
1154 'deuteranopes' => $langs->trans(
'Deuteranopes'),
1155 'tritanopes' => $langs->trans(
'Tritanopes'),
1159 print $form->selectArray(
'MAIN_OPTIMIZEFORCOLORBLIND', $colorBlindOptions, (isset($fuser->conf->MAIN_OPTIMIZEFORCOLORBLIND) ? $fuser->conf->MAIN_OPTIMIZEFORCOLORBLIND : 0), 0);
1161 if (!empty($fuser->conf->MAIN_OPTIMIZEFORCOLORBLIND) && isset($colorBlindOptions[$fuser->conf->MAIN_OPTIMIZEFORCOLORBLIND])) {
1162 print $colorBlindOptions[$fuser->conf->MAIN_OPTIMIZEFORCOLORBLIND];
1167 print
' <span class="opacitymedium">'.$langs->trans(
"Default").
'</span>: <strong>'.$default.
'</strong> ';
1168 print $form->textwithpicto(
'', $langs->trans(
"MAIN_OPTIMIZEFORCOLORBLINDDesc"));