158 lines
5.3 KiB
PHTML
Raw Normal View History

2011-04-26 13:39:19 +00:00
<div id="center">
2011-05-18 13:35:56 +00:00
<h1>ELEMENTS FINANCIERS - BILANS</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>
2011-07-04 08:49:06 +00:00
<?php if($this->haveLiasse):?>
2011-07-07 14:44:49 +00:00
<form method="post" action="<?=$this->url(array('controller' => 'finance', 'action' => 'liasse', 'siret' => $this->siret, 'id' => $this->id))?>">
2011-05-18 13:35:56 +00:00
<tr>
2011-06-07 09:21:24 +00:00
<td width="30">&nbsp;</td>
2011-06-07 10:05:47 +00:00
<td width="200" class="StyleInfoLib">Valeurs exprimées en</td>
2011-06-07 09:21:24 +00:00
<td width="350" class="StyleInfoData">
2011-05-18 13:35:56 +00:00
<select name="unit">
2011-07-07 14:44:49 +00:00
<?php foreach ($this->unit as $id => $titre):?>
<option value="<?=$id?>"<?=($id==$this->unite)? ' selected': '';?>><?=$titre?></option>
2011-05-18 13:35:56 +00:00
<?php endforeach;?>
</select>
2011-06-07 09:21:24 +00:00
</td>
2011-05-18 13:35:56 +00:00
</tr>
<tr>
2011-06-07 09:21:24 +00:00
<td width="30">&nbsp;</td>
2011-06-07 10:05:47 +00:00
<td width="200" class="StyleInfoLib">Millesime</td>
2011-06-07 09:21:24 +00:00
<td width="350" class="StyleInfoData">
2011-05-18 13:35:56 +00:00
<select name="date">
<?php foreach ($this->type as $champType => $name):?>
2011-07-07 14:44:49 +00:00
2011-05-18 13:35:56 +00:00
<?php foreach ($this->liste[$champType] as $element):?>
2011-07-07 14:44:49 +00:00
<option value="<?=$element.':'.$champType?>"<?=($this->date == $element)? ' selected': '';?>>
<?=$this->dateFunction->dateT('Ymd', 'd/m/Y', $element).' '.$name;?>
</option>
2011-05-18 13:35:56 +00:00
<?php endforeach;?>
<?php endforeach;?>
</select>
<input type="submit" value="Ok" />
</td>
</tr>
</form>
2011-07-04 08:49:06 +00:00
<?php endif;?>
<?php if ($this->exportxls) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2">
<a href="<?=$this->url(array(
'controller' => 'finance',
'action' => 'liassexls',
'siret' => $this->siret,
'unite' => $this->unite,
'type' => $this->champType,
'date' => $this->dateCloture,
))?>" id="xls">Exporter en fichier Excel.</a>
</td>
</tr>
<?php }?>
2011-07-12 15:13:03 +00:00
<?php if ($this->saisiebilan) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<a id="bilanClient" href="<?=$this->url(array(
'controller'=>'finance',
'action'=>'saisiebilan',
'siren'=>$this->siren
), null, true)?>" title="Envoi du bilan">
Vous possèdez un bilan plus récent
</a>
</td>
</tr>
<?php }?>
2011-06-07 10:05:47 +00:00
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?=$this->action('infos','surveillance', null, array(
'source' => 'bilans',
'siret' => $this->siret
))?>
</td>
</tr>
2011-05-18 13:35:56 +00:00
</table>
</div>
<div class="paragraph" align="center" width="100%">
2011-07-04 08:49:06 +00:00
<?php if(empty($this->date)):?>
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"></td>
<td width="350" class="StyleInfoLib">Aucun bilan disponible pour cette entreprise !</td>
</tr>
</table>
<?php else:?>
2011-07-07 13:43:22 +00:00
<div class="tabbed_area">
<ul class="tabs">
2011-07-07 13:43:22 +00:00
<?php foreach ($this->ancres as $id => $name):?>
<li><a href="#" title="content_<?=$id?>" class="tab"><?=$name;?></a></li>
<?php endforeach;?>
</ul>
</div>
2011-07-07 13:43:22 +00:00
<?php foreach ($this->ancres as $id => $name):?>
<div id="content_<?=$id?>" class="content">
2011-06-03 08:54:15 +00:00
<?php if($this->champType == 'S'):?>
2011-07-07 13:43:22 +00:00
<?php echo $this->partial('finance/liassesPartials/simplifie/'.$id.'.partial.phtml', array(
2011-06-03 08:54:15 +00:00
'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,
2011-07-07 14:44:49 +00:00
'dureesMoisPre'=> $this->dureesMoisPre,
'unite'=> $this->unite,
));?>
<br />
2011-06-03 08:54:15 +00:00
<?php endif;?>
<?php if($this->champType == 'N' or $this->champType == 'C'):?>
2011-07-07 13:43:22 +00:00
<?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,
2011-07-07 14:44:49 +00:00
'dureesMoisPre'=> $this->dureesMoisPre,
'unite'=> $this->unite,
));?>
<br />
<?php elseif ($this->champType == 'B'):?>
2011-07-07 13:43:22 +00:00
<?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,
2011-07-07 14:44:49 +00:00
'dureesMoisPre'=> $this->dureesMoisPre,
'unite'=> $this->unite,
));?>
<br />
<?php elseif ($this->champType == 'A'):?>
2011-07-07 13:43:22 +00:00
<?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,
2011-07-07 14:44:49 +00:00
'dureesMoisPre'=> $this->dureesMoisPre,
'unite'=> $this->unite,
));?>
<br />
<?php endif;?>
</div>
<?php endforeach;?>
<?php endif;?>
</div>
<?php echo $this->render('cgu.phtml', $this->cgu);?>
2011-04-26 13:39:19 +00:00
</div>