diff --git a/Js/fonctions.js b/Js/fonctions.js
index 75fe033..0d87fae 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -2598,3 +2598,123 @@ function afficher_liste_assures_a_importer()
{
window.location.assign($("#racineWeb" ).val()+"Listeimportassure/");
}
+
+function calculer_prime_inmportation()
+{
+ nb_adh=$("#nb_adh").val();
+
+ if (nb_adh>"0")
+ {
+ v_msg="Veuillez lier toutes les famille à leur collège!";
+ v_msgEng="Please link all the family to their college!";
+ alert_ebene(v_msg, v_msgEng);
+
+ return;
+ }
+
+ v_msg="Confirmez-vous le calcul de primes?";
+ v_msgEng="Do you confirm the premium calculation?";
+
+ if(confirm_ebene(v_msg, v_msgEng))
+ {
+
+ var div_attente = $('#div_liste_assure_importe');
+
+ div_attente.html('
' + 'Chargement en cours! Veuillez patienter...' + ' ');
+
+ $.ajax({
+ url: $("#racineWeb").val()+"Ajaximporterlisteassure/calculerprimeimportee/",
+ type: 'POST',
+ // data: donnees,
+ success: function(data) {
+ v_msg="Calcul de primes terminée avec succès!";
+ v_msgEng="Premium calculation completed successfully!";
+ alert_ebene(v_msg, v_msgEng);
+ },
+ error: function(data) {
+ },
+ complete: function()
+ {
+ // window.location.assign($("#racineWeb" ).val()+"Listeimportassure/");
+ afficher_liste_assures_a_importer();
+ }
+ });
+ }
+}
+
+function incorporer_assures_inmportes()
+{
+ nb_adh=$("#nb_adh").val();
+
+ if (nb_adh>"0")
+ {
+ v_msg="Veuillez revoir les collèges et relancer le calcul des primes!";
+ v_msgEng="Please review the colleges and restart the premium calculation!!";
+ alert_ebene(v_msg, v_msgEng);
+
+ return;
+ }
+
+ nb_ligne_ass=$("#nb_ligne_ass").val();
+
+ if (nb_ligne_ass=="0")
+ {
+ v_msg="Rien à importer!";
+ v_msgEng="Nothing to import!";
+ alert_ebene(v_msg, v_msgEng);
+
+ return;
+ }
+
+ v_msg="Avez-vous fait l\'étape 2 => calcul des primes?";
+ v_msgEng="Did you do step 2 => premium calculation?";
+
+ if(!confirm_ebene(v_msg, v_msgEng))
+ {
+ return;
+ }
+
+ primeTtcTotal=$("#primeTtcTotal").val();
+
+ if (primeTtcTotal=="0")
+ {
+ v_msg="Pas de primes! souhaitez-vous recalculer les primes?";
+ v_msgEng="No premiums! do you want to recalculate the premiums?";
+
+ if(confirm_ebene(v_msg, v_msgEng))
+ {
+ return;
+ }
+
+ v_msg="Notez que vous avez accepté l\'incorporation sans primes!";
+ v_msgEng="Note that you accepted the incorporation without premium!";
+ alert_ebene(v_msg, v_msgEng);
+ }
+
+ v_msg="Confirmez-vous l\'incorporation de cette liste?";
+ v_msgEng="Do you confirm the incorporation of this list?";
+
+ if(confirm_ebene(v_msg, v_msgEng))
+ {
+ var div_attente = $('#div_liste_assure_importe');
+
+ div_attente.html('
' + 'Chargement en cours! Veuillez patienter...' + ' ');
+
+ $.ajax({
+ url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/",
+ type: 'POST',
+ // data: donnees,
+ success: function(data) {
+ v_msg="Incorporation terminée avec succès!";
+ v_msgEng="Incorporation completed successfully!";
+ alert_ebene(v_msg, v_msgEng);
+ },
+ error: function(data) {
+ },
+ complete: function() {
+ afficher_police_id();
+ }
+ });
+ }
+}
+
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index d6d56a2..c34099b 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -635,7 +635,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
-
+