Damien LASSERRE e969a5214c Création des bilan, marchent bien reste le graphique a faire
+ correction de la synthese oublie de supprimer le exit.
2011-05-03 15:31:32 +00:00

93 lines
4.4 KiB
PHTML

<div id="center">
<h1>ELEMENTS FINANCIERS</h1>
<div>
<table id="liasseForm" width="100%">
<tr>
<th>Numéro identifiant Siren : </th>
<td><?php echo $this->siret; ?></td>
</tr>
<tr>
<th>Raison Sociale : </th>
<td><?php echo $this->nomSociete;?></td>
</tr>
<form method="POST" action="<?php echo $this->url(array('controller' => 'finance', 'action' => 'liasse', 'siret' => $this->siret, 'id' => $this->id))?>">
<tr>
<th>Valeurs exprimées en : </th>
<td>
<select name="unit">
<?php foreach ($this->unit as $champUnit => $valeurUnit):?>
<option <?php echo (isset($_POST['unit']))?(($_POST['unit'] == ($valeurUnit))? 'selected': false): false;?> value="<?php echo $valeurUnit;?>"><?php echo $champUnit;?></option>
<?php endforeach;?>
</select>
</td>
</tr>
<tr>
<th>Millesime : </th>
<td>
<select name="date">
<?php foreach ($this->type as $champType => $name):?>
<?php foreach ($this->liste[$champType] as $element):?>
<option <?php echo (isset($_POST['date']))?(($_POST['date'] == ($element.':'.$champType))? 'selected': false): false;?> value="<?php echo $element.':'.$champType?>"><?php echo $this->dateFunction->dateT('Ymd', 'd/m/Y', $element).' '.$name;?></option>
<?php endforeach;?>
<?php endforeach;?>
</select>
<input type="submit" value="Ok" />
</td>
</tr>
</form>
</table>
</div>
<div>
<table width="100%">
</table>
</div>
<br />
<div align="center" width="100%">
<?php if(isset($_POST['date'])):?>
<?php if (!empty($_POST['date'])):?>
<div class="tabbed_area">
<ul class="tabs">
<?php foreach ($this->ancres as $ancre => $val):?>
<?php if($ancre == $this->champType): ?>
<?php $partials = $val;$i=1;?>
<?php foreach ($val as $element):?>
<li><a href="#" title="content_<?php echo $i;?>" class="tab"><?php echo $element;?></a></li>
<?php $i++;?>
<?php endforeach;?>
<?php endif;?>
<?php endforeach;?>
</ul>
</div>
<?php $i=1;?>
<?php foreach ($partials as $partial):?>
<div id="content_<?php echo $i;?>" class="content">
<?php if($this->champType == 'N' or $this->champType == 'S'):?>
<?php echo $this->partial('finance/liassesPartials/'.$partial.'.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->dureesMois)).'<br />';?>
<?php elseif ($this->champType == 'B'):?>
<?php echo $this->partial('finance/liassesPartials/banque/'.$partial.'.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->dureesMois)).'<br />';?>
<?php elseif ($this->champType == 'A'):?>
<?php echo $this->partial('finance/liassesPartials/assurance/'.$partial.'.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->dureesMois)).'<br />';?>
<?php endif;?>
</div>
<?php $i++;?>
<?php endforeach;?>
<?php endif;?>
<?php endif;?>
</div>
</div>