Key for ZEMET in table
This commit is contained in:
parent
994071e5cd
commit
389eddd467
@ -120,11 +120,11 @@ function genereCacheRatios()
|
||||
/** ZEMET */
|
||||
$tabTmp = $iDb->select("insee.insee_tabZemet", "codZEMET AS code, libZEMET AS libelle, article", "1", false, MYSQL_ASSOC);
|
||||
foreach ($tabTmp as $i => $val) {
|
||||
$strFonctions.="\$tabVariables['REGIMP']['".$val['code']."']['lib']=\"".$val['libelle']."\";\n";
|
||||
$strFonctions.="\$tabVariables['ZEMET']['".$val['code']."']['lib']=\"".$val['libelle']."\";\n";
|
||||
if( in_array(strtoupper(substr($val['lib'],0,1)),array('A','E','I','O','U')) ) {
|
||||
$strFonctions.="\$tabVariables['REGIMP']['".$val['code']."']['art']=\"d'".$val['libelle']."\";\n";
|
||||
$strFonctions.="\$tabVariables['ZEMET']['".$val['code']."']['art']=\"d'".$val['libelle']."\";\n";
|
||||
} else {
|
||||
$strFonctions.="\$tabVariables['REGIMP']['".$val['code']."']['art']=\"de ".$val['libelle']."\";\n";
|
||||
$strFonctions.="\$tabVariables['ZEMET']['".$val['code']."']['art']=\"de ".$val['libelle']."\";\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user