Correction information tabInfoUser
This commit is contained in:
parent
a704a7f9b9
commit
59a50fce3b
@ -132,19 +132,22 @@ class WsScore
|
|||||||
$nic='';
|
$nic='';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($tabInfoUser['clientTest']=='Oui' || $tabInfoUser['typeCompte']=='TEST') {
|
if ($this->tabInfoUser['clientTest']=='Oui' || $this->tabInfoUser['typeCompte']=='TEST') {
|
||||||
$test=1;
|
$test=1;
|
||||||
} else {
|
} else {
|
||||||
$test=0;
|
$test=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tabRdvInsee=array();
|
$tabRdvInsee=array();
|
||||||
if ($service=='identite') {
|
if (in_array($service, array('identite')))
|
||||||
|
{
|
||||||
if ($siren>1000 && $nic>9) $strNic=" AND nic=$nic ";
|
if ($siren>1000 && $nic>9) $strNic=" AND nic=$nic ";
|
||||||
elseif ($siren==0 && $ref>0) $strNic=" AND id=$ref ";
|
elseif ($siren==0 && $ref>0) $strNic=" AND id=$ref ";
|
||||||
elseif ($siren>1000) $strNic=" AND siege=1 ORDER BY actif DESC, nic DESC ";
|
elseif ($siren>1000) $strNic=" AND siege=1 ORDER BY actif DESC, nic DESC ";
|
||||||
else return;
|
else return;
|
||||||
$rep=$iDbCrm->select('jo.etablissements', 'siren, nic, actif, siege, raisonSociale, adr_cp, adr_ville, source', "siren=$siren $strNic", false, MYSQL_ASSOC);
|
$rep = $iDbCrm->select('jo.etablissements',
|
||||||
|
'siren, nic, actif, siege, raisonSociale, adr_cp, adr_ville, source',
|
||||||
|
"siren=$siren $strNic", false, MYSQL_ASSOC);
|
||||||
$tabRep = $rep[0];
|
$tabRep = $rep[0];
|
||||||
$rs = $tabRep['raisonSociale'];
|
$rs = $tabRep['raisonSociale'];
|
||||||
$cp = $tabRep['adr_cp'];
|
$cp = $tabRep['adr_cp'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user