61 lines
2.7 KiB
PHTML
Raw Normal View History

<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>
2011-05-13 16:33:21 +00:00
<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">
2011-05-13 16:33:21 +00:00
<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']):?>
2011-05-13 16:33:21 +00:00
<option <?php echo (($this->Date == $date)? 'selected': false);?> value="<?php echo $date;?>">
<?php echo $this->dateFunction->dateT('Ymd', 'd/m/Y', $date);?>
2011-05-13 16:33:21 +00:00
<?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>
2011-05-13 16:33:21 +00:00
</form>
</div>
<h2>Ratios</h2>
<div class="paragraph">
<table id="ratios" style="border-collapse:collapse">
<?php echo $this->html;?>
</table>
</div>
</div>