61 lines
2.7 KiB
PHTML
61 lines
2.7 KiB
PHTML
<div id="center">
|
|
<h1>Les Rations</h1>
|
|
<div class="paragraph">
|
|
<table class="identite">
|
|
<tr>
|
|
<td width="30"></td>
|
|
<td class="StyleInfoLib" width="200">Numéro identifiant Siren</td>
|
|
<td class="StyleInfoData" width="340"><?php echo $this->siret;?></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"></td>
|
|
<td class="StyleInfoLib" width="200">Raison Sociale</td>
|
|
<td class="StyleInfoData" width="340"><?php echo $this->raisonSociale;?></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"></td>
|
|
<td class="StyleInfoLib" width="200">Secteur d'activité </td>
|
|
<td class="StyleInfoData" width="340"><?php echo $this->naf;?></td>
|
|
</tr>
|
|
</table>
|
|
<form method="POST" action="<?php echo $this->url();?>">
|
|
<table class="identite">
|
|
<tr>
|
|
<td width="30"></td>
|
|
<td width="200" class="StyleInfoLib">Type de bilans</td>
|
|
<td width="340" class="StyleInfoData">
|
|
<input onclick="submit();" <?php echo (($this->typeBilan == 'N')? 'checked="true"': false);?> type="radio" name="typeBilan" value="N"/> <i>Réel normal ou Simplifié</i>
|
|
<input onclick="submit();" <?php echo (($this->typeBilan == 'C')? 'checked="true"': false);?> type="radio" name="typeBilan" value="C"/> <i>Consolidé</i>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"></td>
|
|
<td width="200" class="StyleInfoLib">Millésime</td>
|
|
<td width="340" class="StyleInfoData">
|
|
<select name="Date">
|
|
<?php foreach ($this->ratios as $date => $element):?>
|
|
<?php if($this->i > 5) break?>
|
|
<?php if ($element[$_POST['typeBilan']]->typeBilan == $_POST['typeBilan']):?>
|
|
<option <?php echo (($this->Date == $date)? 'selected': false);?> value="<?php echo $date;?>">
|
|
<?php echo $this->dateFunction->dateT('Ymd', 'd/m/Y', $date);?>
|
|
<?php if($this->typeBilan == 'C'):?>
|
|
Consolidé
|
|
<?php endif;?>
|
|
</option>
|
|
<?php endif;?>
|
|
<?php $this->i++;?>
|
|
<?php endforeach;?>
|
|
</select>
|
|
<input type="submit" value="Ok" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<h2>Ratios</h2>
|
|
<div class="paragraph">
|
|
<table id="ratios" style="border-collapse:collapse">
|
|
<?php echo $this->html;?>
|
|
</table>
|
|
</div>
|
|
</div>
|