138 lines
4.6 KiB
PHTML
138 lines
4.6 KiB
PHTML
<?php $i = 0;
|
|
$detail = array();
|
|
?>
|
|
<div id="center">
|
|
|
|
<?php if (empty($this->AutrePage)):?>
|
|
<h1>SYNTHÈSE</h1>
|
|
<div class="paragraph">
|
|
<table class="identite">
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">
|
|
Numéro identifiant Siren
|
|
</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?php echo $this->SirenTexte($this->siren);?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
|
<td width="350" class="StyleInfoData"><?php echo $this->raisonSociale;?></td>
|
|
</tr>
|
|
<?php if(!empty($this->synthese)):?>
|
|
<?php if(($this->affFormNormal and $this->affFormConsolide)):?>
|
|
<?php if(!isset($this->otherView)):?>
|
|
<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 onclick="submit();" <?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 onclick="submit();" <?php echo (isset($_POST['typeBilan']))?(($_POST['typeBilan'] == ('C'))? 'checked="true"': false): false;?> type="radio" name="typeBilan" value="C" /> Consolidé
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
<?php endif;?>
|
|
<?php else:?>
|
|
<tr>
|
|
<td width="30"></td>
|
|
<td class="StyleInfoLib" width="200">Type de bilans</td>
|
|
<td class="StyleInfoData" width="340">Réel normal ou Simplifié</td>
|
|
</tr>
|
|
<?php endif;?>
|
|
</table>
|
|
</div>
|
|
<?php endif;?>
|
|
<?php endif;?>
|
|
|
|
<div class="paragraph">
|
|
<table id="synthese">
|
|
<?php if(!empty($this->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>
|
|
<?php if(isset($this->otherView)):?>
|
|
<a href="/finance/synthese/siret/<?php echo $this->siret;?>/id/<?php echo $this->idSC?>">
|
|
<img src="/themes/default/images/finance/char_bar.png" />
|
|
</a>
|
|
<?php endif;?>
|
|
</th>
|
|
<?php endif;?>
|
|
<th>
|
|
<?php echo $this->dateFunction->dateT('Ymd', 'd/m/Y', $date).'<br />'.$val['duree'].' mois';?>
|
|
</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 style="cursor:help" class="head tooltip" title="<?php echo $element['commentaires'];?>"><?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>
|
|
<?php if(!isset($this->otherView)):?>
|
|
<a href="<?php echo $this->url(array('controller' => 'finance',
|
|
'action' => 'lignegraph',
|
|
'id' => $id,
|
|
'actionName' => 'synthese',
|
|
'idSC' => $this->idSC,
|
|
'typeBilan' => $this->typeBilan,
|
|
'idGraph' => 'synthese-'.$this->siret.'-'.$id.'-'.$this->typeBilan.'.png'));?>"
|
|
name="<?php echo $this->nameForGraphique[$id]['name'];?>" class="sTip"
|
|
rel="<?php echo $this->url(array(
|
|
'controller' => 'finance',
|
|
'action' => 'printgraph',
|
|
'idGraph' => 'synthese-'.$this->siret.'-'.$id.'-'.$this->typeBilan.'.png'))?>" href="">
|
|
<img src="/themes/default/images/finance/char_bar.png" />
|
|
</a>
|
|
<?php else:?>
|
|
<a href="/finance/synthese/siret/<?php echo $this->siret;?>/id/<?php echo $this->idSC?>">
|
|
<img src="/themes/default/images/finance/char_bar.png" />
|
|
</a>
|
|
<?php endif;?>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<?php $i++;?>
|
|
<?php endforeach;?>
|
|
</table>
|
|
<br />
|
|
<?php if(!isset($this->otherView)):?>
|
|
<img src='/fichier/imgcache/synthese-<?php echo $this->siret;?>-graphiqueSynthses-<?php echo $this->typeBilan;?>.png' />
|
|
<?php else:?>
|
|
<center><img src="/fichier/imgcache/<?php echo $this->otherView;?>" /></center>
|
|
<?php endif;?>
|
|
<?php elseif($this->nothing):?>
|
|
<table width="100%">
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td class="StyleInfoLib" width="200" colspan="2">Aucun bilan disponible pour cette entreprise !</td>
|
|
</tr>
|
|
</table>
|
|
<?php else:?>
|
|
<table width="100%">
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td class="StyleInfoLib" width="200" colspan="2">Bilan de banque/assurance non gérés</td>
|
|
</tr>
|
|
</table>
|
|
<?php endif;?>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|