diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php index 1dd3400ff80..c0a48b97222 100644 --- a/htdocs/exports/export.php +++ b/htdocs/exports/export.php @@ -1009,7 +1009,7 @@ if ($step == 4 && $datatoexport) { print ''; print ''; - print ''; + print ''; print ''; $arrayvisibility = array('private'=>$langs->trans("Private"), 'all'=>$langs->trans("Everybody")); print $form->selectarray('visibility', $arrayvisibility, 'private'); diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index 45927ca24e7..5139e12ab7a 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -604,11 +604,13 @@ if ($step == 3 && $datatoimport) { // Source file format print ''.$langs->trans("SourceFileFormat").''; - print ''; + print ''; $text = $objmodelimport->getDriverDescForKey($format); print $form->textwithpicto($objmodelimport->getDriverLabelForKey($format), $text); print ''; - print img_picto('', 'download', 'class="paddingright opacitymedium"').''.$langs->trans("DownloadEmptyExample").''; + print img_picto('', 'download', 'class="paddingright opacitymedium"').''.$langs->trans("DownloadEmptyExample"); + print ''; + print ' ('.$langs->trans("StarAreMandatory").')'; print ''; print ''; @@ -643,18 +645,13 @@ if ($step == 3 && $datatoimport) { print $s; print '

'; - print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table - print ''; - $filetoimport = ''; - //print ''; - // Input file name box - print ''; - print "\n"; + print ''; + + print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table + print '
'.$langs->trans("FileWithDataToImport").'
'; + print '
'; print '     '; $out = (empty($conf->global->MAIN_UPLOAD_DOC) ? ' disabled' : ''); - print ''; + print ''; $out = ''; if (!empty($conf->global->MAIN_UPLOAD_DOC)) { $max = $conf->global->MAIN_UPLOAD_DOC; // In Kb @@ -707,8 +704,10 @@ if ($step == 3 && $datatoimport) { $out .= ' ('.$langs->trans("UploadDisabled").')'; } print $out; - print '
'; // Search available imports $filearray = dol_dir_list($conf->import->dir_temp, 'files', 0, '', '', 'name', SORT_DESC); @@ -1053,8 +1052,8 @@ if ($step == 4 && $datatoimport) { $entityicon = $entitytoicon[$entity] ? $entitytoicon[$entity] : $entity; // $entityicon must string name of picto of the field like 'project', 'company', 'contact', 'modulename', ... $entitylang = $entitytolang[$entity] ? $entitytolang[$entity] : $objimport->array_import_label[0]; // $entitylang must be a translation key to describe object the field is related to, like 'Company', 'Contact', 'MyModyle', ... - print ''; - print ''; + print ''; // Info field - print ''; print ''; - $save_select .= $bit; } print '
=>'.img_object('', $entityicon).' '.$langs->trans($entitylang).''; + print '=>'.img_object('', $entityicon).' '.$langs->trans($entitylang).''; $newlabel = preg_replace('/\*$/', '', $label); $text = $langs->trans($newlabel); $more = ''; @@ -1069,7 +1068,7 @@ if ($step == 4 && $datatoimport) { print $text; print ''; + print ''; $filecolumn = $array_match_database_to_file[$code]; // Source field info $htmltext = ''.$langs->trans("FieldSource").'
'; @@ -1128,7 +1127,6 @@ if ($step == 4 && $datatoimport) { print '
'; @@ -1249,6 +1247,7 @@ if ($step == 4 && $datatoimport) { print ''; print ''; + print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table print ''; print ''; print ''; @@ -1257,7 +1256,7 @@ if ($step == 4 && $datatoimport) { print ''; print ''; - print ''; + print ''; print '
'.$langs->trans("ImportModelName").'
'; $arrayvisibility = array('private'=>$langs->trans("Private"), 'all'=>$langs->trans("Everybody")); print $form->selectarray('visibility', $arrayvisibility, 'private'); @@ -1308,6 +1307,8 @@ if ($step == 4 && $datatoimport) { } print '
'; + print '
'; + print ''; } } @@ -2126,14 +2127,14 @@ function show_elem($fieldssource, $pos, $key, $var, $nostyle = '') print ' '; print ''; print ''; - } else // Print field of source file - { + } else { + // Print field of source file print ''; print ''; // The image must have the class 'boxhandle' beause it's value used in DOM draggable objects to define the area used to catch the full object print img_picto($langs->trans("MoveField", $pos), 'grip_title', 'class="boxhandle" style="cursor:move;"'); print ''; - print ''; + print ''; print $langs->trans("Field").' '.$pos; $example = $fieldssource[$pos]['example1']; if ($example) {