92 lines
2.6 KiB
PHTML
92 lines
2.6 KiB
PHTML
<div id="center">
|
|
<h1 class="titre">Flux de Trésorerie <span style="color:red;">(beta)</span></h1>
|
|
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
|
<td width="340" class="StyleInfoData"><?=$this->SirenTexte($this->siret)?></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
|
<td width="340" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
|
</tr>
|
|
<?php if ($this->nbBilanN > 0 || $this->nbBilanC > 0) { ?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Type de bilans</td>
|
|
<td width="340" class="StyleInfoData">
|
|
<?php if ($this->nbBilanN > 0 && $this->nbBilanC > 0) { ?>
|
|
<input type="radio" name="typeBilan" value="<?=$this->url(array(
|
|
'controller'=>'finance', 'action'=>'flux',
|
|
'siret'=>$this->siret, 'id'=>$this->id, 'type'=>'N'), null, true)?>"
|
|
<?php if ($this->typeBilan == 'N') { echo ' checked'; }?>/><label>Réel normal ou Simplifié</label>
|
|
<input type="radio" name="typeBilan" value="<?=$this->url(array(
|
|
'controller'=>'finance', 'action'=>'flux',
|
|
'siret'=>$this->siret, 'id'=>$this->id, 'type'=>'C'), null, true)?>"
|
|
<?php if ($this->typeBilan == 'C') { echo ' checked'; }?>/><label>Consolidé</label>
|
|
<?php } else if ($this->nbBilanN > 0 && $this->nbBilanC == 0) {?>
|
|
Réel normal ou Simplifié
|
|
<?php } else if ($this->nbBilanN == 0 && $this->nbBilanC > 0) {?>
|
|
Consolidé
|
|
<?php }?>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</table>
|
|
|
|
<h2>Tableau des flux</h2>
|
|
<div class="paragraph">
|
|
<table class="bilans">
|
|
<tr class="subhead">
|
|
<td colspan="2"> </td>
|
|
<?php foreach ($this->dateCloture as $k=>$date) { ?>
|
|
<td class="center" >
|
|
<?=substr($date,6,2).'/'.substr($date,4,2).'/'.substr($date,0,4)?><br/>
|
|
<?=$this->bilansInfos[$date]->duree?> mois</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php
|
|
foreach ($this->dataTable as $ratio){
|
|
$trClass = '';
|
|
if ( empty($ratio['r']) ){
|
|
$trClass = ' class="darkblue"';
|
|
}
|
|
|
|
if ( isset($ratio['class']) && $ratio['class']=='subhead' ){
|
|
$trClass = ' class="'.$ratio['class'].'"';
|
|
}
|
|
?>
|
|
<tr<?=$trClass?>>
|
|
<td><?=$ratio['op']?></td>
|
|
<td><?=$ratio['titre']?></td>
|
|
<?php foreach ($this->dateCloture as $k=>$date) { ?>
|
|
<td class="right">
|
|
<?php if ( !empty($ratio['r']) ){ ?>
|
|
<?=$ratio['values'][$date]?>
|
|
<?php } ?>
|
|
</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|
|
|
|
<?php if ($this->graph) {?>
|
|
<div class="paragraph">
|
|
<img src="/fichier/imgcache/<?=$this->graph?>" />
|
|
</div>
|
|
<?php }?>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function(){
|
|
$('input[name=typeBilan]').click(function(e){
|
|
window.location.href = $(this).val();
|
|
});
|
|
});
|
|
</script>
|