Skip to content

Commit

Permalink
CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 28, 2021
1 parent f033e91 commit 82a35f8
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions htdocs/imports/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@
print '<table class="border tableforfield centpercent">';

// Module
print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>';
print '<tr><td class="titlefieldcreate">'.$langs->trans("Module").'</td>';
print '<td>';
$titleofmodule = $objimport->array_import_module[0]['module']->getName();
// Special cas for import common to module/services
Expand Down Expand Up @@ -571,10 +571,10 @@
print '<div class="underbanner clearboth"></div>';
print '<div class="fichecenter">';

print '<table width="100%" class="border tableforfield">';
print '<table class="border tableforfield centpercent">';

// Module
print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>';
print '<tr><td class="titlefieldcreate">'.$langs->trans("Module").'</td>';
print '<td>';
$titleofmodule = $objimport->array_import_module[0]['module']->getName();
// Special cas for import common to module/services
Expand Down Expand Up @@ -603,7 +603,7 @@
print '<table width="100%" class="border tableforfield">';

// Source file format
print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>';
print '<tr><td class="titlefieldcreate">'.$langs->trans("SourceFileFormat").'</td>';
print '<td class="nowraponall">';
$text = $objmodelimport->getDriverDescForKey($format);
print $form->textwithpicto($objmodelimport->getDriverLabelForKey($format), $text);
Expand Down Expand Up @@ -733,8 +733,8 @@
$relativepath = $file;

print '<tr class="oddeven">';
print '<td width="16">'.img_mime($file).'</td>';
print '<td>';
print img_mime($file, '', 'pictofixedwidth');
print '<a data-ajax="false" href="'.DOL_URL_ROOT.'/document.php?modulepart='.$modulepart.'&file='.urlencode($relativepath).'&step=3'.$param.'" target="_blank">';
print $file;
print '</a>';
Expand Down Expand Up @@ -876,7 +876,7 @@
print '<table width="100%" class="border tableforfield">';

// Module
print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>';
print '<tr><td class="titlefieldcreate">'.$langs->trans("Module").'</td>';
print '<td>';
$titleofmodule = $objimport->array_import_module[0]['module']->getName();
// Special cas for import common to module/services
Expand Down Expand Up @@ -905,7 +905,7 @@
print '<table width="100%" class="border tableforfield">';

// Source file format
print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>';
print '<tr><td class="titlefieldcreate">'.$langs->trans("SourceFileFormat").'</td>';
print '<td>';
$text = $objmodelimport->getDriverDescForKey($format);
print $form->textwithpicto($objmodelimport->getDriverLabelForKey($format), $text);
Expand All @@ -926,8 +926,8 @@
print $langs->trans("Separator").' : ';
print '<input type="text" size="1" name="separator" value="'.dol_escape_htmltag($separator).'"/>';
print '&nbsp;&nbsp;&nbsp;&nbsp;'.$langs->trans("Enclosure").' : ';
print '<input type="text" size="1" name="enclosure" value="'.dol_escape_htmltag($enclosure).'"/>';
print '<input name="update" type="submit" value="'.$langs->trans('Update').'" class="button" />';
print '<input type="text" size="1" name="enclosure" value="'.dol_escape_htmltag($enclosure).'"/> ';
print '<input name="update" type="submit" value="'.$langs->trans('Update').'" class="button small" />';
print '</form>';
print '</td></tr>';
}
Expand All @@ -938,6 +938,7 @@
$modulepart = 'import';
$relativepath = GETPOST('filetoimport');
print '<a data-ajax="false" href="'.DOL_URL_ROOT.'/document.php?modulepart='.$modulepart.'&file='.urlencode($relativepath).'&step=4'.$param.'" target="_blank">';
print img_mime($file, '', 'pictofixedwidth');
print $filetoimport;
print '</a>';
print '</td></tr>';
Expand Down Expand Up @@ -1385,7 +1386,7 @@
print '<table width="100%" class="border tableforfield">';

// Module
print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>';
print '<tr><td class="titlefieldcreate">'.$langs->trans("Module").'</td>';
print '<td>';
$titleofmodule = $objimport->array_import_module[0]['module']->getName();
// Special cas for import common to module/services
Expand Down Expand Up @@ -1414,7 +1415,7 @@
print '<table width="100%" class="border tableforfield">';

// Source file format
print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>';
print '<tr><td class="titlefieldcreate">'.$langs->trans("SourceFileFormat").'</td>';
print '<td>';
$text = $objmodelimport->getDriverDescForKey($format);
print $form->textwithpicto($objmodelimport->getDriverLabelForKey($format), $text);
Expand All @@ -1435,6 +1436,7 @@
$modulepart = 'import';
$relativepath = GETPOST('filetoimport');
print '<a data-ajax="false" href="'.DOL_URL_ROOT.'/document.php?modulepart='.$modulepart.'&file='.urlencode($relativepath).'&step=4'.$param.'" target="_blank">';
print img_mime($file, '', 'pictofixedwidth');
print $filetoimport;
print '</a>';
print '</td></tr>';
Expand Down Expand Up @@ -1509,7 +1511,7 @@
print '<table width="100%" class="border tableforfield">';

// Tables imported
print '<tr><td class="titlefield">';
print '<tr><td class="titlefieldcreate">';
print $langs->trans("TablesTarget");
print '</td><td>';
$listtables = array();
Expand Down Expand Up @@ -1675,10 +1677,15 @@
print '<div class="center">'.img_picto($langs->trans("OK"), 'tick').' <b>'.$langs->trans("NoError").'</b></div><br><br>';
print '<div class="ok">';
print $langs->trans("NbInsert", empty($obj->nbinsert) ? 0 : $obj->nbinsert).'<br>';
print $langs->trans("NbUpdate", empty($obj->nbupdate) ? 0 : $obj->nbupdate).'<br><br>';
print $langs->trans("NbUpdate", empty($obj->nbupdate) ? 0 : $obj->nbupdate).'<br>';
print '</div>';
print '<br>';
} else {
print $langs->trans("NbOfLinesOK", $nbok).'<br><br>';
print '<br>';
print '<div class="info">';
print $langs->trans("NbOfLinesOK", $nbok).'<br>';
print '</div>';
print '<br>';
}

// Show Errors
Expand Down Expand Up @@ -1823,7 +1830,7 @@
print '<table width="100%" class="border">';

// Module
print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>';
print '<tr><td class="titlefieldcreate">'.$langs->trans("Module").'</td>';
print '<td>';
$titleofmodule = $objimport->array_import_module[0]['module']->getName();
// Special cas for import common to module/services
Expand Down Expand Up @@ -1852,7 +1859,7 @@
print '<table width="100%" class="border">';

// Source file format
print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>';
print '<tr><td class="titlefieldcreate">'.$langs->trans("SourceFileFormat").'</td>';
print '<td>';
$text = $objmodelimport->getDriverDescForKey($format);
print $form->textwithpicto($objmodelimport->getDriverLabelForKey($format), $text);
Expand All @@ -1875,6 +1882,7 @@
$modulepart = 'import';
$relativepath = GETPOST('filetoimport');
print '<a data-ajax="false" href="'.DOL_URL_ROOT.'/document.php?modulepart='.$modulepart.'&file='.urlencode($relativepath).'&step=4'.$param.'" target="_blank">';
print img_mime($file, '', 'pictofixedwidth');
print $filetoimport;
print '</a>';
print '</td></tr>';
Expand Down

0 comments on commit 82a35f8

Please sign in to comment.