2011-04-29 10:28:32 +00:00
< div id = "center" >
< h1 > Les Rations< / 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 >
< tr >
< td width = "30" > < / td >
< td class = "StyleInfoLib" width = "200" > Secteur d'activité < / td >
< td class = "StyleInfoData" width = "340" > <?php echo $this -> naf ; ?> </ td >
< / tr >
< / table >
< table class = "identite" >
< form method = "POST" action = "#" >
< tr >
< td width = "30" > < / td >
< td width = "200" class = "StyleInfoLib" > Type de bilans< / td >
< td width = "340" class = "StyleInfoData" >
< input onclick = "submit();" <?php echo ( isset ( $_POST [ 'typeBilan' ])) ? (( $_POST [ 'typeBilan' ] == ( 'N' )) ? 'checked="true"' : false ) : false ; ?> type = "radio" name = "typeBilan" value = "N" /> < i > Réel normal ou Simplifié</ i >
< input onclick = "submit();" <?php echo ( isset ( $_POST [ 'typeBilan' ])) ? (( $_POST [ 'typeBilan' ] == ( 'C' )) ? 'checked="true"' : false ) : false ; ?> type = "radio" name = "typeBilan" value = "C" /> < i > Consolidé</ i >
< / td >
< / tr >
< / form >
<?php if ( isset ( $_POST [ 'typeBilan' ])) : ?>
< form method = "POST" action = " <?php echo $this -> url ( array ( 'controller' => 'finance' ,
'action' => 'ratios',
'siret' => $this->siret,
'id' => $this->id));?>">
< input type = "hidden" name = "typeBilan" value = " <?php echo $_POST [ 'typeBilan' ] ?> " />
< tr >
< td width = "30" > < / td >
< td width = "200" class = "StyleInfoLib" > Millésime< / td >
< td width = "340" class = "StyleInfoData" >
< select name = "Date" >
<?php foreach ( $this -> ratios as $date => $element ) : ?>
<?php if ( $this -> i > 5 ) break ?>
<?php if ( $element [ $_POST [ 'typeBilan' ]] -> typeBilan == $_POST [ 'typeBilan' ]) : ?>
< option <?php echo ( isset ( $_POST [ 'Date' ])) ? (( $_POST [ 'Date' ] == ( $date )) ? 'selected' : false ) : false ; ?> value = " <?php echo $date ; ?> " >
<?php echo $this -> dateFunction -> dateT ( 'Ymd' , 'd/m/Y' , $date ); ?>
<?php if ( $_POST [ 'typeBilan' ] == 'C' ) : ?>
Consolidé
<?php endif ; ?>
< / option >
<?php endif ; ?>
<?php $this -> i ++ ; ?>
<?php endforeach ; ?>
< / select >
< input type = "submit" value = "Ok" / >
< / td >
< / tr >
< / form >
<?php endif ; ?>
< / table >
< / div >
< h2 > Ratios< / h2 >
< div class = "paragraph" >
< table id = "ratios" style = "border-collapse:collapse" >
<?php echo $this -> html ; ?>
< / table >
< / div >
< / div >