extranet/www/pages/saisie.php

64 lines
1.6 KiB
PHP
Raw Normal View History

2009-03-13 14:58:10 +00:00
<?php
2009-07-20 16:17:33 +00:00
require_once 'partenaires/classMTva.php';
require_once 'common/dates.php';
require_once 'saisie/constantes.php';
2010-06-16 10:45:45 +00:00
require_once 'saisie/saisie_logo.php';
2009-04-01 12:45:45 +00:00
$tabInfo = $_SESSION['tabInfo'];
$message = '';
2010-06-16 10:45:45 +00:00
//Sauvegarde du formulaire
if ( isset($_REQUEST['submit']) && $_REQUEST['submit']=='Sauver' ) {
2010-06-16 10:45:45 +00:00
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);
$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);
die();
}
?>
2009-07-21 12:35:13 +00:00
<div id="center">
<?php
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>
<?=$message?></p>
</div>
2009-03-13 14:58:10 +00:00
<?php
2009-03-26 16:01:15 +00:00
}
if ($etab['Siege']==0){
2009-03-13 14:58:10 +00:00
?>
<h1 class="titre">IDENTITE DE L'&Eacute;TABLISSEMENT</h1>
<?php
}else{
2009-03-13 14:58:10 +00:00
?>
<h1 class="titre">IDENTITE DE L'ENTREPRISE</h1>
<?php
}
require_once 'saisie/saisie_form.php';
?>
2009-03-13 14:58:10 +00:00
</div>