Libellé
This commit is contained in:
parent
26050119b1
commit
4656c46482
@ -439,7 +439,6 @@ foreach($tabExtract as $key)
|
||||
//Specify supplemental head
|
||||
$tabEntete[] = $key.'Lib';
|
||||
|
||||
echo 'tab'.ucfirst($key)."\n";
|
||||
//Load generic table - always return array('code', 'label')
|
||||
if ( is_array($elementsup['table']) ) {
|
||||
|
||||
@ -451,7 +450,6 @@ foreach($tabExtract as $key)
|
||||
${'tab'.ucfirst($key)} = $stmt->fetchAll();
|
||||
|
||||
}
|
||||
print_r(${'tab'.ucfirst($key)});
|
||||
|
||||
if( array_key_exists('sql', $select['cle'][$key]) && $select['cle'][$key]['sql']!='' ) {
|
||||
$strKey = $select['cle'][$key]['sql'];
|
||||
@ -687,9 +685,10 @@ foreach($tabIdentifiant as $item)
|
||||
|
||||
$retour[$cle.'Lib'] = 'Non trouvé';
|
||||
$codeFromData = $tabData[$row][$cle];
|
||||
echo 'tab'.ucfirst($cle)."\n";
|
||||
foreach( ${'tab'.ucfirst($cle)} as $code => $label ) {
|
||||
if ( $codeFromData == $code ) {
|
||||
$retour[$cle.'Lib'] = $label;
|
||||
echo $retour[$cle.'Lib'] = $label;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user