';
@@ -556,14 +555,12 @@ if ($step == 3 && $datatoimport)
print '';
$filetoimport='';
- $var=true;
print '| '.$langs->trans("ChooseFileToImport",img_picto('','filenew')).' | ';
//print '| '.$langs->trans("FileWithDataToImport").' | ';
// Input file name box
- $var=false;
print '';
print ' ';
$out = (empty($conf->global->MAIN_UPLOAD_DOC)?' disabled':'');
@@ -907,13 +904,12 @@ if ($step == 4 && $datatoimport)
// List of targets fields
$height=24;
$i = 0;
- $var=true;
$mandatoryfieldshavesource=true;
print '';
foreach($fieldstarget as $code=>$label)
{
- print '';
+ print ' ';
$i++;
$entity=(! empty($objimport->array_import_entities[0][$code])?$objimport->array_import_entities[0][$code]:$objimport->array_import_icon[0]);
@@ -1128,7 +1124,7 @@ if ($step == 4 && $datatoimport)
print '| '.$langs->trans("ImportModelName").' | ';
print ' | ';
print ' ';
- $var=false;
+
print '';
print ' | ';
print '';
@@ -1144,7 +1140,6 @@ if ($step == 4 && $datatoimport)
{
$num = $db->num_rows($resql);
$i = 0;
- $var=false;
while ($i < $num)
{
diff --git a/htdocs/imports/index.php b/htdocs/imports/index.php
index 207055c6ce8..ed391d65292 100644
--- a/htdocs/imports/index.php
+++ b/htdocs/imports/index.php
@@ -60,13 +60,12 @@ print ' | '.$langs->trans("Module").' | ';
print ''.$langs->trans("ImportableDatas").' | ';
//print ' | ';
print ' ';
-$val=true;
+
if (count($import->array_import_code))
{
foreach ($import->array_import_code as $key => $value)
{
- $val=!$val;
- print '| ';
+ print ' | | ';
print img_object($import->array_import_module[$key]->getName(),$import->array_import_module[$key]->picto).' ';
print $import->array_import_module[$key]->getName();
print ' | ';
@@ -108,7 +107,6 @@ print ' ';
// List of available import format
-$var=true;
print '';
print '';
print '| '.$langs->trans("AvailableFormats").' | ';
@@ -122,7 +120,6 @@ $liste=$model->liste_modeles($db);
foreach($liste as $key)
{
-
print ' ';
print '| '.img_picto_common($model->getDriverLabelForKey($key),$model->getPictoForKey($key)).' | ';
$text=$model->getDriverDescForKey($key);
| | |