2011-07-06 15:31:24 +00:00

105 lines
3.1 KiB
PHTML

<div id="center">
<?php if (empty($this->AutrePage)){?>
<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">
<?php echo $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"><?php echo $this->raisonSociale;?></td>
</tr>
<?php if (isset($this->tabResult)){?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Type de bilans</td>
<td width="350" class="StyleInfoData">
<?php if ($this->nbBilanC==0){?>
Réel normal ou Simplifié
<?php } elseif ($this->nbBilanN==0){?>
Consolidé
<?php } else {?>
<form>
<select name="typeBilan">
<option value="N"<?=($this->typeBilan=='N')? ' selected' : '';?>>Réel normal ou Simplifié</option>
<option value="C"<?=($this->typeBilan=='C')? ' selected' : '';?>>Consolidé</option>
</select>
</form>
<?php }?>
</td>
</tr>
<?php }?>
</table>
</div>
<?php }?>
<?php if (!isset($this->tabResult)){?>
<div class="paragraph">
Aucun bilan disponible.
</div>
<?php } else {?>
<div class="paragraph">
<table id="synthese">
<thead>
<tr>
<th align="center"></th>
<th class="date"><?=$this->tabResult[0]['dateCloture']?><br/><?=$this->tabResult[0]['duree']?></th>
<th class="date">Evolution</th>
<th class="date"><?=$this->tabResult[1]['dateCloture']?><br/><?=$this->tabResult[1]['duree']?></th>
<th class="date">Evolution</th>
<th class="date"><?=$this->tabResult[2]['dateCloture']?><br/><?=$this->tabResult[2]['duree']?></th>
<th class="date">Evolution</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<?php foreach($this->tabRatio as $ratio => $info) { ?>
<tr>
<td class="head">
<a class="tooltip" title="<?=$info['comment']?>"><?=$info['titre']?></a>
</td>
<td class="right"><?=$this->tabResult[0]['entrep'][$ratio]?></td>
<td class="right"><?=$this->tabResult[0]['entrepEvol'][$ratio]?></td>
<td class="right"><?=$this->tabResult[1]['entrep'][$ratio]?></td>
<td class="right"><?=$this->tabResult[1]['entrepEvol'][$ratio]?></td>
<td class="right"><?=$this->tabResult[2]['entrep'][$ratio]?></td>
<td class="right"><?=$this->tabResult[2]['entrepEvol'][$ratio]?></td>
<td>
<a href="<?$this->url(array(
'controller' => 'finance',
'action' => 'synthese',
'siret' => $this->siret,
'id' => $this->id,
'ratio' => $ratio,
))?>">
<img class="sTip" rel="<?=$this->url(array(
'controller' => 'finance',
'action' => 'synthesegraphevol',
'siret' => $this->siret,
'id' => $this->id,
'ratio' => $ratio,
))?>" title="<?=$info['titre']?>" src="/themes/default/images/finance/char_bar.png" alt="Visionner le graphique">
</a>
</td>
</tr>
<?php }?>
</tbody>
</table>
</div>
<div class="paragraph">
<?=$this->action('synthesegraphcompare', 'finance', null, array('siret'=>$this->siret, 'id'=>$this->id, 'typeBilan'=>$this->typeBilan))?>
</div>
<?php }?>
<?php echo $this->render('cgu.phtml', $this->cgu);?>
</div>