2011-05-04 14:18:22 +00:00

79 lines
2.3 KiB
PHTML

<?php $i = 0;?>
<div id="center">
<h1>SYNTHÈSE</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">
Num&eacute;ro identifiant Siren
</td>
<td width="350" class="StyleInfoData">
<?=$this->SirenTexte($this->siren)?>
</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Raison Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
<tr>
<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')); ?>">
<input <?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 <?php echo (isset($_POST['typeBilan']))?(($_POST['typeBilan'] == ('C'))? 'checked="true"': false): false;?> type="radio" name="typeBilan" value="C" /> Consolidé
</form>
</td>
</tr>
</table>
</div>
<div class="paragraph">
<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 $this->dateFunction->dateT('Ymd', 'd/m/Y', $date);?></th>
<?php $i++;?>
<?php endforeach;?>
<th>Evolution</th>
<th></th>
</tr>
</thead>
<tbody>
<?php $i = 0;?>
<?php foreach ($this->synthese as $id => $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;?>
<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>
</tr>
</tbody>
<?php $i++;?>
<?php endforeach;?>
</table>
<img src='/fichier/imgcache/test.png' />
</div>
</div>