Affichage code juridique
This commit is contained in:
parent
6900b9a18b
commit
15cdb9a46d
@ -101,5 +101,4 @@
|
||||
<?php }?>
|
||||
</fieldset>
|
||||
|
||||
|
||||
</div>
|
@ -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'].')';
|
||||
|
Loading…
Reference in New Issue
Block a user