94 lines
2.7 KiB
PHTML
94 lines
2.7 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éro identifiant Siret</label>
|
|
<?=$this->SiretTexte($this->siret)?>
|
|
</div>
|
|
|
|
<div class="clearfix">
|
|
<label>Raison Sociale</label>
|
|
<?=$this->raisonSociale?>
|
|
</div>
|
|
|
|
<div class="clearfix">
|
|
<label>Liste des liasses</label>
|
|
<form name="choixbilan" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren), null, true)?>" method="post">
|
|
<select name="selection">
|
|
<option>-</option>
|
|
<?php foreach ($this->bilans as $item) {?>
|
|
<option value="<?=$item['value']?>"><?=$item['type']?> - <?=$item['date']?></option>
|
|
<?php }?>
|
|
</select>
|
|
</form>
|
|
<script>
|
|
$('select[name=selection]').change(function(e){
|
|
e.preventDefault();
|
|
$('form[name=choixbilan]').submit();
|
|
});
|
|
</script>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="paragraph">
|
|
<?php if ($this->infos) {?>
|
|
<div class="tabbed_area">
|
|
<ul class="tabs">
|
|
<?php foreach ($this->ancres as $id => $name):?>
|
|
<li><a href="#<?=$id?>" title="<?=$name?>" class="tab"><?=$name?></a></li>
|
|
<?php endforeach;?>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<?php
|
|
if ($this->typeBilan=='N' || $this->typeBilan=='C') {
|
|
echo $this->partial('saisie/liasse/2050.phtml');
|
|
} elseif ($this->typeBilan=='S') {
|
|
echo $this->partial('saisie/liasse/2033.phtml');
|
|
}
|
|
?>
|
|
</div>
|
|
<div style="text-align:center;"><input type="submit" class="button" id="save" name="save" value="Enregistrer" /></div>
|
|
<script>
|
|
$('input#save').click(function(e){
|
|
e.preventDefault();
|
|
var strPostes = '';
|
|
$('span.poste').each(function(){
|
|
id = $(this).attr('id');
|
|
val = $(this).html();
|
|
if (val != id && val != '' && val != '-') {
|
|
if (strPostes!='') strPostes = strPostes + ';';
|
|
strPostes = strPostes + id + '=' + val;
|
|
}
|
|
});
|
|
$.post('/saisie/liassesave/siren/<?=$this->siren?>', {
|
|
unite: $('span#unit').html(),
|
|
dateCloture: $('span#dateCloture').html(),
|
|
dureeMois: $('span#dureeMois').html(),
|
|
dateCloturePre: $('span#dateCloturePre').html(),
|
|
dureeMoisPre: $('span#dureeMoisPre').html(),
|
|
typeBilan: $('span#typeBilan').html(),
|
|
postes: strPostes
|
|
}, function(data){
|
|
|
|
}
|
|
).error();
|
|
|
|
});
|
|
</script>
|
|
<?php } else {?>
|
|
Aucune sélection.
|
|
<?php }?>
|
|
</div>
|
|
|
|
</div>
|