2009-03-13 14:58:10 +00:00
|
|
|
<?php
|
2010-06-15 14:43:56 +00:00
|
|
|
if ( hasModeEdition() ){
|
|
|
|
|
2009-07-20 16:17:33 +00:00
|
|
|
require_once 'partenaires/classMTva.php';
|
|
|
|
require_once 'common/dates.php';
|
2010-06-15 14:43:56 +00:00
|
|
|
require_once 'saisie/constantes.php';
|
2009-02-19 16:28:12 +00:00
|
|
|
|
2009-04-01 12:45:45 +00:00
|
|
|
$tabInfo = $_SESSION['tabInfo'];
|
|
|
|
|
2010-06-15 14:43:56 +00:00
|
|
|
$message = '';
|
2009-04-02 15:04:20 +00:00
|
|
|
|
2010-06-15 14:43:56 +00:00
|
|
|
if ( isset($_REQUEST['submit']) && $_REQUEST['submit']=='Sauver' ) {
|
|
|
|
require_once 'saisie/saisie_logo.php';
|
|
|
|
require_once 'saisie/saisie_save.php';
|
|
|
|
saisie_logo($siren);
|
|
|
|
$message = saisie_save($siret, $idEntreprise, $tabInfo);
|
2010-04-26 14:46:13 +00:00
|
|
|
}
|
|
|
|
|
2009-03-06 16:29:16 +00:00
|
|
|
try {
|
2010-01-12 16:58:19 +00:00
|
|
|
$O = $client->getIdentite($siret, $idEntreprise, false);
|
2009-02-19 16:28:12 +00:00
|
|
|
$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) {
|
2009-07-21 07:17:54 +00:00
|
|
|
require_once 'soaperror.php';
|
2009-02-26 17:16:11 +00:00
|
|
|
processSoapFault($client,$fault,$tabInfo);
|
2009-02-19 16:28:12 +00:00
|
|
|
die();
|
|
|
|
}
|
|
|
|
?>
|
2009-07-21 12:35:13 +00:00
|
|
|
<div id="center">
|
|
|
|
<?php
|
2010-06-15 14:43:56 +00:00
|
|
|
if ($message!='') {
|
2009-03-13 14:58:10 +00:00
|
|
|
?>
|
2010-06-14 14:47:33 +00:00
|
|
|
<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>
|
2010-06-15 14:43:56 +00:00
|
|
|
<?=$message?></p>
|
2009-03-17 10:16:49 +00:00
|
|
|
</div>
|
2009-03-13 14:58:10 +00:00
|
|
|
<?php
|
2009-03-26 16:01:15 +00:00
|
|
|
}
|
|
|
|
|
2010-06-15 14:43:56 +00:00
|
|
|
if ($etab['Siege']==0){
|
2009-03-13 14:58:10 +00:00
|
|
|
?>
|
2010-06-15 14:43:56 +00:00
|
|
|
<h1 class="titre">IDENTITE DE L'ÉTABLISSEMENT</h1>
|
2009-07-07 16:35:28 +00:00
|
|
|
<?php
|
2009-10-16 12:30:19 +00:00
|
|
|
}else{
|
2009-03-13 14:58:10 +00:00
|
|
|
?>
|
2010-06-15 14:43:56 +00:00
|
|
|
<h1 class="titre">IDENTITE DE L'ENTREPRISE</h1>
|
2009-07-07 16:35:28 +00:00
|
|
|
<?php
|
2010-06-15 14:43:56 +00:00
|
|
|
}
|
|
|
|
require_once 'saisie/saisie_form.php';
|
2009-04-10 13:24:51 +00:00
|
|
|
?>
|
2009-03-13 14:58:10 +00:00
|
|
|
</div>
|
2010-04-14 16:00:45 +00:00
|
|
|
<?php
|
2010-06-15 14:43:56 +00:00
|
|
|
} //Fin control mode edition
|
|
|
|
?>
|