2011-09-01 06:50:14 +00:00

154 lines
4.3 KiB
PHTML

<?php if (empty($this->AutrePage)):?>
<div id="center">
<?php endif;?>
<?php if (empty($this->AutrePage)):?>
<h1>RATIOS</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"><?=$this->SirenTexte($this->siret);?></td>
</tr>
<tr>
<td width="30"></td>
<td class="StyleInfoLib" width="200">Raison Sociale</td>
<td class="StyleInfoData" width="340"><?=$this->raisonSociale;?></td>
</tr>
<tr>
<td width="30"></td>
<td class="StyleInfoLib" width="200">Secteur d'activité </td>
<td class="StyleInfoData" width="340"><?=$this->naf?> - <?=$this->nafLib?></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 name="selectBilan">
<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>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Millésime</td>
<td width="340" class="StyleInfoData">
<form>
<input type="hidden" name="typeBilan" value="<?=$this->typeBilan?>" />
<select name="mil">
<?php foreach ($this->annees as $annee => $value){?>
<option value="<?=$annee?>"<?=($this->mil==$annee) ? ' selected' : '';?>><?=$value?></option>
<?php }?>
</select>
</form>
</td>
</tr>
<tr>
<td width="30"></td>
<td class="StyleInfoLib" width="200">Durée du bilan</td>
<td class="StyleInfoData" width="340"><?=$this->duree?> Mois</td>
</tr>
<?php } else {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" class="StyleInfoLib" width="200">Aucun bilan disponible.</td>
<td class="StyleInfoData" width="340"></td>
</tr>
<?php }?>
</table>
</div>
<?php endif;?>
<div class="paragraph">
<?php if(!isset($this->tabResult)){?>
<?php } else {?>
<table id="ratios" style="border-collapse:collapse">
<tbody>
<?php foreach ($this->tabResult as $item) { ?>
<?php if (isset($item['ratio'])) { ?>
<tr>
<td>
<a class="tooltip" title="<?=$item['comment']?>">
<?=$item['titre']?><br/><?=$item['stitre']?></a>
</td>
<td class="right"><?=$item['entrep']?></td>
<td class="right"><?=$item['secteur']?></td>
<td class="position">
<a class="rTip"
href=""
rel="<?=$this->url(array(
'controller'=>'finance',
'action'=>'ratiosgraph',
'siret' => $this->siret,
'id' => $this->id,
'ratio' => $item['ratio']
))?>" name="<?=$item['titre']?>">
<?=$item['position']?>
</a>
</td>
</tr>
<?php } else { ?>
<tr class="subhead">
<td class="center italique"><?=$item['titre']?></td>
<td>Entreprise</td>
<td>Secteur</td>
<td>Position</td>
</tr>
<?php } ?>
<?php
/*
} else if ($ratio == $item['ratio']) {
$row .= '<tr class="subhead">'."\n".
'<td class="center italique">'.
$tabRatio[$item['parent']]['titre'].'</td>'."\n".
'<td>Entreprise</td>'."\n".
'<td>Secteur</td>'."\n".
'<td>Position</td>'."\n".
'</tr>'."\n";
$row .= '<tr>'."\n".
'<td><a tooltip="'.
wrapComment($ratiosInfos[$item['ratio']]['commentaires']).
'">'.$item['titre'].'<br/>'.$item['stitre'].'</a></td>'."\n".
'<td class="right">'.
dRatio($bilan, $item['ratio']).'</td>'."\n".
'<td class="right">'.
dSecteur($bilan, $item['ratio']).'</td>'."\n".
'<td class="position">'."\n".
'<a href="#" name="'.$item['titre'].'">'."\n".
dPosition($bilan, $item['ratio'], $item['position'])."\n".
'</a>'."\n".
'</td>'."\n".
'</tr>'."\n";
}
*/
?>
<?php } ?>
</tbody>
</table>
<?php }?>
</div>
<?php if (empty($this->AutrePage)):?>
<?=$this->render('cgu.phtml', $this->cgu)?>
<?php endif;?>
<?php if (empty($this->AutrePage)):?>
</div>
<?php endif;?>