2012-10-18 21:18:42 +00:00
<?php if ( empty ( $this -> AutrePage )) { ?>
2011-04-18 15:25:26 +00:00
< div id = "center" >
2012-10-18 21:18:42 +00:00
<?php } ?>
2011-09-01 18:43:19 +00:00
2012-10-18 21:18:42 +00:00
<?php if ( empty ( $this -> AutrePage )) { ?>
2011-09-05 15:21:59 +00:00
< h1 > LIENS FINANCIERS< / h1 >
2011-04-22 14:29:58 +00:00
< div class = "paragraph" >
2011-05-04 14:18:22 +00:00
< table class = "identite" >
2012-09-26 20:00:57 +00:00
< tr >
2011-04-22 14:29:58 +00:00
< td width = "30" > < / td >
2012-09-26 20:00:57 +00:00
< td width = "200" class = "StyleInfoLib" > Numé ro identifiant Siren< / td >
< td width = "350" class = "StyleInfoData" > <? = $this -> SirenTexte ( $this -> siren ) ?> </ td >
< / tr >
< tr >
2011-04-22 14:29:58 +00:00
< td width = "30" > < / td >
< td width = "200" class = "StyleInfoLib" > Raison Sociale< / td >
< td width = "350" class = "StyleInfoData" > <? = $this -> raisonSociale ?> </ td >
2012-09-26 20:00:57 +00:00
< / tr >
<?php if ( $this -> liengroupe ) { ?>
< tr >
2012-03-29 13:29:45 +00:00
< td width = "30" > < / td >
< td width = "550" colspan = "2" class = "StyleInfoLib" >
2012-09-26 20:00:57 +00:00
< a id = "groupesarbo" title = "Arborescence du groupe" href = " <? = $this -> liengroupe ?> " > Organigramme du groupe</ a >
< / td >
< / tr >
<?php } ?>
2011-04-22 14:29:58 +00:00
< / table >
< / div >
2012-10-18 21:18:42 +00:00
<?php } ?>
2011-04-22 14:29:58 +00:00
2012-10-18 21:18:42 +00:00
<?php $liste = array ( 'actionnaires' , 'participations' ); ?>
<?php foreach ( $liste as $part ) { ?>
2011-04-22 14:29:58 +00:00
2012-10-18 21:18:42 +00:00
<?php if ( $part == 'actionnaires' ) { ?>
< h2 > Actionnariat< / h2 >
<?php } else { ?>
< h2 > Participations< / h2 >
2012-09-26 20:00:57 +00:00
<?php } ?>
2011-04-22 14:29:58 +00:00
< div class = "paragraph" >
< table >
2012-10-18 21:18:42 +00:00
<?php if ( count ( $this -> $part ) > 0 ) { ?>
<?php foreach ( $this -> $part as $lien ) { ?>
< tr >
< td class = "StyleInfoData" width = "100" >
<?php
if (intval($lien->PDetention)>0) echo $lien->PDetention.' %';
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 ' ';
2011-04-22 14:29:58 +00:00
?>
< / td >
2012-10-18 21:18:42 +00:00
< td class = "StyleInfoLib" width = "300" >
<? = $lien -> nom ?>
2011-04-22 14:29:58 +00:00
< / td >
2012-10-18 21:18:42 +00:00
< td class = "StyleInfoData" width = "150" >
<?php
if ( !empty($lien->siren) & & intval($lien->siren)!=0 ) {
$href = $this->url(array(
'controller' => 'identite',
'action' => 'fiche',
'siret' => $lien->siren
), null, true);
echo 'Siren < a href = "'.$href.'" > '.$lien->siren.'< / a > ';
}
else ' ';
2011-04-22 14:29:58 +00:00
2012-10-18 21:18:42 +00:00
if ($lien->pays< >'France') echo '< b > '.$lien->pays.'< / b > ';
?>
2011-04-22 14:29:58 +00:00
< / td >
2012-09-26 20:00:57 +00:00
<?php if ( $this -> edition ) { ?>
2012-10-18 21:18:42 +00:00
<?php if ( $part == 'actionnaires' ) { ?>
< td >
2012-10-23 15:28:17 +00:00
< a class = "dialog" title = "Modifier actionnaire" href = " <? = $this -> url ( array ( 'controller' => 'saisie' , 'action' => 'lien' , 'type' => 'actionnaire' , 'mode' => 'edit' , 'siren' => $this -> siren , 'idLien' => $lien -> id ), null , true ) ?> " >< img src = "/themes/default/images/interfaces/editer.png" /></ a >
< a class = "dialog" title = "Supprimer actionnaire" href = " <? = $this -> url ( array ( 'controller' => 'saisie' , 'action' => 'lien' , 'type' => 'actionnaire' , 'mode' => 'delete' , 'siren' => $this -> siren , 'idLien' => $lien -> id ), null , true ) ?> " >< img src = "/themes/default/images/interfaces/supprimer.png" /></ a >
2012-10-18 21:18:42 +00:00
< / td >
<?php } else { ?>
2012-09-26 20:00:57 +00:00
< td >
2012-10-23 15:28:17 +00:00
< a class = "dialog" title = "Modifier participation" href = " <? = $this -> url ( array ( 'controller' => 'saisie' , 'action' => 'lien' , 'type' => 'participation' , 'mode' => 'edit' , 'siren' => $this -> siren , 'idLien' => $lien -> id ), null , true ) ?> " >< img src = "/themes/default/images/interfaces/editer.png" /></ a >
< a class = "dialog" title = "Supprimer participation" href = " <? = $this -> url ( array ( 'controller' => 'saisie' , 'action' => 'lien' , 'type' => 'participation' , 'mode' => 'delete' , 'idLien' => $lien -> id ), null , true ) ?> " >< img src = "/themes/default/images/interfaces/supprimer.png" /></ a >
2012-09-26 20:00:57 +00:00
< / td >
<?php } ?>
2012-10-18 21:18:42 +00:00
<?php } ?>
< / tr >
<?php } ?>
<?php } else { ?>
<?php if ( $part == 'actionnaires' ) { ?>
< tr >
< td width = "30" > < / td >
< td width = "550" colspan = "2" class = "StyleInfoData" > Aucun actionnaire ré fé rencé par nos services< / td >
2011-04-22 14:29:58 +00:00
< / tr >
2012-10-18 21:18:42 +00:00
<?php } else { ?>
2011-04-22 14:29:58 +00:00
< tr >
< td width = "30" > < / td >
< td width = "550" colspan = "2" class = "StyleInfoData" > Aucune participation ré fé rencé e par nos services< / td >
< / tr >
2012-10-18 21:18:42 +00:00
<?php } ?>
<?php } ?>
2011-04-22 14:29:58 +00:00
< / table >
2012-09-26 20:00:57 +00:00
<?php if ( $this -> edition ) { ?>
2012-10-18 21:18:42 +00:00
<?php if ( $part == 'actionnaires' ) { ?>
< div style = "line-height:16px;" >
< a class = "dialog" title = "Ajouter un actionnaire" href = " <? = $this -> url ( array ( 'controller' => 'saisie' , 'action' => 'lien' , 'type' => 'actionnaire' , 'mode' => 'add' , 'siren' => $this -> siren ), null , true ) ?> " >
< img style = "vertical-align:middle;" src = "/themes/default/images/interfaces/ajouter.png" / > Ajouter un actionnaire< / a >
< / div >
<?php } else { ?>
< div style = "line-height:16px;" >
< a class = "dialog" title = "Ajouter une participation" href = " <? = $this -> url ( array ( 'controller' => 'saisie' , 'action' => 'lien' , 'type' => 'participation' , 'mode' => 'add' , 'siren' => $this -> siren ), null , true ) ?> " >
< img style = "vertical-align:middle;" src = "/themes/default/images/interfaces/ajouter.png" / > Ajouter une participation< / a >
< / div >
<?php } ?>
2012-09-26 20:00:57 +00:00
<?php } ?>
2011-04-22 14:29:58 +00:00
< / div >
2012-10-18 21:18:42 +00:00
<?php } ?>
2011-04-22 14:29:58 +00:00
2012-10-18 21:18:42 +00:00
<?php if ( empty ( $this -> AutrePage )) { ?>
2012-06-25 08:32:16 +00:00
<? = $this -> render ( 'cgu.phtml' , $this -> cgu ) ?>
2012-10-18 21:18:42 +00:00
<?php } ?>
2012-06-25 08:32:16 +00:00
2012-10-18 21:18:42 +00:00
<?php if ( empty ( $this -> AutrePage )) { ?>
2011-09-01 18:43:19 +00:00
< / div >
2012-10-18 21:18:42 +00:00
<?php } ?>
2012-09-26 20:00:57 +00:00
<?php if ( $this -> edition ) { ?>
< script >
$('a.dialog').on('click', function(){
var href = $(this).attr('href');
if (href!='#') {
var title = $(this).attr('title');
var dialogOpts = {
bgiframe: true,
title: title,
width: 650,
height: 600,
modal: true,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {
2012-10-15 09:12:59 +00:00
Valider: function() {
if ($('input[name=id1]').length>0 || $('input[name=id2]').length>0) {
var form = $('form[name=lien]');
$.post(form.attr('action'), form.serialize(), function(data){
2012-10-23 15:28:17 +00:00
if(data.error==''){
//Remove button
$('form[name=lien]').replaceWith('< b > Lien créé id = '+data.id+'< / b > ');
} else {
$('form[name=lien]').replaceWith(data.error);
}
}, 'json').error(function(){ alert('Unknow error'); });
2012-10-15 09:12:59 +00:00
} else {
alert("Quelque chose manque !");
}
},
2012-09-26 20:00:57 +00:00
Annuler: function() { $(this).dialog('close'); }
},
close: function() { $('#dialogcmd').remove(); }
};
$('< div id = "dialogcmd" > < / div > ').dialog(dialogOpts);
return false;
}
});
< / script >
<?php } ?>