Work on import
This commit is contained in:
parent
f2d02e401e
commit
127ab8911d
@ -390,7 +390,7 @@ if ($step == 2 && $datatoimport)
|
||||
|
||||
print '<tr><td colspan="6"> </td></tr>';
|
||||
|
||||
print '<tr><td colspan="6">'.$langs->trans("ChooseFileToImport").'</td></tr>';
|
||||
print '<tr><td colspan="6">'.$langs->trans("ChooseFileToImport",img_picto('','filenew')).'</td></tr>';
|
||||
|
||||
print '<tr class="liste_titre"><td colspan="6">'.$langs->trans("FileWithDataToImport").'</td></tr>';
|
||||
|
||||
@ -447,7 +447,7 @@ if ($step == 2 && $datatoimport)
|
||||
// Affiche date fichier
|
||||
print '<td align="right">'.dol_print_date(filemtime($dir.'/'.$file),'dayhour').'</td>';
|
||||
// Del button
|
||||
print '<td align="right"><a href="'.DOL_URL_ROOT.'/document.php?action=remove_file&modulepart='.$modulepart.'&file='.urlencode($relativepath);
|
||||
print '<td align="right"><a href="'.DOL_URL_ROOT.'/document.php?action=remove_file&setp=2&modulepart='.$modulepart.'&file='.urlencode($relativepath);
|
||||
print '&urlsource='.urlencode($urlsource);
|
||||
print '">'.img_delete().'</a></td>';
|
||||
// Action button
|
||||
@ -507,8 +507,8 @@ if ($step == 3 && $datatoimport)
|
||||
// Save the match array in session. We now will use the array in session.
|
||||
$_SESSION["dol_array_match_file_to_database"]=$array_match_file_to_database;
|
||||
}
|
||||
var_dump($array_match_file_to_database);
|
||||
|
||||
var_dump($array_match_file_to_database);
|
||||
|
||||
llxHeader('',$langs->trans("NewImport"));
|
||||
|
||||
@ -525,7 +525,7 @@ var_dump($array_match_file_to_database);
|
||||
$head[$h][1] = $langs->trans("Step")." 2";
|
||||
$h++;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT.'/imports/import.php?step=3&datatoimport='.$datatoimport;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/imports/import.php?step=3&datatoimport='.$datatoimport.'&filetoimport='.urlencode($_GET["filetoimport"]);
|
||||
$head[$h][1] = $langs->trans("Step")." 3";
|
||||
$hselected=$h;
|
||||
$h++;
|
||||
@ -605,8 +605,8 @@ var_dump($array_match_file_to_database);
|
||||
print '<td align="center"> ';
|
||||
if (sizeof($fieldssource) > 1 && $pos <= sizeof($fieldssource))
|
||||
{
|
||||
if ($pos < $maxpos) print '<a href="'.$_SERVER["PHP_SELF"].'?step=3&datatoimport='.$datatoimport.'&action=downfield&field='.$fieldssource[$pos]['name'].'">'.img_down().'</a>';
|
||||
if ($pos > 1) print '<a href="'.$_SERVER["PHP_SELF"].'?step=3&datatoimport='.$datatoimport.'&action=upfield&field='.$fieldssource[$pos]['name'].'">'.img_up().'</a>';
|
||||
if ($pos < $maxpos) print '<a href="'.$_SERVER["PHP_SELF"].'?step=3&datatoimport='.$datatoimport.'&action=downfield&fieldpos='.$pos.'&field='.$fieldssource[$pos]['name'].'&filetoimport='.urlencode($_GET["filetoimport"]).'">'.img_down().'</a>';
|
||||
if ($pos > 1) print '<a href="'.$_SERVER["PHP_SELF"].'?step=3&datatoimport='.$datatoimport.'&action=upfield&fieldpos='.$pos.'&field='.$fieldssource[$pos]['name'].'&filetoimport='.urlencode($_GET["filetoimport"]).'">'.img_up().'</a>';
|
||||
}
|
||||
print ' </td>';
|
||||
|
||||
|
||||
@ -54,8 +54,8 @@ LineTotalTTC=Amount with tax for line
|
||||
LineTotalVAT=Amount of VAT for line
|
||||
TypeOfLineServiceOrProduct=Type of line (0=product, 1=service)
|
||||
FileWithDataToImport=File with data to import
|
||||
FileToImport=File to import
|
||||
FileToImport=Source file to import
|
||||
FileMustHaveOneOfFollowingFormat=File to import must have one of following format
|
||||
ChooseFileToImport=Choose file to import...
|
||||
ChooseFileToImport=Choose file to import then click on picto %s ...
|
||||
FieldsInSourceFile=Fields in source file
|
||||
FieldsInTargetDatabase=Target fields in Dolibarr database
|
||||
|
||||
@ -54,8 +54,8 @@ LineTotalTTC=Montant TTC de la ligne
|
||||
LineTotalVAT=Montant TVA de la ligne
|
||||
TypeOfLineServiceOrProduct=Type de ligne (0=produit, 1=service)
|
||||
FileWithDataToImport=Fichier contenant les données à importer
|
||||
FileToImport=Fichier à importer
|
||||
FileToImport=Fichier source à importer
|
||||
FileMustHaveOneOfFollowingFormat=Le fichier à importer doit avoir un des formats suivants
|
||||
ChooseFileToImport=Choisissez le fichier à importer...
|
||||
ChooseFileToImport=Choisissez le fichier à importer puis cliquez sur le picto %s ...
|
||||
FieldsInSourceFile=Champs dans le fichier source
|
||||
FieldsInTargetDatabase=Champs cibles dans la base Dolibarr
|
||||
Loading…
Reference in New Issue
Block a user