diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 2d529cd55d6..13893fe42ee 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -8123,13 +8123,14 @@ class Form /** - * Return HTML code to output a barcode + * Return HTML code to output a barcode * - * @param Object $object Object containing data to retrieve file name - * @param int $width Width of photo - * @return string HTML code to output barcode + * @param Object $object Object containing data to retrieve file name + * @param int $width Width of photo + * @param string $morecss More CSS on img of barcode + * @return string HTML code to output barcode */ - public function showbarcode(&$object, $width = 100) + public function showbarcode(&$object, $width = 100, $morecss = '') { global $conf; @@ -8150,7 +8151,7 @@ class Form // Barcode image $url = DOL_URL_ROOT.'/viewimage.php?modulepart=barcode&generator='.urlencode($object->barcode_type_coder).'&code='.urlencode($object->barcode).'&encoding='.urlencode($object->barcode_type_code); $out = ''; - $out .= ''; + $out .= ''; return $out; } diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php index 0380b26a392..992efb79bbf 100644 --- a/htdocs/core/class/html.formactions.class.php +++ b/htdocs/core/class/html.formactions.class.php @@ -304,7 +304,7 @@ class FormActions print ''.$label.''; // Date - print ''.dol_print_date($actioncomm->datep, 'dayhour', 'tzuserrel'); + print ''.dol_print_date($actioncomm->datep, 'dayhour', 'tzuserrel'); if ($actioncomm->datef) { $tmpa = dol_getdate($actioncomm->datep); $tmpb = dol_getdate($actioncomm->datef); diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 5e25babbf1d..8d171a048b0 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1923,7 +1923,7 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi } if ($showbarcode) { - $morehtmlleft .= '
'.$form->showbarcode($object).'
'; + $morehtmlleft .= '
'.$form->showbarcode($object, 100, 'photoref').'
'; } if ($object->element == 'societe') { diff --git a/htdocs/societe/agenda.php b/htdocs/societe/agenda.php index 8789427c64b..ec59482b345 100644 --- a/htdocs/societe/agenda.php +++ b/htdocs/societe/agenda.php @@ -166,12 +166,12 @@ if ($socid > 0) { if (!empty($conf->agenda->enabled) && (!empty($user->rights->agenda->myactions->read) || !empty($user->rights->agenda->allactions->read))) { print '
'; - $param = '&socid='.$socid; + $param = '&socid='.urlencode($socid); if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) { - $param .= '&contextpage='.$contextpage; + $param .= '&contextpage='.urlencode($contextpage); } if ($limit > 0 && $limit != $conf->liste_limit) { - $param .= '&limit='.$limit; + $param .= '&limit='.urlencode($limit); } print load_fiche_titre($langs->trans("ActionsOnCompany"), $newcardbutton, ''); diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 3493ccc3f00..4973a328023 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -2844,10 +2844,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { if (empty($user->socid)) { if (!empty($object->email) || $at_least_one_email_contact) { $langs->load("mails"); - print ''.$langs->trans('SendMail').''; + print ''.$langs->trans('SendMail').''."\n"; } else { $langs->load("mails"); - print ''.$langs->trans('SendMail').''; + print ''.$langs->trans('SendMail').''."\n"; } } @@ -2859,12 +2859,12 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { $adh = new Adherent($db); $result = $adh->fetch('', '', $object->id); if ($result == 0 && ($object->client == 1 || $object->client == 3) && !empty($conf->global->MEMBER_CAN_CONVERT_CUSTOMERS_TO_MEMBERS)) { - print ''.$langs->trans("NewMember").''; + print ''.$langs->trans("NewMember").''."\n"; } } if ($user->rights->societe->supprimer) { - print ''.$langs->trans('Merge').''; + print ''.$langs->trans('Merge').''."\n"; } if ($user->rights->societe->supprimer) { diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php index cc056896414..b46a6124396 100644 --- a/htdocs/societe/price.php +++ b/htdocs/societe/price.php @@ -206,7 +206,7 @@ dol_banner_tab($object, 'socid', $linkback, ($user->socid ? 0 : 1), 'rowid', 'no print '
'; print '
'; -print ''; +print '
'; if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field print ''; diff --git a/htdocs/theme/eldy/btn.inc.php b/htdocs/theme/eldy/btn.inc.php index 6f05daba22f..d874266f81d 100644 --- a/htdocs/theme/eldy/btn.inc.php +++ b/htdocs/theme/eldy/btn.inc.php @@ -50,7 +50,8 @@ if (!empty($conf->global->THEME_DARKMODEENABLED)) { margin-bottom: 1.4em; }*/ div.tabsAction > a.butAction, div.tabsAction > a.butActionRefused, div.tabsAction > a.butActionDelete, -div.tabsAction > span.butAction, div.tabsAction > span.butActionRefused, div.tabsAction > span.butActionDelete { +div.tabsAction > span.butAction, div.tabsAction > span.butActionRefused, div.tabsAction > span.butActionDelete, +div.tabsAction > div.divButAction > span.butAction { margin-bottom: 1.4em !important; margin-right: 0px !important; }
'.$langs->trans('Prefix').''.$object->prefix_comm.'