diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index e725e5eb089..4dd59768e9f 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2040,15 +2040,16 @@ function img_up($alt = 'default', $selected = 0) * * @param string $alt Text to show on alt image * @param int $selected Selected + * @param string $options Add more attribute on img tag (For example 'style="float: right"') * @return string Return img tag */ -function img_left($alt = 'default', $selected = 0) +function img_left($alt = 'default', $selected = 0, $options='') { global $conf, $langs; if ($alt == 'default') $alt = $langs->trans('Left'); - return img_picto($alt, ($selected ? '1leftarrow_selected.png' : '1leftarrow.png')); + return img_picto($alt, ($selected ? '1leftarrow_selected.png' : '1leftarrow.png'), $options); } /** @@ -2056,15 +2057,16 @@ function img_left($alt = 'default', $selected = 0) * * @param string $alt Text to show on alt image * @param int $selected Selected + * @param string $options Add more attribute on img tag (For example 'style="float: right"') * @return string Return img tag */ -function img_right($alt = 'default', $selected = 0) +function img_right($alt = 'default', $selected = 0, $options='') { global $conf, $langs; if ($alt == 'default') $alt = $langs->trans('Right'); - return img_picto($alt, ($selected ? '1rightarrow_selected.png' : '1rightarrow.png')); + return img_picto($alt, ($selected ? '1rightarrow_selected.png' : '1rightarrow.png'), $options); } /** diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php index 721196bdb1e..3befa61e692 100644 --- a/htdocs/exports/export.php +++ b/htdocs/exports/export.php @@ -558,7 +558,7 @@ if ($step == 2 && $datatoexport) { // Selected fields print ' '; - print ''.img_left().''; + print ''.img_left('default', 0, 'style="max-width: 20px"').''; print ''; //print $text.'-'.$htmltext."
"; print $form->textwithpicto($text,$htmltext); @@ -573,7 +573,7 @@ if ($step == 2 && $datatoexport) print $form->textwithpicto($text,$htmltext); //print ' ('.$code.')'; print ''; - print ''.img_right().''; + print ''.img_right('default', 0, 'style="max-width: 20px"').''; print ' '; }