Key for ZEMET in table

This commit is contained in:
Michael RICOIS 2013-05-14 09:37:43 +00:00
parent 994071e5cd
commit 389eddd467

View File

@ -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";
}
}