SD-29 etapes 5 et 6
This commit is contained in:
parent
8519d94042
commit
370fe4ae05
@ -268,6 +268,7 @@ $tabDico = array(
|
||||
'annoncetxt',
|
||||
'groupes',
|
||||
'etablissementliste',
|
||||
'contentieuxliste',
|
||||
),
|
||||
);
|
||||
|
||||
@ -2100,6 +2101,36 @@ function etablissementlisteMultiple($siren, $nic, $values = false)
|
||||
}
|
||||
return $tabData;
|
||||
}
|
||||
function contentieuxlisteEntete()
|
||||
{
|
||||
return array(
|
||||
'dateEnrolement',
|
||||
'codNatureDemande',
|
||||
'natureDemande',
|
||||
'nomDemandeur',
|
||||
'nomDefendeur',
|
||||
'etatAffaire',
|
||||
'codeGreffe',
|
||||
'nomGreffe',
|
||||
|
||||
);
|
||||
}
|
||||
function contentieuxlisteMultiple($siren, $nic=0, $values = false)
|
||||
{
|
||||
global $iDb;
|
||||
$conn = Zend_Registry::get('doctrine');
|
||||
$sql='select dateEnrolement,codNatureDemande,natureDemande,nomDemandeur,nomDefendeur,etatAffaire,codeGreffe,nomGreffe
|
||||
from greffes_affaires_siren s inner join greffes_affaires a using(id) where entSiren=:siren';
|
||||
try {
|
||||
$stmt=$conn->prepare($sql);
|
||||
$stmt->bindValue('siren', $siren);
|
||||
$stmt->execute();
|
||||
} catch (\Doctrine\DBAL\DBALException $e) {
|
||||
throw new Exception(__METHOD__ . ': ' . $e->getMessage());
|
||||
}
|
||||
$tabData=$stmt->fetchAll(\PDO::FETCH_ASSOC);
|
||||
return $tabData;
|
||||
}
|
||||
|
||||
/* == FUNCTION == */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user