2012-02-17 11:30:43 +00:00

25 lines
869 B
PHTML

<form action="<?=$this->url(array('controller'=>'saisie', 'action'=>'association'))?>" method="post" name="sendfile">
<input type="hidden" name="siren" value="<?=$this->siren?>" />
<input type="hidden" name="type" value="<?=$this->type?>" />
<?php if ( $this->type=='bilan' ) {?>
Date Cloture : <input type="text" name="dateCloture" /> (JJMMAAAA)<br/><br/>
Bilan : <input type="file" name="fichier" />
<?php } elseif ($this->type=='acte') {?>
Status : <input type="file" name="fichier" />
<?php } ?>
<input type="submit" name="Envoyer" />
</form>
<i>Uniquement fichier pdf</i>
<div id="output"></div>
<?=$this->inlineScript()?>
<script>
$('form[name=sendfile]').ajaxForm({
beforeSubmit: function() {
$('#output').html('Envoi en cours...');
},
success: function(data) {
$('#output').html('<strong>' + data + '</strong>');
}
});
</script>