2011-05-26 15:56:16 +00:00
<?php $i = 0 ;
$detail = array();
?>
2011-04-19 15:59:50 +00:00
< div id = "center" >
2011-06-07 07:58:06 +00:00
2011-06-07 15:01:03 +00:00
<?php if ( empty ( $this -> AutrePage )) : ?>
< h1 > SYNTHÈSE< / h1 >
2011-05-04 14:18:22 +00:00
< div class = "paragraph" >
< table class = "identite" >
< tr >
< td width = "30" > < / td >
< td width = "200" class = "StyleInfoLib" >
Numé ro identifiant Siren
< / td >
< td width = "350" class = "StyleInfoData" >
2011-05-06 14:34:12 +00:00
<?php echo $this -> SirenTexte ( $this -> siren ); ?>
2011-05-04 14:18:22 +00:00
< / td >
< / tr >
< tr >
< td width = "30" > < / td >
< td width = "200" class = "StyleInfoLib" > Raison Sociale< / td >
2011-05-06 14:34:12 +00:00
< td width = "350" class = "StyleInfoData" > <?php echo $this -> raisonSociale ; ?> </ td >
2011-05-04 14:18:22 +00:00
< / tr >
2011-05-06 14:34:12 +00:00
<?php if ( ! empty ( $this -> synthese )) : ?>
2011-05-27 16:07:48 +00:00
<?php if (( $this -> affFormNormal and $this -> affFormConsolide )) : ?>
2011-05-26 15:56:16 +00:00
<?php if ( ! isset ( $this -> otherView )) : ?>
2011-06-07 07:58:06 +00:00
< tr >
2011-05-04 14:18:22 +00:00
< td width = "30" > < / td >
< td class = "StyleInfoLib" width = "200" > Type de Synthése< / td >
< td class = "StyleInfoData" width = "340" >
< form method = "post" action = " <?php echo $this -> url ( array (
'controller' => 'finance',
'action' => 'synthese')); ?>">
2011-05-26 15:56:16 +00:00
< input onclick = "submit();" <?php echo ( isset ( $_POST [ 'typeBilan' ])) ? (( $_POST [ 'typeBilan' ] == ( 'N' )) ? 'checked="true"' : false ) : 'checked="true"' ; ?> type = "radio" name = "typeBilan" value = "N" /> Réel normal ou Simplifié
< input onclick = "submit();" <?php echo ( isset ( $_POST [ 'typeBilan' ])) ? (( $_POST [ 'typeBilan' ] == ( 'C' )) ? 'checked="true"' : false ) : false ; ?> type = "radio" name = "typeBilan" value = "C" /> Consolidé
2011-05-04 14:18:22 +00:00
< / form >
< / td >
< / tr >
2011-05-26 15:56:16 +00:00
<?php endif ; ?>
2011-05-27 16:07:48 +00:00
<?php else : ?>
< tr >
< td width = "30" > < / td >
< td class = "StyleInfoLib" width = "200" > Type de bilans< / td >
< td class = "StyleInfoData" width = "340" > Réel normal ou Simplifié< / td >
< / tr >
<?php endif ; ?>
2011-05-04 14:18:22 +00:00
< / table >
2011-06-07 15:01:03 +00:00
< / div >
<?php endif ; ?>
<?php endif ; ?>
< div class = "paragraph" >
2011-05-04 14:18:22 +00:00
< table id = "synthese" >
2011-06-07 15:01:03 +00:00
<?php if ( ! empty ( $this -> synthese )) : ?>
2011-05-04 14:18:22 +00:00
< thead >
< tr >
<?php foreach ( $this -> synthese [ key ( $this -> synthese )][ 'item' ] as $date => $val ) : ?>
2011-05-27 16:07:48 +00:00
<?php if ( $i == 2 or $i == 1 ) : ?>
2011-05-04 14:18:22 +00:00
< th > Evolution< / th >
<?php elseif ( $i == 0 ) : ?>
2011-05-27 16:07:48 +00:00
< th >
<?php if ( isset ( $this -> otherView )) : ?>
< a href = "/finance/synthese/siret/ <?php echo $this -> siret ; ?> /id/ <?php echo $this -> idSC ?> " >
< img src = "/themes/default/images/finance/char_bar.png" / >
< / a >
<?php endif ; ?>
< / th >
2011-05-04 14:18:22 +00:00
<?php endif ; ?>
2011-05-27 16:07:48 +00:00
< th >
<?php echo $this -> dateFunction -> dateT ( 'Ymd' , 'd/m/Y' , $date ) . '<br />' . $val [ 'duree' ] . ' mois' ; ?>
< / th >
2011-05-04 14:18:22 +00:00
<?php $i ++ ; ?>
2011-05-27 16:07:48 +00:00
<?php endforeach ; ?>
2011-05-04 14:18:22 +00:00
< th > Evolution< / th >
< th > < / th >
< / tr >
< / thead >
< tbody >
<?php $i = 0 ; ?>
<?php foreach ( $this -> synthese as $id => $element ) : ?>
< tr >
2011-05-26 15:56:16 +00:00
< td style = "cursor:help" class = "head tooltip" title = " <?php echo $element [ 'commentaires' ]; ?> " > <?php echo $element [ 'name' ]; ?> </ td >
2011-05-04 14:18:22 +00:00
<?php foreach ( $element [ 'item' ] as $valeur ) : ?>
< td class = "right" > <?php echo $valeur [ 'ValEntrep' ] . ' ' . $element [ 'unite' ]; ?> </ td >
< td class = "right" > <?php echo $valeur [ 'ValEntrepEvol' ]; ?> %</ td >
<?php endforeach ; ?>
< td >
2011-05-26 15:56:16 +00:00
<?php if ( ! isset ( $this -> otherView )) : ?>
< a href = " <?php echo $this -> url ( array ( 'controller' => 'finance' ,
'action' => 'lignegraph',
2011-05-27 16:07:48 +00:00
'id' => $id,
'actionName' => 'synthese',
'idSC' => $this->idSC,
'typeBilan' => $this->typeBilan,
2011-06-07 07:58:06 +00:00
'idGraph' => 'synthese-'.$this->siret.'-'.$id.'-'.$this->typeBilan.'.png'));?>"
2011-06-07 09:06:15 +00:00
name="<?php echo $this -> nameForGraphique [ $id ][ 'name' ]; ?> " class="sTip"
2011-05-04 14:18:22 +00:00
rel="<?php echo $this -> url ( array (
'controller' => 'finance',
'action' => 'printgraph',
2011-05-27 16:07:48 +00:00
'idGraph' => 'synthese-'.$this->siret.'-'.$id.'-'.$this->typeBilan.'.png'))?>" href="">
2011-05-04 14:18:22 +00:00
< img src = "/themes/default/images/finance/char_bar.png" / >
< / a >
2011-05-26 15:56:16 +00:00
<?php else : ?>
2011-05-27 16:07:48 +00:00
< a href = "/finance/synthese/siret/ <?php echo $this -> siret ; ?> /id/ <?php echo $this -> idSC ?> " >
2011-05-26 15:56:16 +00:00
< img src = "/themes/default/images/finance/char_bar.png" / >
< / a >
<?php endif ; ?>
2011-05-04 14:18:22 +00:00
< / td >
< / tr >
< / tbody >
<?php $i ++ ; ?>
<?php endforeach ; ?>
< / table >
2011-05-24 16:03:25 +00:00
< br / >
2011-05-26 15:56:16 +00:00
<?php if ( ! isset ( $this -> otherView )) : ?>
2011-05-27 16:07:48 +00:00
< img src = '/fichier/imgcache/synthese- <?php echo $this -> siret ; ?> -graphiqueSynthses- <?php echo $this -> typeBilan ; ?> .png' />
2011-05-26 15:56:16 +00:00
<?php else : ?>
< center >< img src = "/fichier/imgcache/ <?php echo $this -> otherView ; ?> " /></ center >
<?php endif ; ?>
2011-06-03 08:53:22 +00:00
<?php elseif ( $this -> nothing ) : ?>
< table width = "100%" >
< tr >
< td width = "30" > < / td >
< td class = "StyleInfoLib" width = "200" colspan = "2" > Aucun bilan disponible pour cette entreprise !< / td >
< / tr >
< / table >
2011-05-06 14:34:12 +00:00
<?php else : ?>
2011-06-03 08:53:22 +00:00
< table width = "100%" >
< tr >
< td width = "30" > < / td >
< td class = "StyleInfoLib" width = "200" colspan = "2" > Bilan de banque/assurance non gérés< / td >
< / tr >
2011-05-06 14:34:12 +00:00
< / table >
<?php endif ; ?>
2011-06-07 07:58:06 +00:00
< / table >
2011-05-04 14:18:22 +00:00
< / div >
2011-06-07 15:01:03 +00:00
2011-06-07 07:58:06 +00:00
< / div >