Affichage code juridique

This commit is contained in:
Michael RICOIS 2013-01-09 13:59:51 +00:00
parent 6900b9a18b
commit 15cdb9a46d
2 changed files with 3 additions and 4 deletions

View File

@ -101,5 +101,4 @@
<?php }?>
</fieldset>
</div>

View File

@ -1111,10 +1111,10 @@ Les zones urbaines sensibles constituent un sous-ensemble de l'ensemble plus lar
$out = array();
$nafM = new Application_Model_Naf();
$sql = $nafM->select()->from($nafM, array('lib'))->where('code IN ('.join(',',$values).')');
$sql = $nafM->select()->from($nafM, array('lib', 'code'))->where('code IN ('.join(',',$values).')');
$result = $nafM->fetchAll($sql)->toArray();
foreach ( $result as $elem ) {
$out[] = $elem['lib'];
$out[] = $elem['lib'].' ('.$elem['code'].')';
}
return $out;
}
@ -1197,7 +1197,7 @@ Les zones urbaines sensibles constituent un sous-ensemble de l'ensemble plus lar
$out = array();
$fjM = new Application_Model_FormeJuridique();
$sql = $fjM->select()->from($fjM, array('fjLibelle'))->where('fjCode IN ('.join(',',$values).')');
$sql = $fjM->select()->from($fjM, array('fjLibelle', 'fjCode'))->where('fjCode IN ('.join(',',$values).')');
$result = $fjM->fetchAll($sql)->toArray();
foreach ( $result as $elem ) {
$out[] = $elem['fjLibelle'].' ('.$elem['fjCode'].')';