2011-07-12 15:13:03 +00:00
<?php if ( isset ( $this -> upload ) && $this -> upload == true ){ ?>
< br / > Résumé de la demande : < br / >
Saisie du bilan de la Société <? = $this -> raisonSociale ?>
2012-01-25 09:27:21 +00:00
clôturé le <? = $this -> infos [ 'bilanCloture' ] ?> (<? = $this -> infos [ 'bilanDuree' ] ?> mois)
au format <? = $this -> type ?> . Merci de vérifier votre fichier en cliquant sur le lien.< br />
< a href = " <? = $this -> url ( array ( 'controller' => 'fichier' , 'action' => 'bilanclient' , 'fichier' => $this -> name )) ?> " target = "_blank" > <? = $this -> name ?> </ a > (<? = $this -> size ?> octets)
2011-07-12 15:13:03 +00:00
< br / > < br / >
Si le fichier ne correspond pas ou que vous avez fait une erreur,
2012-01-25 09:27:21 +00:00
< a id = "annule" href = " <? = $this -> url ( array ( 'controller' => 'finance' , 'action' => 'saisiebilan' , 'annule' => 1 , 'ref' => $this -> ref )) ?> " > merci de l'annuler en cliquant ici.</ a >
2011-07-12 15:13:03 +00:00
< script >
$('#annule').click(function(e){
e.preventDefault();
var url = $(this).attr('href');
$.post(url, null, function (data, textStatus) {
if (textStatus == 'success'){
$('#dialogbilanclient').html(data);
}
});
});
< / script >
<?php } elseif ( isset ( $this -> upload ) && $this -> upload == false ) { ?>
<? = $this -> errMsg ?>
<?php } else { ?>
Votre référence : BS<? = $this -> ref ?>
< br / > < br / >
< style >
#progressbar { border:none; }
.ui-progressbar-value { background-image: url(/themes/default/images/finance/pbar-ani.gif); }
< / style >
< form id = "uploadForm" name = "uploadForm" action = " <? = $this -> url ( array ( 'controller' => 'finance' , 'action' => 'saisiebilan' )) ?> " method = "POST" enctype = "multipart/form-data" >
< input type = "hidden" name = "siren" value = " <? = $this -> siren ?> " />
< input type = "hidden" name = "ref" value = " <? = $this -> ref ?> " />
< input type = "hidden" name = "MAX_FILE_SIZE" value = "50000000" / >
Votre fichier : < input type = "file" name = "fichier" / >
< input type = "submit" name = "upload" value = "Envoyer" / >
< / form >
< div id = "progressbar" > < / div >
< div id = "uploadOutput" > < / div >
< script type = "text/javascript" src = "/themes/default/scripts/jquery.form.js" >
< /script type="text/javascript">
< script >
$('#uploadForm').ajaxForm({
beforeSubmit: function() {
$('#progressbar').progressbar({value: 100});
$('#uploadOutput').html('Envoi en cours...');
},
success: function(data) {
$('#progressbar').progressbar('destroy');
2012-01-25 09:27:21 +00:00
$('#uploadOutput').html(data);
2011-07-12 15:13:03 +00:00
}
});
$('#dialogbilanclient').dialog({ buttons: [ {
text: "Quitter",
click: function() { $(this).dialog("close"); }
} ] });
< / script >
<?php } ?>