Libellé
This commit is contained in:
parent
a3bf3e2ef7
commit
ea6862b8c1
@ -674,23 +674,23 @@ foreach($tabIdentifiant as $item)
|
||||
$tabData[$row] = $tabData[$row] + $retour;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Traitement des libellés génériques
|
||||
foreach($select as $item)
|
||||
{
|
||||
if ( in_array($item.'Lib', $tabEntete) && isset(${'tab'.ucfirst($item)}) )
|
||||
{
|
||||
$retour = 'Non trouvé';
|
||||
$codeFromData = $tabData[$row][$item];
|
||||
foreach( ${'tab'.ucfirst($item)} as $code => $label ) {
|
||||
if ( $codeFromData == $code ) {
|
||||
$retour = $label;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$tabData[$row] = $tabData[$row] + $retour;
|
||||
}
|
||||
} else {
|
||||
//Traitement des libellés génériques
|
||||
foreach($select['cle'] as $item)
|
||||
{
|
||||
if ( in_array($item.'Lib', $tabEntete) && isset(${'tab'.ucfirst($item)}) )
|
||||
{
|
||||
$retour = 'Non trouvé';
|
||||
$codeFromData = $tabData[$row][$item];
|
||||
foreach( ${'tab'.ucfirst($item)} as $code => $label ) {
|
||||
if ( $codeFromData == $code ) {
|
||||
$retour = $label;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$tabData[$row] = $tabData[$row] + $retour;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user