115 lines
3.9 KiB
PHP
Raw Normal View History

<?php
// -------------------------------------------------------------------------- //
// afficheLiens
// -------------------------------------------------------------------------- //
2011-01-19 16:44:01 +00:00
function afficheLiens($liens, $type)
{
2011-01-19 16:44:01 +00:00
if (count($liens) > 0) {
foreach ($liens as $lien) {
if ($lien->Actif == 0){
$font1 = '<font color="gray"><i>';
$font2 = '</i></font>';
} else {
$font1 = '';
$font2 = '';
}
print '<tr>';
print '<td class="StyleInfoData" width="100">';
print $font1;
if ($lien->Pmin > 0) {
print $lien->Pmin.'&nbsp;%';
} else {
switch ($lien->MajMin) {
case '+': print 'major.'; break;
case '-': print 'minor.'; break;
case 'C': print 'major.'; break;
case 'S': print 'minor.'; break;
case 'F': print 'absorption'; break;
case 'A': print 'absorbant'; break;
default : print '&nbsp;';
}
}
print $font2;
print '</td>';
print '<td class="StyleInfoLib" width="300">';
print $font1;
2011-01-19 16:44:01 +00:00
print $lien->RaisonSociale;
print $font2;
print '</td>';
print '<td class="StyleInfoData" width="150">';
print $font1;
if ($lien->Siren != '' && $lien->Siren != 0) {
print 'Siren&nbsp;<a href="./?page=identite&siret='.
$lien->Siren .'">'.$lien->Siren.'</a>';
}
if ($lien->Pays != 'France') {
2011-01-19 16:44:01 +00:00
print '<b>'.$lien->Pays.'</b>';
}
print $font2;
print '</td>';
print '</tr>';
}
} else {
print '<tr>';
print '<td width="30">&nbsp;</td>';
print '<td width="550" colspan="2" class="StyleInfoData">';
if ($type == 'actionnaires') {
print 'Aucun actionnaire r&eacute;f&eacute;renc&eacute;'.
' par nos services</td>';
} else {
print 'Aucune participation r&eacute;f&eacute;renc&eacute;e'.
' par nos services</td>';
}
print '</tr>';
}
}
// -------------------------------------------------------------------------- //
// afficheActionnaires
// -------------------------------------------------------------------------- //
2011-01-19 16:44:01 +00:00
function afficheActionnaires($liens)
{
print '<h2>Actionnariat</h2>';
print '<table>';
print '<tr>';
print '<td width="30">&nbsp;</td>';
print '<td colspan="2" width="550" class="StyleInfoData">';
print '<table>';
if (($_SESSION['tabInfo']['entrep']['fj'] >= 1000 &&
$_SESSION['tabInfo']['entrep']['fj'] <= 1999) ||
($_SESSION['tabInfo']['entrep']['fj'] >= 10 &&
$_SESSION['tabInfo']['entrep']['fj'] <= 19)) {
print '<tr>';
print '<td width="30">&nbsp;</td>';
print '<td width="550" colspan="2" class="StyleInfoData">'.
'Cette entreprise est une personne physique.';
print '</td>';
print '</tr>';
} else {
afficheLiens($liens, 'actionnaires');
}
print '<tr><td colspan="3">&nbsp;</td></tr>';
print '</table>';
print '</tr>';
print '</table>';
}
// -------------------------------------------------------------------------- //
// afficheParticipations
// -------------------------------------------------------------------------- //
2011-01-19 16:44:01 +00:00
function afficheParticipations($liens)
{
print '<h2>Participations</h2>';
print '<table>';
print '<tr>';
print '<td width="30">&nbsp;</td>';
print '<td colspan="2" width="550" class="StyleInfoData">';
print '<table>';
afficheLiens($liens, 'participations');
print '<tr><td colspan="3">&nbsp;</td></tr>';
print '</table>';
print '</tr>';
print '</table>';
}
?>