302 lines
6.7 KiB
PHP
302 lines
6.7 KiB
PHP
<?php
|
|
if (!page_checkParams()) die('Paramètres incorrects !');
|
|
|
|
require_once 'scoresws/scoresws.php';
|
|
require_once 'annonces/annonces.php';
|
|
|
|
if (isset($_REQUEST['idan'])) {
|
|
$idan = $_REQUEST['idan'];
|
|
} else {
|
|
$idan = false;
|
|
}
|
|
$vue = (isset($_GET['vue'])) ? $_GET['vue'] : '';
|
|
$message='';
|
|
|
|
//Récupération des infos du webservice
|
|
$annonces = scoresws_annonces($siret, $siren, $idEntreprise, $vue, $idan);
|
|
$objAnnonces = new Annonces($annonces);
|
|
?>
|
|
<div id="center">
|
|
<h1 class="titre">ANNONCES LÉGALES</h1>
|
|
<table>
|
|
<?php
|
|
if ($message<>'') {
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
|
<h3><?=$message;?></h3>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" colspan="2" class="StyleInfoLib">
|
|
Numéro identifiant Siren
|
|
</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?=substr($siren,0,3).' '.substr($siren,3,3).' '.substr($siren,6,3)?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" colspan="2" class="StyleInfoLib">Raison Sociale</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?=$raisonSociale?>
|
|
<?php
|
|
if(hasModeEdition()) {
|
|
?>
|
|
<a href="./?page=saisie&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">
|
|
(Edition)
|
|
</a>
|
|
<?php
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
if ($idan && in_array($vue, array('bodacc', 'abod', 'balo', 'asso', 'bomp')))
|
|
{
|
|
// BALO
|
|
if ($vue=='balo')
|
|
{
|
|
//Présélection des annonces
|
|
foreach($objAnnonces->annoncesBalo as $ann) {
|
|
if($ann['id']==$idan)
|
|
break;
|
|
}
|
|
|
|
?>
|
|
<h2>BALO</h2>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
|
<?php
|
|
echo $objAnnonces->getAnnonceDesc($ann).
|
|
$objAnnonces->getAnnonceEntree($ann).
|
|
$objAnnonces->getAnnonceEntreeSD($ann);
|
|
|
|
require_once 'saisie/saisie_liensdialog.php';
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
|
<a href="/?page=annonces&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&idan=<?=$_REQUEST['idan']?>&vue=balo&mode=pdf" target="_blank">
|
|
Cliquez ici pour voir cette annonce au format PDF (<?=adapteOCtets(@filesize(PATH_DATA.'/jo/balo/'.WDate::dateT('Y-m-d','Y',$ann['DateParution']).'/'. $ann['Lien_Annonce_Pdf']))?>)
|
|
</a>
|
|
.</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="3" class="StyleInfoLib"><b><?=$ann['Categorie']?></b></td>
|
|
</tr>
|
|
<tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
elseif ($vue=='bodacc' || $vue=='abod')
|
|
{
|
|
foreach($objAnnonces->annoncesBodacc as $ann) {
|
|
if($ann['id']==$idan)
|
|
break;
|
|
}
|
|
?>
|
|
<h2>ÉVÉNEMENTS LÉGAUX</h2>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
|
<?php
|
|
echo $objAnnonces->getAnnonceDesc($ann).' '.
|
|
$objAnnonces->getAnnonceEntree($ann).' '.
|
|
$objAnnonces->getAnnonceEntreeSD($ann);
|
|
|
|
require_once 'saisie/saisie_liensdialog.php';
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
elseif ($vue=='asso')
|
|
{
|
|
foreach($objAnnonces->annoncesAsso as $ann) {
|
|
if($ann['id']==$idan)
|
|
break;
|
|
}
|
|
?>
|
|
<h2>Associations</h2>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
|
<?php
|
|
echo $objAnnonces->getAnnonceDesc($ann).' '.
|
|
$objAnnonces->getAnnonceEntree($ann).' '.
|
|
$objAnnonces->getAnnonceEntreeSD($ann);
|
|
|
|
require_once 'saisie/saisie_liensdialog.php';
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
elseif ($vue=='bomp')
|
|
{
|
|
foreach($objAnnonces->annoncesBomp as $ann) {
|
|
if($ann['id']==$idan)
|
|
break;
|
|
}
|
|
?>
|
|
<h2>Marchés publics</h2>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
|
<?php
|
|
echo $objAnnonces->getAnnonceDesc($ann).' '.
|
|
$objAnnonces->getAnnonceEntree($ann).' '.
|
|
$objAnnonces->getAnnonceEntreeSD($ann);
|
|
|
|
require_once 'saisie/saisie_liensdialog.php';
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
?>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="3" class="StyleInfoLib">
|
|
<b>
|
|
<?php echo $objAnnonces->getAnnonceEven($ann)?>
|
|
</b>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="3">
|
|
<code><?php echo $objAnnonces->getAnnonceTexte($ann)?></code>
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="4"> </td></tr>
|
|
<tr>
|
|
<td colspan="4" align="center" class="StyleInfoData">
|
|
<?php
|
|
$source = $_SESSION['tabInfo']['entrep']['Source'];
|
|
$sourceId = $_SESSION['tabInfo']['entrep']['SourceId'];
|
|
?>
|
|
<a href="./?page=annonces&siret=<?=$siret?>
|
|
&idEntreprise=<?=$idEntreprise?>
|
|
&source=<?=$source?>
|
|
<?=($siret*1==0) ? '&idan='.$sourceId : '';?>
|
|
">
|
|
Revenir à la liste des annonces
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
elseif (count($annonces) > 0)
|
|
{
|
|
$typeAnnonces = array(
|
|
'Bodacc' => 'EVÉNEMENTS LÉGAUX',
|
|
'Balo' => 'BALO',
|
|
'Bomp' => 'Marchés publics',
|
|
'Asso' => 'Associations',
|
|
);
|
|
|
|
foreach ($typeAnnonces as $type => $titre)
|
|
{
|
|
$classType = 'annonces'.$type;
|
|
if (count($objAnnonces->$classType)>0)
|
|
{
|
|
?>
|
|
<h2><?=$titre?></h2>
|
|
<table>
|
|
<?php
|
|
foreach($objAnnonces->$classType as $i => $ann)
|
|
{
|
|
$resume = $objAnnonces->getAnnonceResume($ann);
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="140" class="StyleInfoLib">
|
|
<span id="annoncesDate">Le <?=$resume['date']?> </span>
|
|
<span id="annoncesImg"><?=$resume['logo']?></span>
|
|
</td>
|
|
<td width="450" colspan="2" class="StyleInfoData">
|
|
<a href="/?page=annonces&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&<?=$resume['href']?>">
|
|
<?=$resume['lib']?>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/** Aucune annonce bodacc pour cette entreprise **/
|
|
?>
|
|
<h2>Evénements légaux</h2>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="100" class="StyleInfoLib"> </td>
|
|
<td width="450" colspan="2" class="StyleInfoData">Néant</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4"> </td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
|
|
require_once 'export/genexport.php';
|
|
|
|
// Surveillance
|
|
if (!$idan)
|
|
{
|
|
?>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td colspan="3" width="550" class="StyleInfoData">
|
|
<a class="dialogsurv" href=""></a>
|
|
<?php
|
|
require_once 'surveillance/surveillance.php';
|
|
echo getSurveillance('annonces', $siret);
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<p class="confidentiel blockh2">
|
|
<?php
|
|
require_once 'cgu/cgu.php';
|
|
echo afficheCgu();
|
|
?>
|
|
</p>
|
|
|
|
</div>
|