requete getIdentite en mode light

This commit is contained in:
Michael RICOIS 2010-01-12 16:58:19 +00:00
parent e207ccdf8e
commit 2472d99d4e
4 changed files with 11 additions and 11 deletions

View File

@ -92,10 +92,10 @@ if($_REQUEST['submit']){
} }
if($commandeEnquete == FALSE){ if($commandeEnquete == FALSE)
{
try { try {
$O = $client->getIdentite($siret, $idEntreprise); $O = $client->getIdentite($siret, $idEntreprise, false);
$etab = $O['result']; $etab = $O['result'];
$firephp->log($etab,'etab'); $firephp->log($etab,'etab');
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
@ -240,20 +240,20 @@ if($commandeEnquete == FALSE){
<div class="infoTitle StyleInfoLib">Num&eacute;ro identifiant Siren</div> <div class="infoTitle StyleInfoLib">Num&eacute;ro identifiant Siren</div>
<div class="infoData"> <div class="infoData">
<?php print substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3); ?> <?php print substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3); ?>
<input type="hidden" name="InfoEnq[Siren]" value="<?php print $etab['Siren']; ?>"/> <input type="hidden" name="InfoEnq[Siren]" value="<?=$etab['Siren']; ?>"/>
</div> </div>
<div class="infoTitle StyleInfoLib">Num&eacute;ro identifiant Siret</div> <div class="infoTitle StyleInfoLib">Num&eacute;ro identifiant Siret</div>
<div class="infoData"><?php print substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3).'&nbsp; <i>'.substr($etab['Siret'],9,5).'</i>' ?></div> <div class="infoData"><?=print substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3).'&nbsp; <i>'.substr($etab['Siret'],9,5).'</i>' ?></div>
<div class="infoTitle StyleInfoLib">Num&eacute;ro de TVA Intracom.</div> <div class="infoTitle StyleInfoLib">Num&eacute;ro de TVA Intracom.</div>
<div class="infoData"><?php print substr($etab['TvaNumero'],0,2).' '.substr($etab['TvaNumero'],2,2).' '.substr($etab['TvaNumero'],-9); ?></div> <div class="infoData"><?=print substr($etab['TvaNumero'],0,2).' '.substr($etab['TvaNumero'],2,2).' '.substr($etab['TvaNumero'],-9); ?></div>
<div class="infoTitle StyleInfoLib">Raison Sociale</div> <div class="infoTitle StyleInfoLib">Raison Sociale</div>
<div class="infoData"><?php print $etab['Nom']; ?></div> <div class="infoData"><?=print $etab['Nom']; ?></div>
<div class="infoTitle StyleInfoLib">Adresse</div> <div class="infoTitle StyleInfoLib">Adresse</div>
<div class="infoData"><?php print $etab['Adresse']; ?></div> <div class="infoData"><?=$etab['Adresse'].' '.$etab['CP'].' '.$etab['Ville']; ?></div>
<div class="fieldgrp"> <div class="fieldgrp">
<label class="StyleInfoLib">Téléphone <?php if (trim($etab['Tel'])==''){?><font color="Red">*</font><?php }?> / Fax</label> <label class="StyleInfoLib">Téléphone <?php if (trim($etab['Tel'])==''){?><font color="Red">*</font><?php }?> / Fax</label>

View File

@ -170,7 +170,7 @@ else
} }
try { try {
$O = $client->getIdentite($siret, $idEntreprise); $O = $client->getIdentite($siret, $idEntreprise, false);
$etab=$O['result']; $etab=$O['result'];
$tabEntrep=array(); $tabEntrep=array();
$tabEntrep['raisonSociale']=$etab['Nom']; $tabEntrep['raisonSociale']=$etab['Nom'];

View File

@ -24,7 +24,7 @@ $client = new SoapClient(null, array( 'trace' => 1,
$tabEntrep=array(); $tabEntrep=array();
try { try {
$O = $client->getIdentite($siren); $O = $client->getIdentite($siren, 0, false);
$tabEntrep=$O['result']; $tabEntrep=$O['result'];
} catch (SoapFault $fault) {} } catch (SoapFault $fault) {}

View File

@ -10,7 +10,7 @@ if($siret!='')
'login' => $_SESSION['tabInfo']['login'], 'login' => $_SESSION['tabInfo']['login'],
'password' => $_SESSION['tabInfo']['password'], 'password' => $_SESSION['tabInfo']['password'],
)); ));
$O = $client->getIdentite($siret); $O = $client->getIdentite($siret, 0, false);
$etab = $O['result']; $etab = $O['result'];
$firephp->log($etab,'etab'); $firephp->log($etab,'etab');
if($etab['Siret']==$siret) if($etab['Siret']==$siret)