Damien LASSERRE 9f295ce6f2 synthese qui marche
Optimisation du code a faire + le formulaire de gestion des type de bilan elle ne gere pour le moment que les bilan de type N...
2011-04-29 15:46:59 +00:00

42 lines
1.4 KiB
PHTML

<div id="center">
<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>
</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;?>
<th><?php echo $date;?></th>
<?php $i++;?>
<?php endforeach;?>
<th>Evolution</th>
</tr>
</thead>
<?php foreach ($this->synthese as $element):?>
<tr>
<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;?>
</tr>
<?php endforeach;?>
</table>
</div>
</div>