This commit is contained in:
Michael RICOIS 2013-01-29 15:10:48 +00:00
parent 6f18be3aa4
commit 83378249bd

View File

@ -676,16 +676,16 @@ foreach($tabIdentifiant as $item)
}
} else {
//Traitement des libellés génériques
foreach($select['cle'] as $item)
foreach($select['cle'] as $cle => $values)
{
echo $item."\n";
if ( in_array($item.'Lib', $tabEntete) && isset(${'tab'.ucfirst($item)}) )
echo $cle."\n";
if ( in_array($cle.'Lib', $tabEntete) && isset(${'tab'.ucfirst($cle)}) )
{
$retour = 'Non trouvé';
$codeFromData = $tabData[$row][$item];
foreach( ${'tab'.ucfirst($item)} as $code => $label ) {
$retour[$cle.'Lib'] = 'Non trouvé';
$codeFromData = $tabData[$row][$cle];
foreach( ${'tab'.ucfirst($cle)} as $code => $label ) {
if ( $codeFromData == $code ) {
$retour = $label;
$retour[$cle.'Lib'] = $label;
break;
}
}