2012-08-24 10:12:39 +00:00

80 lines
1.6 KiB
PHTML

<div id="center">
<?php if ($message!='') {?>
<div style="margin:5px; padding: 0pt 0.7em;" class="ui-state-highlight ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
<?=$message?></p>
</div>
<?php } ?>
<h1 class="titre">Saisie ou Correction Liasse</h1>
<div class="paragraph">
<div class="clearfix">
<label>Num&eacute;ro identifiant Siret</label>
<?=$this->SiretTexte($this->siret)?>
</div>
<div class="clearfix">
<label>Raison Sociale</label>
<?=$this->raisonSociale?>
</div>
<div>
<label>Liste des liasses</label>
<select>
<?php foreach ($this->bilans as $item) {?>
<option><?=$item['type']?> - <?=$item['date']?></option>
<?php }?>
</select>
</div>
</div>
<h2>Postes du bilan</h2>
<div class="paragraph">
<style>
#tabs { font-size:1em; }
#tabs table { width:100%; }
#tabs table td { width:30px; border:1px solid; text-align:center;}
</style>
<div id="tabs">
<ul>
<?php foreach ( $this->entetes as $i => $entete ) {?>
<li><a href="#tabs-<?=$i?>"><?=$entete?></a></li>
<?php }?>
</ul>
<?php foreach ( $this->postes as $i => $item ) {?>
<div id="tabs-<?=$i?>">
<table>
<?php
$max = count($item['cols'][0]);
$nbcols = count($item['cols']);
for ($i=0;$i<$max;$i++) {
?>
<tr>
<?php for ($k=0;$k<$nbcols;$k++) {?>
<td><?=(isset($item['cols'][$k][$i])) ? $item['cols'][$k][$i].'=' : '';?></td>
<td><?=(isset($item['cols'][$k][$i])) ? 0 : '';?></td>
<?php }?>
</tr>
<?php }?>
</table>
</div>
<?php }?>
</div>
<script>
$(function() {
$( "#tabs" ).tabs();
});
</script>
</div>
<div class="paragraph">
</div>
</div>