65 lines
1.6 KiB
PHP
65 lines
1.6 KiB
PHP
<?php
|
|
require_once 'partenaires/classMTva.php';
|
|
require_once 'common/dates.php';
|
|
require_once 'saisie/constantes.php';
|
|
require_once 'saisie/saisie_logo.php';
|
|
|
|
$tabInfo = $_SESSION['tabInfo'];
|
|
|
|
$message = '';
|
|
|
|
//Sauvegarde du formulaire
|
|
if ( isset($_REQUEST['submit']) && $_REQUEST['submit']=='Sauver' ) {
|
|
|
|
require_once 'saisie/saisie_save.php';
|
|
saisie_logo($siren);
|
|
$message = saisie_save($siret, $idEntreprise, $tabInfo);
|
|
}
|
|
|
|
try {
|
|
$O = $client->getIdentite($siret, $idEntreprise, false);
|
|
$etab=$O['result'];
|
|
$tabEntrep=array();
|
|
$tabEntrep['raisonSociale']=$etab['Nom'];
|
|
$tabEntrep['siren']=$etab['Siren'];
|
|
$tabEntrep['tva']=$etab['TvaNumero'];
|
|
$tabEntrep['isin']=$etab['Isin'];
|
|
$tabEntrep['AutreId']=$etab['AutreId'];
|
|
$tabEntrep['active']=$etab['Statut'];
|
|
$tabEntrep['Source']=$etab['Source'];
|
|
$tabEntrep['SourceId']=$etab['SourceId'];
|
|
$tabEntrep['codeCommune']=$etab['Dept'].$etab['codeCommune'];
|
|
$tabEntrep['nafEn']=$etab['NafEnt'];
|
|
$tabEntrep['nafEt']=$etab['NafEtab'];
|
|
$_SESSION['tabInfo']['entrep']=$tabEntrep;
|
|
} catch (SoapFault $fault) {
|
|
require_once 'soaperror.php';
|
|
processSoapFault($client,$fault,$tabInfo);
|
|
die();
|
|
}
|
|
|
|
?>
|
|
<div id="center">
|
|
<?php
|
|
if ($message!='') {
|
|
?>
|
|
<div style="margin:5px; padding: 0pt 0.7em;" class="ui-state-highlight ui-corner-all">
|
|
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
|
|
<?=$message?></p>
|
|
</div>
|
|
<?php
|
|
}
|
|
|
|
if ($etab['Siege']==0){
|
|
?>
|
|
<h1 class="titre">IDENTITE DE L'ÉTABLISSEMENT</h1>
|
|
<?php
|
|
}else{
|
|
?>
|
|
<h1 class="titre">IDENTITE DE L'ENTREPRISE</h1>
|
|
<?php
|
|
}
|
|
require_once 'saisie/saisie_form.php';
|
|
?>
|
|
</div>
|