Ajout du bloc lien
This commit is contained in:
parent
016f48c0e9
commit
c5c3961495
@ -180,6 +180,207 @@ require_once 'scoresws/scoresws.php';
|
||||
//=> FIN BLOC DIRIGEANTS
|
||||
|
||||
//=> BLOC LIENS
|
||||
|
||||
//Informations de MAJ
|
||||
if(count($liens['actionnaires'])>0){
|
||||
$nb = count($liens['actionnaires'])-1;
|
||||
$source = $liens['actionnaires'][$nb]['Source'];
|
||||
$dateMaj = $liens['actionnaires'][$nb]['DateMaj'];
|
||||
} else if (count($liens['participations'])>0){
|
||||
$nb = count($liens['participations'])-1;
|
||||
$source = $liens['participations'][$nb]['Source'];
|
||||
$dateMaj = $liens['participations'][$nb]['DateMaj'];
|
||||
} else {
|
||||
$source = '';
|
||||
$dateLien = '';
|
||||
$dateMaj = '';
|
||||
}
|
||||
|
||||
?>
|
||||
<h1 class="titre">LIENS FINANCIERS</h1>
|
||||
|
||||
<h2>Actionnariat</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData">
|
||||
<table>
|
||||
<?php
|
||||
if( ($_SESSION['tabInfo']['entrep']['fj']>=1000 && $_SESSION['tabInfo']['entrep']['fj']<=1999)
|
||||
|| ($_SESSION['tabInfo']['entrep']['fj']>=10 && $_SESSION['tabInfo']['entrep']['fj']<=19) )
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">Cette entreprise est une personne physique.</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
if (@count($liens['actionnaires'])>0){
|
||||
foreach ($liens['actionnaires'] as $i=>$lien){
|
||||
if ($lien['Actif']==0){
|
||||
$font1='<font color="gray"><i>';
|
||||
$font2='</i></font>';
|
||||
} else {
|
||||
$font1=$font2='';
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="100">
|
||||
<?php
|
||||
echo $font1;
|
||||
if ($lien['Pmin']*1>0) echo $lien['Pmin'].' %';
|
||||
elseif ($lien['MajMin']=='+') echo 'major.';
|
||||
elseif ($lien['MajMin']=='-') echo 'minor.';
|
||||
elseif ($lien['MajMin']=='C') echo 'major.';
|
||||
elseif ($lien['MajMin']=='S') echo 'minor.';
|
||||
elseif ($lien['MajMin']=='F') echo 'absorption';
|
||||
elseif ($lien['MajMin']=='A') echo 'absorbant';
|
||||
else echo ' ';
|
||||
echo $font2;
|
||||
?>
|
||||
</td>
|
||||
<td class="StyleInfoLib" width="300">
|
||||
<?php
|
||||
echo $font1;
|
||||
echo utf8_decode($lien['RaisonSociale']);
|
||||
echo $font2;
|
||||
?>
|
||||
</td>
|
||||
<td class="StyleInfoData" width="150">
|
||||
<?php
|
||||
echo $font1;
|
||||
if ( $lien['Siren']<>'' && $lien['Siren']<>0) {
|
||||
echo 'Siren <a href="./?page=identite&siret='. $lien['Siren'] .'">'. $lien['Siren'].'</a>';
|
||||
}
|
||||
else ' ';
|
||||
|
||||
if ($lien['Pays']<>'France') echo '<b>'.utf8_decode($lien['Pays']).'</b>';
|
||||
echo $font2;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
} //Fin pour chaque actionnaire
|
||||
//Aucun actionnaire
|
||||
} else {
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">Aucun actionnaire référencé par nos services</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}//Fin test personne physique
|
||||
?>
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2>Participations</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData">
|
||||
<table>
|
||||
<?php
|
||||
if (@count($liens['participations'])>0)
|
||||
{
|
||||
foreach ($liens['participations'] as $i=>$lien)
|
||||
{
|
||||
if ($lien['Actif']==0) {
|
||||
$font1='<font color="gray"><i>';
|
||||
$font2='</i></font>';
|
||||
} else
|
||||
$font1=$font2='';
|
||||
?>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="100">
|
||||
<?php
|
||||
echo $font1;
|
||||
if ($lien['Pmin']*1>0) echo $lien['Pmin'].' %';
|
||||
elseif ($lien['MajMin']=='+') echo 'major.';
|
||||
elseif ($lien['MajMin']=='-') echo 'minor.';
|
||||
elseif ($lien['MajMin']=='C') echo 'major.';
|
||||
elseif ($lien['MajMin']=='S') echo 'minor.';
|
||||
else echo ' ';
|
||||
echo $font2;
|
||||
?>
|
||||
</td>
|
||||
<td class="StyleInfoLib" width="300"><?
|
||||
echo $font1;
|
||||
echo utf8_decode($lien['RaisonSociale']);
|
||||
echo $font2;
|
||||
?>
|
||||
</td>
|
||||
<td class="StyleInfoData" width="150"><?
|
||||
echo $font1;
|
||||
if ( $lien['Siren']<>'' && $lien['Siren']<>0) {
|
||||
echo 'Siren <a href="./?page=identite&siret='. $lien['Siren'] .'">'. $lien['Siren'].'</a>';
|
||||
}
|
||||
else ' ';
|
||||
|
||||
if ($lien['Pays']<>'France') echo '<b>'.utf8_decode($lien['Pays']).'</b>';
|
||||
echo $font2;?></b>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
} // Fin pour chaque participations
|
||||
}else{
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">Aucune participation référencée par nos services</td>
|
||||
</tr>
|
||||
<?
|
||||
}//Fin conditions participations
|
||||
?>
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<?php if (!empty($source) || !empty($dateMaj) ){
|
||||
require_once 'common/dates.php';
|
||||
$date = new WDate();
|
||||
?>
|
||||
<?php if (!empty($source)){ ?>
|
||||
Source <?=$source?>,
|
||||
<?php
|
||||
switch(strtolower($source)){
|
||||
case 'presse':
|
||||
echo '<img src="./img/logo_jal.png"/>';
|
||||
break;
|
||||
case 'collecte':
|
||||
break;
|
||||
case 'sed':
|
||||
|
||||
break;
|
||||
case 'actes':
|
||||
echo '<img src="./img/logo_jo.png"/>';
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if (!empty($dateMaj)){ ?>
|
||||
Mise à jour le <?=$date->dateT('Y-m-d','d/m/Y',$dateMaj)?>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
//=> FIN BLOC LIENS
|
||||
|
||||
//=> BLOC SYNTHESE
|
||||
@ -220,25 +421,6 @@ $dataEvol = $data['evol'];
|
||||
?>
|
||||
<h1 class="page">SYNTHÈSE</h1>
|
||||
|
||||
<table border="0" align="left">
|
||||
<?php
|
||||
if ( $numBilanN>0 || $numBilanC>0 )
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Type de bilans</td>
|
||||
<td width="340" class="StyleInfoData">
|
||||
<?php if($numBilanN>0 && $numBilanC>0){ ?><input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=N" <?=($typeBilan=='N')? 'checked' : '';?>/><label>Réel normal ou Simplifié</label><?php }?>
|
||||
<?php if($numBilanN>0 && $numBilanC>0){ ?><input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=C" <?=($typeBilan=='C')? 'checked' : '';?>/><label>Consolidé</label><?php }?>
|
||||
<?php if($numBilanN>0 && $numBilanC==0){ ?>Réel normal ou Simplifié<?php }?>
|
||||
<?php if($numBilanN==0 && $numBilanC>0){ ?>Consolidé<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
if ($numBilanN==0 && $numBilanC==0 && $numBilanB==0 && $numBilanA==0)
|
||||
{
|
||||
@ -311,25 +493,6 @@ if(count($tabRatio)==1){ ?>
|
||||
//=> BLOC BILANS
|
||||
?>
|
||||
<h1 class="page">ÉLÉMENTS FINANCIERS - BILANS</h1>
|
||||
<table>
|
||||
<?php
|
||||
if ( $numBilanN>0 || $numBilanC>0 )
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Type de bilans</td>
|
||||
<td width="340" class="StyleInfoData">
|
||||
<?php if($numBilanN>0 && $numBilanC>0){ ?><input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=N" <?=($typeBilan=='N')? 'checked' : '';?>/><label>Réel normal ou Simplifié</label><?php }?>
|
||||
<?php if($numBilanN>0 && $numBilanC>0){ ?><input type="radio" name="typeBilan" value="index.php?page=<?=$page?>&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>&type=C" <?=($typeBilan=='C')? 'checked' : '';?>/><label>Consolidé</label><?php }?>
|
||||
<?php if($numBilanN>0 && $numBilanC==0){ ?>Réel normal ou Simplifié<?php }?>
|
||||
<?php if($numBilanN==0 && $numBilanC>0){ ?>Consolidé<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
if ($numBilanN==0 && $numBilanC==0 && $numBilanB==0 && $numBilanA==0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user