extranet/includes/saisie/saisie_logo_formupload.php
2010-06-23 08:57:28 +00:00

20 lines
636 B
PHP

<form id="uploadForm" action="/?page=saisieajax&q=logo/upload" method="post" enctype="multipart/form-data">
<input name="MAX_FILE_SIZE" value="100000" type="hidden">
<input type="hidden" name="siren" value="<?=$siren?>"/>
<label>Fichier:</label><input name="file" type="file">
<input value="Envoyer" type="submit">
</form>
<p>
</p><div id="uploadOutput"></div>
<script type="text/javascript">
$('#uploadForm').ajaxForm({
dataType: 'html',
target: '#uploadOutput',
beforeSubmit: function(a,f,o) {
$('#uploadOutput').html('Envoi en cours...');
},
success: function(data) {
$('#uploadOutput').html(data);
}
});
</script>