diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index bf335b9714b..c4eb34ce1e5 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -799,6 +799,7 @@ if ($step == 4 && $datatoimport) { $minpos = min(count($fieldssource), count($fieldstarget)); //var_dump($array_match_file_to_database); + $initialloadofstep4 = false; if (empty($_SESSION['dol_array_match_file_to_database_select'])) { $initialloadofstep4 = true; @@ -971,6 +972,7 @@ if ($step == 4 && $datatoimport) { print ''; print img_mime($file, '', 'pictofixedwidth'); print $filetoimport; + print img_picto($langs->trans("Download"), 'download', 'class="paddingleft opacitymedium"'); print ''; print ''; @@ -1052,21 +1054,19 @@ if ($step == 4 && $datatoimport) { print ''; // Set the list of all possible target fields in Dolibarr. - $optionsnotused = ""; $optionsall = array(); foreach ($fieldstarget as $code => $line) { - $text = ''; - if (!$line["imported"]) { - $optionsnotused .= $text; - } - $optionsall[$code] = array('label'=>$langs->trans($line["label"]), 'required'=>(empty($line["required"]) ? 0 : 1), 'position'=>!empty($line['position']) ? $line['position'] : 0); } - // $optionsall is an array of all possible fields. key=>array('label'=>..., 'xxx') + // $optionsall is an array of all possible target fields. key=>array('label'=>..., 'xxx') $height = '32px'; //needs px for css height attribute below $i = 0; @@ -1119,7 +1119,11 @@ if ($step == 4 && $datatoimport) { $j = 0; foreach ($optionsall as $tmpcode => $tmpval) { // Loop on each entry to add into each combo list. - $label = $tmpval['required'] ? '' : ''; + $label = ''; + if ($tmpval['picto']) { + $label .= img_picto('', $tmpval['picto'], 'class="pictofixedwidth"'); + } + $label .= $tmpval['required'] ? '' : ''; $label .= $tmpval['label']; $label .= $tmpval['required'] ? '*' : ''; @@ -1599,6 +1603,7 @@ if ($step == 5 && $datatoimport) { print ''; print img_mime($file, '', 'pictofixedwidth'); print $filetoimport; + print img_picto($langs->trans("Download"), 'download', 'class="paddingleft opacitymedium"'); print ''; print ''; @@ -1745,7 +1750,7 @@ if ($step == 5 && $datatoimport) { $alias = preg_replace('/(\..*)$/i', '', $label); $listfields[$i] = $langs->trans("Column").' '.num2Alpha($code - 1).' -> '.$label; } - print count($listfields) ? (join(', ', $listfields)) : $langs->trans("Error"); + print count($listfields) ? (join(',  ', $listfields)) : $langs->trans("Error"); print ''; print '';