2012-02-07 20:19:05 +00:00

126 lines
3.7 KiB
PHTML

<?php if (empty($this->AutrePage)):?>
<div id="center">
<?php endif;?>
<?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">
<?=$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>
<?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">
<?php if (count($this->tabRatio)==1){?>
<a href="<?=$this->url(array('controller'=>'finance', 'action'=>'synthese', 'siret'=>$this->siret, 'id'=>$this->id), null, true)?>">
<img src="/themes/default/images/finance/char_bar.png" alt="Retour à la page complète" />
</a>
<?php }?>
</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>
<?php if ($this->graph): ?>
<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">
<?php endif;?>
</a>
</td>
</tr>
<?php }?>
</tbody>
</table>
</div>
<div class="paragraph">
<?php if ($this->graph):?>
<?=$this->action('synthesegraphcompare', 'finance', null, array('siret'=>$this->siret, 'id'=>$this->id, 'typeBilan'=>$this->typeBilan))?>
<?php else:?>
<b>Les informations sont insufisantes pour générer le graphique de synthèse.</b>
<?php endif;?>
</div>
<?php }?>
<?php if (empty($this->AutrePage)):?>
<?=$this->render('cgu.phtml', $this->cgu)?>
<?php endif;?>
<?php if (empty($this->AutrePage)):?>
</div>
<?php endif;?>