2009-05-28 14:48:23 +00:00
|
|
|
<?php
|
2010-04-27 08:09:23 +00:00
|
|
|
if (!page_checkParams()) die('Paramètres incorrects !');
|
|
|
|
|
2009-10-08 13:20:51 +00:00
|
|
|
require_once 'scoresws/scoresws.php';
|
2010-09-29 15:03:33 +00:00
|
|
|
require_once 'annonces/annonces.php';
|
2009-02-19 16:28:12 +00:00
|
|
|
|
2010-09-29 15:03:33 +00:00
|
|
|
if (isset($_REQUEST['idan'])) {
|
2010-02-04 13:52:02 +00:00
|
|
|
$idan = $_REQUEST['idan'];
|
2010-09-29 15:03:33 +00:00
|
|
|
} else {
|
2010-02-04 13:52:02 +00:00
|
|
|
$idan = false;
|
2010-09-29 15:03:33 +00:00
|
|
|
}
|
2010-04-02 10:00:32 +00:00
|
|
|
$vue = (isset($_GET['vue'])) ? $_GET['vue'] : '';
|
2009-02-19 16:28:12 +00:00
|
|
|
$message='';
|
2009-05-28 14:48:23 +00:00
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Récupération des infos du webservice
|
2009-10-08 13:20:51 +00:00
|
|
|
$annonces = scoresws_annonces($siret, $siren, $idEntreprise, $vue, $idan);
|
2010-09-29 15:03:33 +00:00
|
|
|
$objAnnonces = new Annonces($annonces);
|
2009-06-03 08:44:13 +00:00
|
|
|
?>
|
2009-08-27 07:39:27 +00:00
|
|
|
<div id="center">
|
2009-06-18 15:26:44 +00:00
|
|
|
<h1 class="titre">ANNONCES LÉGALES</h1>
|
2009-06-03 08:44:13 +00:00
|
|
|
<table>
|
2010-09-29 15:03:33 +00:00
|
|
|
<?php
|
|
|
|
if ($message<>'') {
|
|
|
|
?>
|
2009-06-03 08:44:13 +00:00
|
|
|
<tr>
|
|
|
|
<td width="30"> </td>
|
2010-02-04 13:52:02 +00:00
|
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
|
|
|
<h3><?=$message;?></h3>
|
|
|
|
</td>
|
2009-06-03 08:44:13 +00:00
|
|
|
</tr>
|
2010-09-29 15:03:33 +00:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2009-06-03 08:44:13 +00:00
|
|
|
<tr>
|
|
|
|
<td width="30"> </td>
|
2010-02-04 13:52:02 +00:00
|
|
|
<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>
|
2009-06-03 08:44:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td width="30"> </td>
|
2011-03-17 11:25:59 +00:00
|
|
|
<td width="200" colspan="2" class="StyleInfoLib">Raison Sociale</td>
|
2010-02-04 13:52:02 +00:00
|
|
|
<td width="350" class="StyleInfoData">
|
|
|
|
<?=$raisonSociale?>
|
|
|
|
<?php
|
2011-03-17 11:25:59 +00:00
|
|
|
if(hasModeEdition()) {
|
2010-02-04 13:52:02 +00:00
|
|
|
?>
|
|
|
|
<a href="./?page=saisie&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">
|
|
|
|
(Edition)
|
|
|
|
</a>
|
2010-03-05 09:56:29 +00:00
|
|
|
<?php
|
2010-02-04 13:52:02 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</td>
|
2009-06-03 08:44:13 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
2009-08-27 07:39:27 +00:00
|
|
|
<?php
|
2010-09-29 15:03:33 +00:00
|
|
|
if ($idan && in_array($vue, array('bodacc', 'abod', 'balo', 'asso', 'bomp')))
|
2009-08-27 07:39:27 +00:00
|
|
|
{
|
2010-09-29 15:03:33 +00:00
|
|
|
// BALO
|
2009-08-27 07:39:27 +00:00
|
|
|
if ($vue=='balo')
|
|
|
|
{
|
2011-03-17 11:25:59 +00:00
|
|
|
//Présélection des annonces
|
|
|
|
foreach($objAnnonces->annoncesBalo as $ann) {
|
|
|
|
if($ann['id']==$idan)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2009-08-27 07:39:27 +00:00
|
|
|
?>
|
|
|
|
<h2>BALO</h2>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td width="30"> </td>
|
|
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
2011-03-17 11:25:59 +00:00
|
|
|
<?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">
|
2010-09-29 15:03:33 +00:00
|
|
|
<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>
|
2009-08-27 07:39:27 +00:00
|
|
|
.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td width="30"> </td>
|
2009-09-18 17:09:22 +00:00
|
|
|
<td width="550" colspan="3" class="StyleInfoLib"><b><?=$ann['Categorie']?></b></td>
|
2009-08-27 07:39:27 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
</table>
|
2009-03-23 10:17:19 +00:00
|
|
|
<?php
|
2009-08-27 07:39:27 +00:00
|
|
|
}
|
|
|
|
elseif ($vue=='bodacc' || $vue=='abod')
|
|
|
|
{
|
2011-03-17 11:25:59 +00:00
|
|
|
foreach($objAnnonces->annoncesBodacc as $ann) {
|
|
|
|
if($ann['id']==$idan)
|
|
|
|
break;
|
|
|
|
}
|
2009-05-28 14:48:23 +00:00
|
|
|
?>
|
2009-08-27 07:39:27 +00:00
|
|
|
<h2>ÉVÉNEMENTS LÉGAUX</h2>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td width="30"> </td>
|
|
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
2010-03-05 09:56:29 +00:00
|
|
|
<?php
|
2011-03-17 11:25:59 +00:00
|
|
|
echo $objAnnonces->getAnnonceDesc($ann).' '.
|
|
|
|
$objAnnonces->getAnnonceEntree($ann).' '.
|
|
|
|
$objAnnonces->getAnnonceEntreeSD($ann);
|
2010-06-24 09:42:23 +00:00
|
|
|
|
2011-03-17 11:25:59 +00:00
|
|
|
require_once 'saisie/saisie_liensdialog.php';
|
2010-06-24 09:42:23 +00:00
|
|
|
?>
|
|
|
|
</td>
|
2009-08-27 07:39:27 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
elseif ($vue=='asso')
|
|
|
|
{
|
2011-03-17 11:25:59 +00:00
|
|
|
foreach($objAnnonces->annoncesAsso as $ann) {
|
|
|
|
if($ann['id']==$idan)
|
|
|
|
break;
|
|
|
|
}
|
2009-08-27 07:39:27 +00:00
|
|
|
?>
|
|
|
|
<h2>Associations</h2>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td width="30"> </td>
|
2010-09-29 15:03:33 +00:00
|
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
2011-03-17 11:25:59 +00:00
|
|
|
<?php
|
|
|
|
echo $objAnnonces->getAnnonceDesc($ann).' '.
|
|
|
|
$objAnnonces->getAnnonceEntree($ann).' '.
|
|
|
|
$objAnnonces->getAnnonceEntreeSD($ann);
|
|
|
|
|
|
|
|
require_once 'saisie/saisie_liensdialog.php';
|
|
|
|
?>
|
2010-09-29 15:03:33 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
elseif ($vue=='bomp')
|
|
|
|
{
|
2011-03-17 11:25:59 +00:00
|
|
|
foreach($objAnnonces->annoncesBomp as $ann) {
|
|
|
|
if($ann['id']==$idan)
|
|
|
|
break;
|
|
|
|
}
|
2010-09-29 15:03:33 +00:00
|
|
|
?>
|
|
|
|
<h2>Marchés publics</h2>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td width="30"> </td>
|
|
|
|
<td width="550" colspan="3" class="StyleInfoData">
|
|
|
|
<?php
|
2011-03-17 11:25:59 +00:00
|
|
|
echo $objAnnonces->getAnnonceDesc($ann).' '.
|
|
|
|
$objAnnonces->getAnnonceEntree($ann).' '.
|
|
|
|
$objAnnonces->getAnnonceEntreeSD($ann);
|
|
|
|
|
|
|
|
require_once 'saisie/saisie_liensdialog.php';
|
2010-09-29 15:03:33 +00:00
|
|
|
?>
|
|
|
|
</td>
|
2009-08-27 07:39:27 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2009-06-03 08:44:13 +00:00
|
|
|
<table>
|
2009-08-27 07:39:27 +00:00
|
|
|
<tr>
|
2009-05-28 14:48:23 +00:00
|
|
|
<td width="30"> </td>
|
2009-06-03 08:44:13 +00:00
|
|
|
<td width="550" colspan="3" class="StyleInfoLib">
|
|
|
|
<b>
|
2011-03-17 11:25:59 +00:00
|
|
|
<?php echo $objAnnonces->getAnnonceEven($ann)?>
|
2009-06-03 08:44:13 +00:00
|
|
|
</b>
|
2009-05-28 14:48:23 +00:00
|
|
|
</td>
|
2009-08-27 07:39:27 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-05-28 14:48:23 +00:00
|
|
|
<td colspan="4"> </td>
|
2009-08-27 07:39:27 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-05-28 14:48:23 +00:00
|
|
|
<td width="30"> </td>
|
2011-03-17 11:25:59 +00:00
|
|
|
<td width="550" colspan="3">
|
|
|
|
<code><?php echo $objAnnonces->getAnnonceTexte($ann)?></code>
|
|
|
|
</td>
|
2009-08-27 07:39:27 +00:00
|
|
|
</tr>
|
|
|
|
<tr><td colspan="4"> </td></tr>
|
|
|
|
<tr>
|
2010-09-29 15:03:33 +00:00
|
|
|
<td colspan="4" align="center" class="StyleInfoData">
|
2010-10-13 13:10:10 +00:00
|
|
|
<?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 : '';?>
|
|
|
|
">
|
2010-09-29 15:03:33 +00:00
|
|
|
Revenir à la liste des annonces
|
|
|
|
</a>
|
|
|
|
</td>
|
2009-08-27 07:39:27 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<?php
|
2010-09-29 15:03:33 +00:00
|
|
|
}
|
|
|
|
elseif (count($annonces) > 0)
|
|
|
|
{
|
|
|
|
$typeAnnonces = array(
|
|
|
|
'Bodacc' => 'EVÉNEMENTS LÉGAUX',
|
|
|
|
'Balo' => 'BALO',
|
|
|
|
'Bomp' => 'Marchés publics',
|
|
|
|
'Asso' => 'Associations',
|
|
|
|
);
|
2009-06-18 15:26:44 +00:00
|
|
|
|
2010-09-29 15:03:33 +00:00
|
|
|
foreach ($typeAnnonces as $type => $titre)
|
2009-08-27 07:39:27 +00:00
|
|
|
{
|
2010-09-29 15:03:33 +00:00
|
|
|
$classType = 'annonces'.$type;
|
|
|
|
if (count($objAnnonces->$classType)>0)
|
2010-03-05 09:56:29 +00:00
|
|
|
{
|
2009-12-04 17:17:09 +00:00
|
|
|
?>
|
2010-09-29 15:03:33 +00:00
|
|
|
<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>
|
2009-08-27 07:39:27 +00:00
|
|
|
</td>
|
|
|
|
<td width="450" colspan="2" class="StyleInfoData">
|
2010-09-29 15:03:33 +00:00
|
|
|
<a href="/?page=annonces&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&<?=$resume['href']?>">
|
|
|
|
<?=$resume['lib']?>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2009-06-03 08:44:13 +00:00
|
|
|
<?php
|
2010-09-29 15:03:33 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
2009-08-27 07:39:27 +00:00
|
|
|
<?php
|
2009-06-18 15:26:44 +00:00
|
|
|
}
|
2009-02-19 16:28:12 +00:00
|
|
|
}
|
2009-08-27 07:39:27 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/** Aucune annonce bodacc pour cette entreprise **/
|
|
|
|
?>
|
2010-02-10 17:27:03 +00:00
|
|
|
<h2>Evénements légaux</h2>
|
2009-08-27 07:39:27 +00:00
|
|
|
<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
|
|
|
|
}
|
2009-06-18 15:26:44 +00:00
|
|
|
|
2011-02-21 17:09:22 +00:00
|
|
|
require_once 'export/genexport.php';
|
2009-02-19 16:28:12 +00:00
|
|
|
|
2010-09-29 15:03:33 +00:00
|
|
|
// Surveillance
|
2009-08-27 07:39:27 +00:00
|
|
|
if (!$idan)
|
|
|
|
{
|
2009-05-20 15:49:08 +00:00
|
|
|
?>
|
2009-06-03 08:44:13 +00:00
|
|
|
<table>
|
2009-02-19 16:28:12 +00:00
|
|
|
<tr>
|
|
|
|
<td width="30"> </td>
|
2009-05-22 09:53:48 +00:00
|
|
|
<td colspan="3" width="550" class="StyleInfoData">
|
2010-02-23 15:27:18 +00:00
|
|
|
<a class="dialogsurv" href=""></a>
|
2009-06-18 15:26:44 +00:00
|
|
|
<?php
|
2009-05-20 15:49:08 +00:00
|
|
|
require_once 'surveillance/surveillance.php';
|
2009-12-15 17:14:21 +00:00
|
|
|
echo getSurveillance('annonces', $siret);
|
2009-05-20 15:49:08 +00:00
|
|
|
?>
|
|
|
|
</td>
|
2009-02-19 16:28:12 +00:00
|
|
|
</tr>
|
2009-06-03 08:44:13 +00:00
|
|
|
</table>
|
2009-06-18 15:26:44 +00:00
|
|
|
<?php
|
|
|
|
}
|
2009-02-19 16:28:12 +00:00
|
|
|
?>
|
2010-04-12 14:49:55 +00:00
|
|
|
|
|
|
|
<p class="confidentiel blockh2">
|
|
|
|
<?php
|
|
|
|
require_once 'cgu/cgu.php';
|
|
|
|
echo afficheCgu();
|
|
|
|
?>
|
|
|
|
</p>
|
|
|
|
|
2009-06-03 08:44:13 +00:00
|
|
|
</div>
|