diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php index f1778d8b76e..b6cb6c33ac6 100644 --- a/htdocs/comm/mailing/fiche.php +++ b/htdocs/comm/mailing/fiche.php @@ -613,7 +613,7 @@ if ($_GET["action"] == 'create') print '
| '.$langs->trans("MailTopic").' | |||||
| '.$langs->trans("BackgroundColorByDefault").' | '; - $htmlother->select_color($_POST['bgcolor'],'bgcolor','new_mailing'); + $htmlother->select_color($_POST['bgcolor'],'bgcolor','new_mailing',0); print ' | ||||
| '.$langs->trans("MailMessage").' '; print ' '.$langs->trans("CommonSubstitutions").': '; @@ -986,7 +986,7 @@ else //} print ' '.$langs->trans("BackgroundColorByDefault").' | ';
- $htmlother->select_color($mil->bgcolor,'bgcolor','edit_mailing');
+ $htmlother->select_color($mil->bgcolor,'bgcolor','edit_mailing',0);
print ' | '.$langs->trans("MailMessage").' | '; print ' '.$langs->trans("CommonSubstitutions").': '; diff --git a/htdocs/core/class/html.formadmin.class.php b/htdocs/core/class/html.formadmin.class.php index 276b94c328f..a34729304a0 100644 --- a/htdocs/core/class/html.formadmin.class.php +++ b/htdocs/core/class/html.formadmin.class.php @@ -258,6 +258,7 @@ class FormAdmin * \param selected Color pre-selected * \param htmlname Name of html select zone */ +/* function select_colors($selected='', $htmlname, $arrayofcolors='', $showcolorbox=1) { global $langs,$conf; @@ -287,6 +288,7 @@ class FormAdmin print ' | ||
| '; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ' | ';
- print ' |
| '; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ' | ';
+ print ' | ';
+
+ if ($showcolorbox)
+ {
+ print '';
+ print '';
+ print ' | ';
+ }
+
+ print '
| '; + + print ''; + + if ($showcolorbox) + { + print ' | ';
+ print '';
+ print ' |
| ||||||||