147 lines
5.0 KiB
PHTML
147 lines
5.0 KiB
PHTML
<div id="center">
|
|
<h1>ELEMENTS FINANCIERS - BILANS</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"><?=$this->SirenTexte($this->siren)?></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
|
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
|
</tr>
|
|
|
|
<?php if($this->haveLiasse):?>
|
|
<form method="post" action="<?=$this->url(array('controller' => 'finance', 'action' => 'liasse', 'siret' => $this->siret, 'id' => $this->id))?>">
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Valeurs exprimées en</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<select name="unit">
|
|
<?php foreach ($this->unit as $id => $titre):?>
|
|
<option value="<?=$id?>"<?=($id==$this->unite)? ' selected': '';?>><?=$titre?></option>
|
|
<?php endforeach;?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Millesime</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<select name="date">
|
|
<?php foreach ($this->type as $champType => $name):?>
|
|
|
|
<?php foreach ($this->liste[$champType] as $element):?>
|
|
<option value="<?=$element.':'.$champType?>"<?=($this->date == $element)? ' selected': '';?>>
|
|
<?=$this->dateFunction->dateT('Ymd', 'd/m/Y', $element).' '.$name;?>
|
|
</option>
|
|
<?php endforeach;?>
|
|
<?php endforeach;?>
|
|
</select>
|
|
<input type="submit" value="Ok" />
|
|
</td>
|
|
</tr>
|
|
</form>
|
|
<?php endif;?>
|
|
|
|
<?php if ($this->exportxls) {?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td colspan="2">
|
|
<a href="<?=$this->url(array(
|
|
'controller' => 'finance',
|
|
'action' => 'liassexls',
|
|
'siret' => $this->siret,
|
|
'unite' => $this->unit,
|
|
'type' => $this->champType,
|
|
'date' => $this->dateCloture,
|
|
))?>" id="xls">Exporter en fichier Excel.</a>
|
|
</td>
|
|
</tr>
|
|
<?php }?>
|
|
<?php
|
|
//Affichage lien saisie bilan
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td colspan="2" width="550" class="StyleInfoData">
|
|
<?=$this->action('infos','surveillance', null, array(
|
|
'source' => 'bilans',
|
|
'siret' => $this->siret
|
|
))?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="paragraph" align="center" width="100%">
|
|
<?php if(empty($this->date)):?>
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib"></td>
|
|
<td width="350" class="StyleInfoLib">Aucun bilan disponible pour cette entreprise !</td>
|
|
</tr>
|
|
</table>
|
|
<?php else:?>
|
|
|
|
<div class="tabbed_area">
|
|
<ul class="tabs">
|
|
<?php foreach ($this->ancres as $id => $name):?>
|
|
<li><a href="#" title="content_<?=$id?>" class="tab"><?=$name;?></a></li>
|
|
<?php endforeach;?>
|
|
</ul>
|
|
</div>
|
|
|
|
<?php foreach ($this->ancres as $id => $name):?>
|
|
<div id="content_<?=$id?>" class="content">
|
|
<?php if($this->champType == 'S'):?>
|
|
<?php echo $this->partial('finance/liassesPartials/simplifie/'.$id.'.partial.phtml', array(
|
|
'liasse' => $this->liasse,
|
|
'dateCloture' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloture),
|
|
'dateCloturePre' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloturePre),
|
|
'dureesMois' => $this->dureesMois,
|
|
'dureesMoisPre'=> $this->dureesMoisPre,
|
|
'unite'=> $this->unite,
|
|
));?>
|
|
<br />
|
|
<?php endif;?>
|
|
<?php if($this->champType == 'N' or $this->champType == 'C'):?>
|
|
<?php echo $this->partial('finance/liassesPartials/'.$id.'.partial.phtml', array(
|
|
'liasse' => $this->liasse,
|
|
'dateCloture' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloture),
|
|
'dateCloturePre' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloturePre),
|
|
'dureesMois' => $this->dureesMois,
|
|
'dureesMoisPre'=> $this->dureesMoisPre,
|
|
'unite'=> $this->unite,
|
|
));?>
|
|
<br />
|
|
<?php elseif ($this->champType == 'B'):?>
|
|
<?php echo $this->partial('finance/liassesPartials/banque/'.$id.'.partial.phtml', array(
|
|
'liasse' => $this->liasse,
|
|
'dateCloture' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloture),
|
|
'dateCloturePre' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloturePre),
|
|
'dureesMois' => $this->dureesMois,
|
|
'dureesMoisPre'=> $this->dureesMoisPre,
|
|
'unite'=> $this->unite,
|
|
));?>
|
|
<br />
|
|
<?php elseif ($this->champType == 'A'):?>
|
|
<?php echo $this->partial('finance/liassesPartials/assurance/'.$id.'.partial.phtml', array(
|
|
'liasse' => $this->liasse,
|
|
'dateCloture' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloture),
|
|
'dateCloturePre' => $this->dateFunction->dateT('Ymd', 'd/m/Y', $this->dateCloturePre),
|
|
'dureesMois' => $this->dureesMois,
|
|
'dureesMoisPre'=> $this->dureesMoisPre,
|
|
'unite'=> $this->unite,
|
|
));?>
|
|
<br />
|
|
<?php endif;?>
|
|
</div>
|
|
<?php endforeach;?>
|
|
<?php endif;?>
|
|
</div>
|
|
<?php echo $this->render('cgu.phtml', $this->cgu);?>
|
|
</div>
|