2011-05-02 15:53:31 +00:00
<?php $i = 0 ; ?>
2011-04-19 15:59:50 +00:00
< div id = "center" >
2011-04-29 15:46:59 +00:00
< h1 > SYNTHÈSE< / h1 >
< div class = "paragraph" >
< table class = "identite" >
< tr >
< td width = "30" > < / td >
< td class = "StyleInfoLib" width = "200" > Numéro identifiant Siren< / td >
< td class = "StyleInfoData" width = "340" > <?php echo $this -> siret ; ?> </ td >
< / tr >
< tr >
< td width = "30" > < / td >
< td class = "StyleInfoLib" width = "200" > Raison Sociale< / td >
< td class = "StyleInfoData" width = "340" > <?php echo $this -> raisonSociale ; ?> </ td >
< / tr >
2011-05-02 15:53:31 +00:00
< tr >
< form method = "post" action = " <?php echo $this -> url ( array ( 'controller' => 'finance' , 'action' => 'synthese' )); ?> " >
< td width = "30" > < / td >
< td class = "StyleInfoLib" width = "200" > Type de Synthése< / td >
< td class = "StyleInfoData" width = "340" >
< input <?php echo ( isset ( $_POST [ 'typeBilan' ])) ? (( $_POST [ 'typeBilan' ] == ( 'N' )) ? 'checked="true"' : false ) : 'checked="true"' ; ?> type = "radio" name = "typeBilan" value = "N" onclick = "submit();" /> Réel normal ou Simplifié
< input <?php echo ( isset ( $_POST [ 'typeBilan' ])) ? (( $_POST [ 'typeBilan' ] == ( 'C' )) ? 'checked="true"' : false ) : false ; ?> type = "radio" name = "typeBilan" value = "C" onclick = "submit();" /> Consolidé
< / td >
< / form >
< / tr >
2011-04-29 15:46:59 +00:00
< / table >
< table id = "synthese" >
< thead >
< tr >
<?php foreach ( $this -> synthese [ key ( $this -> synthese )][ 'item' ] as $date => $val ) : ?>
<?php if ( $i == 2 or $i == 1 ) : ?>
< th > Evolution< / th >
<?php elseif ( $i == 0 ) : ?>
< th > < / th >
<?php endif ; ?>
2011-05-02 15:53:31 +00:00
< th > <?php echo $this -> dateFunction -> dateT ( 'Ymd' , 'd/m/Y' , $date ); ?> </ th >
2011-04-29 15:46:59 +00:00
<?php $i ++ ; ?>
<?php endforeach ; ?>
< th > Evolution< / th >
2011-05-02 15:53:31 +00:00
< th > < / th >
2011-04-29 15:46:59 +00:00
< / tr >
< / thead >
2011-05-02 15:53:31 +00:00
<?php $i = 0 ; ?>
<?php foreach ( $this -> synthese as $id => $element ) : ?>
2011-04-29 15:46:59 +00:00
< tr >
2011-05-02 15:53:31 +00:00
< td class = "head" > <?php echo $element [ 'name' ]; ?> </ td >
<?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 >
< a name = " <?php echo $this -> nameForGraphique [ $id ][ 'name' ]; ?> " class = "rTip" rel = " <?php echo $this -> url ( array ( 'controller' => 'finance' ,
'action' => 'printgraph',
'idGraph' => $this->typeBilan.'-'.$id.'.png'))?>" href="">
< img src = "/themes/default/images/finance/char_bar.png" / >
< / a >
< / td >
2011-04-29 15:46:59 +00:00
< / tr >
2011-05-02 15:53:31 +00:00
<?php $i ++ ; ?>
2011-04-29 15:46:59 +00:00
<?php endforeach ; ?>
< / table >
2011-05-02 15:53:31 +00:00
< img src = '/fichier/imgcache/test.png' / >
2011-04-29 15:46:59 +00:00
< / div >
2011-04-19 15:59:50 +00:00
< / div >