diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..803cfc1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+node_modules/
+*.env
+logs/
+.DS_Store
+package-lock.json
diff --git a/app.js b/app.js
new file mode 100644
index 0000000..e02b860
--- /dev/null
+++ b/app.js
@@ -0,0 +1,123 @@
+/////////////////////////////////////////////////
+// LOGGING
+/////////////////////////////////////////////////
+const logger = require("./public/js/app/logger");
+
+logger.info('bonjour Julie');
+
+/////////////////////////////////////////////////
+// VARIABLES D'ENVIRONNEMENT
+/////////////////////////////////////////////////
+
+// DOTENV
+// Ne pas utiliser de fichiers .env dans votre environnement de production,
+// mais définir plutôt les valeurs d'environnement sur l'hébergeur
+require('dotenv').config();
+logger.info('process.env.PORT : ' + process.env.PORT);
+
+/////////////////////////////////////////////////
+// APPELS DES MODULES
+/////////////////////////////////////////////////
+
+// EXPRESS
+const express = require('express');
+
+// EXPRESS-SESSION
+const session = require('express-session');
+
+// BODY-PARSER
+//Le package body-parser permet de décomposer les requêtes HTTP POST, PATCH, etc. afin de pouvoir extraire les infoirmations tranmises dans des formulaires. Ces informations apparaissent dans le champ req.body.
+const bodyparser = require('body-parser');
+
+/////////////////////////////////////////////////
+// MIDDLEWARE
+// INITIALISER LES MODULES DANS LE PROJET APP
+/////////////////////////////////////////////////
+
+// EXPRESS
+//// "app" étant la variable qui désigne le projet
+const app = express();
+
+// EXPRESS-SESSION
+var session_cookie = {
+ secret: process.env.COOKIE_SECRET,
+ resave: false,
+ saveUninitialized: false,
+ cookie: {}
+}
+
+logger.info("process.env.ENV : " + process.env.ENV);
+if (process.env.ENV === 'production') {
+ logger.info("express-session secured");
+ app.set('trust proxy', 1); // trust first proxy
+ session_cookie.cookie.secure = true; // serve secure cookies
+}
+
+app.use(session(session_cookie))
+
+// JSON
+//// Read datas on API
+//// needed by Express to read post from HTML Form
+app.use(express.json());
+
+// BODY-PARSER
+//// Pour la méthode post du formulaire
+app.use(bodyparser.urlencoded({ extended: false}));
+app.use(bodyparser.json());
+
+
+
+/////////////////////////////////////////////////
+// PORT D'ÉCOUTE WEB
+/////////////////////////////////////////////////
+
+// port dans variable d'environnement OU (||) par défaut 8888
+const port = process.env.PORT;
+app.listen(port);
+
+/////////////////////////////////////////////////
+// MOTEUR DE TEMPLATE HTML
+/////////////////////////////////////////////////
+
+// appeler le moteur de template html ejs
+app.set('view engine', 'ejs');
+// le répertoire dans lequel se trouvent les fichiers modèles
+app.set('views', './views')
+
+/////////////////////////////////////////////////
+// ASSETS (de Express)
+/////////////////////////////////////////////////
+// donner au programme le nom du dossier où sont les assets (css, image...)
+// Le chemin d’accès que vous fournissez à la fonction express.static est en rapport
+// avec le répertoire à partir duquel vous lancez votre processus node.
+// Si vous exécutez l’application express à partir d’un autre répertoire,
+// il est plus sûr d’utiliser le chemin d’accès absolu que vous voulez servir
+// ex : http://localhost:8080/assets/images/kitten.jpg
+app.use('/public', express.static('public'));
+
+/////////////////////////////////////////////////
+// ROUTES
+/////////////////////////////////////////////////
+
+// APPELER LE FICHIER ROUTE
+// Exemple à modifier :
+const appRouter = require("./routes/appRouter");
+const adhesionRouter = require("./routes/adhesionRouter");
+const stagenatRouter = require("./routes/stagenatRouter");
+const rassemblementRouter = require("./routes/rassemblementRouter");
+
+// Accueil du site
+// [DOMAIN]/
+app.use("/", appRouter);
+
+// Adhésion
+// [DOMAIN]/inscription adhésion
+app.use("/inscription", adhesionRouter);
+
+// STAGE NATIONAL
+// [DOMAIN]/stagenational
+app.use("/stagenational", stagenatRouter);
+
+// RASSEMBLEMENT IDF
+// [DOMAIN]/rassemblementidf
+app.use("/rassemblementidf", rassemblementRouter);
\ No newline at end of file
diff --git a/code_secret_client_222874178146-m2ul49riou277tjl431nbfdb8ibp2nl5.apps.googleusercontent.com.json b/code_secret_client_222874178146-m2ul49riou277tjl431nbfdb8ibp2nl5.apps.googleusercontent.com.json
new file mode 100644
index 0000000..2ab7570
--- /dev/null
+++ b/code_secret_client_222874178146-m2ul49riou277tjl431nbfdb8ibp2nl5.apps.googleusercontent.com.json
@@ -0,0 +1 @@
+{"web":{"client_id":"222874178146-m2ul49riou277tjl431nbfdb8ibp2nl5.apps.googleusercontent.com","project_id":"testapi336520","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"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","redirect_uris":["https://www.juliechaumard.paris"],"javascript_origins":["https://www.juliechaumard.paris"]}}
\ No newline at end of file
diff --git a/code_secret_client_738202486676-su2vn8602qqfehool3jqkjvdrdlrl1kd.apps.googleusercontent.com.json b/code_secret_client_738202486676-su2vn8602qqfehool3jqkjvdrdlrl1kd.apps.googleusercontent.com.json
new file mode 100644
index 0000000..50491be
--- /dev/null
+++ b/code_secret_client_738202486676-su2vn8602qqfehool3jqkjvdrdlrl1kd.apps.googleusercontent.com.json
@@ -0,0 +1 @@
+{"web":{"client_id":"738202486676-su2vn8602qqfehool3jqkjvdrdlrl1kd.apps.googleusercontent.com","project_id":"inscriptionsafps","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"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","javascript_origins":["https://www.adhesion.afpedagogiesuzuki.fr","http://localhost:8888","https://www.adusuki.juliechaumard.paris"]}}
\ No newline at end of file
diff --git a/combined.log.2023-02-26 b/combined.log.2023-02-26
new file mode 100644
index 0000000..b10a894
--- /dev/null
+++ b/combined.log.2023-02-26
@@ -0,0 +1,18 @@
+2023-02-26 18:25:06 info [undefined] SID[undefined] bonjour Julie
+2023-02-26 18:25:06 info [undefined] SID[undefined] process.env.PORT : 8888
+2023-02-26 18:25:06 info [undefined] SID[undefined] process.env.ENV : production
+2023-02-26 18:25:06 info [undefined] SID[undefined] express-session secured
+2023-02-26 18:25:06 info [undefined] SID[undefined] NOUS SOMMES DANS LE FICHIER : /home/jivciei/adusuki/routes/appRouter.js
+2023-02-26 18:25:06 info [undefined] SID[undefined] NOUS SOMMES DANS LE FICHIER : /home/jivciei/adusuki/routes/adhesionRouter.js
+2023-02-26 18:25:06 info [undefined] SID[undefined] NOUS SOMMES DANS LE FICHIER : /home/jivciei/adusuki/controllers/adhesionController.js
+2023-02-26 18:25:06 info [undefined] SID[undefined] NOUS SOMMES DANS LE FICHIER : /home/jivciei/adusuki/routes/stagenatRouter.js
+2023-02-26 18:25:06 info [undefined] SID[undefined] NOUS SOMMES DANS LE FICHIER : /home/jivciei/adusuki/controllers/stagenatController.js
+2023-02-26 18:36:27 info [undefined] SID[undefined] bonjour Julie
+2023-02-26 18:36:27 info [undefined] SID[undefined] process.env.PORT : 8888
+2023-02-26 18:36:27 info [undefined] SID[undefined] process.env.ENV : production
+2023-02-26 18:36:27 info [undefined] SID[undefined] express-session secured
+2023-02-26 18:36:27 info [undefined] SID[undefined] NOUS SOMMES DANS LE FICHIER : /home/jivciei/adusuki/routes/appRouter.js
+2023-02-26 18:36:27 info [undefined] SID[undefined] NOUS SOMMES DANS LE FICHIER : /home/jivciei/adusuki/routes/adhesionRouter.js
+2023-02-26 18:36:27 info [undefined] SID[undefined] NOUS SOMMES DANS LE FICHIER : /home/jivciei/adusuki/controllers/adhesionController.js
+2023-02-26 18:36:28 info [undefined] SID[undefined] NOUS SOMMES DANS LE FICHIER : /home/jivciei/adusuki/routes/stagenatRouter.js
+2023-02-26 18:36:28 info [undefined] SID[undefined] NOUS SOMMES DANS LE FICHIER : /home/jivciei/adusuki/controllers/stagenatController.js
diff --git a/controllers/adhesionController.js b/controllers/adhesionController.js
new file mode 100644
index 0000000..58af46c
--- /dev/null
+++ b/controllers/adhesionController.js
@@ -0,0 +1,2429 @@
+/////////////////////////////////////////////////
+// LOGGING
+/////////////////////////////////////////////////
+const logger = require("../public/js/app/logger");
+logger.info("NOUS SOMMES DANS LE FICHIER : " + __filename);
+
+
+/////////////////////////////////////////////////
+// APPELS DES MODULES
+/////////////////////////////////////////////////
+const moment = require('moment');
+const ejs = require('ejs');
+var nodemailer = require('nodemailer');
+const path = require("path");
+const stripe = require('stripe')(process.env.STRIPE_PRIVATE_KEY);
+var pdf = require("pdf-creator-node");
+var fs = require("fs");
+// Déterminer les profils de l'adhésion
+const carte_adherent = require("./../modules/adhesion/carte_adherent");
+
+
+/////////////////////////////////////////////////
+// GOOGLE SHEET PARAMETERS
+/////////////////////////////////////////////////
+const { GoogleSpreadsheet } = require('google-spreadsheet');
+const creds = require('../testapi336520-3105cc3caa46.json');
+// Initialize the sheet - doc ID is the long id in the sheets URL
+// google sheet TestAPISheets
+// google sheet aduzuki_DB
+const doc = new GoogleSpreadsheet('1BhpYj-KtsyC8inXIDVl-zldDYRuhEqPwBFvP45FtJkI');
+
+
+/////////////////////////////////////////////////
+// VARIABLES GLOBALES
+/////////////////////////////////////////////////
+let adherent_type,profil1, profil2, profil3;
+
+/////////////////////////////////////////////////
+// SAISIE DU MAIL
+// VÉRIFIER SI DÉJÀ INSCRIT DANS GOOGLE SHEET
+// (TABLEAU adhesion_annuelle_web ET adhesion_ass_locales)
+/////////////////////////////////////////////////
+const checkMail = async function(req, res){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION checkMail ==========");
+ logger.info("======================================");
+ logger.info("req.body.identifiant = " + req.body.identifiant, { numsession: req.session.id });
+ logger.info("req.session.id = " + req.session.id, { numsession: req.session.id });
+
+ await doc.useServiceAccountAuth(creds);
+ await doc.loadInfo(); // loads document properties and worksheets
+ logger.info("NOM FICHIER SHEET: " + doc.title, { numsession: req.session.id });
+
+ //const sheet = doc.sheetsByIndex[1]; // or use doc.sheetsById[id] or doc.sheetsByTitle[title]
+ //var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("feuilleTOTO");
+ // const sheet = doc.sheetsByTitle['feuilleTOTO']; // or use doc.sheetsById[id] or doc.sheetsByTitle[title]
+ const sheet = doc.sheetsByTitle['adhesion_annuelle_web'];
+ const sheet_asslocales = doc.sheetsByTitle['adhesion_ass_locales'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + sheet.title, { numsession: req.session.id });
+ logger.info("NOMBRE DE LIGNE DU TABLEAU: " + sheet.rowCount, { numsession: req.session.id });
+ logger.info("NOM DU TABLEAU (ONGLET) ASS LOCALES: " + sheet_asslocales.title, { numsession: req.session.id });
+ logger.info("NOMBRE DE LIGNE DU TABLEAU ASS LOCALES: " + sheet_asslocales.rowCount, { numsession: req.session.id });
+
+
+
+ const rows = await sheet.getRows();
+ logger.info("rows[0].identifiant: " + rows[0].identifiant, { numsession: req.session.id });
+ logger.info("nombre de row : " + sheet.rowCount, { numsession: req.session.id });
+ const rows_asslocales = await sheet_asslocales.getRows();
+ logger.info("rows[0].identifiant: " + rows_asslocales[0].identifiant, { numsession: req.session.id });
+
+ // mettre les mails dans un array
+ let lesmails = new Array;
+ let compteur = sheet.rowCount - 1;
+ let compteur_asslocales = sheet_asslocales.rowCount - 1;
+ logger.info("compteur: " + compteur, { numsession: req.session.id });
+
+ // METTRE LES MAILS DU TABLEAU adhesion_annuelle_web
+ for (let i=0; i 1) && req.body.adherent_prof_stagiaire_instrument1_prof[2]){
+ logger.info("req.body.adherent_prof_stagiaire_instrument1_prof[0].length > 1", { numsession: req.session.id });
+ req.session.adherent_prof_stagiaire_instrument1_prof = req.body.adherent_prof_stagiaire_instrument1_prof[0]+", "+req.body.adherent_prof_stagiaire_instrument1_prof[1]+", "+req.body.adherent_prof_stagiaire_instrument1_prof[2]}
+ else if (req.body.adherent_prof_stagiaire_instrument1_prof && (req.body.adherent_prof_stagiaire_instrument1_prof[0].length > 1) && req.body.adherent_prof_stagiaire_instrument1_prof[1]){
+ logger.info("req.body.adherent_prof_stagiaire_instrument1_prof[0].length > 1 ELSE", { numsession: req.session.id });
+ req.session.adherent_prof_stagiaire_instrument1_prof = req.body.adherent_prof_stagiaire_instrument1_prof[0]+", "+req.body.adherent_prof_stagiaire_instrument1_prof[1]
+ };
+ if (!req.body.adherent_prof_stagiaire_instrument1_prof){
+ req.session.adherent_prof_stagiaire_instrument1_prof = ""
+ };
+ req.session.adherent_prof_stagiaire_instrument2 = req.body.adherent_prof_stagiaire_instrument2;
+ req.session.adherent_prof_stagiaire_instrument2_esa = req.body.adherent_prof_stagiaire_instrument2_esa;
+ // Si un seul nom est sélectionné alors l'input ne sera pas sous fome de Array et le [0] sera le premier caractère du nom du professeur sélectionné
+ if (req.body.adherent_prof_stagiaire_instrument2_prof && (req.body.adherent_prof_stagiaire_instrument2_prof[0].length = 1)){
+ req.session.adherent_prof_stagiaire_instrument2_prof = req.body.adherent_prof_stagiaire_instrument2_prof
+ };
+ if (req.body.adherent_prof_stagiaire_instrument2_prof && (req.body.adherent_prof_stagiaire_instrument2_prof[0].length > 1) && req.body.adherent_prof_stagiaire_instrument2_prof[2]){
+ logger.info("req.body.adherent_prof_stagiaire_instrument2_prof[0].length > 1", { numsession: req.session.id });
+ req.session.adherent_prof_stagiaire_instrument2_prof = req.body.adherent_prof_stagiaire_instrument2_prof[0]+", "+req.body.adherent_prof_stagiaire_instrument2_prof[1]+", "+req.body.adherent_prof_stagiaire_instrument2_prof[2]}
+ else if (req.body.adherent_prof_stagiaire_instrument2_prof && (req.body.adherent_prof_stagiaire_instrument2_prof[0].length > 1) && req.body.adherent_prof_stagiaire_instrument2_prof[1]){
+ logger.info("req.body.adherent_prof_stagiaire_instrument2_prof[0].length > 1 ELSE", { numsession: req.session.id });
+ req.session.adherent_prof_stagiaire_instrument2_prof = req.body.adherent_prof_stagiaire_instrument2_prof[0]+", "+req.body.adherent_prof_stagiaire_instrument2_prof[1]
+ };
+ if (!req.body.adherent_prof_stagiaire_instrument2_prof){
+ req.session.adherent_prof_stagiaire_instrument2_prof = ""
+ };
+ req.session.adherent_eleve1_nom = req.body.adherent_eleve1_nom;
+ req.session.adherent_eleve1_prenom = req.body.adherent_eleve1_prenom;
+ if (req.body.adherent_eleve1_datenaissance){req.session.adherent_eleve1_datenaissance = moment(req.body.adherent_eleve1_datenaissance).format('L')};
+ req.session.adherent_eleve1_contactsup_nom = req.body.adherent_eleve1_contactsup_nom;
+ req.session.adherent_eleve1_contactsup_prenom = req.body.adherent_eleve1_contactsup_prenom;
+ req.session.adherent_eleve1_contactsup_mail = req.body.adherent_eleve1_contactsup_mail;
+ req.session.adherent_eleve1_InstrumentA = req.body.adherent_eleve1_InstrumentA;
+ req.session.adherent_eleve1_InstrumentA_prof = req.body.adherent_eleve1_InstrumentA_prof;
+ req.session.adherent_eleve1_InstrumentA_cahier = req.body.adherent_eleve1_InstrumentA_cahier;
+ req.session.adherent_eleve1_InstrumentB = req.body.adherent_eleve1_InstrumentB;
+ req.session.adherent_eleve1_InstrumentB_prof = req.body.adherent_eleve1_InstrumentB_prof;
+ req.session.adherent_eleve1_InstrumentB_cahier = req.body.adherent_eleve1_InstrumentB_cahier;
+ req.session.adherent_eleve1_droitimage = req.body.adherent_eleve1_droitimage;
+ req.session.adherent_eleve2_nom = req.body.adherent_eleve2_nom;
+ req.session.adherent_eleve2_prenom = req.body.adherent_eleve2_prenom;
+ if (req.body.adherent_eleve2_datenaissance){req.session.adherent_eleve2_datenaissance = moment(req.body.adherent_eleve2_datenaissance).format('L')};
+ req.session.adherent_eleve2_contactsup_nom = req.body.adherent_eleve2_contactsup_nom;
+ req.session.adherent_eleve2_contactsup_prenom = req.body.adherent_eleve2_contactsup_prenom;
+ req.session.adherent_eleve2_contactsup_mail = req.body.adherent_eleve2_contactsup_mail;
+ req.session.adherent_eleve2_InstrumentA = req.body.adherent_eleve2_InstrumentA;
+ req.session.adherent_eleve2_InstrumentA_prof = req.body.adherent_eleve2_InstrumentA_prof;
+ req.session.adherent_eleve2_InstrumentA_cahier = req.body.adherent_eleve2_InstrumentA_cahier;
+ req.session.adherent_eleve2_InstrumentB = req.body.adherent_eleve2_InstrumentB;
+ req.session.adherent_eleve2_InstrumentB_prof = req.body.adherent_eleve2_InstrumentB_prof;
+ req.session.adherent_eleve2_InstrumentB_cahier = req.body.adherent_eleve2_InstrumentB_cahier;
+ req.session.adherent_eleve2_droitimage = req.body.adherent_eleve2_droitimage;
+ req.session.adherent_eleve3_nom = req.body.adherent_eleve3_nom;
+ req.session.adherent_eleve3_prenom = req.body.adherent_eleve3_prenom;
+ if (req.body.adherent_eleve3_datenaissance){req.session.adherent_eleve3_datenaissance = moment(req.body.adherent_eleve3_datenaissance).format('L')};
+ req.session.adherent_eleve3_contactsup_nom = req.body.adherent_eleve3_contactsup_nom;
+ req.session.adherent_eleve3_contactsup_prenom = req.body.adherent_eleve3_contactsup_prenom;
+ req.session.adherent_eleve3_contactsup_mail = req.body.adherent_eleve3_contactsup_mail;
+ req.session.adherent_eleve3_InstrumentA = req.body.adherent_eleve3_InstrumentA;
+ req.session.adherent_eleve3_InstrumentA_prof = req.body.adherent_eleve3_InstrumentA_prof;
+ req.session.adherent_eleve3_InstrumentA_cahier = req.body.adherent_eleve3_InstrumentA_cahier;
+ req.session.adherent_eleve3_InstrumentB = req.body.adherent_eleve3_InstrumentB;
+ req.session.adherent_eleve3_InstrumentB_prof = req.body.adherent_eleve3_InstrumentB_prof;
+ req.session.adherent_eleve3_InstrumentB_cahier = req.body.adherent_eleve3_InstrumentB_cahier;
+ req.session.adherent_eleve3_droitimage = req.body.adherent_eleve3_droitimage;
+ req.session.adherent_eleve4_nom = req.body.adherent_eleve4_nom;
+ req.session.adherent_eleve4_prenom = req.body.adherent_eleve4_prenom;
+ if (req.body.adherent_eleve4_datenaissance){req.session.adherent_eleve4_datenaissance = moment(req.body.adherent_eleve4_datenaissance).format('L')};
+ req.session.adherent_eleve4_contactsup_nom = req.body.adherent_eleve4_contactsup_nom;
+ req.session.adherent_eleve4_contactsup_prenom = req.body.adherent_eleve4_contactsup_prenom;
+ req.session.adherent_eleve4_contactsup_mail = req.body.adherent_eleve4_contactsup_mail;
+ req.session.adherent_eleve4_InstrumentA = req.body.adherent_eleve4_InstrumentA;
+ req.session.adherent_eleve4_InstrumentA_prof = req.body.adherent_eleve4_InstrumentA_prof;
+ req.session.adherent_eleve4_InstrumentA_cahier = req.body.adherent_eleve4_InstrumentA_cahier;
+ req.session.adherent_eleve4_InstrumentB = req.body.adherent_eleve4_InstrumentB;
+ req.session.adherent_eleve4_InstrumentB_prof = req.body.adherent_eleve4_InstrumentB_prof;
+ req.session.adherent_eleve4_InstrumentB_cahier = req.body.adherent_eleve4_InstrumentB_cahier;
+ req.session.adherent_eleve4_droitimage = req.body.adherent_eleve4_droitimage;
+ req.session.adherent_eleve5_nom = req.body.adherent_eleve5_nom;
+ req.session.adherent_eleve5_prenom = req.body.adherent_eleve5_prenom;
+ if (req.body.adherent_eleve5_datenaissance){req.session.adherent_eleve5_datenaissance = moment(req.body.adherent_eleve5_datenaissance).format('L')};
+ req.session.adherent_eleve5_contactsup_nom = req.body.adherent_eleve5_contactsup_nom;
+ req.session.adherent_eleve5_contactsup_prenom = req.body.adherent_eleve5_contactsup_prenom;
+ req.session.adherent_eleve5_contactsup_mail = req.body.adherent_eleve5_contactsup_mail;
+ req.session.adherent_eleve5_InstrumentA = req.body.adherent_eleve5_InstrumentA;
+ req.session.adherent_eleve5_InstrumentA_prof = req.body.adherent_eleve5_InstrumentA_prof;
+ req.session.adherent_eleve5_InstrumentA_cahier = req.body.adherent_eleve5_InstrumentA_cahier;
+ req.session.adherent_eleve5_InstrumentB = req.body.adherent_eleve5_InstrumentB;
+ req.session.adherent_eleve5_InstrumentB_prof = req.body.adherent_eleve5_InstrumentB_prof;
+ req.session.adherent_eleve5_InstrumentB_cahier = req.body.adherent_eleve5_InstrumentB_cahier;
+ req.session.adherent_eleve5_droitimage = req.body.adherent_eleve5_droitimage;
+
+ logger.info("req.body.adherent_nom: " + req.body.adherent_nom, { numsession: req.session.id });
+ logger.info("req.session.identifiant: " + req.session.identifiant, { numsession: req.session.id });
+ logger.info("req.session.adherent_nom: " + req.session.adherent_nom, { numsession: req.session.id });
+
+
+
+ // DÉTERMINER LE TYPE D'ADHÉRENT
+ logger.info("// DÉTERMINER LE TYPE D'ADHÉRENT");
+ logger.info("req.session.adherent_prof_stagiaire_instrument1_esa: " + req.session.adherent_prof_stagiaire_instrument1_esa, { numsession: req.session.id });
+
+ logger.info("req.session.adherent_type = " + req.session.adherent_type, { numsession: req.session.id });
+
+ if (req.session.adherent_type === "famille") {
+ adherent_type = "famille";
+ } else if (req.session.adherent_type === "observateur") {
+ adherent_type = "observateur";
+ logger.info("adherent_type in if observateur = " + adherent_type, { numsession: req.session.id });
+ } else {
+ if (req.session.adherent_prof_instrument1 && !req.session.adherent_prof_stagiaire_instrument1 && !req.session.adherent_eleve1_nom) {
+ adherent_type = "professeur";
+ }
+
+ if (req.session.adherent_prof_instrument1 && !req.session.adherent_prof_stagiaire_instrument1 && req.session.adherent_eleve1_nom) {
+ adherent_type = "prof_famille";
+ }
+
+ if (req.session.adherent_prof_stagiaire_instrument1 && req.session.adherent_prof_stagiaire_instrument1 && !req.session.adherent_eleve1_nom) {
+ adherent_type = "prof_stagiaire";
+ }
+
+ if (req.session.adherent_prof_stagiaire_instrument1 && req.session.adherent_prof_stagiaire_instrument1 && req.session.adherent_eleve1_nom) {
+ adherent_type = "prof_stagiaire_famille";
+ }
+
+ if (!req.session.adherent_prof_instrument1 && !req.session.adherent_prof_instrument1 && req.session.adherent_prof_stagiaire_instrument1_esa == 'Niveau 1' && !req.session.adherent_prof_stagiaire_instrument2 && !req.session.adherent_eleve1_nom) {
+ adherent_type = "prof_stagiaire1";
+ }
+
+ if (!req.session.adherent_prof_instrument1 && !req.session.adherent_prof_instrument1 && req.session.adherent_prof_stagiaire_instrument1_esa == 'Niveau 1' && !req.session.adherent_prof_stagiaire_instrument2 && req.session.adherent_eleve1_nom) {
+ adherent_type = "prof_stagiaire1_famille";
+ }
+ }
+
+
+
+ if (!adherent_type) {
+ adherent_type = "non déterminé";
+ }
+ req.session.adherent_type = adherent_type;
+ logger.info("adherent_type : " + adherent_type, { numsession: req.session.id });
+
+ // DATE DE L'ADHÉSION
+ moment().format();
+ moment.locale('fr');
+ var date_formattee = moment().format('L');
+ logger.info("date_formattee : " + date_formattee, { numsession: req.session.id });
+
+
+ // CALCUL DU PRIX
+
+ if (adherent_type == "professeur" || adherent_type == "prof_famille" || adherent_type == "prof_stagiaire" || adherent_type == "prof_stagiaire_famille") {
+ adherent_paiement_montant_adhesion = 42;
+ };
+ if (adherent_type == "prof_stagiaire1" || adherent_type == "prof_stagiaire1_famille") {
+ adherent_paiement_montant_adhesion = 22;
+ };
+ if (adherent_type == "famille") {
+ adherent_paiement_montant_adhesion = 22;
+ };
+ if (adherent_type == "observateur") {
+ adherent_paiement_montant_adhesion = 22;
+ };
+ if (adherent_type == "non déterminé" || adherent_type == "") {
+ adherent_paiement_montant_adhesion = 0;
+ };
+ logger.info("CALCUL DU PRIX : " + adherent_paiement_montant_adhesion, { numsession: req.session.id });
+ //passer la variable dans la session pour la récupérer
+ req.session.adherent_paiement_montant_adhesion = adherent_paiement_montant_adhesion;
+
+
+ /////////////////////////////////////////////////
+ // AJOUT DE l'ADHÉRENT
+ // DANS LA GOOGLE SHEET
+ /////////////////////////////////////////////////
+
+ await doc.useServiceAccountAuth(creds);
+ await doc.loadInfo(); // loads document properties and worksheets
+ logger.info("NOM FICHIER SHEET: : " + doc.title, { numsession: req.session.id }); //nom du fichier
+
+ const sheet = doc.sheetsByTitle['adhesion_annuelle_web'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + sheet.title, { numsession: req.session.id }); //nom du fichier
+ logger.info("NOMBRE DE LIGNE DU TABLEAU: " + sheet.rowCount, { numsession: req.session.id });
+
+ // SI IDENTIFIANT NON EXISTANT ON AJOUTE LA NOUVELLE LIGNE
+ // SI IDENTIFIANT EXISTANT, cela veut dire que l'internaute à fait retour arrière depuis la page paiement
+ // et va enregistrer de nouveau et donc cela ajouterai encore une ligne.
+ // du coup on ne va pas ajouter une nouvelle ligne mais METTRE Â JOUR l'EXISTANTE au cas où il ait modifié des informations
+
+ // ON CHECK DE NOUVEAU SI L'IDENTIFIANT EST DÉJA PRÉSENT
+
+ const rows = await sheet.getRows();
+
+ logger.info("rows[0].identifiant: " + rows[0].identifiant, { numsession: req.session.id });
+ logger.info("nombre de row : " + sheet.rowCount, { numsession: req.session.id });
+
+ // mettre les mails dans un array
+ let lesmails = new Array;
+ let compteur = sheet.rowCount - 1;
+ let rowToBeUpdate;
+ logger.info("compteur : " + compteur, { numsession: req.session.id });
+
+
+
+ for (let i=0; i AJOUTER UNE LIGNE DANS LA GOOGLE SHEET
+ const moreRows = await sheet.addRows([
+ {
+ 'identifiant': req.session.identifiant,
+ 'saison': "2022/2023",
+ 'adhesion_date': date_formattee,
+ 'adherent_type': adherent_type,
+ 'adherent_paiement_montant_adhesion': adherent_paiement_montant_adhesion,
+ 'adherent_nom': req.session.adherent_nom,
+ 'adherent_prenom': req.session.adherent_prenom,
+ 'adherent_datenaissance': req.session.adherent_datenaissance,
+ 'adherent_adresse_rue': req.session.adherent_adresse_rue,
+ 'adherent_adresse_complement': req.session.adherent_adresse_complement,
+ 'adherent_adresse_codepostal': req.session.adherent_adresse_codepostal,
+ 'adherent_adresse_ville': req.session.adherent_adresse_ville,
+ 'adherent_adresse_pays': req.session.adherent_adresse_pays,
+ 'adherent_telephone_mobile': req.session.adherent_telephone_mobile,
+ 'adherent_telephone_fixe': req.session.adherent_telephone_fixe,
+ 'adherent_mail': req.session.identifiant,
+ 'adherent_prof_instrument1': req.session.adherent_prof_instrument1,
+ 'adherent_prof_instrument1_esa': req.session.adherent_prof_instrument1_esa,
+ 'adherent_prof_instrument2': req.session.adherent_prof_instrument2,
+ 'adherent_prof_instrument2_esa': req.session.adherent_prof_instrument2_esa,
+ 'adherent_prof_sece': req.session.adherent_prof_sece,
+ 'adherent_prof_ecole1': req.session.adherent_prof_ecole1,
+ 'adherent_prof_ecole1_adresse': req.session.adherent_prof_ecole1_adresse,
+ 'adherent_prof_ecole1_cp': req.session.adherent_prof_ecole1_cp,
+ 'adherent_prof_ecole1_mail': req.session.adherent_prof_ecole1_mail,
+ 'adherent_prof_ecole1_ville': req.session.adherent_prof_ecole1_ville,
+ 'adherent_prof_ecole1_web': req.session.adherent_prof_ecole1_web,
+ 'adherent_prof_ecole2': req.session.adherent_prof_ecole2,
+ 'adherent_prof_ecole2_adresse': req.session.adherent_prof_ecole2_adresse,
+ 'adherent_prof_ecole2_cp': req.session.adherent_prof_ecole2_cp,
+ 'adherent_prof_ecole2_ville': req.session.adherent_prof_ecole2_ville,
+ 'adherent_prof_ecole2_mail': req.session.adherent_prof_ecole2_mail,
+ 'adherent_prof_ecole2_web': req.session.adherent_prof_ecole2_web,
+ 'adherent_prof_ecole3': req.session.adherent_prof_ecole3,
+ 'adherent_prof_ecole3_adresse': req.session.adherent_prof_ecole3_adresse,
+ 'adherent_prof_ecole3_cp': req.session.adherent_prof_ecole3_cp,
+ 'adherent_prof_ecole3_ville': req.session.adherent_prof_ecole3_ville,
+ 'adherent_prof_ecole3_mail': req.session.adherent_prof_ecole3_mail,
+ 'adherent_prof_ecole3_web': req.session.adherent_prof_ecole3_web,
+ 'adherent_prof_stagiaire_instrument1': req.session.adherent_prof_stagiaire_instrument1,
+ 'adherent_prof_stagiaire_instrument1_esa': req.session.adherent_prof_stagiaire_instrument1_esa,
+ 'adherent_prof_stagiaire_instrument1_prof': req.session.adherent_prof_stagiaire_instrument1_prof,
+ 'adherent_prof_stagiaire_instrument2': req.session.adherent_prof_stagiaire_instrument2,
+ 'adherent_prof_stagiaire_instrument2_esa': req.session.adherent_prof_stagiaire_instrument2_esa,
+ 'adherent_prof_stagiaire_instrument2_prof': req.session.adherent_prof_stagiaire_instrument2_prof,
+ 'adherent_eleve1_nom': req.session.adherent_eleve1_nom,
+ 'adherent_eleve1_prenom': req.session.adherent_eleve1_prenom,
+ 'adherent_eleve1_datenaissance': req.session.adherent_eleve1_datenaissance,
+ 'adherent_eleve1_contactsup_nom': req.session.adherent_eleve1_contactsup_nom,
+ 'adherent_eleve1_contactsup_prenom': req.session.adherent_eleve1_contactsup_prenom,
+ 'adherent_eleve1_contactsup_mail': req.session.adherent_eleve1_contactsup_mail,
+ 'adherent_eleve1_InstrumentA': req.session.adherent_eleve1_InstrumentA,
+ 'adherent_eleve1_InstrumentA_prof': req.session.adherent_eleve1_InstrumentA_prof,
+ 'adherent_eleve1_InstrumentA_cahier': req.session.adherent_eleve1_InstrumentA_cahier,
+ 'adherent_eleve1_InstrumentB': req.session.adherent_eleve1_InstrumentB,
+ 'adherent_eleve1_InstrumentB_prof': req.session.adherent_eleve1_InstrumentB_prof,
+ 'adherent_eleve1_InstrumentB_cahier': req.session.adherent_eleve1_InstrumentB_cahier,
+ 'adherent_eleve1_droitimage': req.session.adherent_eleve1_droitimage,
+ 'adherent_eleve2_nom': req.session.adherent_eleve2_nom,
+ 'adherent_eleve2_prenom': req.session.adherent_eleve2_prenom,
+ 'adherent_eleve2_datenaissance': req.session.adherent_eleve2_datenaissance,
+ 'adherent_eleve2_contactsup_nom': req.session.adherent_eleve2_contactsup_nom,
+ 'adherent_eleve2_contactsup_prenom': req.session.adherent_eleve2_contactsup_prenom,
+ 'adherent_eleve2_contactsup_mail': req.session.adherent_eleve2_contactsup_mail,
+ 'adherent_eleve2_InstrumentA': req.session.adherent_eleve2_InstrumentA,
+ 'adherent_eleve2_InstrumentA_prof': req.session.adherent_eleve2_InstrumentA_prof,
+ 'adherent_eleve2_InstrumentA_cahier': req.session.adherent_eleve2_InstrumentA_cahier,
+ 'adherent_eleve2_InstrumentB': req.session.adherent_eleve2_InstrumentB,
+ 'adherent_eleve2_InstrumentB_prof': req.session.adherent_eleve2_InstrumentB_prof,
+ 'adherent_eleve2_InstrumentB_cahier': req.session.adherent_eleve2_InstrumentB_cahier,
+ 'adherent_eleve2_droitimage': req.session.adherent_eleve2_droitimage,
+ 'adherent_eleve3_nom': req.session.adherent_eleve3_nom,
+ 'adherent_eleve3_prenom': req.session.adherent_eleve3_prenom,
+ 'adherent_eleve3_datenaissance': req.session.adherent_eleve3_datenaissance,
+ 'adherent_eleve3_contactsup_nom': req.session.adherent_eleve3_contactsup_nom,
+ 'adherent_eleve3_contactsup_prenom': req.session.adherent_eleve3_contactsup_prenom,
+ 'adherent_eleve3_contactsup_mail': req.session.adherent_eleve3_contactsup_mail,
+ 'adherent_eleve3_InstrumentA': req.session.adherent_eleve3_InstrumentA,
+ 'adherent_eleve3_InstrumentA_prof': req.session.adherent_eleve3_InstrumentA_prof,
+ 'adherent_eleve3_InstrumentA_cahier': req.session.adherent_eleve3_InstrumentA_cahier,
+ 'adherent_eleve3_InstrumentB': req.session.adherent_eleve3_InstrumentB,
+ 'adherent_eleve3_InstrumentB_prof': req.session.adherent_eleve3_InstrumentB_prof,
+ 'adherent_eleve3_InstrumentB_cahier': req.session.adherent_eleve3_InstrumentB_cahier,
+ 'adherent_eleve3_droitimage': req.session.adherent_eleve3_droitimage,
+ 'adherent_eleve4_nom': req.session.adherent_eleve4_nom,
+ 'adherent_eleve4_prenom': req.session.adherent_eleve4_prenom,
+ 'adherent_eleve4_datenaissance': req.session.adherent_eleve4_datenaissance,
+ 'adherent_eleve4_contactsup_nom': req.session.adherent_eleve4_contactsup_nom,
+ 'adherent_eleve4_contactsup_prenom': req.session.adherent_eleve4_contactsup_prenom,
+ 'adherent_eleve4_contactsup_mail': req.session.adherent_eleve4_contactsup_mail,
+ 'adherent_eleve4_InstrumentA': req.session.adherent_eleve4_InstrumentA,
+ 'adherent_eleve4_InstrumentA_prof': req.session.adherent_eleve4_InstrumentA_prof,
+ 'adherent_eleve4_InstrumentA_cahier': req.session.adherent_eleve4_InstrumentA_cahier,
+ 'adherent_eleve4_InstrumentB': req.session.adherent_eleve4_InstrumentB,
+ 'adherent_eleve4_InstrumentB_prof': req.session.adherent_eleve4_InstrumentB_prof,
+ 'adherent_eleve4_InstrumentB_cahier': req.session.adherent_eleve4_InstrumentB_cahier,
+ 'adherent_eleve4_droitimage': req.session.adherent_eleve4_droitimage,
+ 'adherent_eleve5_nom': req.session.adherent_eleve5_nom,
+ 'adherent_eleve5_prenom': req.session.adherent_eleve5_prenom,
+ 'adherent_eleve5_datenaissance': req.session.adherent_eleve5_datenaissance,
+ 'adherent_eleve5_contactsup_nom': req.session.adherent_eleve5_contactsup_nom,
+ 'adherent_eleve5_contactsup_prenom': req.session.adherent_eleve5_contactsup_prenom,
+ 'adherent_eleve5_contactsup_mail': req.session.adherent_eleve5_contactsup_mail,
+ 'adherent_eleve5_InstrumentA': req.session.adherent_eleve5_InstrumentA,
+ 'adherent_eleve5_InstrumentA_prof': req.session.adherent_eleve5_InstrumentA_prof,
+ 'adherent_eleve5_InstrumentA_cahier': req.session.adherent_eleve5_InstrumentA_cahier,
+ 'adherent_eleve5_InstrumentB': req.session.adherent_eleve5_InstrumentB,
+ 'adherent_eleve5_InstrumentB_prof': req.session.adherent_eleve5_InstrumentB_prof,
+ 'adherent_eleve5_InstrumentB_cahier': req.session.adherent_eleve5_InstrumentB_cahier,
+ 'adherent_eleve5_droitimage': req.session.adherent_eleve5_droitimage,
+ },
+ ]);
+
+ }
+
+ // REDIRECTION VERS LA PAGE PAIEMENT
+ res.redirect('/inscription/adhesion_paiement_total');
+
+
+ } else {
+ logger.info("Identifiant vide, retour page accueil", { numsession: req.session.id });
+ req.session.err_mail_form_adhesion_1 = "La page a perdu les informations, veuillez les saisir de nouveau.";
+ res.redirect('/inscription/adhesion');
+ }
+
+
+}
+
+const post_form_montant_total = async function(req, res){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION post_form_montant_total ==========");
+ logger.info("======================================");
+
+ // MONTANT TOTAL À PAYER
+
+ //let montant_adhesion = req.session.adherent_paiement_montant_adhesion;
+ req.session.adherent_paiement_montant_don = req.body.adherent_paiement_montant_don;
+ logger.info("req.body.adherent_paiement_montant_don: " + req.body.adherent_paiement_montant_don, { numsession: req.session.id });
+ logger.info("req.session.adherent_paiement_montant_adhesion: " + req.session.adherent_paiement_montant_adhesion, { numsession: req.session.id });
+ // parseInt pour rendre la variable en type interger et faire l'addition
+ let montant_adhesion = parseInt(req.session.adherent_paiement_montant_adhesion);
+ let montant_don = parseInt(req.session.adherent_paiement_montant_don);
+ let montant_apayer;
+ if (montant_don>0){
+ montant_apayer = montant_adhesion + montant_don;
+ logger.info("if (montant_don>0)", { numsession: req.session.id });
+ } else {
+ logger.info("montant_adhesion: " + montant_adhesion, { numsession: req.session.id });
+ montant_apayer = montant_adhesion;
+ logger.info("else (montant_don>0)", { numsession: req.session.id });
+ };
+ req.session.montant_apayer = montant_apayer;
+ logger.info("montant_apayer: " + montant_apayer, { numsession: req.session.id });
+ let montant_apayer_cent;
+ montant_apayer_cent = montant_apayer * 100;
+ req.session.montant_apayer_cent = montant_apayer_cent;
+ logger.info("montant_apayer_cent: " + montant_apayer_cent, { numsession: req.session.id });
+ res.redirect('/inscription/adhesion_paiement_mode_paiement');
+}
+
+/////////////////////////////////////////////////
+// PAGE FINALE PAIEMENT PAR CHÈQUE
+/////////////////////////////////////////////////
+const post_paiement_cheque_save = async function(req, res){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION post_paiement_cheque_save ==========");
+ logger.info("======================================");
+ //////////////////////////////////////////////////////////////////////////////
+ // RÉCUPÉRATION DES DONNÉES DU FORMULAIRE DANS LA SESSION EN COURS
+ req.session.adherent_paiement_cheque_banque = req.body.adherent_paiement_cheque_banque;
+ req.session.adherent_paiement_cheque_numero = req.body.adherent_paiement_cheque_numero;
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // MISE À JOUR DES INFORMATIONS SUR LE PAIEMENT DANS LA BASE DE DONNÉES GSHEET
+ await doc.useServiceAccountAuth(creds);
+ await doc.loadInfo(); // loads document properties and worksheets
+ const sheet = doc.sheetsByTitle['adhesion_annuelle_web'];
+
+ // on récupère le contenu de la GSheet dans un array nommé "rows"
+ const rows = await sheet.getRows();
+ // on récupère quelle ligne contient l'identifiant concerné pour mettre à jour cette ligne
+ let lesmails = new Array;
+ let compteur = sheet.rowCount - 1;
+ let rowToBeUpdate;
+ for (let i=0; i 0) {
+ description += " Nous vous remercions de votre proposition de don de ";
+ description += req.session.adherent_paiement_montant_don;
+ description += " euros que vous pouvez ajouter à votre règlement.";
+ };
+
+ var membres = [
+ {
+ today: today,
+ description: description,
+ identifiant: req.session.identifiant,
+ profil1: profil1,
+ profil2: profil2,
+ profil3: profil3,
+ type_card: "TEMPORAIRE",
+ adherent_paiement_mode: "Adhésion en attente de paiement par chèque"
+ },
+ ];
+
+ //var pdfname = "/Users/julie/Documents/GitHub/aduzuki/pdf/adhesion/2223/attente/";
+ var pdfname = path.resolve(__dirname, "../pdf/adhesion/2223/attente/");
+ pdfname += "/";
+ pdfname += req.session.identifiant;
+ pdfname += "_adhesion_2223_attente.pdf";
+ logger.info("pdfname = " + pdfname, { numsession: req.session.id });
+
+ var document = {
+ html: html,
+ data: {
+ membres: membres,
+ },
+ path: pdfname,
+ type: ""
+ };
+
+ await pdf
+ .create(document, options)
+ .then((res) => {
+ logger.info("PDF CREATION OK", { numsession: req.session.id });
+ })
+ .catch((error) => {
+ logger.info("error" + error, { numsession: req.session.id });
+ });
+ logger.info("PDF CREATION APRES", { numsession: req.session.id });
+
+ //////////////////////////////////////////////////////////////////////////////
+ // ENVOIE CARTE ADHERENT TEMPORAIRE PAR MAIL
+
+ logger.info("MAIL ENVOI AVANT", { numsession: req.session.id });
+ var transporter = nodemailer.createTransport({
+ service: 'gmail',
+ auth: {
+ // TEST JULIE
+ //user: 'juliechaumard@gmail.com',
+ //pass: 'etfq umof iwbx ltxk'
+ // SUZUKI
+ user: 'afpedagogiesuzuki@gmail.com',
+ pass: 'tlxx kjwx ahyx irnl'
+ }
+ });
+
+ var attachment_name = req.session.identifiant;
+ attachment_name += "_adhesion_2223_carteadherent.pdf";
+
+ var mail_objet = "ASSOCIATION FRANÇAISE POUR LA PÉDAGOGIE SUZUKI - ADHÉSION 2022/2023 - ";
+ mail_objet += req.session.adherent_nom;
+
+ mail_html = "Cher adhérent,
Félicitations ! Dès que votre paiement sera validé, vous serez membres de l’Association Française pour la Pédagogie Suzuki (http://www.afpedagogiesuzuki.fr) et de l’European Suzuki Association (https://europeansuzuki.org). Vous pourrez à ce titre participer à tous les événements Suzuki en France et dans le monde.
Vous trouverez en pièce jointe votre carte d'adhésion annuelle 2022/2023 temporaire.
Votre identifiant est ";
+ mail_html += req.session.identifiant;
+ mail_html += ".
Veuillez noter que votre adhésion ne sera effective qu'à la réception de votre règlement de ";
+ mail_html += req.session.adherent_paiement_montant_adhesion;
+ mail_html += " euros. ";
+ if (req.session.adherent_paiement_montant_don > 0) {
+ mail_html += "Nous vous remercions pour votre proposition de don de ";
+ mail_html += req.session.adherent_paiement_montant_don;
+ mail_html += " euros que vous pouvez ajouter à votre règlement.";
+ }
+ mail_html += "
Nous vous remercions pour votre intérêt et vous souhaitons une très belle année en musique !
Association Française pour la pédagogie Suzuki Chez Anne PAGES 30 rue des Tattes 74500 PUBLIER
";
+
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: req.session.identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ }],
+ };
+
+ transporter.sendMail(mailOptions, function(error, info){
+ if (error) {
+ logger.info("error" + error, { numsession: req.session.id });
+ } else {
+ logger.info("Email envoyé: " + info.response, { numsession: req.session.id });
+ }
+ });
+ logger.info("MAIL ENVOI APRES", { numsession: req.session.id });
+
+ // REDIRECTION VERS LA PAGE DE CONFIRMATION PAIEMENT VIREMENT
+ res.redirect('/inscription/adhesion_paiement/attente');
+
+}
+
+/////////////////////////////////////////////////
+// PAGE FINALE PAIEMENT PAR VIREMENT
+/////////////////////////////////////////////////
+const post_paiement_virement_save = async function(req, res){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION post_paiement_virement_save ==========");
+ logger.info("======================================");
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // MISE À JOUR DES INFORMATIONS SUR LE PAIEMENT DANS LA BASE DE DONNÉES GSHEET
+ await doc.useServiceAccountAuth(creds);
+ await doc.loadInfo(); // loads document properties and worksheets
+ const sheet = doc.sheetsByTitle['adhesion_annuelle_web'];
+
+ // on récupère le contenu de la GSheet dans un array nommé "rows"
+ const rows = await sheet.getRows();
+ // on récupère quelle ligne contient l'identifiant concerné pour mettre à jour cette ligne
+ let lesmails = new Array;
+ let compteur = sheet.rowCount - 1;
+ let rowToBeUpdate;
+ for (let i=0; i 0) {
+ description += " Nous vous remercions de votre proposition de don de ";
+ description += req.session.adherent_paiement_montant_don;
+ description += " euros que vous pouvez ajouter à votre règlement.";
+ };
+
+ var membres = [
+ {
+ today: today,
+ description: description,
+ identifiant: req.session.identifiant,
+ profil1: profil1,
+ profil2: profil2,
+ profil3: profil3,
+ type_card: "TEMPORAIRE",
+ adherent_paiement_mode: "Adhésion en attente de paiement par virement"
+ },
+ ];
+
+ //var pdfname = "/home/cghdxfq/aduzuki/pdf/adhesion/2223/attente/"
+ ///home/cghdxfq/aduzuki/
+
+ //var pdfname = "/Users/julie/Documents/GitHub/aduzuki/pdf/adhesion/2223/attente/";
+ var pdfname = path.resolve(__dirname, "../pdf/adhesion/2223/attente/");
+ pdfname += "/";
+ pdfname += req.session.identifiant;
+ pdfname += "_adhesion_2223_attente.pdf";
+ console.log("pdfname = ",pdfname);
+
+ var document = {
+ html: html,
+ data: {
+ membres: membres,
+ },
+ path: pdfname,
+ type: ""
+ };
+
+ await pdf
+ .create(document, options)
+ .then((res) => {
+ console.log(res);
+ })
+ .catch((error) => {
+ logger.info("error" + error, { numsession: req.session.id });
+ });
+ console.log("PDF CREATION APRES");
+
+ //////////////////////////////////////////////////////////////////////////////
+ // ENVOIE CARTE ADHERENT TEMPORAIRE PAR MAIL
+ console.log("MAIL ENVOI AVANT");
+ var transporter = nodemailer.createTransport({
+ service: 'gmail',
+ auth: {
+ // TEST JULIE
+ //user: 'juliechaumard@gmail.com',
+ //pass: 'etfq umof iwbx ltxk'
+ // SUZUKI
+ user: 'afpedagogiesuzuki@gmail.com',
+ pass: 'tlxx kjwx ahyx irnl'
+ }
+ });
+
+ var attachment_name = req.session.identifiant;
+ attachment_name += "_adhesion_2223_carteadherent.pdf";
+
+ var mail_objet = "ASSOCIATION FRANÇAISE POUR LA PÉDAGOGIE SUZUKI- ADHÉSION 2022/2023 - ";
+ mail_objet += req.session.adherent_nom;
+
+ mail_html = "Cher adhérent,
Félicitations ! Dès que votre paiement sera validé, vous serez membres de l’Association Française pour la Pédagogie Suzuki (http://www.afpedagogiesuzuki.fr) et de l’European Suzuki Association (https://europeansuzuki.org). Vous pourrez à ce titre participer à tous les événements Suzuki en France et dans le monde.
Vous trouverez en pièce jointe votre carte d'adhésion annuelle 2022/2023 temporaire.
Votre identifiant est ";
+ mail_html += req.session.identifiant;
+ mail_html += ".
Veuillez toutefois noter que votre adhésion ne sera effective qu'à la réception de votre règlement de ";
+ mail_html += req.session.adherent_paiement_montant_adhesion;
+ mail_html += " euros. ";
+ if (req.session.adherent_paiement_montant_don > 0) {
+ mail_html += "Merci pour votre proposition de don de ";
+ mail_html += req.session.adherent_paiement_montant_don;
+ mail_html += " euros que vous pouvez ajouter à votre règlement.";
+ }
+ mail_html += "
Nous vous remercions pour votre intérêt et vous souhaitons une très belle année en musique!Association Française pour la pédagogie Suzuki Chez Anne PAGES 30 rue des Tattes 74500 PUBLIER
";
+
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: req.session.identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ }],
+ };
+
+ transporter.sendMail(mailOptions, function(error, info){
+ if (error) {
+ logger.info("error" + error, { numsession: req.session.id });
+ } else {
+ console.log('Email sent: ' + info.response);
+ }
+ });
+ console.log("MAIL ENVOI APRES");
+
+ //////////////////////////////////////////////////////////////////////////////
+ // REDIRECTION VERS LA PAGE DE CONFIRMATION PAIEMENT VIREMENT
+ res.redirect('/inscription/adhesion_paiement/attente');
+
+}
+
+/////////////////////////////////////////////////
+// REQUÈTE VERS LA SOLUTION DE PAIEMENT STRIPE
+/////////////////////////////////////////////////
+
+const post_req_bank = async function(req, res, next){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION post_req_bank ==========");
+ logger.info("======================================");
+
+ logger.info("req.session.montant_apayer_cent: " + req.session.montant_apayer_cent, { numsession: req.session.id });
+ logger.info("req.session.identifiant : " + req.session.identifiant, { numsession: req.session.id });
+ console.log ("req.session.adherent_type: ",req.session.adherent_type);
+ logger.info("process.env.STRIPE_PRIVATE_KEY : " + process.env.STRIPE_PRIVATE_KEY, { numsession: req.session.id });
+
+ // STRIPE - ETAPE 1 - CREER l'INTENTION DE PAIEMENT
+ const session = await stripe.checkout.sessions.create({
+ metadata: {identifiant: req.session.identifiant, profil:req.session.adherent_type, adherent_paiement_montant_adhesion:adherent_paiement_montant_adhesion, adherent_paiement_montant_don:req.session.adherent_paiement_montant_don, adherent_nom:req.session.adherent_nom, adherent_prenom:req.session.adherent_prenom, adherent_adresse_rue:req.session.adherent_adresse_rue, adherent_adresse_codepostal:req.session.adherent_adresse_codepostal, adherent_adresse_ville:req.session.adherent_adresse_ville,},
+ customer_email: req.session.identifiant,
+
+ submit_type: 'pay',
+
+ success_url: process.env.STRIPE_SUCCESSURL,
+ cancel_url: process.env.STRIPE_CANCELURL,
+
+
+ payment_method_types: ['card'],
+ line_items: [{
+ price_data: {
+ currency: 'eur',
+ product_data: {
+ name: 'Adhesion annuelle ' + req.session.adherent_type,
+ },
+ unit_amount: req.session.adherent_paiement_montant_adhesion * 100,
+ },
+ quantity: 1,
+ },
+ {
+ price_data: {
+ currency: 'eur',
+ product_data: {
+ name: 'Don',
+ },
+ unit_amount: req.session.adherent_paiement_montant_don * 100,
+ },
+ quantity: 1,
+ }],
+ //Checkout has three modes: payment, subscription, or setup.
+ mode: 'payment'
+
+ });
+
+
+ // STRIPE - ETAPE 2 - RÉCUPÉRATION DES DONNÉES DE LA SESSION ET ENVOYER LE PAIEMENT
+
+ // DANS LES INFOS DE LA SESSION ON A l'URL DE PAIEMENT POUR CETTE SESSION AVEC LE ID DE CE PAIEMENT
+ // POUR RÉCUPÉRER LES INFOS DE SESSION ON UTILISE "session.[nom de la données]"
+ console.log("session: ",session)
+ console.log("session.id: ",session.id);
+ logger.info("session.url: " + session.url, { numsession: req.session.id });
+
+
+ // ON REDIRIGE L'INTERNAUTE VERS L'URL STRIPE POUR QU'IL FASSE LE PAIEMENT
+ // POUR LE RETOUR C'EST DANS LES URL success_url et cancel_url sur lesquelles on fait un get dans le js du router et on fait un script
+ // pour continuer le process et récupérer les infos contenues dans le get et envoyé par Stripe, comme par ex le code retour de la banque
+
+
+
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // MISE À JOUR DES INFORMATIONS SUR LE PAIEMENT DANS LA BASE DE DONNÉES GSHEET
+ await doc.useServiceAccountAuth(creds);
+ await doc.loadInfo(); // loads document properties and worksheets
+ const sheet = doc.sheetsByTitle['adhesion_annuelle_web'];
+
+ // on récupère le contenu de la GSheet dans un array nommé "rows"
+ const rows = await sheet.getRows();
+ // on récupère quelle ligne contient l'identifiant concerné pour mettre à jour cette ligne
+ let lesmails = new Array;
+ let compteur = sheet.rowCount - 1;
+ let rowToBeUpdate;
+ for (let i=0; i {
+ console.log(res);
+ logger.info("res : " + res, { numsession: req.session.id });
+ })
+ .catch((error) => {
+ console.error(error);
+ logger.info("error : " + error, { numsession: req.session.id });
+ });
+ console.log("PDF CREATION APRES");
+
+ //////////////////////////////////////////////////////////////////////////////
+ // CRÉATION DU PDF JUSTIFICATIF DE DON
+
+ if (adherent_paiement_montant_don > 0) {
+ console.log("IF DON = OUI");
+ logger.info("IF DON = OUI", { numsession: req.session.id });
+ var html_don = fs.readFileSync(path.resolve(__dirname, "../pdf/template/don_justificatif.html"), "utf8");
+ //var html_don = fs.readFileSync("/Users/julie/Documents/GitHub/aduzuki/pdf/template/don_justificatif.html", "utf8");
+ var options_don = {
+ format: "A4",
+ orientation: "portrait",
+ border: "10mm",
+ };
+
+ var adresse = adherent_adresse_rue;
+ adresse += " ";
+ adresse += adherent_adresse_codepostal;
+ adresse += " ";
+ adresse += adherent_adresse_ville;
+
+ var donneur = [
+ {
+ today: today,
+ identifiant: identifiant,
+ nom: adherent_nom,
+ prenom: adherent_prenom,
+ adresse: adresse,
+ adherent_paiement_mode: "carte bancaire",
+ montant_don: adherent_paiement_montant_don
+ },
+ ];
+
+ var pdfname_don = path.resolve(__dirname, "../pdf/adhesion/2223/don/");
+ //var pdfname_don = "/Users/julie/Documents/GitHub/aduzuki/pdf/adhesion/2223/payee/";
+ pdfname_don += "/";
+ pdfname_don += identifiant;
+ pdfname_don += "_adhesion_2223_don.pdf";
+
+ var document_don = {
+ html: html_don,
+ data: {
+ donneur: donneur,
+ },
+ path: pdfname_don,
+ type: ""
+ };
+
+ await pdf
+ .create(document_don, options_don)
+ .then((res) => {
+ logger.info("res : " + res, { numsession: req.session.id });
+ })
+ .catch((error) => {
+ logger.info("error : " + error, { numsession: req.session.id });
+ });
+
+ }
+
+ //////////////////////////////////////////////////////////////////////////////
+ // ENVOIE CARTE ADHERENT + JUSTIFICATIF DE DON PAR MAIL
+
+ console.log("MAIL ENVOI AVANT");
+ var transporter = nodemailer.createTransport({
+ service: 'gmail',
+ auth: {
+ // TEST JULIE
+ //user: 'juliechaumard@gmail.com',
+ //pass: 'etfq umof iwbx ltxk'
+ // SUZUKI
+ user: 'afpedagogiesuzuki@gmail.com',
+ pass: 'tlxx kjwx ahyx irnl'
+ }
+ });
+
+ var attachment_name = identifiant;
+ attachment_name += "_adhesion_2223_carteadherent.pdf";
+ var attachment_don_name = identifiant;
+ attachment_don_name += "_adhesion_2223_don.pdf";
+
+ var mail_objet = "ASSOCIATION FRANÇAISE POUR LA PÉDAGOGIE SUZUKI - ADHÉSION 2022/2023 - ";
+ mail_objet += adherent_nom;
+ mail_html = "Cher adhérent,
Félicitations ! Vous êtes désormais membre de l’Association Française pour la Pédagogie Suzuki (http://www.afpedagogiesuzuki.fr) et de l’European Suzuki Association (https://europeansuzuki.org). Vous pouvez à ce titre participer à tous les événements Suzuki en France et dans le monde.
Vous trouverez en pièce jointe votre carte d'adhésion annuelle (valable du 1er septembre 2022 au 31 août 2023).
Votre identifiant (valable pour toute la famille) est ";
+ mail_html += identifiant;
+ mail_html += ".
";
+ if (adherent_paiement_montant_don > 0) {
+ mail_html += "Nous vous remercions chaleureusement pour votre don. Votre justificatif est également joint à ce mail
";
+ }
+ mail_html += " Nous vous remercions pour votre intérêt et vous souhaitons une très belle année en musique !
Association Française pour la pédagogie Suzuki Chez Anne PAGES 30 rue des Tattes 74500 PUBLIER
";
+
+ if (adherent_paiement_montant_don > 0) {
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ },
+ {
+ filename: attachment_don_name,
+ path: pdfname_don
+ }
+ ],
+ };
+ } else {
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ }
+ ],
+ };
+ }
+
+ transporter.sendMail(mailOptions, function(error, info){
+ if (error) {
+ logger.info("error : " + error, { numsession: req.session.id });
+ } else {
+ console.log('Email sent: ' + info.response);
+ }
+ });
+ console.log("MAIL ENVOI APRES");
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // REDIRECTION VERS LA PAGE DE CONFIRMATION PAIEMENT CARTE BANCAIRE
+ res.render('adhesion/page_templates/adhesion_paiement_reussi.ejs');
+ }
+
+ /////////////////////////////////////////////////
+// RETOUR STRIPE CARTE BANCAIRE ANNULÉE OU PROBLÈME
+/////////////////////////////////////////////////
+ const get_res_bank_annul = async function(req, res){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION get_res_bank_annul ==========");
+ logger.info("======================================");
+
+ console.log ("on est dans la ROUTE /adhesion_paiement/annule");
+ var id = req.query.id;
+ // type = req.params.type;
+ logger.info("id : " + id, { numsession: req.session.id });
+ const session = await stripe.checkout.sessions.retrieve(id);
+
+ console.log("======================================");
+ console.log("======== SESSION ==========");
+ console.log("======================================");
+ console.info(session);
+ var customer_email = session.customer_email;
+ var payment_status = session.payment_status;
+ var amount_total = session.amount_total/100;
+ var stripe_customer = session.customer;
+ var stripe_payment_intent = session.payment_intent;
+ var payment_method_types = session.payment_method_types;
+ var stripe_status = session.status;
+ var profil = session.metadata.profil;
+ var identifiant = session.metadata.identifiant;
+
+ var adherent_paiement_montant_don = session.metadata.adherent_paiement_montant_don;
+ var adherent_paiement_montant_adhesion = session.metadata.adherent_paiement_montant_adhesion;
+ var adherent_nom = session.metadata.adherent_nom;
+ var adherent_prenom = session.metadata.adherent_prenom;
+ var adherent_adresse_rue = session.metadata.adherent_adresse_rue;
+ var adherent_adresse_codepostal = session.metadata.adherent_adresse_codepostal;
+ var adherent_adresse_ville = session.metadata.adherent_adresse_ville;
+
+ //////////////////////////////////////////////////////////////////////////////
+ // DÉFINIR LE PROFIL À AJOUTER DANS LA CARTE ADHÉRENT
+ // La fonction est dans le fichier /modules/adherent_type.js
+ profils = carte_adherent.profil(adherent_type);
+ profil1 = profils[0];
+ profil2 = profils[1];
+ profil3 = profils[2];
+
+ console.log("customer_email: ", customer_email);
+ logger.info("payment_status : " + payment_status, { numsession: req.session.id });
+ console.log("stripe_customer: ", stripe_customer);
+ console.log("amount_total: ", amount_total);
+ console.log("stripe_payment_intent: ", stripe_payment_intent);
+ console.log("payment_method_types: ", payment_method_types);
+ console.log("stripe_status: ", stripe_status);
+ console.log("metadata.profil: ", profil);
+
+ res.locals.customer_email = customer_email;
+ res.locals.payment_status = payment_status;
+ res.locals.amount_total = amount_total;
+ res.locals.stripe_customer = stripe_customer;
+ res.locals.stripe_payment_intent = stripe_payment_intent;
+ res.locals.payment_method_types = payment_method_types;
+ res.locals.stripe_status = stripe_status;
+ res.locals.identifiant = identifiant;
+ res.locals.profil1 = profil1;
+ res.locals.profil2 = profil2;
+ res.locals.profil3 = profil3;
+
+ //////////////////////////////////////////////////////////////////////////////
+ // MISE À JOUR DES INFORMATIONS SUR LE PAIEMENT DANS LA BASE DE DONNÉES GSHEET
+ await doc.useServiceAccountAuth(creds);
+ await doc.loadInfo(); // loads document properties and worksheets
+ const sheet = doc.sheetsByTitle['adhesion_annuelle_web'];
+
+ // on récupère le contenu de la GSheet dans un array nommé "rows"
+ const rows = await sheet.getRows();
+ // on récupère quelle ligne contient l'identifiant concerné pour mettre à jour cette ligne
+ let lesmails = new Array;
+ let compteur = sheet.rowCount - 1;
+ let rowToBeUpdate;
+ for (let i=0; i 0) {
+ description += " Nous vous remercions de votre proposition de don de ";
+ description += adherent_paiement_montant_don;
+ description += " euros que vous pouvez ajouter à votre règlement.";
+ };
+
+ var membres = [
+ {
+ today: today,
+ description: description,
+ identifiant: identifiant,
+ profil1: profil1,
+ profil2: profil2,
+ profil3: profil3,
+ type_card: "TEMPORAIRE",
+ adherent_paiement_mode: "Adhésion en attente de paiement"
+ },
+ ];
+ var pdfname = path.resolve(__dirname, "../pdf/adhesion/2223/attente/");
+ //var pdfname = "/Users/julie/Documents/GitHub/aduzuki/pdf/adhesion/2223/attente/";
+ pdfname += "/";
+ pdfname += identifiant;
+ pdfname += "_adhesion_2223_attente.pdf";
+
+ var document = {
+ html: html,
+ data: {
+ membres: membres,
+ },
+ path: pdfname,
+ type: ""
+ };
+
+ await pdf
+ .create(document, options)
+ .then((res) => {
+ logger.info("res : " + res, { numsession: req.session.id });
+ })
+ .catch((error) => {
+ logger.info("error : " + error, { numsession: req.session.id });
+ });
+ console.log("PDF CREATION APRES");
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // ENVOIE CARTE ADHERENT TEMPORAIRE PAR MAIL
+
+ console.log("MAIL ENVOI AVANT");
+ var transporter = nodemailer.createTransport({
+ service: 'gmail',
+ auth: {
+ // TEST JULIE
+ //user: 'juliechaumard@gmail.com',
+ //pass: 'etfq umof iwbx ltxk'
+ // SUZUKI
+ user: 'afpedagogiesuzuki@gmail.com',
+ pass: 'tlxx kjwx ahyx irnl'
+ }
+ });
+
+ var attachment_name = identifiant;
+ attachment_name += "_adhesion_2223_carteadherent.pdf";
+
+
+ var mail_objet = "ASSOCIATION FRANÇAISE POUR LA PÉDAGOGIE SUZUKI - ADHÉSION 2022/2023 - ";
+ mail_objet += adherent_nom;
+ mail_html = "Cher adhérent,
Félicitations ! Dès que votre paiement sera validé, vous serez membres de l’Association Française pour la Pédagogie Suzuki (http://www.afpedagogiesuzuki.fr) et de l’European Suzuki Association (https://europeansuzuki.org). Vous pourrez à ce titre participer à tous les événements Suzuki en France et dans le monde.
Vous trouverez en pièce jointe votre carte d'adhésion annuelle 2022/2023 temporaire.
Votre identifiant est ";
+ mail_html += identifiant;
+ mail_html += ".
Veuillez toutefois noter que votre adhésion ne sera effective qu'à la réception de votre règlement de ";
+ mail_html += adherent_paiement_montant_adhesion;
+ mail_html += " euros. ";
+ if (adherent_paiement_montant_don > 0) {
+ mail_html += "Nous vous remercions pour votre proposition de don de ";
+ mail_html += adherent_paiement_montant_don;
+ mail_html += " euros que vous pouvez ajouter à votre règlement.";
+ }
+ mail_html += "
Nous vous remercions pour votre intérêt et vous souhaitons une très belle année en musique !Association Française pour la pédagogie Suzuki Chez Anne PAGES 30 rue des Tattes 74500 PUBLIER
";
+
+
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ }],
+ };
+
+ transporter.sendMail(mailOptions, function(error, info){
+ if (error) {
+ logger.info("error : " + error, { numsession: req.session.id });
+ } else {
+ console.log('Email sent: ' + info.response);
+ }
+ });
+ console.log("MAIL ENVOI APRES");
+
+ //////////////////////////////////////////////////////////////////////////////
+ // REDIRECTION VERS LA PAGE DE DE FIN
+ res.locals.adherent_paiement_montant_adhesion = adherent_paiement_montant_adhesion;
+ res.locals.adherent_paiement_montant_don = adherent_paiement_montant_don;
+ res.render('adhesion/page_templates/adhesion_paiement_annule.ejs');
+ }
+
+
+
+/////////////////////////////////////////////////
+// ENVOI MANUEL CARTE ADHÉSION ET JUSTIFICATIF DE DON (SI DON)
+/////////////////////////////////////////////////
+/////////////////////////////////////////////////
+// SAISIE DU MAIL
+// VÉRIFIER SI DÉJÀ INSCRIT DANS GOOGLE
+/////////////////////////////////////////////////
+const post_cartemanuelle_verifmail_envoicarte = async function(req, res){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION checkMail ENVOI MANUEL ==========");
+ logger.info("======================================");
+
+ await doc.useServiceAccountAuth(creds);
+ await doc.loadInfo(); // loads document properties and worksheets
+ console.log("NOM FICHIER SHEET: ",doc.title); //nom du fichier
+
+ const sheet = doc.sheetsByTitle['adhesion_annuelle_web'];
+ console.log("NOM DU TABLEAU (ONGLET): ",sheet.title); //NOM DU TABLEAU (ONGLET)
+ console.log("NOMBRE DE LIGNE DU TABLEAU: ",sheet.rowCount); // NOMBRE DE LIGNE DU TABLEAU
+
+ const rows = await sheet.getRows();
+ console.log("rows[0].identifiant: ", rows[0].identifiant);
+
+
+ let compteur = sheet.rowCount - 1;
+ console.log("compteur: ",compteur);
+
+ let rowToBeUpdate = 0;
+
+ // ON RÉCUPÈRE LE MAIL (IDENTIFIANT) SAISIE DANS LE FORMULAIRE
+ req.session.identifiant = req.body.identifiant;
+
+ for (let i=0; i0){
+
+ console.log(rows[rowToBeUpdate].identifiant);
+ console.log(rows[rowToBeUpdate].adherent_type);
+ console.log(rows[rowToBeUpdate].adherent_nom);
+ console.log(rows[rowToBeUpdate].adherent_prenom);
+ console.log(rows[rowToBeUpdate].adherent_paiement_mode);
+ console.log(rows[rowToBeUpdate].adherent_adresse_rue);
+ console.log(rows[rowToBeUpdate].adherent_adresse_codepostal);
+ console.log(rows[rowToBeUpdate].adherent_adresse_ville);
+ console.log(rows[rowToBeUpdate].adherent_paiement_montant_don);
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // CRÉATION DE LA CARTE D'ADHÉSION EN PDF
+ console.log("PDF CREATION AVANT");
+ var html = fs.readFileSync(path.resolve(__dirname, "../pdf/template/carte_adherent.html"), "utf8");
+ var options = {
+ format: "A4",
+ orientation: "portrait",
+ border: "10mm",
+ };
+ moment().format();
+ moment.locale('fr');
+ var date_formattee = moment().format('L')
+ var today = date_formattee;
+
+ //////////////////////////////////////////////////////////////////////////////
+ // DÉFINIR LE PROFIL À AJOUTER DANS LA CARTE ADHÉRENT
+ // La fonction "profil" est dans le fichier /modules/adherent_type.js
+ let adherent_type = rows[rowToBeUpdate].adherent_type;
+ profils = carte_adherent.profil(adherent_type);
+ profil1 = profils[0];
+ profil2 = profils[1];
+ profil3 = profils[2];
+ console.log("profil1 = ",profil1);
+ mode_paiement = "Adhésion payée par ";
+ mode_paiement += rows[rowToBeUpdate].adherent_paiement_mode;
+ var membres = [
+ {
+ today: today,
+ description: "Votre carte d’adhérent à l’Association Française pour la pédagogie Suzuki",
+ identifiant: rows[rowToBeUpdate].identifiant,
+ profil1: profil1,
+ profil2: profil2,
+ profil3: profil3,
+ type_card: "ADHÉRENT",
+ adherent_paiement_mode: mode_paiement
+ },
+ ];
+
+ var pdfname = path.resolve(__dirname, "../pdf/adhesion/2223/payee/");
+ pdfname += "/";
+ //var pdfname = "/Users/julie/Documents/GitHub/aduzuki/pdf/adhesion/2223/payee/";
+ pdfname += rows[rowToBeUpdate].identifiant;
+ pdfname += "_adhesion_2223_payee.pdf";
+
+ var document = {
+ html: html,
+ data: {
+ membres: membres,
+ },
+ path: pdfname,
+ type: ""
+ };
+
+ await pdf
+ .create(document, options)
+ .then((res) => {
+ console.log(res);
+ })
+ .catch((error) => {
+ console.error(error);
+ });
+ console.log("PDF CREATION APRES");
+
+ //////////////////////////////////////////////////////////////////////////////
+ // CRÉATION DU PDF JUSTIFICATIF DE DON
+
+ if (rows[rowToBeUpdate].adherent_paiement_montant_don > 0) {
+ console.log("IF DON = OUI");
+ var html_don = fs.readFileSync(path.resolve(__dirname, "../pdf/template/don_justificatif.html"), "utf8");
+ //var html_don = fs.readFileSync("/Users/julie/Documents/GitHub/aduzuki/pdf/template/don_justificatif.html", "utf8");
+ var options_don = {
+ format: "A4",
+ orientation: "portrait",
+ border: "10mm",
+ };
+
+ var adresse = rows[rowToBeUpdate].adherent_adresse_rue;
+ adresse += " ";
+ adresse += rows[rowToBeUpdate].adherent_adresse_codepostal;
+ adresse += " ";
+ adresse += rows[rowToBeUpdate].adherent_adresse_ville;
+
+ var donneur = [
+ {
+ today: today,
+ identifiant: rows[rowToBeUpdate].identifiant,
+ nom: rows[rowToBeUpdate].adherent_nom,
+ prenom: rows[rowToBeUpdate].adherent_prenom,
+ adresse: adresse,
+ adherent_paiement_mode: "carte bancaire",
+ montant_don: rows[rowToBeUpdate].adherent_paiement_montant_don
+ },
+ ];
+
+ var pdfname_don = path.resolve(__dirname, "../pdf/adhesion/2223/don/");
+ //var pdfname_don = "/Users/julie/Documents/GitHub/aduzuki/pdf/adhesion/2223/payee/";
+ pdfname_don += "/";
+ pdfname_don += rows[rowToBeUpdate].identifiant;
+ pdfname_don += "_adhesion_2223_don.pdf";
+
+ var document_don = {
+ html: html_don,
+ data: {
+ donneur: donneur,
+ },
+ path: pdfname_don,
+ type: ""
+ };
+
+ await pdf
+ .create(document_don, options_don)
+ .then((res) => {
+ console.log(res);
+ })
+ .catch((error) => {
+ console.error(error);
+ });
+
+ }
+
+ //////////////////////////////////////////////////////////////////////////////
+ // ENVOIE CARTE ADHERENT + JUSTIFICATIF DE DON PAR MAIL
+
+ console.log("MAIL ENVOI AVANT");
+ var transporter = nodemailer.createTransport({
+ service: 'gmail',
+ auth: {
+ // TEST JULIE
+ //user: 'juliechaumard@gmail.com',
+ //pass: 'etfq umof iwbx ltxk'
+ // SUZUKI
+ user: 'afpedagogiesuzuki@gmail.com',
+ pass: 'tlxx kjwx ahyx irnl'
+ }
+ });
+
+ var attachment_name = rows[rowToBeUpdate].identifiant;
+ attachment_name += "_adhesion_2223_carteadherent.pdf";
+ var attachment_don_name = rows[rowToBeUpdate].identifiant;
+ attachment_don_name += "_adhesion_2223_don.pdf";
+
+ var mail_objet = "ASSOCIATION FRANÇAISE POUR LA PÉDAGOGIE SUZUKI - ADHÉSION 2022/2023 - ";
+ mail_objet += rows[rowToBeUpdate].adherent_nom;
+ mail_html = "Cher adhérent,
Félicitations ! Vous êtes désormais membre de l’Association Française pour la Pédagogie Suzuki (http://www.afpedagogiesuzuki.fr) et de l’European Suzuki Association (https://europeansuzuki.org). Vous pouvez à ce titre participer à tous les événements Suzuki en France et dans le monde.
Vous trouverez en pièce jointe votre carte d'adhésion annuelle (valable du 1er septembre 2022 au 31 août 2023).
Votre identifiant (valable pour toute la famille) est ";
+ mail_html += rows[rowToBeUpdate].identifiant;
+ mail_html += ".
";
+ if (rows[rowToBeUpdate].adherent_paiement_montant_don > 0) {
+ mail_html += "Nous vous remercions chaleureusement pour votre don. Votre justificatif est également joint à ce mail
";
+ }
+ mail_html += " Nous vous remercions pour votre intérêt et vous souhaitons une très belle année en musique !
Association Française pour la pédagogie Suzuki Chez Anne PAGES 30 rue des Tattes 74500 PUBLIER
";
+
+ if (req.session.adherent_paiement_montant_don > 0) {
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: req.session.identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ },
+ {
+ filename: attachment_don_name,
+ path: pdfname_don
+ }
+ ],
+ };
+ } else {
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: req.session.identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ }
+ ],
+ };
+ }
+
+ transporter.sendMail(mailOptions, function(error, info){
+ if (error) {
+ console.log(error);
+ } else {
+ console.log('Email sent: ' + info.response);
+ }
+ });
+ console.log("MAIL ENVOI APRES");
+
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // AFFICHAGE DANS LA PAGE WEB QUE LA CARTE EST ENVOYÉE
+ req.session.err_mail_form_adhesion_1 = "Carte adhérent envoyée";
+ } else {
+ req.session.err_mail_form_adhesion_1 = "Cette adresse Email n'est pas inscrite pour les adhésions 2022/2023.";
+ req.session.err_mail_form_adhesion_2 = "Vous ne pouvez pas lui envoyer la carte d'adhérent.";
+ }
+
+ res.redirect('/inscription/adhesion/carte_manuelle');
+
+
+}
+
+
+/////////////////////////////////////////////////
+// ENVOI MANUEL CARTE ADHÉSION ET JUSTIFICATIF DE DON (SI DON)
+// Si "x" dans la colonne "filtre" de la Google Sheet (TABLEAU adhesion_annuelle_web ET adhesion_ass_locales)
+// GET URL https://www.adhesion.afpedagogiesuzuki.fr/inscription/adhesion/carte_manuelle
+/////////////////////////////////////////////////
+const post_cartes_manuelles_envoi = async function(req, res){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION ENVOI CARTES MANUELLES ==========");
+ logger.info("======================================");
+
+ // RÉCUPÉRATION DU CONTENU DE LA GOOGLE SHEET
+ await doc.useServiceAccountAuth(creds);
+ await doc.loadInfo(); // loads document properties and worksheets
+ console.log("NOM FICHIER SHEET: ",doc.title); //nom du fichier
+ const sheet = doc.sheetsByTitle['adhesion_annuelle_web'];
+ const sheet_asslocales = doc.sheetsByTitle['adhesion_ass_locales'];
+ console.log("NOM DU TABLEAU (ONGLET): ",sheet.title); //NOM DU TABLEAU (ONGLET)
+ console.log("NOMBRE DE LIGNE DU TABLEAU: ",sheet.rowCount); // NOMBRE DE LIGNE DU TABLEAU
+ console.log("NOM DU TABLEAU (ONGLET) ASS LOCALES: ",sheet_asslocales.title); //NOM DU TABLEAU (ONGLET)
+ console.log("NOMBRE DE LIGNE DU TABLEAU ASS LOCALES: ",sheet_asslocales.rowCount); // NOMBRE DE LIGNE DU TABLEAU
+
+ const rows = await sheet.getRows();
+ console.log("rows[0].identifiant: ", rows[0].identifiant);
+ const rows_asslocales = await sheet_asslocales.getRows();
+ console.log("rows[0].identifiant: ", rows_asslocales[0].identifiant);
+
+ // COMBIEN DE LIGNES A LE TABLEAU POUR DÉFINIR LE NOMBRE D'ITÉRATION DE LA BOUCLE
+ // LA GOOGLE SHEET NE DOIT PAS CONTENIR DE LIGNE VIDE
+ let compteur = sheet.rowCount - 1;
+ console.log("compteur: ",compteur);
+ let compteur_asslocales = sheet_asslocales.rowCount - 1;
+ console.log("compteur ASS LOCALES: ",compteur_asslocales);
+
+ // DATE DU JOUR
+ moment().format();
+ moment.locale('fr');
+ var date_formattee = moment().format('L')
+ console.log("date_formattee:", date_formattee);
+ let message_envoye = "carte envoyée le ";
+ message_envoye += date_formattee;
+
+ // BOUCLE D'ENVOI POUR LE TABLEAU GOOGLE SHEET 'adhesion_annuelle_web'
+ // SI LA CELLULE "filtre" CONTIENT un "x" ON ENVOIE LA CARTE
+ let lesmails = new Array;
+ let nbenvoi = 0;
+ for (let i=0; i {
+ console.log(res);
+ })
+ .catch((error) => {
+ console.error(error);
+ });
+ console.log("PDF CREATION APRES");
+
+ //////////////////////////////////////////////////////////////////////////////
+ // CRÉATION DU PDF JUSTIFICATIF DE DON
+
+ if (rows[i].adherent_paiement_montant_don > 0) {
+ console.log("IF DON = OUI");
+ var html_don = fs.readFileSync(path.resolve(__dirname, "../pdf/template/don_justificatif.html"), "utf8");
+ var options_don = {
+ format: "A4",
+ orientation: "portrait",
+ border: "10mm",
+ };
+
+ var adresse = rows[i].adherent_adresse_rue;
+ adresse += " ";
+ adresse += rows[i].adherent_adresse_codepostal;
+ adresse += " ";
+ adresse += rows[i].adherent_adresse_ville;
+
+ var donneur = [
+ {
+ today: date_formattee,
+ identifiant: rows[i].identifiant,
+ nom: rows[i].adherent_nom,
+ prenom: rows[i].adherent_prenom,
+ adresse: adresse,
+ adherent_paiement_mode: rows[i].adherent_paiement_mode,
+ montant_don: rows[i].adherent_paiement_montant_don
+ },
+ ];
+
+ var pdfname_don = path.resolve(__dirname, "../pdf/adhesion/2223/don/");
+ pdfname_don += "/";
+ pdfname_don += rows[i].identifiant;
+ pdfname_don += "_adhesion_2223_don.pdf";
+
+ var document_don = {
+ html: html_don,
+ data: {
+ donneur: donneur,
+ },
+ path: pdfname_don,
+ type: ""
+ };
+
+ await pdf
+ .create(document_don, options_don)
+ .then((res) => {
+ console.log(res);
+ })
+ .catch((error) => {
+ console.error(error);
+ });
+ }
+
+ //////////////////////////////////////////////////////////////////////////////
+ // ENVOIE CARTE ADHERENT + JUSTIFICATIF DE DON PAR MAIL
+
+ console.log("MAIL ENVOI AVANT");
+ var transporter = nodemailer.createTransport({
+ service: 'gmail',
+ auth: {
+ // MAIL JULIE
+ //user: 'juliechaumard@gmail.com',
+ //pass: 'etfq umof iwbx ltxk'
+ // SUZUKI
+ user: 'afpedagogiesuzuki@gmail.com',
+ pass: 'tlxx kjwx ahyx irnl'
+ }
+ });
+
+ var attachment_name = rows[i].identifiant;
+ attachment_name += "_adhesion_2223_carteadherent.pdf";
+ var attachment_don_name = rows[i].identifiant;
+ attachment_don_name += "_adhesion_2223_don.pdf";
+
+ var mail_objet = "ASSOCIATION FRANÇAISE POUR LA PÉDAGOGIE SUZUKI - ADHÉSION 2022/2023 - ";
+ mail_objet += rows[i].adherent_nom;
+ mail_html = "Cher adhérent,
Félicitations ! Vous êtes désormais membre de l’Association Française pour la Pédagogie Suzuki (http://www.afpedagogiesuzuki.fr) et de l’European Suzuki Association (https://europeansuzuki.org). Vous pouvez à ce titre participer à tous les événements Suzuki en France et dans le monde.
Vous trouverez en pièce jointe votre carte d'adhésion annuelle (valable du 1er septembre 2022 au 31 août 2023).
Votre identifiant (valable pour toute la famille) est ";
+ mail_html += rows[i].identifiant;
+ mail_html += ".
";
+ if (rows[i].adherent_paiement_montant_don > 0) {
+ mail_html += "Nous vous remercions chaleureusement pour votre don. Votre justificatif est également joint à ce mail
";
+ }
+ mail_html += " Nous vous remercions pour votre intérêt et vous souhaitons une très belle année en musique !
Association Française pour la pédagogie Suzuki Chez Anne PAGES 30 rue des Tattes 74500 PUBLIER
";
+
+ if (rows[i].adherent_paiement_montant_don > 0) {
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: rows[i].identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ },
+ {
+ filename: attachment_don_name,
+ path: pdfname_don
+ }
+ ],
+ };
+ } else {
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: rows[i].identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ }
+ ],
+ };
+ }
+
+ transporter.sendMail(mailOptions, function(error, info){
+ if (error) {
+ console.log(error);
+ } else {
+ console.log('Email sent: ' + info.response);
+ }
+ });
+ console.log("MAIL ENVOI APRES");
+
+
+
+
+
+
+
+ rows[i].filtre = message_envoye;
+ await rows[i].save();
+ }
+
+ }
+ console.log("LISTE lesmails :");
+ // Supprimer les items vides de l'array lesmails
+ lesmails = lesmails.filter(Boolean);
+ console.log(lesmails);
+ console.log("nbenvoi :",nbenvoi);
+
+ // BOUCLE D'ENVOI POUR LE TABLEAU GOOGLE SHEET 'adhesion_ass_locales'
+ // SI LA CELLULE "filtre" CONTIENT un "x" ON ENVOIE LA CARTE
+ let nbenvoi2 = 0;
+ let lesmails_asslocales = new Array;
+ for (let i=0; i {
+ console.log(res);
+ })
+ .catch((error) => {
+ console.error(error);
+ });
+ console.log("PDF CREATION APRES");
+
+ //////////////////////////////////////////////////////////////////////////////
+ // CRÉATION DU PDF JUSTIFICATIF DE DON
+
+ if (rows_asslocales[i].adherent_paiement_montant_don > 0) {
+ console.log("IF DON = OUI");
+ var html_don = fs.readFileSync(path.resolve(__dirname, "../pdf/template/don_justificatif.html"), "utf8");
+ var options_don = {
+ format: "A4",
+ orientation: "portrait",
+ border: "10mm",
+ };
+
+ var adresse = rows_asslocales[i].adherent_adresse_rue;
+ adresse += " ";
+ adresse += rows_asslocales[i].adherent_adresse_codepostal;
+ adresse += " ";
+ adresse += rows_asslocales[i].adherent_adresse_ville;
+
+ var donneur = [
+ {
+ today: date_formattee,
+ identifiant: rows_asslocales[i].identifiant,
+ nom: rows_asslocales[i].adherent_nom,
+ prenom: rows_asslocales[i].adherent_prenom,
+ adresse: adresse,
+ adherent_paiement_mode: rows_asslocales[i].adherent_paiement_mode,
+ montant_don: rows_asslocales[i].adherent_paiement_montant_don
+ },
+ ];
+
+ var pdfname_don = path.resolve(__dirname, "../pdf/adhesion/2223/don/");
+ pdfname_don += "/";
+ pdfname_don += rows_asslocales[i].identifiant;
+ pdfname_don += "_adhesion_2223_don.pdf";
+
+ var document_don = {
+ html: html_don,
+ data: {
+ donneur: donneur,
+ },
+ path: pdfname_don,
+ type: ""
+ };
+
+ await pdf
+ .create(document_don, options_don)
+ .then((res) => {
+ console.log(res);
+ })
+ .catch((error) => {
+ console.error(error);
+ });
+ }
+
+ //////////////////////////////////////////////////////////////////////////////
+ // ENVOIE CARTE ADHERENT + JUSTIFICATIF DE DON PAR MAIL
+
+ console.log("MAIL ENVOI AVANT");
+ var transporter = nodemailer.createTransport({
+ service: 'gmail',
+ auth: {
+ // MAIL JULIE
+ //user: 'juliechaumard@gmail.com',
+ //pass: 'etfq umof iwbx ltxk'
+ // SUZUKI
+ user: 'afpedagogiesuzuki@gmail.com',
+ pass: 'tlxx kjwx ahyx irnl'
+ }
+ });
+
+ var attachment_name = rows_asslocales[i].identifiant;
+ attachment_name += "_adhesion_2223_carteadherent.pdf";
+ var attachment_don_name = rows_asslocales[i].identifiant;
+ attachment_don_name += "_adhesion_2223_don.pdf";
+
+ var mail_objet = "ASSOCIATION FRANÇAISE POUR LA PÉDAGOGIE SUZUKI - ADHÉSION 2022/2023 - ";
+ mail_objet += rows_asslocales[i].adherent_nom;
+ mail_html = "Cher adhérent,
Félicitations ! Vous êtes désormais membre de l’Association Française pour la Pédagogie Suzuki (http://www.afpedagogiesuzuki.fr) et de l’European Suzuki Association (https://europeansuzuki.org). Vous pouvez à ce titre participer à tous les événements Suzuki en France et dans le monde.
Vous trouverez en pièce jointe votre carte d'adhésion annuelle (valable du 1er septembre 2022 au 31 août 2023).
Votre identifiant (valable pour toute la famille) est ";
+ mail_html += rows_asslocales[i].identifiant;
+ mail_html += ".
";
+ if (rows_asslocales[i].adherent_paiement_montant_don > 0) {
+ mail_html += "Nous vous remercions chaleureusement pour votre don. Votre justificatif est également joint à ce mail
";
+ }
+ mail_html += " Nous vous remercions pour votre intérêt et vous souhaitons une très belle année en musique !
Association Française pour la pédagogie Suzuki Chez Anne PAGES 30 rue des Tattes 74500 PUBLIER
";
+
+ if (rows_asslocales[i].adherent_paiement_montant_don > 0) {
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: rows_asslocales[i].identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ },
+ {
+ filename: attachment_don_name,
+ path: pdfname_don
+ }
+ ],
+ };
+ } else {
+ var mailOptions = {
+ from: 'afpedagogiesuzuki@gmail.com',
+ to: rows_asslocales[i].identifiant,
+ subject: mail_objet,
+ html: mail_html,
+ attachments: [{
+ filename: attachment_name,
+ path: pdfname
+ }
+ ],
+ };
+ }
+
+ transporter.sendMail(mailOptions, function(error, info){
+ if (error) {
+ console.log(error);
+ } else {
+ console.log('Email sent: ' + info.response);
+ }
+ });
+ console.log("MAIL ENVOI APRES");
+
+
+
+
+
+
+ rows_asslocales[i].filtre = message_envoye;
+ await rows_asslocales[i].save();
+ }
+
+ }
+ console.log("LISTE lesmails_asslocales :");
+ // Supprimer les items vides de l'array lesmails_asslocales
+ lesmails_asslocales = lesmails_asslocales.filter(Boolean);
+ console.log(lesmails_asslocales);
+ console.log("nbenvoi2 :",nbenvoi2);
+
+
+ // TRAITEMENT FINI, ON AFFICHE LA PAGE AVEC LE RESULTAT
+
+ req.session.err_mail_form_adhesion_1 = "Cartes adhérents envoyées";
+ req.session.err_mail_form_adhesion_2 = lesmails;
+ req.session.err_mail_form_adhesion_3 = lesmails_asslocales;
+
+ res.redirect('/inscription/adhesion/cartes_manuelles');
+
+
+}
+
+/////////////////////////////////////////////////
+// EXPORT DE MODULE POUR QU'IL SOIT LU DANS LES AUTRES FICHIERS JS
+/////////////////////////////////////////////////
+module.exports = {
+ checkMail,
+ post_form_adhesion,
+ post_form_montant_total,
+ post_paiement_cheque_save,
+ post_paiement_virement_save,
+ post_req_bank,
+ get_res_bank,
+ get_res_bank_annul,
+ post_cartemanuelle_verifmail_envoicarte,
+ post_cartes_manuelles_envoi
+}
+
+
+
+
+
+
+
+
+
diff --git a/controllers/rassemblementController.js b/controllers/rassemblementController.js
new file mode 100644
index 0000000..b4efa35
--- /dev/null
+++ b/controllers/rassemblementController.js
@@ -0,0 +1,822 @@
+/////////////////////////////////////////////////
+// LOGGING
+/////////////////////////////////////////////////
+const logger = require("../public/js/app/logger");
+logger.info("NOUS SOMMES DANS LE FICHIER : " + __filename, { label: __filename });
+
+/////////////////////////////////////////////////
+// APPELS DES MODULES
+/////////////////////////////////////////////////
+
+const moment = require('moment');
+const ejs = require('ejs');
+var nodemailer = require('nodemailer');
+const path = require("path");
+const stripe = require('stripe')(process.env.STRIPE_PRIVATE_KEY);
+var pdf = require("pdf-creator-node");
+var fs = require("fs");
+
+/////////////////////////////////////////////////
+// GOOGLE SHEET PARAMETERS
+/////////////////////////////////////////////////
+const { GoogleSpreadsheet } = require('google-spreadsheet');
+const GS_creds_rassemblementidf = require('../inscriptionsafps-53b60452f63d.json');
+const GS_rassemblementidf = new GoogleSpreadsheet('19Y1M7mZFSJrycQTtNxV2Cmmyz2OaeXHmwCKVCgy1r7Q');
+
+
+/////////////////////////////////////////////////
+// VARIABLES GLOBALES
+/////////////////////////////////////////////////
+
+
+/////////////////////////////////////////////////
+// PAGE 1
+// http://localhost:8888/stagenational/identifier
+//
+// RECHERCHE SI PERSONNE DÉJA INSCRITE
+// SI NON INSCRITE
+// RECHERCHE SI ADHÉRENTE DANS BD AFPS
+//
+/////////////////////////////////////////////////
+
+const RI_checkidentifiant = async function(req, res) {
+
+ /////////////////////////////////////////////////
+ // RECHERCHE SI PERSONNE DÉJA INSCRITE
+ // DANS BD DU STAGE ANNUEL
+ logger.info("======================================", { label: __filename });
+ logger.info("======== FUNCTION RI_checkidentifiant ==========", { label: __filename });
+ logger.info("======================================", { label: __filename });
+
+ await GS_rassemblementidf.useServiceAccountAuth(GS_creds_rassemblementidf);
+ await GS_rassemblementidf.loadInfo(); // loads document properties and worksheets
+ logger.info("NOM FICHIER SHEET: " + GS_rassemblementidf.title, { numsession: req.session.id, label: __filename });
+ const GS_RI_sheet = GS_rassemblementidf.sheetsByTitle['inscription_web'];
+ logger.info("NOM DU TABLEAU (ONGLET): "+GS_RI_sheet.title, { label: __filename }); //NOM DU TABLEAU (ONGLET)
+
+ const GS_SN_rows = await GS_RI_sheet.getRows();
+
+ // mettre les identifiants dans un array
+ let lesidentifiants = new Array;
+ let compteur = GS_RI_sheet.rowCount - 1;
+ console.log("compteur: ",compteur);
+
+ for (let i=0; iCliquez ici ';
+ req.session.err_mail_form_adhesion_3 = 'Vous pouvez également adhérer à l\'association de votre pays. Vous trouverez ici les pays européens ';
+ res.redirect('/rassemblementidf/identifier');
+ }
+
+ // SI RIEN COCHÉ
+ if (typeof req.body.check_autrepays === 'undefined' && typeof req.body.check_nonadherent === 'undefined') {
+
+ // ON VA VOIR S'IL EST DANS LA BD DES ADHÉRENTS
+
+ // BASE DE DONNÉES DES ADHÉRENTS
+ // 2 SHEETS
+
+ const GS_creds_adhe = require('../testapi336520-3105cc3caa46.json');
+ const GS_adhe = new GoogleSpreadsheet('1BhpYj-KtsyC8inXIDVl-zldDYRuhEqPwBFvP45FtJkI');
+ await GS_adhe.useServiceAccountAuth(GS_creds_adhe);
+ await GS_adhe.loadInfo(); // loads document properties and worksheets
+ console.log("NOM FICHIER SHEET: ",GS_adhe.title); //nom du fichier
+ const GS_adh_sheet = GS_adhe.sheetsByTitle['adhesion_annuelle_web'];
+ const GS_adh_sheet_asslocales = GS_adhe.sheetsByTitle['adhesion_ass_locales'];
+ const GS_adh_rows = await GS_adh_sheet.getRows();
+ const GS_adh_rows_asslocales = await GS_adh_sheet_asslocales.getRows();
+
+ let lesidentifiants_adh = new Array;
+ let compteur_adh = GS_adh_sheet.rowCount - 1;
+ let compteur_adh_asslocales = GS_adh_sheet_asslocales.rowCount - 1;
+
+ // RÉCUPÉRER LES IDENTIFIANTS DU TABLEAU adhesion_annuelle_web
+ for (let i=0; i adherent.identifiant === req.session.identifiant);
+
+ if (adherent_resultat){
+ logger.info("Identifiant trouvé dans la base des adhésions : " + adherent_resultat.identifiant, { numsession: req.session.id, label: __filename});
+ logger.info("Adhésion payé : " + adherent_resultat.Adhesion_paye, { numsession: req.session.id, label: __filename});
+ if (adherent_resultat.Adhesion_paye === "paye" || adherent_resultat.Adhesion_paye === "attente"){
+ logger.info("Identifiant trouvé et payé dans la base des adhésions", { numsession: req.session.id, label: __filename});
+ req.session.err_mail_form_adhesion_1 = "Cet identifiant est bien inscrit dans les adhésions 2022/2023.";
+ req.session.err_mail_form_adhesion_2 = "Nous pouvons donc procéder à l'inscription au Rassemblement IDF 2023.";
+ req.session.err_mail_form_adhesion_3 = "Vous allez être rediriger vers le formulaire.";
+
+ req.session.association = adherent_resultat.association;
+
+ console.log("NOM FICHIER SHEET: ",adherent_resultat);
+ console.log("adherent_resultat association : ",adherent_resultat.association);
+ console.log("adherent_resultat identifiant : ",adherent_resultat.identifiant);
+
+ res.redirect('/rassemblementidf/formulaire');
+ } else {
+ logger.info("Identifiant trouvé mais NON payé dans la base des adhésions", { numsession: req.session.id, label: __filename });
+ req.session.err_mail_form_adhesion_1 = "Cet identifiant n'a pas payé l'adhésion 2022/2023.";
+ req.session.err_mail_form_adhesion_2 = "Vous devez adhérer avant de vous inscrire au Rassemblement IDF 2023";
+ req.session.err_mail_form_adhesion_3 = 'Pour adhérer à l\'association Française pour la Pédagogie Suzuki Cliquez ici ';
+ res.redirect('/rassemblementidf/identifier');
+
+ }
+ } else {
+ logger.info("Identifiant NON trouvé dans la base des adhésions", { numsession: req.session.id, label: __filename });
+ req.session.err_mail_form_adhesion_1 = "Cet identifiant N'EST PAS inscrit dans les adhésions 2022/2023.";
+ req.session.err_mail_form_adhesion_2 = "Vous devez adhérer avant de vous inscrire au Rassemblement IDF 2023";
+ req.session.err_mail_form_adhesion_3 = 'Pour adhérer à l\'association Française pour la Pédagogie Suzuki Cliquez ici ';
+ res.redirect('/rassemblementidf/identifier');
+
+ }
+ }
+
+ }
+ } else {
+ // IDENTIFIANT NON SAISI
+ req.session.err_mail_form_adhesion_1 = "Etre adhérent (et posséder un identifiant) à une association de la pédagogie Suzuki est obligatoire pour toute famille ou personne qui souhaite participer au Rassemblement IDF 2023";
+ req.session.err_mail_form_adhesion_2 = 'Pour adhérer à l\'association Française pour la Pédagogie Suzuki Cliquez ici ';
+ req.session.err_mail_form_adhesion_3 = 'Vous pouvez également adhérer à l\'association de votre pays. Vous trouverez ici les pays européens ';
+ res.redirect('/rassemblementidf/identifier');
+ }
+
+}
+
+
+/////////////////////////////////////////////////
+// PAGE 2
+// http://localhost:8888/stagenational/formulaire
+//
+// RECUPERATION CHAMPS SAISIS
+// CALCUL AGE
+// CALCUL DU PRIX
+// AFFICHER PAGE RECAP
+//
+/////////////////////////////////////////////////
+
+const RI_checkinfos = async function(req, res) {
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION RI_checkinfos ==========");
+ logger.info("======================================");
+
+ // RÉCUPÉRATION DES DONNÉES DU FORMULAIRE DANS LA SESSION EN COURS
+ req.session.association = req.body.association;
+ logger.info("req.session.association : " + req.session.association, { numsession: req.session.id, label: __filename });
+ req.session.adherent_nom = req.body.adherent_nom;
+ logger.info("req.session.adherent_nom : " + req.session.adherent_nom, { numsession: req.session.id, label: __filename });
+ req.session.adherent_prenom = req.body.adherent_prenom;
+ req.session.adherent_adresse_rue = req.body.adherent_adresse_rue;
+ req.session.adherent_adresse_complement = req.body.adherent_adresse_complement;
+ req.session.adherent_adresse_codepostal = req.body.adherent_adresse_codepostal;
+ req.session.adherent_adresse_ville = req.body.adherent_adresse_ville;
+ req.session.adherent_adresse_pays = req.body.adherent_adresse_pays;
+ req.session.adherent_telephone_mobile = req.body.adherent_telephone_mobile;
+ req.session.adherent_telephone_fixe = req.body.adherent_telephone_fixe;
+ req.session.adherent_mail = req.body.adherent_mail;
+ req.session.accompagnant_nom = req.body.accompagnant_nom;
+ logger.info("req.session.accompagnant_nom : " + req.session.accompagnant_nom, { numsession: req.session.id, label: __filename });
+ req.session.accompagnant_prenom = req.body.accompagnant_prenom;
+ logger.info("req.session.accompagnant_prenom : " + req.session.accompagnant_prenom, { numsession: req.session.id, label: __filename });
+ req.session.commentaire_adherent = req.body.commentaire_adherent;
+
+ //// INITIALISATION DES MONTANTS PAR FAMILLE
+ req.session.cout_rassemblement = 0;
+ req.session.accompte_frais_bancaire = 0;
+ req.session.cout_total = 0;
+ logger.info("req.session.cout_rassemblement = " + req.session.cout_rassemblement, { numsession: req.session.id, label: __filename });
+ logger.info("req.session.accompte_frais_bancaire = " + req.session.accompte_frais_bancaire, { numsession: req.session.id, label: __filename });
+ logger.info("req.session.cout_total = " + req.session.cout_total, { numsession: req.session.id, label: __filename });
+
+ var nbr_eleve = 0;
+
+ for (let toto = 1; toto < 7; toto++) {
+ req.session["personne_"+toto+"_nom"] = req.body["personne_"+toto+"_nom"];
+ logger.info('req.session["personne_"'+toto+'"_nom"] = ' + req.session["personne_"+toto+"_nom"], { numsession: req.session.id, label: __filename });
+ req.session["personne_"+toto+"_prenom"] = req.body["personne_"+toto+"_prenom"];
+ logger.info('req.session["personne_"'+toto+'"_prenom"] = ' + req.session["personne_"+toto+"_prenom"], { numsession: req.session.id, label: __filename });
+ req.session["personne_"+toto+"_datenaissance"] = req.body["personne_"+toto+"_datenaissance"];
+ logger.info('req.session["personne_"'+toto+'"_datenaissance"] = ' + req.session["personne_"+toto+"_datenaissance"], { numsession: req.session.id, label: __filename });
+
+ req.session["personne_"+toto+"_instrument"] = req.body["personne_"+toto+"_instrument"];
+ logger.info('req.session["personne_"'+toto+'"_instrument"] = ' + req.session["personne_"+toto+"_instrument"], { numsession: req.session.id, label: __filename });
+ req.session["personne_"+toto+"_cahier"] = req.body["personne_"+toto+"_cahier"];
+ logger.info('req.session["personne_"'+toto+'"_cahier"] = ' + req.session["personne_"+toto+"_cahier"], { numsession: req.session.id, label: __filename });
+ req.session["personne_"+toto+"_piece"] = req.body["personne_"+toto+"_piece"];
+ logger.info('req.session["personne_"'+toto+'"_piece"] = ' + req.session["personne_"+toto+"_piece"], { numsession: req.session.id, label: __filename });
+ req.session["personne_"+toto+"_prof"] = req.body["personne_"+toto+"_prof"];
+ logger.info('req.session["personne_"'+toto+'"_prof"] = ' + req.session["personne_"+toto+"_prof"], { numsession: req.session.id, label: __filename });
+
+ // CALCUL ÂGE PERSONNE
+ if (req.session["personne_"+toto+"_datenaissance"]) {
+ logger.info('req.session["personne_"'+toto+'"_datenaissance"] : ' + req.session["personne_"+toto+"_datenaissance"], { numsession: req.session.id, label: __filename });
+ let datenaissance_concat = req.session["personne_"+toto+"_datenaissance"];
+ logger.info("datenaissance_concat : " + datenaissance_concat, { numsession: req.session.id, label: __filename });
+
+ var an=datenaissance_concat.substr(6,4); // l'année (les quatre premiers caractères de la chaîne à partir de 6)
+ var mois=datenaissance_concat.substr(3,2);// On selectionne le mois de la date de naissance
+ var day= datenaissance_concat.substr(0,2); // On selectionne la jour de la date de naissance
+
+ var birthDate = new Date(an + "-" + mois + "-" + day);
+
+ var debutrassemblement = new Date('2023-05-07');
+ logger.info("birthDate : " + birthDate, { numsession: req.session.id, label: __filename });
+ logger.info("debutrassemblement : " + debutrassemblement, { numsession: req.session.id, label: __filename });
+
+ var age = debutrassemblement.getFullYear() - birthDate.getFullYear();
+ logger.info("age : " + age, { numsession: req.session.id, label: __filename });
+ var m = debutrassemblement.getMonth() - birthDate.getMonth();
+ if (m < 0 || (m === 0 && debutrassemblement.getDate() < birthDate.getDate())) {
+ logger.info("debutrassemblement.getDate() = " + debutrassemblement.getDate(), { numsession: req.session.id, label: __filename });
+ age--;
+ }
+
+ req.session["personne_"+toto+"_age"] = age;
+ logger.info('req.session["personne_"+toto+"_age"] = ' + req.session["personne_"+toto+"_age"], { numsession: req.session.id, label: __filename });
+
+
+ //// +1 nombre d'élève
+ nbr_eleve++;
+ logger.info('nbr_eleve dans boucle date de naissance : ' + nbr_eleve, { numsession: req.session.id, label: __filename });
+
+ }
+ }
+
+ ///// CALCUL COUT TOTAL
+ logger.info('nbr_eleve TOTAL : ' + nbr_eleve, { numsession: req.session.id, label: __filename });
+ if (nbr_eleve == 1){
+ req.session.cout_rassemblement = 31;
+ req.session.accompte_frais_bancaire = 1;
+ req.session.cout_total += req.session.cout_rassemblement + req.session.accompte_frais_bancaire;
+ };
+ if (nbr_eleve > 1){
+ req.session.cout_rassemblement = 51;
+ req.session.accompte_frais_bancaire = 1;
+ req.session.cout_total += req.session.cout_rassemblement + req.session.accompte_frais_bancaire;
+ }
+ if (nbr_eleve < 1){
+ req.session.err_nbr_eleve = "Vous n'avez pas inscrit d'élève";
+ logger.info('req.session.err_nbr_eleve : ' + req.session.err_nbr_eleve, { numsession: req.session.id, label: __filename });
+ }
+
+ if (req.session.err_nbr_eleve) {
+ logger.info("existing session_err_nbr_eleve : " + req.session.err_nbr_eleve, { numsession: req.session.id });
+ res.redirect('/rassemblementidf/formulaire');
+ } else {
+ logger.info('req.session.cout_rassemblement : ' + req.session.cout_rassemblement, { numsession: req.session.id, label: __filename });
+ logger.info('req.session.accompte_frais_bancaire : ' + req.session.accompte_frais_bancaire, { numsession: req.session.id, label: __filename });
+ logger.info('req.session.cout_total : ' + req.session.cout_total, { numsession: req.session.id, label: __filename });
+ res.redirect('/rassemblementidf/recap');
+ }
+
+
+
+}
+
+/////////////////////////////////////////////////
+// PAGE 3
+// http://localhost:8888/stagenational/recap
+//
+// Bouton modifier
+//
+/////////////////////////////////////////////////
+
+// CLICK SUR BOUTON MODIFIER
+const post_recap_modifier = async function(req, res) {
+ res.redirect('/rassemblementidf/identifier');
+}
+
+
+
+/////////////////////////////////////////////////
+// PAYER ACCOMPTE
+//
+// Enregistrement des infos dans la Google Sheet avant le paiement
+// (car le redirect après le paiement vers la page "réussi" ou "annulé" initialise une autre session qui fait perdre le cookie précédent et les infos saisies)
+// Payer accompte par carte bancaire
+// STIPE
+//
+/////////////////////////////////////////////////
+
+// CLICK SUR BOUTON PAYER ACCOMPTE PAGE RECAP
+const post_payer_ri = async function(req, res, next) {
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION post_payer_ri ==========");
+ logger.info("======================================");
+
+
+ //////////////////////////////////
+ // AJOUT INFO DANS LA GOOGLE SHEET
+
+
+ await GS_rassemblementidf.useServiceAccountAuth(GS_creds_rassemblementidf);
+ await GS_rassemblementidf.loadInfo(); // loads document properties and worksheets
+ logger.info("NOM FICHIER SHEET : " + GS_rassemblementidf.title, { numsession: req.session.id, label: __filename });
+ const GS_RI_sheet = GS_rassemblementidf.sheetsByTitle['inscription_web'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + GS_RI_sheet.title, { numsession: req.session.id, label: __filename });
+
+ // DATE DE L'INSCRIPTION
+ moment().format();
+ moment.locale('fr');
+ var date_formattee = moment().format('L')
+ console.log("date_formattee:", date_formattee);
+
+ // AJOUTER UNE LIGNE DANS LA GOOGLE SHEET
+ logger.info("/ AJOUTER UNE LIGNE DANS LA GOOGLE SHEET", { numsession: req.session.id, label: __filename });
+ logger.info("req.session.identifiant : " + req.session.identifiant, { numsession: req.session.id, label: __filename });
+ logger.info("req.session.adherent_nom : " + req.session.adherent_nom, { numsession: req.session.id, label: __filename });
+ const moreRows = await GS_RI_sheet.addRows([
+ {
+ 'saison': "2022/2023",
+ 'identifiant': req.session.identifiant,
+ 'association_suzuki': req.session.association,
+ 'status_inscription': "clic_bouton_payer",
+ 'inscription_date': date_formattee,
+ 'adherent_nom': req.session.adherent_nom,
+ 'adherent_prenom': req.session.adherent_prenom,
+ 'cout_total': req.session.cout_total,
+ 'cout_rassemblement': req.session.cout_rassemblement,
+ 'frais_bancaire': req.session.accompte_frais_bancaire,
+ 'adherent_adresse_rue': req.session.adherent_adresse_rue,
+ 'adherent_adresse_complement': req.session.adherent_adresse_complement,
+ 'adherent_adresse_codepostal': req.session.adherent_adresse_codepostal,
+ 'adherent_adresse_ville': req.session.adherent_adresse_ville,
+ 'adherent_adresse_pays': req.session.adherent_adresse_pays,
+ 'adherent_telephone_fixe': req.session.adherent_telephone_fixe,
+ 'adherent_telephone_mobile': req.session.adherent_telephone_mobile,
+ 'adherent_mail': req.session.adherent_mail,
+ 'accompagnant_nom': req.session.accompagnant_nom,
+ 'accompagnant_prenom': req.session.accompagnant_prenom,
+ 'commentaire_adherent': req.session.commentaire_adherent,
+
+ 'personne_1_nom': req.session.personne_1_nom,
+ 'personne_1_prenom': req.session.personne_1_prenom,
+ 'personne_1_datenaissance': req.session.personne_1_datenaissance,
+ 'personne_1_age': req.session.personne_1_age,
+ 'personne_1_instrument': req.session.personne_1_instrument,
+ 'personne_1_cahier': req.session.personne_1_cahier,
+ 'personne_1_piece': req.session.personne_1_piece,
+ 'personne_1_prof': req.session.personne_1_prof,
+
+ 'personne_2_nom': req.session.personne_2_nom,
+ 'personne_2_prenom': req.session.personne_2_prenom,
+ 'personne_2_datenaissance': req.session.personne_2_datenaissance,
+ 'personne_2_age': req.session.personne_2_age,
+ 'personne_2_instrument': req.session.personne_2_instrument,
+ 'personne_2_cahier': req.session.personne_2_cahier,
+ 'personne_2_piece': req.session.personne_2_piece,
+ 'personne_2_prof': req.session.personne_2_prof,
+
+ 'personne_3_nom': req.session.personne_3_nom,
+ 'personne_3_prenom': req.session.personne_3_prenom,
+ 'personne_3_datenaissance': req.session.personne_3_datenaissance,
+ 'personne_3_age': req.session.personne_3_age,
+ 'personne_3_instrument': req.session.personne_3_instrument,
+ 'personne_3_cahier': req.session.personne_3_cahier,
+ 'personne_3_piece': req.session.personne_3_piece,
+ 'personne_3_prof': req.session.personne_3_prof,
+
+ 'personne_4_nom': req.session.personne_4_nom,
+ 'personne_4_prenom': req.session.personne_4_prenom,
+ 'personne_4_datenaissance': req.session.personne_4_datenaissance,
+ 'personne_4_age': req.session.personne_4_age,
+ 'personne_4_instrument': req.session.personne_4_instrument,
+ 'personne_4_cahier': req.session.personne_4_cahier,
+ 'personne_4_piece': req.session.personne_4_piece,
+ 'personne_4_prof': req.session.personne_4_prof,
+
+ 'personne_5_nom': req.session.personne_5_nom,
+ 'personne_5_prenom': req.session.personne_5_prenom,
+ 'personne_5_datenaissance': req.session.personne_5_datenaissance,
+ 'personne_5_age': req.session.personne_5_age,
+ 'personne_5_instrument': req.session.personne_5_instrument,
+ 'personne_5_cahier': req.session.personne_5_cahier,
+ 'personne_5_piece': req.session.personne_5_piece,
+ 'personne_5_prof': req.session.personne_5_prof,
+
+ 'personne_6_nom': req.session.personne_6_nom,
+ 'personne_6_prenom': req.session.personne_6_prenom,
+ 'personne_6_datenaissance': req.session.personne_6_datenaissance,
+ 'personne_6_age': req.session.personne_6_age,
+ 'personne_6_instrument': req.session.personne_6_instrument,
+ 'personne_6_cahier': req.session.personne_6_cahier,
+ 'personne_6_piece': req.session.personne_6_piece,
+ 'personne_6_prof': req.session.personne_6_prof,
+
+
+ },
+ ]);
+
+
+ //////////////////////////////////
+ // PAIEMENT STRIPE
+
+
+ // STRIPE - ETAPE 1 - CREER l'INTENTION DE PAIEMENT
+ logger.info("// STRIPE - ETAPE 1 - CREER l'INTENTION DE PAIEMENT", { numsession: req.session.id, label: __filename });
+ logger.info("stripe.VERSION = " + stripe.VERSION, { numsession: req.session.id, label: __filename });
+ logger.info("stripe._api = " + stripe._api, { numsession: req.session.id, label: __filename });
+ //console.log(stripe);
+ logger.info("req.session.adherent_mail = " + req.session.adherent_mail, { numsession: req.session.id, label: __filename });
+ logger.info("// STRIPE - AJOUT METADATA", { numsession: req.session.id, label: __filename });
+ logger.info("req.session.identifiant = " + req.session.identifiant, { numsession: req.session.id, label: __filename });
+ logger.info("req.session.cout_rassemblement = " + req.session.cout_rassemblement, { numsession: req.session.id, label: __filename });
+ logger.info("req.session.accompte_frais_bancaire = " + req.session.accompte_frais_bancaire, { numsession: req.session.id, label: __filename });
+ logger.info("STRIPE_RI_SUCCESSURL = " + process.env.STRIPE_RI_SUCCESSURL, { numsession: req.session.id, label: __filename });
+ logger.info("STRIPE_RI_CANCELURL = " + process.env.STRIPE_RI_CANCELURL, { numsession: req.session.id, label: __filename });
+ logger.info("req.session.cout_total = " + req.session.cout_total, { numsession: req.session.id, label: __filename });
+ const session = await stripe.checkout.sessions.create({
+ metadata: {identifiant: req.session.identifiant, cout_rassemblement: req.session.cout_rassemblement, accompte_frais_bancaire: req.session.accompte_frais_bancaire},
+ customer_email: req.session.adherent_mail,
+ //There are four different submit types.
+ submit_type: 'pay',
+ //success_url: 'http://localhost:8888/inscription/adhesion_paiement/reussi?id={CHECKOUT_SESSION_ID}',
+ //cancel_url: 'http://localhost:8888/inscription/adhesion_paiement/annule?id={CHECKOUT_SESSION_ID}',
+ //success_url: 'https://www.adusuki.juliechaumard.paris/inscription/adhesion_paiement/reussi?id={CHECKOUT_SESSION_ID}',
+ //cancel_url: 'https://www.adusuki.juliechaumard.paris/inscription/adhesion_paiement/annule?id={CHECKOUT_SESSION_ID}',
+ //success_url: 'https://www.adhesion.afpedagogiesuzuki.fr/inscription/adhesion_paiement/reussi?id={CHECKOUT_SESSION_ID}',
+ //cancel_url: 'https://www.adhesion.afpedagogiesuzuki.fr/inscription/adhesion_paiement/annule?id={CHECKOUT_SESSION_ID}',
+ success_url: process.env.STRIPE_RI_SUCCESSURL,
+ cancel_url: process.env.STRIPE_RI_CANCELURL,
+
+ payment_method_types: ['card'],
+ line_items: [{
+ price_data: {
+ currency: 'eur',
+ product_data: {
+ name: 'Rassemblement IDF',
+ },
+ unit_amount: req.session.cout_total * 100,
+ },
+ quantity: 1,
+ },],
+ //Checkout has three modes: payment, subscription, or setup.
+ mode: 'payment'
+
+ });
+
+ logger.info("session: " + session, { numsession: req.session.id, label: __filename });
+ logger.info("session.id: " + session.id, { numsession: req.session.id, label: __filename });
+ logger.info("session.url: " + session.url, { numsession: req.session.id, label: __filename });
+ let url_stripe = session.url
+ res.redirect(session.url)
+
+}
+
+
+/////////////////////////////////////////////////
+// RETOUR PAIEMENT REUSSI
+const RI_accompte_reussi = async function(req, res){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION RI_accompte_reussi ==========");
+ logger.info("======================================");
+
+ // RETOUR STRIPE
+ var id = req.query.id;
+
+ logger.info("id : " + id, { numsession: req.session.id, label: __filename });
+
+ const session_stripe = await stripe.checkout.sessions.retrieve(id);
+
+ var customer_email = session_stripe.customer_email;
+ var payment_status = session_stripe.payment_status;
+ var amount_total = session_stripe.amount_total/100;
+ var stripe_customer = session_stripe.customer;
+ var stripe_payment_intent = session_stripe.payment_intent;
+ var payment_method_types = session_stripe.payment_method_types;
+ var stripe_status = session_stripe.status;
+ var identifiant = session_stripe.metadata.identifiant;
+ var cout_rassemblement = session_stripe.metadata.cout_rassemblement;
+ var accompte_frais_bancaire = session_stripe.metadata.accompte_frais_bancaire;
+ var CB_retour = "identifiant_adherent:"+identifiant+",payment_status:"+payment_status+",stripe_customer:"+stripe_customer+",stripe_payment_intent:"+stripe_payment_intent+",sessionID:"+session_stripe.id+",payment_method_types:"+payment_method_types+",amount_total:"+amount_total+",stripe_status:"+stripe_status;
+
+
+ console.log("customer_email: ", customer_email);
+ logger.info("payment_status : " + payment_status, { numsession: req.session.id, label: __filename });
+ logger.info("cout_rassemblement : " + cout_rassemblement, { numsession: req.session.id, label: __filename });
+ logger.info("accompte_frais_bancaire : " + accompte_frais_bancaire, { numsession: req.session.id, label: __filename });
+ console.log("stripe_customer: ", stripe_customer);
+ console.log("amount_total: ", amount_total);
+ console.log("stripe_payment_intent: ", stripe_payment_intent);
+ console.log("payment_method_types: ", payment_method_types);
+ console.log("payment_method_types: ", payment_method_types[0]);
+ console.log("stripe_status: ", stripe_status);
+ console.log("CB_retour: ", CB_retour);
+
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // RÉCUPÉRATION DES INFOS STAGIAIRES DANS LA GOOGLE SHEET
+ // MISE À JOUR DES INFORMATIONS SUR LE PAIEMENT DANS LA BASE DE DONNÉES GSHEET
+
+
+ await GS_rassemblementidf.useServiceAccountAuth(GS_creds_rassemblementidf);
+ await GS_rassemblementidf.loadInfo(); // loads document properties and worksheets
+ logger.info("NOM FICHIER SHEET: " + GS_rassemblementidf.title, { numsession: req.session.id, label: __filename });
+ const GS_RI_sheet = GS_rassemblementidf.sheetsByTitle['inscription_web'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + GS_RI_sheet.title, { numsession: req.session.id, label: __filename });
+
+ // on récupère le contenu de la GSheet dans un array nommé "infos_adherents"
+ const infos_adherents = await GS_RI_sheet.getRows();
+ // on récupère quelle ligne contient l'identifiant concerné pour mettre à jour cette ligne
+ let list_identifiants = new Array;
+ let compteur = GS_RI_sheet.rowCount - 1;
+ let rowToBeUpdate;
+ logger.info("identifiant TRANSMIS PAR STRIPE :" + identifiant, { numsession: req.session.id, label: __filename });
+ for (let i=0; i";
+ mail_html += "RÉCAPITULATIF :
";
+ mail_html += "Identifiant Suzuki : ";
+ mail_html += identifiant;
+ mail_html += "
Association Suzuki : ";
+ mail_html += infos_adherents[rowToBeUpdate].association_suzuki;
+ mail_html += "
Accompagnant : ";
+ mail_html += infos_adherents[rowToBeUpdate].accompagnant_prenom;
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate].accompagnant_nom;
+ mail_html += "
";
+ for (let toto = 1; toto<7; toto++) {
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_nom"]) {
+ mail_html += "Nom : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_nom"];
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_prenom"];
+ mail_html += "
Profile âge : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_datenaissance"];
+ mail_html += "
";
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_instrument"]) {
+ mail_html += "Instrument : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_instrument"];
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_cahier"];
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_piece"];
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_prof"];
+ mail_html += "
";
+ }
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_1"]) {
+ mail_html += "Activité : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_1"];
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_2"];
+ mail_html += "
";
+ }
+ mail_html += " ";
+ }
+ }
+
+ mail_html += " ";
+ mail_html += "Tarif rassemblement : ";
+ mail_html += infos_adherents[rowToBeUpdate].cout_rassemblement;
+ mail_html += "€
Frais bancaire : ";
+ mail_html += infos_adherents[rowToBeUpdate].frais_bancaire;
+ mail_html += "€
Montant total : ";
+ mail_html += infos_adherents[rowToBeUpdate].cout_total;
+ mail_html += "€";
+
+ mail_html += " Nous vous remercions pour votre intérêt et vous souhaitons une très bon rassemblement !
L’Association La clef du bonheur et l’école de musique de Chambourcy Marie VELU Pôle organisation du rassemblement
";
+ var mailOptions = {
+ from: 'afps.inscription@gmail.com',
+ to: customer_email,
+ subject: mail_objet,
+ html: mail_html,
+ };
+ transporter.sendMail(mailOptions, function(error, info){
+ if (error) {
+ logger.info("error : " + error, { numsession: req.session.id});
+ } else {
+ logger.info("Email sent: " + info.response, { numsession: req.session.id});
+ }
+ });
+ logger.info("MAIL ENVOI APRES", { numsession: req.session.id, label: __filename });
+
+
+ // REDIRECTION VERS LA PAGE DE CONFIRMATION PAIEMENT CARTE BANCAIRE
+ res.locals.identifiant = infos_adherents[rowToBeUpdate].identifiant;
+ res.locals.association = infos_adherents[rowToBeUpdate].association_suzuki;
+ res.locals.adherent_nom = infos_adherents[rowToBeUpdate].adherent_nom;
+ res.locals.adherent_prenom = infos_adherents[rowToBeUpdate].adherent_prenom;
+ res.locals.adherent_adresse_rue = infos_adherents[rowToBeUpdate].adherent_adresse_rue;
+ res.locals.adherent_adresse_complement = infos_adherents[rowToBeUpdate].adherent_adresse_complement;
+ res.locals.adherent_adresse_codepostal = infos_adherents[rowToBeUpdate].adherent_adresse_codepostal;
+ res.locals.adherent_adresse_ville = infos_adherents[rowToBeUpdate].adherent_adresse_ville;
+ res.locals.adherent_adresse_pays = infos_adherents[rowToBeUpdate].adherent_adresse_pays;
+ res.locals.adherent_telephone_mobile = infos_adherents[rowToBeUpdate].adherent_telephone_mobile;
+ res.locals.adherent_telephone_fixe = infos_adherents[rowToBeUpdate].adherent_telephone_fixe;
+ res.locals.adherent_mail = infos_adherents[rowToBeUpdate].adherent_mail;
+ res.locals.accompagnant_prenom = infos_adherents[rowToBeUpdate].accompagnant_prenom;
+ res.locals.accompagnant_nom = infos_adherents[rowToBeUpdate].accompagnant_nom;
+ res.locals.commentaire_adherent = infos_adherents[rowToBeUpdate].commentaire_adherent;
+
+
+ for (let toto = 1; toto < 7; toto++) {
+ res.locals["personne_"+toto+"_numero"] = toto;
+ res.locals["personne_"+toto+"_nom"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_nom"];
+ res.locals["personne_"+toto+"_prenom"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_prenom"];
+ res.locals["personne_"+toto+"_datenaissance"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_datenaissance"];
+ res.locals["personne_"+toto+"_instrument"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_instrument"];
+ res.locals["personne_"+toto+"_cahier"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_cahier"];
+ res.locals["personne_"+toto+"_option_coursindividuel"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_piece"];
+ res.locals["personne_"+toto+"_option_concertsolo"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_prof"];
+ }
+ res.locals.cout_rassemblement = infos_adherents[rowToBeUpdate].cout_rassemblement;
+ res.locals.frais_bancaire = infos_adherents[rowToBeUpdate].frais_bancaire;
+ res.locals.cout_total = infos_adherents[rowToBeUpdate].cout_total;
+
+ if (!infos_adherents[rowToBeUpdate].identifiant) {
+ res.locals.error = "Il y a eu une erreur lors de l'ajout de votre inscription dans la base de données du stage, veuillez contacter l'association.";
+ }
+
+ res.render('rassemblementidf/page_templates/paiement_reussi.ejs');
+}
+
+
+/////////////////////////////////////////////////
+// RETOUR PAIEMENT ECHOUE
+// CLICK SUR BOUTON RECOMMENCER
+const RI_accompte_annule = async function(req, res) {
+
+
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION RI_accompte_annule ==========");
+ logger.info("======================================");
+
+ // RETOUR STRIPE
+ var id = req.query.id;
+
+ logger.info("id : " + id, { numsession: req.session.id, label: __filename });
+
+ const session_stripe = await stripe.checkout.sessions.retrieve(id);
+
+ var customer_email = session_stripe.customer_email;
+ var payment_status = session_stripe.payment_status;
+ var amount_total = session_stripe.amount_total/100;
+ var stripe_customer = session_stripe.customer;
+ var stripe_payment_intent = session_stripe.payment_intent;
+ var payment_method_types = session_stripe.payment_method_types;
+ var stripe_status = session_stripe.status;
+ var identifiant = session_stripe.metadata.identifiant;
+ var CB_retour = "identifiant_adherent:"+identifiant+",payment_status:"+payment_status+",stripe_customer:"+stripe_customer+",stripe_payment_intent:"+stripe_payment_intent+",sessionID:"+session_stripe.id+",payment_method_types:"+payment_method_types+",amount_total:"+amount_total+",stripe_status:"+stripe_status;
+ logger.info("cookiesessionid APRES Stripe :" + session_stripe.metadata.cookiesessionid, { numsession: req.session.id, label: __filename });
+ var cookiesessionid = session_stripe.metadata.cookiesessionid;
+
+ logger.info("payment_status : " + payment_status, { numsession: req.session.id, label: __filename });
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // RÉCUPÉRATION DES INFOS STAGIAIRES DANS LA GOOGLE SHEET
+ // ANNULATION DE L'INSCRIT DANS LA BASE DE DONNÉES GSHEET
+ // GSHEET "identifiant" = ANNULE / "paye" = echec
+
+
+ await GS_rassemblementidf.useServiceAccountAuth(GS_creds_rassemblementidf);
+ await GS_rassemblementidf.loadInfo(); // loads document properties and worksheets
+ logger.info("NOM FICHIER SHEET: " + GS_rassemblementidf.title, { numsession: req.session.id, label: __filename });
+ const GS_RI_sheet = GS_rassemblementidf.sheetsByTitle['inscription_web'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + GS_RI_sheet.title, { numsession: req.session.id, label: __filename });
+
+ // on récupère le contenu de la GSheet dans un array nommé "infos_adherents"
+ const infos_adherents = await GS_RI_sheet.getRows();
+ // on récupère quelle ligne contient l'identifiant concerné pour mettre à jour cette ligne
+ let list_identifiants = new Array;
+ let compteur = GS_RI_sheet.rowCount - 1;
+ let rowToBeUpdate;
+ logger.info("identifiant TRANSMIS PAR STRIPE :" + identifiant, { numsession: req.session.id, label: __filename });
+ for (let i=0; iCliquez ici ';
+ req.session.err_mail_form_adhesion_3 = 'Vous pouvez également adhérer à l\'association de votre pays. Vous trouverez ici les pays européens ';
+ res.redirect('/stagenational/identifier');
+ }
+
+ // SI RIEN COCHÉ
+ if (typeof req.body.check_autrepays === 'undefined' && typeof req.body.check_nonadherent === 'undefined') {
+
+ // ON VA VOIR S'IL EST DANS LA BD DES ADHÉRENTS
+
+ // BASE DE DONNÉES DES ADHÉRENTS
+ // 2 SHEETS
+
+ const GS_creds_adhe = require('../testapi336520-3105cc3caa46.json');
+ const GS_adhe = new GoogleSpreadsheet('1BhpYj-KtsyC8inXIDVl-zldDYRuhEqPwBFvP45FtJkI');
+ await GS_adhe.useServiceAccountAuth(GS_creds_adhe);
+ await GS_adhe.loadInfo(); // loads document properties and worksheets
+ console.log("NOM FICHIER SHEET: ",GS_adhe.title); //nom du fichier
+ const GS_adh_sheet = GS_adhe.sheetsByTitle['adhesion_annuelle_web'];
+ const GS_adh_sheet_asslocales = GS_adhe.sheetsByTitle['adhesion_ass_locales'];
+ const GS_adh_rows = await GS_adh_sheet.getRows();
+ const GS_adh_rows_asslocales = await GS_adh_sheet_asslocales.getRows();
+
+ let lesidentifiants_adh = new Array;
+ let compteur_adh = GS_adh_sheet.rowCount - 1;
+ let compteur_adh_asslocales = GS_adh_sheet_asslocales.rowCount - 1;
+
+ // RÉCUPÉRER LES IDENTIFIANTS DU TABLEAU adhesion_annuelle_web
+ for (let i=0; i adherent.identifiant === req.session.identifiant);
+
+ if (adherent_resultat){
+ logger.info("Identifiant trouvé dans la base des adhésions : " + adherent_resultat.identifiant, { numsession: req.session.id });
+ logger.info("Adhésion payé : " + adherent_resultat.Adhesion_paye, { numsession: req.session.id });
+ if (adherent_resultat.Adhesion_paye === "paye" || adherent_resultat.Adhesion_paye === "attente"){
+ logger.info("Identifiant trouvé et payé dans la base des adhésions", { numsession: req.session.id });
+ req.session.err_mail_form_adhesion_1 = "Cet identifiant est bien inscrit dans les adhésions 2022/2023.";
+ req.session.err_mail_form_adhesion_2 = "Nous pouvons donc procéder à l'inscription au stage.";
+ req.session.err_mail_form_adhesion_3 = "Vous allez être rediriger vers le formulaire.";
+
+ req.session.association = adherent_resultat.association;
+
+ console.log("NOM FICHIER SHEET: ",adherent_resultat);
+ console.log("adherent_resultat association : ",adherent_resultat.association);
+ console.log("adherent_resultat identifiant : ",adherent_resultat.identifiant);
+
+ res.redirect('/stagenational/formulaire');
+ } else {
+ logger.info("Identifiant trouvé mais NON payé dans la base des adhésions", { numsession: req.session.id });
+ req.session.err_mail_form_adhesion_1 = "Cet identifiant n'a pas payé l'adhésion 2022/2023.";
+ req.session.err_mail_form_adhesion_2 = "Vous devez adhérer avant de vous inscrire au stage";
+ req.session.err_mail_form_adhesion_3 = 'Pour adhérer à l\'association Française pour la Pédagogie Suzuki Cliquez ici ';
+ res.redirect('/stagenational/identifier');
+
+ }
+ } else {
+ logger.info("Identifiant NON trouvé dans la base des adhésions", { numsession: req.session.id });
+ req.session.err_mail_form_adhesion_1 = "Cet identifiant N'EST PAS inscrit dans les adhésions 2022/2023.";
+ req.session.err_mail_form_adhesion_2 = "Vous devez adhérer avant de vous inscrire au stage";
+ req.session.err_mail_form_adhesion_3 = 'Pour adhérer à l\'association Française pour la Pédagogie Suzuki Cliquez ici ';
+ res.redirect('/stagenational/identifier');
+
+ }
+ }
+
+ }
+ } else {
+ // IDENTIFIANT NON SAISI
+ req.session.err_mail_form_adhesion_1 = "Etre adhérent (et posséder un identifiant) à une association de la pédagogie Suzuki est obligatoire pour toute famille ou personne qui souhaite participer au stage";
+ req.session.err_mail_form_adhesion_2 = 'Pour adhérer à l\'association Française pour la Pédagogie Suzuki Cliquez ici ';
+ req.session.err_mail_form_adhesion_3 = 'Vous pouvez également adhérer à l\'association de votre pays. Vous trouverez ici les pays européens ';
+ res.redirect('/stagenational/identifier');
+ }
+
+}
+
+
+/////////////////////////////////////////////////
+// PAGE 2
+// http://localhost:8888/stagenational/formulaire
+//
+// RECUPERATION CHAMPS SAISIS
+// CALCUL AGE
+// CALCUL DU PRIX
+// AFFICHER PAGE RECAP
+//
+/////////////////////////////////////////////////
+
+const SN_checkinfos = async function(req, res) {
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION post_form_stagenat ==========");
+ logger.info("======================================");
+
+ // RÉCUPÉRATION DES DONNÉES DU FORMULAIRE DANS LA SESSION EN COURS
+ req.session.association = req.body.association;
+ logger.info("req.session.association : " + req.session.association, { numsession: req.session.id });
+ logger.info("req.session.montant_accompte = " + req.session.montant_accompte, { numsession: req.session.id });
+ req.session.adherent_nom = req.body.adherent_nom;
+ req.session.adherent_prenom = req.body.adherent_prenom;
+ req.session.adherent_adresse_rue = req.body.adherent_adresse_rue;
+ req.session.adherent_adresse_complement = req.body.adherent_adresse_complement;
+ req.session.adherent_adresse_codepostal = req.body.adherent_adresse_codepostal;
+ req.session.adherent_adresse_ville = req.body.adherent_adresse_ville;
+ req.session.adherent_adresse_pays = req.body.adherent_adresse_pays;
+ req.session.adherent_telephone_mobile = req.body.adherent_telephone_mobile;
+ req.session.adherent_telephone_fixe = req.body.adherent_telephone_fixe;
+ req.session.adherent_mail = req.body.adherent_mail;
+ req.session.hebergement = req.body.hebergement;
+ req.session.commentaire_adherent = req.body.commentaire_adherent;
+
+ //// INITIALISATION DES MONTANTS PAR FAMILLE
+ req.session["cout_total"] = 0;
+ req.session.frais_dossier = 0;
+ req.session["cout_total_hebergement"] = 0;
+ req.session["cout_total_transport"] = 0;
+ req.session.cout_total_dalcroze = 0;
+ req.session.cout_total_percussion = 0;
+ req.session.cout_total_chant = 0;
+ req.session.cout_total_dalcroze_surplace = 0;
+ req.session.cout_total_percussion_surplace = 0;
+ req.session.cout_total_observation = 0;
+ req.session.cout_total_cours = 0;
+ req.session.cout_total_campado = 0;
+ req.session.accompte_frais_bancaire = 0;
+ req.session.remise = "";
+ req.session.montant_accompte = 0;
+ logger.info("req.session.montant_accompte = " + req.session.montant_accompte, { numsession: req.session.id });
+ logger.info("req.session.cout_total_dalcroze_surplace = " + req.session.cout_total_dalcroze_surplace, { numsession: req.session.id });
+
+ var adulte_trouve = "non";
+
+ for (let toto = 1; toto < 7; toto++) {
+ req.session["personne_"+toto+"_nom"] = req.body["personne_"+toto+"_nom"];
+ logger.info('req.session["personne_"'+toto+'"_nom"]' + req.session["personne_"+toto+"_nom"], { numsession: req.session.id });
+ req.session["personne_"+toto+"_prenom"] = req.body["personne_"+toto+"_prenom"];
+ console.log('req.session["personne_"'+toto+'"_prenom"] =',req.session["personne_"+toto+"_prenom"]);
+ req.session["personne_"+toto+"_datenaissance"] = req.body["personne_"+toto+"_datenaissance"];
+ console.log('req.session["personne_"'+toto+'"_datenaissance"]', req.session["personne_"+toto+"_datenaissance"]);
+
+ req.session["personne_"+toto+"_transport_mode"] = req.body["personne_"+toto+"_transport_mode"];
+ console.log('req.session["personne_"'+toto+'"_transport_mode"]',req.session["personne_"+toto+"_transport_mode"]);
+ req.session["personne_"+toto+"_transport_arret"] = req.body["personne_"+toto+"_transport_arret"];
+ console.log('req.session["personne_"'+toto+'"_transport_arret"]',req.session["personne_"+toto+"_transport_arret"]);
+ req.session["personne_"+toto+"_categorie"] = req.body["personne_"+toto+"_categorie"];
+ console.log('req.session["personne_"'+toto+'"_categorie"]',req.session["personne_"+toto+"_categorie"]);
+ req.session["personne_"+toto+"_profil"] = req.body["personne_"+toto+"_profil"];
+ console.log('req.session["personne_"'+toto+'"_profil"]',req.session["personne_"+toto+"_profil"]);
+ req.session["personne_"+toto+"_instrument"] = req.body["personne_"+toto+"_instrument"];
+ console.log('req.session["personne_"'+toto+'"_instrument"]',req.session["personne_"+toto+"_instrument"]);
+ req.session["personne_"+toto+"_cahier"] = req.body["personne_"+toto+"_cahier"];
+ console.log('req.session["personne_"'+toto+'"_cahier"]',req.session["personne_"+toto+"_cahier"]);
+ req.session["personne_"+toto+"_piece"] = req.body["personne_"+toto+"_piece"];
+ console.log('req.session["personne_"'+toto+'"_piece"]',req.session["personne_"+toto+"_piece"]);
+ req.session["personne_"+toto+"_prof"] = req.body["personne_"+toto+"_prof"];
+ console.log('req.session["personne_"'+toto+'"_prof"]',req.session["personne_"+toto+"_prof"]);
+ req.session["personne_"+toto+"_mail_prof"] = req.body["personne_"+toto+"_mail_prof"];
+ console.log('req.session["personne_"'+toto+'"_mail_prof"]',req.session["personne_"+toto+"_mail_prof"]);
+ req.session["personne_"+toto+"_option_coursindividuel"] = req.body["personne_"+toto+"_option_coursindividuel"];
+ console.log('req.session["personne_"'+toto+'"_option_coursindividuel"]',req.session["personne_"+toto+"_option_coursindividuel"]);
+ req.session["personne_"+toto+"_option_concertsolo"] = req.body["personne_"+toto+"_option_concertsolo"];
+ console.log('req.session["personne_"'+toto+'"_option_concertsolo"]',req.session["personne_"+toto+"_option_concertsolo"]);
+ req.session["personne_"+toto+"_option_concertsolo_cahier"] = req.body["personne_"+toto+"_option_concertsolo_cahier"];
+ console.log('req.session["personne_"'+toto+'"_option_concertsolo_cahier"]',req.session["personne_"+toto+"_option_concertsolo_cahier"]);
+ req.session["personne_"+toto+"_option_concertsolo_piece"] = req.body["personne_"+toto+"_option_concertsolo_piece"];
+ console.log('req.session["personne_"'+toto+'"_option_concertsolo_piece"]',req.session["personne_"+toto+"_option_concertsolo_piece"]);
+ req.session["personne_"+toto+"_activite_1"] = req.body["personne_"+toto+"_activite_1"];
+ console.log('req.session["personne_"'+toto+'"_activite_1"]',req.session["personne_"+toto+"_activite_1"]);
+ req.session["personne_"+toto+"_activite_2"] = req.body["personne_"+toto+"_activite_2"];
+ console.log('req.session["personne_"'+toto+'"_activite_2"]',req.session["personne_"+toto+"_activite_2"]);
+
+ // CALCUL ÂGE PERSONNE AU 20 aout 2023
+ // CALCUL PROFIL AGE DE LA PERSONNE AU 20 aout 2023
+ console.log('req.session["personne_"'+toto+'"_datenaissance"]', req.session["personne_"+toto+"_datenaissance"]);
+ if (req.session["personne_"+toto+"_datenaissance"]) {
+ logger.info('req.session["personne_"'+toto+'"_datenaissance"] : ' + req.session["personne_"+toto+"_datenaissance"], { numsession: req.session.id });
+ let datenaissance_concat = req.session["personne_"+toto+"_datenaissance"];
+ logger.info("datenaissance_concat : " + datenaissance_concat, { numsession: req.session.id });
+
+ var an=datenaissance_concat.substr(6,4); // l'année (les quatre premiers caractères de la chaîne à partir de 6)
+ var mois=datenaissance_concat.substr(3,2);// On selectionne le mois de la date de naissance
+ var day= datenaissance_concat.substr(0,2); // On selectionne la jour de la date de naissance
+
+ var birthDate = new Date(an + "-" + mois + "-" + day);
+
+ var debutstage = new Date('2023-08-20');
+ logger.info("birthDate : " + birthDate, { numsession: req.session.id });
+ logger.info("debutstage : " + debutstage, { numsession: req.session.id });
+
+ var age = debutstage.getFullYear() - birthDate.getFullYear();
+ logger.info("age : " + age, { numsession: req.session.id });
+ var m = debutstage.getMonth() - birthDate.getMonth();
+ console.log("m = ",m);
+ if (m < 0 || (m === 0 && debutstage.getDate() < birthDate.getDate())) {
+ logger.info("debutstage.getDate() = " + debutstage.getDate(), { numsession: req.session.id });
+ age--;
+ }
+
+ req.session["personne_"+toto+"_age"] = age;
+ logger.info('age : ' + age, { numsession: req.session.id });
+
+ // CALCUL PROFIL_AGE DE LA PERSONNE AU 20 aout 2023
+ req.session["personne_"+toto+"_profilage"] = (age < 3) ? "moins_3ans": (age >= 3 && age <= 5) ? "3-5ans": (age >= 6 && age <= 11) ? "6-11ans": (age >= 12 && age <= 15) ? "12-15ans" : (age >= 16 && age <= 17) ? "16-17ans" : "adulte";
+ logger.info('req.session["personne_"'+toto+'"_profilage"]' + req.session["personne_"+toto+"_profilage"], { numsession: req.session.id });
+
+ // Pour camp ado : on vérifie s'il y a un adulte ou non
+
+ if (req.session["personne_"+toto+"_age"] > 17) {
+ adulte_trouve = "oui";
+ logger.info("adulte_trouve : " + adulte_trouve, { numsession: req.session.id });
+ };
+
+ ///////////////////////
+ // TARIF PAR PERSONNE
+
+ //// INITIALISATION DES MONTANTS PAR PERSONNE
+ req.session["personne_"+toto+"_cout_hebergement"] = 0;
+ req.session["personne_"+toto+"_cout_transport"] = 0;
+ req.session["personne_"+toto+"_activite_cout"] = 0;
+ req.session["personne_"+toto+"_observation_cout"] = 0;
+ req.session["personne_"+toto+"_cours_cout"] = 0;
+ req.session["personne_"+toto+"_campado_cout"] = 0;
+
+
+ // FLOCONS VERT COUT PAR PERSONNE
+
+ if (req.session.hebergement == "flocons verts") {
+ logger.info("CALCUL HEBERGEMENT : " + req.session.hebergement, { numsession: req.session.id });
+ console.log('req.session["personne_"+toto+"_age"] =',req.session["personne_"+toto+"_age"]);
+ // ADULTE
+ if (req.session["personne_"+toto+"_age"] > 15) {
+ console.log("AGE > 17");
+ req.session["personne_"+toto+"_cout_hebergement"] = 290;
+ req.session["cout_total"] += 290;
+ console.log(typeof req.session["cout_total"]);
+ req.session["cout_total_hebergement"] += 290;
+ console.log ("cout_total = ", req.session["cout_total"]);
+ }
+ if (req.session["personne_"+toto+"_age"] >= 12 && req.session["personne_"+toto+"_age"] <= 15) {
+ console.log("12 < AGE > 15");
+ req.session["personne_"+toto+"_cout_hebergement"] = 261;
+ req.session["cout_total"] += 261;
+ req.session["cout_total_hebergement"] += 261;
+ console.log ("cout_total = ", req.session["cout_total"]);
+ }
+ if (req.session["personne_"+toto+"_age"] >= 6 && req.session["personne_"+toto+"_age"] <= 11) {
+ console.log("6 < AGE > 11");
+ req.session["personne_"+toto+"_cout_hebergement"] = 232;
+ req.session["cout_total"] += 232;
+ req.session["cout_total_hebergement"] += 232;
+ console.log ("cout_total = ", req.session["cout_total"]);
+ }
+ if (req.session["personne_"+toto+"_age"] >= 3 && req.session["personne_"+toto+"_age"] <= 5) {
+ console.log("3 < AGE > 5");
+ req.session["personne_"+toto+"_cout_hebergement"] = 174;
+ req.session["cout_total_hebergement"] += 174;
+ req.session["cout_total"] += 174;
+ console.log ("cout_total = ", req.session["cout_total"]);
+ }
+ }
+ console.log ('req.session["personne_"+toto+"_cout_hebergement"] = ', req.session["personne_"+toto+"_cout_hebergement"]);
+ console.log ("cout_total_hebergement = ", req.session["cout_total_hebergement"]);
+ console.log ("cout_total = ", req.session["cout_total"]);
+
+ // CAR COUT PAR PERSONNE
+ if (req.session["personne_"+toto+"_transport_mode"] == "car") {
+ req.session["personne_"+toto+"_cout_transport"] = 55;
+ req.session["cout_total_transport"] += 55;
+ req.session["cout_total"] += 55;
+ }
+ console.log ("cout_total_transport = ", req.session["cout_total_transport"]);
+ console.log ("cout_total = ", req.session["cout_total"]);
+
+ // ACTIVITE COUT PAR PERSONNE
+ if (req.session["personne_"+toto+"_activite_1"]) {
+ if (req.session["personne_"+toto+"_activite_1"] == "dalcroze" && req.session["personne_"+toto+"_age"] < 18) {
+ req.session.cout_total_dalcroze += 75;
+ req.session["personne_"+toto+"_activite_cout"] += 75;
+ req.session["cout_total"] += 75;
+ }
+ if (req.session["personne_"+toto+"_activite_1"] == "dalcroze" && req.session["personne_"+toto+"_age"] > 17) {
+ req.session.cout_total_dalcroze_surplace += 75;
+ logger.info("req.session.cout_total_dalcroze_surplace ACTIVITE 1 = " + req.session.cout_total_dalcroze_surplace, { numsession: req.session.id });
+ }
+
+ if (req.session["personne_"+toto+"_activite_1"] == "percussions" && req.session["personne_"+toto+"_age"] < 18) {
+ req.session.cout_total_percussion += 75;
+ req.session["personne_"+toto+"_activite_cout"] += 75;
+ req.session["cout_total"] += 75;
+ }
+ if (req.session["personne_"+toto+"_activite_1"] == "percussions" && req.session["personne_"+toto+"_age"] > 17) {
+ req.session.cout_total_percussion_surplace += 75;
+ }
+
+ if (req.session["personne_"+toto+"_activite_1"] == "chant" && req.session["personne_"+toto+"_age"] < 12 ) {
+ req.session.cout_total_chant += 75;
+ req.session["personne_"+toto+"_activite_cout"] += 75;
+ req.session["cout_total"] += 75;
+ }
+
+
+
+ }
+ if (req.session["personne_"+toto+"_activite_2"]) {
+ if (req.session["personne_"+toto+"_activite_2"] == "dalcroze" && req.session["personne_"+toto+"_age"] < 18) {
+ req.session.cout_total_dalcroze += 75;
+ req.session["personne_"+toto+"_activite_cout"] += 75;
+ req.session["cout_total"] += 75;
+ }
+ if (req.session["personne_"+toto+"_activite_2"] == "dalcroze" && req.session["personne_"+toto+"_age"] > 17) {
+ req.session.cout_total_dalcroze_surplace += 75;
+ logger.info("req.session.cout_total_dalcroze_surplace ACTIVITE 2 = " + req.session.cout_total_dalcroze_surplace, { numsession: req.session.id });
+ }
+
+ if (req.session["personne_"+toto+"_activite_2"] == "percussions" && req.session["personne_"+toto+"_age"] < 18) {
+ req.session.cout_total_percussion += 75;
+ req.session["personne_"+toto+"_activite_cout"] += 75;
+ req.session["cout_total"] += 75;
+ }
+ if (req.session["personne_"+toto+"_activite_2"] == "percussions" && req.session["personne_"+toto+"_age"] > 17) {
+ req.session.cout_total_percussion_surplace += 75;
+ }
+
+ if (req.session["personne_"+toto+"_activite_2"] == "chant" && req.session["personne_"+toto+"_age"] < 12 ) {
+ req.session.cout_total_chant += 75;
+ req.session["personne_"+toto+"_activite_cout"] += 75;
+ req.session["cout_total"] += 75;
+ }
+
+ }
+ console.log ("cout_total = ", req.session["cout_total"]);
+ console.log ("cout_total_percussion = ", req.session.cout_total_percussion);
+ console.log ("cout_total_dalcroze = ", req.session.cout_total_dalcroze);
+ console.log ("cout_total_chant = ", req.session.cout_total_chant);
+
+
+ // observateur cout par personne
+ if (req.session["personne_"+toto+"_categorie"] == "observateur" && req.session["personne_"+toto+"_profil"] == "non_professeur") {
+ req.session["personne_"+toto+"_observation_cout"] = 30;
+ req.session.cout_total_observation += 30;
+ req.session["cout_total"] += 30;
+ }
+ console.log ("cout_total = ", req.session["cout_total"]);
+ console.log ("cout_total_observation = ", req.session.cout_total_observation);
+
+ // INSTRUMENTISTE PAR PERSONNE
+ let date1 = new Date('2023-04-30');
+ let date2 = new Date();
+ console.log('date1 =',date1);
+ console.log('date2 =',date2);
+ console.log('date2 - date1 =',date2 - date1);
+ if (req.session["personne_"+toto+"_categorie"] == "instrumentiste") {
+ console.log("IF INSTRUMENTISTE");
+ if (req.session["personne_"+toto+"_instrument"]== "alto" || req.session["personne_"+toto+"_instrument"]== "violon" || req.session["personne_"+toto+"_instrument"] == "violoncelle" ) {
+ console.log("IF INSTRUMENTISTE ALTO V V");
+ console.log("date supérieur au 01/05/2023");
+ req.session["personne_"+toto+"_cours_cout"] = 300;
+ req.session.cout_total_cours += 300;
+ req.session["cout_total"] += 300;
+ if (req.session["personne_"+toto+"_option_coursindividuel"] == "cours individuel") {
+ if (req.session["personne_"+toto+"_cahier"]=="Cahier 1" || req.session["personne_"+toto+"_cahier"]=="Cahier 2" || req.session["personne_"+toto+"_cahier"]=="Cahier 3") {
+ req.session["personne_"+toto+"_cours_cout"] += 45;
+ req.session.cout_total_cours += 45;
+ req.session["cout_total"] += 45;
+ } else {
+ req.session["personne_"+toto+"_cours_cout"] += 65;
+ req.session.cout_total_cours += 65;
+ req.session["cout_total"] += 65;
+ }
+ }
+ }
+
+ if (req.session["personne_"+toto+"_instrument"]== "piano") {
+ if (req.session["personne_"+toto+"_cahier"]=="Cahier 1") {
+ req.session["personne_"+toto+"_cours_cout"] = 320;
+ req.session.cout_total_cours += 320;
+ req.session["cout_total"] += 320;
+ } else if (req.session["personne_"+toto+"_cahier"]=="Cahier 2" || req.session["personne_"+toto+"_cahier"]=="Cahier 3" || req.session["personne_"+toto+"_cahier"]=="Cahier 4") {
+ req.session["personne_"+toto+"_cours_cout"] = 340;
+ req.session.cout_total_cours += 340;
+ req.session["cout_total"] += 340;
+ } else {
+ req.session["personne_"+toto+"_cours_cout"] = 370;
+ req.session.cout_total_cours += 370;
+ req.session["cout_total"] += 370;
+ }
+ }
+ console.log ("cout_total = ", req.session["cout_total"]);
+ console.log ("cout_total_cours = ", req.session.cout_total_cours);
+ console.log('req.session["personne_"'+toto+'"_cours_cout"]',req.session["personne_"+toto+"_cours_cout"]);
+
+ if (date2 < date1) {
+ console.log("date inférieur au 01/05/2023 on enlève 20 euros");
+ req.session.cout_total_cours -= 20;
+ req.session["personne_"+toto+"_cours_cout"] -= 20;
+ req.session["cout_total"] -= 20;
+ req.session.remise = "Remise pour inscription avant le 30 avril 23h59.";
+ console.log ("req.session.remise = ", req.session.remise);
+ }
+ logger.info("cout_total = " + req.session["cout_total"], { numsession: req.session.id });
+ console.log ("cout_total_cours = ", req.session.cout_total_cours);
+ console.log('req.session["personne_"'+toto+'"_cours_cout"]',req.session["personne_"+toto+"_cours_cout"]);
+
+ // ACCOMPTE + 100 PAR INSTRUMENTISTE
+ req.session.montant_accompte += 100;
+ logger.info("req.session.montant_accompte = " + req.session.montant_accompte, { numsession: req.session.id });
+ }
+ logger.info("req.session.montant_accompte = " + req.session.montant_accompte, { numsession: req.session.id });
+ }
+ }
+
+ /////////////////////////////////
+ // CAMP ADO
+ console.log("/////////////////////////////////");
+ logger.info("// CAMP ADO");
+ console.log("adulte_trouve : ", adulte_trouve);
+ let compteur_ado = 0
+ logger.info("compteur_ado au départ : " + compteur_ado, { numsession: req.session.id });
+
+ if (adulte_trouve == "non" && req.session.hebergement == "flocons verts") {
+ for (let toto = 1; toto < 7; toto++) {
+ if (req.session["personne_"+toto+"_age"] >= 14 && req.session["personne_"+toto+"_age"] < 18) {
+ req.session["personne_"+toto+"_profil"] = "Camp ado";
+ req.session["personne_"+toto+"_campado_cout"] = 100;
+ req.session.cout_total_campado += 100;
+ req.session["cout_total"] += 100;
+ compteur_ado ++;
+ logger.info("compteur_ado incrémenté : " + compteur_ado, { numsession: req.session.id });
+
+ } else if (req.session["personne_"+toto+"_age"] < 14) {
+ req.session.err_mineur = 'Vous ne pouvez inscrire un enfant de moins de 14 ans (âge au premier jour du stage) sans adulte pour l\'accompagner. Age de la personne saisi : '+req.session["personne_"+toto+"_age"]+' ans ('+req.session["personne_"+toto+"_datenaissance"]+')';
+ console.log("adding session_err_mineur : ",req.session.err_mineur);
+ }
+ console.log('req.session["personne_"'+toto+'"_profil"]',req.session["personne_"+toto+"_profil"]);
+ }
+
+ //////////////////////////////////
+ // VÉRIFICATION DU NOMBRE D'ADO DISPO DANS GOOGLE SHEET
+ await GS_stagean.useServiceAccountAuth(GS_creds_stagean);
+ await GS_stagean.loadInfo(); // loads document properties and worksheets
+ console.log("NOM FICHIER SHEET: ",GS_stagean.title); //nom du fichier
+ const GS_SN_sheet_campado = GS_stagean.sheetsByTitle['campado'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + GS_SN_sheet_campado.title, { numsession: req.session.id });
+ await GS_SN_sheet_campado.loadCells('B1:B2');
+ const GS_SN_sheet_campado_b2 = GS_SN_sheet_campado.getCellByA1('B2');
+
+ logger.info("CONTENU DE LA CELLULE B2 : " + GS_SN_sheet_campado_b2.value, { numsession: req.session.id });
+ if (GS_SN_sheet_campado_b2.value < compteur_ado) {
+ req.session.err_mineur = "Il n'y a plus de place disponible pour inscrire une personne en Camp Ado";
+ logger.info("Il n'y a plus de place disponible pour inscrire une personne en Camp Ado", { numsession: req.session.id });
+ }
+ }
+ req.session.compteur_ado = compteur_ado;
+ logger.info("req.session.compteur_ado : " + req.session.compteur_ado, { numsession: req.session.id });
+
+ if (req.session.err_mineur) {
+ logger.info("existing session_err_mineur : " + req.session.err_mineur, { numsession: req.session.id });
+ res.redirect('/stagenational/formulaire');
+ } else {
+ //////////////////////////////////
+ // FRAIS DE DOSIER
+ req.session.frais_dossier = 30;
+ req.session["cout_total"] += 30;
+
+ //////////////////////////////////
+ // ACOMPTE
+ // Si acompte est de 0 on lui met 100 (par ex si c'est un observateur)
+ logger.info("req.session.montant_accompte = " + req.session.montant_accompte, { numsession: req.session.id });
+ if (req.session.montant_accompte < 100 && req.session["cout_total"] > 100 ) {
+ req.session.montant_accompte = 100;
+ logger.info("req.session.montant_accompte = " + req.session.montant_accompte, { numsession: req.session.id });
+ }
+
+ //////////////////////////////////
+ // FRAIS bancaire
+ // 1,4 % + 0,25 € pour l'Espace économique européen (hors UK)
+ if (req.session.montant_accompte > 99) {
+ req.session.accompte_frais_bancaire = 0.25;
+ req.session.accompte_frais_bancaire += req.session.montant_accompte * 0.014;
+ req.session.accompte_frais_bancaire = Math.round(req.session.accompte_frais_bancaire * 100) / 100;
+ req.session["cout_total"] += req.session.accompte_frais_bancaire;
+ }
+
+
+ logger.info("cout_total_campado = " + req.session.cout_total_campado, { numsession: req.session.id });
+ console.log ("cout_total = ", req.session["cout_total"]);
+ console.log ("montant_accompte = ", req.session.montant_accompte);
+
+ // RECAP SANS ACOMPTE À PAYER
+ if (req.session.montant_accompte < 100) {
+ logger.info("REDIRECTION VERS RÉCAP SANS ACOMMPTE (montant_accompte) = " + req.session.montant_accompte, { numsession: req.session.id });
+ res.redirect('/stagenational/recapssacompte');
+ }
+ // RECAP AVEC ACOMPTE À PAYER
+ if (req.session.montant_accompte > 99) {
+ logger.info("REDIRECTION VERS RÉCAP AVEC ACOMMPTE (montant_accompte) = " + req.session.montant_accompte, { numsession: req.session.id });
+ res.redirect('/stagenational/recap');
+ }
+ }
+}
+
+/////////////////////////////////////////////////
+// PAGE 3
+// http://localhost:8888/stagenational/recap
+//
+// Bouton modifier
+//
+/////////////////////////////////////////////////
+
+// CLICK SUR BOUTON MODIFIER
+const post_recap_modifier = async function(req, res) {
+ res.redirect('/stagenational/identifier');
+}
+
+
+
+/////////////////////////////////////////////////
+// PAYER ACCOMPTE
+//
+// Enregistrement des infos dans la Google Sheet avant le paiement
+// (car le redirect après le paiement vers la page "réussi" ou "annulé" initialise une autre session qui fait perdre le cookie précédent et les infos saisies)
+// Payer accompte par carte bancaire
+// STIPE
+//
+/////////////////////////////////////////////////
+
+// CLICK SUR BOUTON PAYER ACCOMPTE PAGE RECAP
+const post_payer_accompte = async function(req, res, next) {
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION post_payer_accompte ==========");
+ logger.info("======================================");
+
+
+ //////////////////////////////////
+ // AJOUT INFO DANS LA GOOGLE SHEET
+
+
+ await GS_stagean.useServiceAccountAuth(GS_creds_stagean);
+ await GS_stagean.loadInfo(); // loads document properties and worksheets
+ logger.info("NOM FICHIER SHEET : " + GS_stagean.title, { numsession: req.session.id });
+ const GS_SN_sheet = GS_stagean.sheetsByTitle['inscription_web'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + GS_SN_sheet.title, { numsession: req.session.id });
+
+ // DATE DE L'INSCRIPTION
+ moment().format();
+ moment.locale('fr');
+ var date_formattee = moment().format('L')
+ console.log("date_formattee:", date_formattee);
+
+ // AJOUTER UNE LIGNE DANS LA GOOGLE SHEET
+ logger.info("/ AJOUTER UNE LIGNE DANS LA GOOGLE SHEET", { numsession: req.session.id });
+ logger.info("req.session.identifiant : " + req.session.identifiant, { numsession: req.session.id });
+ logger.info("req.session.adherent_nom : " + req.session.adherent_nom, { numsession: req.session.id });
+ const moreRows = await GS_SN_sheet.addRows([
+ {
+ 'saison': "2022/2023",
+ 'identifiant': req.session.identifiant,
+ 'association_suzuki': req.session.association,
+ 'inscription_date': date_formattee,
+ 'adherent_nom': req.session.adherent_nom,
+ 'adherent_prenom': req.session.adherent_prenom,
+ 'inscription_accompte_paiement_montant': req.session.montant_accompte,
+ 'cout_total': req.session.cout_total,
+ 'remise': req.session.remise,
+ 'frais_dossier': req.session.frais_dossier,
+ 'cout_total_hebergement': req.session.cout_total_hebergement,
+ 'cout_total_transport': req.session.cout_total_transport,
+ 'cout_total_dalcroze': req.session.cout_total_dalcroze,
+ 'cout_total_dalcroze_surplace': req.session.cout_total_dalcroze_surplace,
+ 'cout_total_percussion': req.session.cout_total_percussion,
+ 'cout_total_percussion_surplace': req.session.cout_total_percussion_surplace,
+ 'cout_total_chant': req.session.cout_total_chant,
+ 'cout_total_observation': req.session.cout_total_observation,
+ 'cout_total_cours': req.session.cout_total_cours,
+ 'cout_total_campado': req.session.cout_total_campado,
+ 'accompte_frais_bancaire': req.session.accompte_frais_bancaire,
+ 'adherent_adresse_rue': req.session.adherent_adresse_rue,
+ 'adherent_adresse_complement': req.session.adherent_adresse_complement,
+ 'adherent_adresse_codepostal': req.session.adherent_adresse_codepostal,
+ 'adherent_adresse_ville': req.session.adherent_adresse_ville,
+ 'adherent_adresse_pays': req.session.adherent_adresse_pays,
+ 'adherent_telephone_fixe': req.session.adherent_telephone_fixe,
+ 'adherent_telephone_mobile': req.session.adherent_telephone_mobile,
+ 'adherent_mail': req.session.adherent_mail,
+ 'hebergement': req.session.hebergement,
+ 'commentaire_adherent': req.session.commentaire_adherent,
+ 'personne_1_nom': req.session.personne_1_nom,
+ 'personne_1_prenom': req.session.personne_1_prenom,
+ 'personne_1_datenaissance': req.session.personne_1_datenaissance,
+ 'personne_1_age': req.session.personne_1_profilage,
+ 'personne_1_transport_mode': req.session.personne_1_transport_mode,
+ 'personne_1_transport_arret': req.session.personne_1_transport_arret,
+ 'personne_1_categorie': req.session.personne_1_categorie,
+ 'personne_1_profil': req.session.personne_1_profil,
+ 'personne_1_instrument': req.session.personne_1_instrument,
+ 'personne_1_cahier': req.session.personne_1_cahier,
+ 'personne_1_piece': req.session.personne_1_piece,
+ 'personne_1_prof': req.session.personne_1_prof,
+ 'personne_1_mail_prof': req.session.personne_1_mail_prof,
+ 'personne_1_option_coursindividuel': req.session.personne_1_option_coursindividuel,
+ 'personne_1_option_concertsolo': req.session.personne_1_option_concertsolo,
+ 'personne_1_option_concertsolo_cahier': req.session.personne_1_option_concertsolo_cahier,
+ 'personne_1_option_concertsolo_piece': req.session.personne_1_option_concertsolo_piece,
+ 'personne_1_activite_1': req.session.personne_1_activite_1,
+ 'personne_1_activite_2': req.session.personne_1_activite_2,
+ 'personne_2_nom': req.session.personne_2_nom,
+ 'personne_2_prenom': req.session.personne_2_prenom,
+ 'personne_2_datenaissance': req.session.personne_2_datenaissance,
+ 'personne_2_age': req.session.personne_2_profilage,
+ 'personne_2_transport_mode': req.session.personne_2_transport_mode,
+ 'personne_2_transport_arret': req.session.personne_2_transport_arret,
+ 'personne_2_categorie': req.session.personne_2_categorie,
+ 'personne_2_profil': req.session.personne_2_profil,
+ 'personne_2_instrument': req.session.personne_2_instrument,
+ 'personne_2_cahier': req.session.personne_2_cahier,
+ 'personne_2_piece': req.session.personne_2_piece,
+ 'personne_2_prof': req.session.personne_2_prof,
+ 'personne_2_mail_prof': req.session.personne_2_mail_prof,
+ 'personne_2_option_coursindividuel': req.session.personne_2_option_coursindividuel,
+ 'personne_2_option_concertsolo': req.session.personne_2_option_concertsolo,
+ 'personne_2_option_concertsolo_cahier': req.session.personne_2_option_concertsolo_cahier,
+ 'personne_2_option_concertsolo_piece': req.session.personne_2_option_concertsolo_piece,
+ 'personne_2_activite_1': req.session.personne_2_activite_1,
+ 'personne_2_activite_2': req.session.personne_2_activite_2,
+ 'personne_3_nom': req.session.personne_3_nom,
+ 'personne_3_prenom': req.session.personne_3_prenom,
+ 'personne_3_datenaissance': req.session.personne_3_datenaissance,
+ 'personne_3_age': req.session.personne_3_profilage,
+ 'personne_3_transport_mode': req.session.personne_3_transport_mode,
+ 'personne_3_transport_arret': req.session.personne_3_transport_arret,
+ 'personne_3_categorie': req.session.personne_3_categorie,
+ 'personne_3_profil': req.session.personne_3_profil,
+ 'personne_3_instrument': req.session.personne_3_instrument,
+ 'personne_3_cahier': req.session.personne_3_cahier,
+ 'personne_3_piece': req.session.personne_3_piece,
+ 'personne_3_prof': req.session.personne_3_prof,
+ 'personne_3_mail_prof': req.session.personne_3_mail_prof,
+ 'personne_3_option_coursindividuel': req.session.personne_3_option_coursindividuel,
+ 'personne_3_option_concertsolo': req.session.personne_3_option_concertsolo,
+ 'personne_3_option_concertsolo_cahier': req.session.personne_3_option_concertsolo_cahier,
+ 'personne_3_option_concertsolo_piece': req.session.personne_3_option_concertsolo_piece,
+ 'personne_3_activite_1': req.session.personne_3_activite_1,
+ 'personne_3_activite_2': req.session.personne_3_activite_2,
+ 'personne_4_nom': req.session.personne_4_nom,
+ 'personne_4_prenom': req.session.personne_4_prenom,
+ 'personne_4_datenaissance': req.session.personne_4_datenaissance,
+ 'personne_4_age': req.session.personne_4_profilage,
+ 'personne_4_transport_mode': req.session.personne_4_transport_mode,
+ 'personne_4_transport_arret': req.session.personne_4_transport_arret,
+ 'personne_4_categorie': req.session.personne_4_categorie,
+ 'personne_4_profil': req.session.personne_4_profil,
+ 'personne_4_instrument': req.session.personne_4_instrument,
+ 'personne_4_cahier': req.session.personne_4_cahier,
+ 'personne_4_piece': req.session.personne_4_piece,
+ 'personne_4_prof': req.session.personne_4_prof,
+ 'personne_4_mail_prof': req.session.personne_4_mail_prof,
+ 'personne_4_option_coursindividuel': req.session.personne_4_option_coursindividuel,
+ 'personne_4_option_concertsolo': req.session.personne_4_option_concertsolo,
+ 'personne_4_option_concertsolo_cahier': req.session.personne_4_option_concertsolo_cahier,
+ 'personne_4_option_concertsolo_piece': req.session.personne_4_option_concertsolo_piece,
+ 'personne_4_activite_1': req.session.personne_4_activite_1,
+ 'personne_4_activite_2': req.session.personne_4_activite_2,
+ 'personne_5_nom': req.session.personne_5_nom,
+ 'personne_5_prenom': req.session.personne_5_prenom,
+ 'personne_5_datenaissance': req.session.personne_5_datenaissance,
+ 'personne_5_age': req.session.personne_5_profilage,
+ 'personne_5_transport_mode': req.session.personne_5_transport_mode,
+ 'personne_5_transport_arret': req.session.personne_5_transport_arret,
+ 'personne_5_categorie': req.session.personne_5_categorie,
+ 'personne_5_profil': req.session.personne_5_profil,
+ 'personne_5_instrument': req.session.personne_5_instrument,
+ 'personne_5_cahier': req.session.personne_5_cahier,
+ 'personne_5_piece': req.session.personne_5_piece,
+ 'personne_5_prof': req.session.personne_5_prof,
+ 'personne_5_mail_prof': req.session.personne_5_mail_prof,
+ 'personne_5_option_coursindividuel': req.session.personne_5_option_coursindividuel,
+ 'personne_5_option_concertsolo': req.session.personne_5_option_concertsolo,
+ 'personne_5_option_concertsolo_cahier': req.session.personne_5_option_concertsolo_cahier,
+ 'personne_5_option_concertsolo_piece': req.session.personne_5_option_concertsolo_piece,
+ 'personne_5_activite_1': req.session.personne_5_activite_1,
+ 'personne_5_activite_2': req.session.personne_5_activite_2,
+ 'personne_6_nom': req.session.personne_6_nom,
+ 'personne_6_prenom': req.session.personne_6_prenom,
+ 'personne_6_datenaissance': req.session.personne_6_datenaissance,
+ 'personne_6_age': req.session.personne_6_profilage,
+ 'personne_6_transport_mode': req.session.personne_6_transport_mode,
+ 'personne_6_transport_arret': req.session.personne_6_transport_arret,
+ 'personne_6_categorie': req.session.personne_6_categorie,
+ 'personne_6_profil': req.session.personne_6_profil,
+ 'personne_6_instrument': req.session.personne_6_instrument,
+ 'personne_6_cahier': req.session.personne_6_cahier,
+ 'personne_6_piece': req.session.personne_6_piece,
+ 'personne_6_prof': req.session.personne_6_prof,
+ 'personne_6_mail_prof': req.session.personne_6_mail_prof,
+ 'personne_6_option_coursindividuel': req.session.personne_6_option_coursindividuel,
+ 'personne_6_option_concertsolo': req.session.personne_6_option_concertsolo,
+ 'personne_6_option_concertsolo_cahier': req.session.personne_6_option_concertsolo_cahier,
+ 'personne_6_option_concertsolo_piece': req.session.personne_6_option_concertsolo_piece,
+ 'personne_6_activite_1': req.session.personne_6_activite_1,
+ 'personne_6_activite_2': req.session.personne_6_activite_2,
+
+ },
+ ]);
+
+
+ //////////////////////////////////
+ // PAIEMENT STRIPE
+
+
+ logger.info("req.session.montant_accompte: " + req.session.montant_accompte, { numsession: req.session.id });
+ console.log ("req.session.identifiant: ",req.session.identifiant);
+ console.log ("process.env.STRIPE_PRIVATE_KEY : ", process.env.STRIPE_PRIVATE_KEY);
+
+
+ // STRIPE - ETAPE 1 - CREER l'INTENTION DE PAIEMENT
+ logger.info("cookiesessionid AVANT Stripe :" + req.session.id, { numsession: req.session.id });
+ const session = await stripe.checkout.sessions.create({
+ metadata: {cookiesessionid: req.session.id, identifiant: req.session.identifiant},
+ customer_email: req.session.adherent_mail,
+ //There are four different submit types.
+ submit_type: 'pay',
+ //success_url: 'http://localhost:8888/inscription/adhesion_paiement/reussi?id={CHECKOUT_SESSION_ID}',
+ //cancel_url: 'http://localhost:8888/inscription/adhesion_paiement/annule?id={CHECKOUT_SESSION_ID}',
+ //success_url: 'https://www.adusuki.juliechaumard.paris/inscription/adhesion_paiement/reussi?id={CHECKOUT_SESSION_ID}',
+ //cancel_url: 'https://www.adusuki.juliechaumard.paris/inscription/adhesion_paiement/annule?id={CHECKOUT_SESSION_ID}',
+ //success_url: 'https://www.adhesion.afpedagogiesuzuki.fr/inscription/adhesion_paiement/reussi?id={CHECKOUT_SESSION_ID}',
+ //cancel_url: 'https://www.adhesion.afpedagogiesuzuki.fr/inscription/adhesion_paiement/annule?id={CHECKOUT_SESSION_ID}',
+ success_url: process.env.STRIPE_SN_SUCCESSURL,
+ cancel_url: process.env.STRIPE_SN_CANCELURL,
+
+ payment_method_types: ['card'],
+ line_items: [{
+ price_data: {
+ currency: 'eur',
+ product_data: {
+ name: 'Stage annuel accompte',
+ },
+ unit_amount: req.session.montant_accompte * 100,
+ },
+ quantity: 1,
+ },],
+ //Checkout has three modes: payment, subscription, or setup.
+ mode: 'payment'
+
+ });
+
+ console.log("session: ",session)
+ console.log("session.id: ",session.id);
+ logger.info("session.url: " + session.url, { numsession: req.session.id });
+ let url_stripe = session.url
+ res.redirect(session.url)
+
+}
+
+
+/////////////////////////////////////////////////
+// CLICK SUR LE BOUTON ENREGISTRER PAGE RECAP SANS ACOMPTE
+const post_enregistrer_inscrip_ssacompte = async function(req, res){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION post_enregistrer_inscrip_ssacompte ==========");
+ logger.info("======================================");
+
+ //////////////////////////////////
+ // AJOUT INFO DANS LA GOOGLE SHEET
+
+
+ await GS_stagean.useServiceAccountAuth(GS_creds_stagean);
+ await GS_stagean.loadInfo(); // loads document properties and worksheets
+ logger.info("NOM FICHIER SHEET : " + GS_stagean.title, { numsession: req.session.id });
+ const GS_SN_sheet = GS_stagean.sheetsByTitle['inscription_web'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + GS_SN_sheet.title, { numsession: req.session.id });
+
+ // DATE DE L'INSCRIPTION
+ moment().format();
+ moment.locale('fr');
+ var date_formattee = moment().format('L')
+ console.log("date_formattee:", date_formattee);
+
+ // AJOUTER UNE LIGNE DANS LA GOOGLE SHEET
+ logger.info("/ AJOUTER UNE LIGNE DANS LA GOOGLE SHEET", { numsession: req.session.id });
+ logger.info("req.session.identifiant : " + req.session.identifiant, { numsession: req.session.id });
+ logger.info("req.session.adherent_nom : " + req.session.adherent_nom, { numsession: req.session.id });
+ const moreRows = await GS_SN_sheet.addRows([
+ {
+ 'saison': "2022/2023",
+ 'identifiant': req.session.identifiant,
+ 'association_suzuki': req.session.association,
+ 'inscription_date': date_formattee,
+ 'adherent_nom': req.session.adherent_nom,
+ 'adherent_prenom': req.session.adherent_prenom,
+ 'inscription_accompte_paye': "pas d'acompte",
+ 'inscription_accompte_paiement_montant': req.session.montant_accompte,
+ 'cout_total': req.session.cout_total,
+ 'remise': req.session.remise,
+ 'cout_total_hebergement': req.session.cout_total_hebergement,
+ 'cout_total_transport': req.session.cout_total_transport,
+ 'cout_total_dalcroze': req.session.cout_total_dalcroze,
+ 'cout_total_dalcroze_surplace': req.session.cout_total_dalcroze_surplace,
+ 'cout_total_percussion': req.session.cout_total_percussion,
+ 'cout_total_percussion_surplace': req.session.cout_total_percussion_surplace,
+ 'cout_total_chant': req.session.cout_total_chant,
+ 'cout_total_observation': req.session.cout_total_observation,
+ 'cout_total_cours': req.session.cout_total_cours,
+ 'cout_total_campado': req.session.cout_total_campado,
+ 'accompte_frais_bancaire': req.session.accompte_frais_bancaire,
+ 'adherent_adresse_rue': req.session.adherent_adresse_rue,
+ 'adherent_adresse_complement': req.session.adherent_adresse_complement,
+ 'adherent_adresse_codepostal': req.session.adherent_adresse_codepostal,
+ 'adherent_adresse_ville': req.session.adherent_adresse_ville,
+ 'adherent_adresse_pays': req.session.adherent_adresse_pays,
+ 'adherent_telephone_fixe': req.session.adherent_telephone_fixe,
+ 'adherent_telephone_mobile': req.session.adherent_telephone_mobile,
+ 'adherent_mail': req.session.adherent_mail,
+ 'hebergement': req.session.hebergement,
+ 'commentaire_adherent': req.session.commentaire_adherent,
+ 'personne_1_nom': req.session.personne_1_nom,
+ 'personne_1_prenom': req.session.personne_1_prenom,
+ 'personne_1_datenaissance': req.session.personne_1_datenaissance,
+ 'personne_1_age': req.session.personne_1_profilage,
+ 'personne_1_transport_mode': req.session.personne_1_transport_mode,
+ 'personne_1_transport_arret': req.session.personne_1_transport_arret,
+ 'personne_1_categorie': req.session.personne_1_categorie,
+ 'personne_1_profil': req.session.personne_1_profil,
+ 'personne_1_instrument': req.session.personne_1_instrument,
+ 'personne_1_cahier': req.session.personne_1_cahier,
+ 'personne_1_piece': req.session.personne_1_piece,
+ 'personne_1_prof': req.session.personne_1_prof,
+ 'personne_1_mail_prof': req.session.personne_1_mail_prof,
+ 'personne_1_option_coursindividuel': req.session.personne_1_option_coursindividuel,
+ 'personne_1_option_concertsolo': req.session.personne_1_option_concertsolo,
+ 'personne_1_option_concertsolo_cahier': req.session.personne_1_option_concertsolo_cahier,
+ 'personne_1_option_concertsolo_piece': req.session.personne_1_option_concertsolo_piece,
+ 'personne_1_activite_1': req.session.personne_1_activite_1,
+ 'personne_1_activite_2': req.session.personne_1_activite_2,
+ 'personne_2_nom': req.session.personne_2_nom,
+ 'personne_2_prenom': req.session.personne_2_prenom,
+ 'personne_2_datenaissance': req.session.personne_2_datenaissance,
+ 'personne_2_age': req.session.personne_2_profilage,
+ 'personne_2_transport_mode': req.session.personne_2_transport_mode,
+ 'personne_2_transport_arret': req.session.personne_2_transport_arret,
+ 'personne_2_categorie': req.session.personne_2_categorie,
+ 'personne_2_profil': req.session.personne_2_profil,
+ 'personne_2_instrument': req.session.personne_2_instrument,
+ 'personne_2_cahier': req.session.personne_2_cahier,
+ 'personne_2_piece': req.session.personne_2_piece,
+ 'personne_2_prof': req.session.personne_2_prof,
+ 'personne_2_mail_prof': req.session.personne_2_mail_prof,
+ 'personne_2_option_coursindividuel': req.session.personne_2_option_coursindividuel,
+ 'personne_2_option_concertsolo': req.session.personne_2_option_concertsolo,
+ 'personne_2_option_concertsolo_cahier': req.session.personne_2_option_concertsolo_cahier,
+ 'personne_2_option_concertsolo_piece': req.session.personne_2_option_concertsolo_piece,
+ 'personne_2_activite_1': req.session.personne_2_activite_1,
+ 'personne_2_activite_2': req.session.personne_2_activite_2,
+ 'personne_3_nom': req.session.personne_3_nom,
+ 'personne_3_prenom': req.session.personne_3_prenom,
+ 'personne_3_datenaissance': req.session.personne_3_datenaissance,
+ 'personne_3_age': req.session.personne_3_profilage,
+ 'personne_3_transport_mode': req.session.personne_3_transport_mode,
+ 'personne_3_transport_arret': req.session.personne_3_transport_arret,
+ 'personne_3_categorie': req.session.personne_3_categorie,
+ 'personne_3_profil': req.session.personne_3_profil,
+ 'personne_3_instrument': req.session.personne_3_instrument,
+ 'personne_3_cahier': req.session.personne_3_cahier,
+ 'personne_3_piece': req.session.personne_3_piece,
+ 'personne_3_prof': req.session.personne_3_prof,
+ 'personne_3_mail_prof': req.session.personne_3_mail_prof,
+ 'personne_3_option_coursindividuel': req.session.personne_3_option_coursindividuel,
+ 'personne_3_option_concertsolo': req.session.personne_3_option_concertsolo,
+ 'personne_3_option_concertsolo_cahier': req.session.personne_3_option_concertsolo_cahier,
+ 'personne_3_option_concertsolo_piece': req.session.personne_3_option_concertsolo_piece,
+ 'personne_3_activite_1': req.session.personne_3_activite_1,
+ 'personne_3_activite_2': req.session.personne_3_activite_2,
+ 'personne_4_nom': req.session.personne_4_nom,
+ 'personne_4_prenom': req.session.personne_4_prenom,
+ 'personne_4_datenaissance': req.session.personne_4_datenaissance,
+ 'personne_4_age': req.session.personne_4_profilage,
+ 'personne_4_transport_mode': req.session.personne_4_transport_mode,
+ 'personne_4_transport_arret': req.session.personne_4_transport_arret,
+ 'personne_4_categorie': req.session.personne_4_categorie,
+ 'personne_4_profil': req.session.personne_4_profil,
+ 'personne_4_instrument': req.session.personne_4_instrument,
+ 'personne_4_cahier': req.session.personne_4_cahier,
+ 'personne_4_piece': req.session.personne_4_piece,
+ 'personne_4_prof': req.session.personne_4_prof,
+ 'personne_4_mail_prof': req.session.personne_4_mail_prof,
+ 'personne_4_option_coursindividuel': req.session.personne_4_option_coursindividuel,
+ 'personne_4_option_concertsolo': req.session.personne_4_option_concertsolo,
+ 'personne_4_option_concertsolo_cahier': req.session.personne_4_option_concertsolo_cahier,
+ 'personne_4_option_concertsolo_piece': req.session.personne_4_option_concertsolo_piece,
+ 'personne_4_activite_1': req.session.personne_4_activite_1,
+ 'personne_4_activite_2': req.session.personne_4_activite_2,
+ 'personne_5_nom': req.session.personne_5_nom,
+ 'personne_5_prenom': req.session.personne_5_prenom,
+ 'personne_5_datenaissance': req.session.personne_5_datenaissance,
+ 'personne_5_age': req.session.personne_5_profilage,
+ 'personne_5_transport_mode': req.session.personne_5_transport_mode,
+ 'personne_5_transport_arret': req.session.personne_5_transport_arret,
+ 'personne_5_categorie': req.session.personne_5_categorie,
+ 'personne_5_profil': req.session.personne_5_profil,
+ 'personne_5_instrument': req.session.personne_5_instrument,
+ 'personne_5_cahier': req.session.personne_5_cahier,
+ 'personne_5_piece': req.session.personne_5_piece,
+ 'personne_5_prof': req.session.personne_5_prof,
+ 'personne_5_mail_prof': req.session.personne_5_mail_prof,
+ 'personne_5_option_coursindividuel': req.session.personne_5_option_coursindividuel,
+ 'personne_5_option_concertsolo': req.session.personne_5_option_concertsolo,
+ 'personne_5_option_concertsolo_cahier': req.session.personne_5_option_concertsolo_cahier,
+ 'personne_5_option_concertsolo_piece': req.session.personne_5_option_concertsolo_piece,
+ 'personne_5_activite_1': req.session.personne_5_activite_1,
+ 'personne_5_activite_2': req.session.personne_5_activite_2,
+ 'personne_6_nom': req.session.personne_6_nom,
+ 'personne_6_prenom': req.session.personne_6_prenom,
+ 'personne_6_datenaissance': req.session.personne_6_datenaissance,
+ 'personne_6_age': req.session.personne_6_profilage,
+ 'personne_6_transport_mode': req.session.personne_6_transport_mode,
+ 'personne_6_transport_arret': req.session.personne_6_transport_arret,
+ 'personne_6_categorie': req.session.personne_6_categorie,
+ 'personne_6_profil': req.session.personne_6_profil,
+ 'personne_6_instrument': req.session.personne_6_instrument,
+ 'personne_6_cahier': req.session.personne_6_cahier,
+ 'personne_6_piece': req.session.personne_6_piece,
+ 'personne_6_prof': req.session.personne_6_prof,
+ 'personne_6_mail_prof': req.session.personne_6_mail_prof,
+ 'personne_6_option_coursindividuel': req.session.personne_6_option_coursindividuel,
+ 'personne_6_option_concertsolo': req.session.personne_6_option_concertsolo,
+ 'personne_6_option_concertsolo_cahier': req.session.personne_6_option_concertsolo_cahier,
+ 'personne_6_option_concertsolo_piece': req.session.personne_6_option_concertsolo_piece,
+ 'personne_6_activite_1': req.session.personne_6_activite_1,
+ 'personne_6_activite_2': req.session.personne_6_activite_2,
+
+ },
+ ]);
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // CONFIRMATION PAR MAIL
+
+ console.log("MAIL ENVOI AVANT");
+ var transporter = nodemailer.createTransport({
+ service: 'gmail',
+ auth: {
+ // TEST JULIE
+ //user: 'juliechaumard@gmail.com',
+ //pass: 'etfq umof iwbx ltxk'
+ // SUZUKI
+ user: 'afps.inscription@gmail.com',
+ pass: 'vljxrkhwgljjracs'
+ }
+ });
+ var mail_objet = "ASSOCIATION FRANÇAISE POUR LA PÉDAGOGIE SUZUKI - STAGE ANNUEL 2022/2023 - ";
+ mail_objet += req.session.adherent_nom;
+ mail_html = "Cher adhérent,
Félicitations ! Vous êtes désormais inscrit au stage annuel de l’Association Française pour la Pédagogie Suzuki (http://www.afpedagogiesuzuki.fr) qui se tiendra du 20 au 25 août 2023.
";
+
+ mail_html += " ";
+ mail_html += "RÉCAPITULATIF :
";
+ mail_html += "Identifiant Suzuki : ";
+ mail_html += req.session.identifiant;
+ mail_html += "
Association Suzuki : ";
+ mail_html += req.session.association;
+ mail_html += "
Mode d'hébergement : ";
+ mail_html += req.session.hebergement;
+ mail_html += "
";
+ for (let toto = 1; toto<7; toto++) {
+ if (req.session["personne_"+toto+"_nom"]) {
+ mail_html += "Nom : ";
+ mail_html += req.session["personne_"+toto+"_nom"];
+ mail_html += " ";
+ mail_html += req.session["personne_"+toto+"_prenom"];
+ mail_html += "
Profile âge : ";
+ mail_html += req.session["personne_"+toto+"_age"];
+ mail_html += "
Catégorie : ";
+ mail_html += req.session["personne_"+toto+"_categorie"];
+ if (req.session["personne_"+toto+"_profil"]) {
+ mail_html += " ";
+ mail_html += req.session["personne_"+toto+"_profil"];
+ }
+ mail_html += "
Mode de transport : ";
+ mail_html += req.session["personne_"+toto+"_transport_mode"];
+ mail_html += " ";
+ mail_html += req.session["personne_"+toto+"_transport_arret"];
+ mail_html += "
";
+ if (req.session["personne_"+toto+"_instrument"]) {
+ mail_html += "Instrument : ";
+ mail_html += req.session["personne_"+toto+"_instrument"];
+ mail_html += " ";
+ mail_html += req.session["personne_"+toto+"_cahier"];
+ mail_html += " ";
+ mail_html += req.session["personne_"+toto+"_option_coursindividuel"];
+ mail_html += "
";
+ }
+ if (req.session["personne_"+toto+"_activite_1"]) {
+ mail_html += "Activité : ";
+ mail_html += req.session["personne_"+toto+"_activite_1"];
+ mail_html += " ";
+ mail_html += req.session["personne_"+toto+"_activite_2"];
+ mail_html += "
";
+ }
+ if (req.session["personne_"+toto+"_cout_hebergement"]) {
+ mail_html += "Coût hébergement : ";
+ mail_html += req.session["personne_"+toto+"_cout_hebergement"];
+ mail_html += "
";
+ }
+ if (req.session["personne_"+toto+"_cout_transport"]) {
+ mail_html += "Coût transport : ";
+ mail_html += req.session["personne_"+toto+"_cout_transport"];
+ mail_html += "
";
+ }
+ if (req.session["personne_"+toto+"_campado_cout"]) {
+ mail_html += "Coût camp ado : ";
+ mail_html += req.session["personne_"+toto+"_campado_cout"];
+ mail_html += "
";
+ }
+ if (req.session["personne_"+toto+"_cours_cout"]) {
+ mail_html += "Coût cours : ";
+ mail_html += req.session["personne_"+toto+"_cours_cout"];
+ mail_html += "
";
+ }
+ if (req.session["personne_"+toto+"_activite_cout"]) {
+ mail_html += "Coût activité : ";
+ mail_html += req.session["personne_"+toto+"_activite_cout"];
+ mail_html += "
";
+ }
+ if (req.session["personne_"+toto+"_observation_cout"]) {
+ mail_html += "Coût observation : ";
+ mail_html += req.session["personne_"+toto+"_observation_cout"];
+ mail_html += "
";
+ }
+ mail_html += " ";
+ }
+ }
+
+ mail_html += " ";
+ mail_html += "Coût total : ";
+ mail_html += req.session.cout_total;
+ mail_html += "
Remise : ";
+ mail_html += req.session.remise;
+ mail_html += "
Frais bancaire de l'acompte : ";
+ mail_html += req.session.accompte_frais_bancaire;
+ mail_html += "
Montant de l'acompte versé : ";
+ mail_html += req.session.inscription_accompte_paiement_montant;
+ mail_html += "";
+
+ if (req.session.cout_total_dalcroze_surplace > 0) {
+ mail_html += "Coût activité Dalcroze adulte à payer sur place : ";
+ mail_html += req.session.cout_total_dalcroze_surplace;
+ mail_html += "€
";
+ }
+ if (req.session.cout_total_percussion_surplace > 0) {
+ mail_html += "Coût activité percussions adulte à payer sur place : ";
+ mail_html += req.session.cout_total_percussion_surplace;
+ mail_html += "€
";
+ }
+
+ mail_html += " Nous vous remercions pour votre intérêt et vous souhaitons une très bon stage !
Association Française pour la pédagogie Suzuki Anne-Laure SAUVEGRAIN Pôle organisation du stage
";
+ var mailOptions = {
+ from: 'afps.inscription@gmail.com',
+ to: req.session.adherent_mail,
+ subject: mail_objet,
+ html: mail_html,
+ };
+ transporter.sendMail(mailOptions, function(error, info){
+ if (error) {
+ logger.info("error : " + error, { numsession: req.session.id});
+ } else {
+ console.log('Email sent: ' + info.response);
+ }
+ });
+ console.log("MAIL ENVOI APRES");
+
+
+ // REDIRECTION VERS LA PAGE DE CONFIRMATION PAIEMENT CARTE BANCAIRE
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.association = req.session.association;
+ res.locals.adherent_nom = req.session.adherent_nom;
+ res.locals.adherent_prenom = req.session.adherent_prenom;
+ res.locals.adherent_adresse_rue = req.session.adherent_adresse_rue;
+ res.locals.adherent_adresse_complement = req.session.adherent_adresse_complement;
+ res.locals.adherent_adresse_codepostal = req.session.adherent_adresse_codepostal;
+ res.locals.adherent_adresse_ville = req.session.adherent_adresse_ville;
+ res.locals.adherent_adresse_pays = req.session.adherent_adresse_pays;
+ res.locals.adherent_telephone_mobile = req.session.adherent_telephone_mobile;
+ res.locals.adherent_telephone_fixe = req.session.adherent_telephone_fixe;
+ res.locals.adherent_mail = req.session.adherent_mail;
+ res.locals.hebergement = req.session.hebergement;
+ res.locals.commentaire_adherent = req.session.commentaire_adherent;
+
+
+ for (let toto = 1; toto < 7; toto++) {
+ res.locals["personne_"+toto+"_numero"] = toto;
+ res.locals["personne_"+toto+"_nom"] = req.session["personne_"+toto+"_nom"];
+ res.locals["personne_"+toto+"_prenom"] = req.session["personne_"+toto+"_prenom"];
+ res.locals["personne_"+toto+"_profilage"] = req.session["personne_"+toto+"_profilage"];
+ res.locals["personne_"+toto+"_categorie"] = req.session["personne_"+toto+"_categorie"];
+ res.locals["personne_"+toto+"_profil"] = req.session["personne_"+toto+"_profil"];
+ res.locals["personne_"+toto+"_transport_mode"] = req.session["personne_"+toto+"_transport_mode"];
+ res.locals["personne_"+toto+"_transport_arret"] = req.session["personne_"+toto+"_transport_arret"]
+ res.locals["personne_"+toto+"_instrument"] = req.session["personne_"+toto+"_instrument"];
+ res.locals["personne_"+toto+"_cahier"] = req.session["personne_"+toto+"_cahier"];
+ res.locals["personne_"+toto+"_option_coursindividuel"] = req.session["personne_"+toto+"_option_coursindividuel"];
+ res.locals["personne_"+toto+"_option_concertsolo"] = req.session["personne_"+toto+"_option_concertsolo"];
+ res.locals["personne_"+toto+"_activite_1"] = req.session["personne_"+toto+"_activite_1"];
+ res.locals["personne_"+toto+"_activite_2"] = req.session["personne_"+toto+"_activite_2"];
+ res.locals["personne_"+toto+"_cout_hebergement"] = req.session["personne_"+toto+"_cout_hebergement"];
+ res.locals["personne_"+toto+"_cout_transport"] = req.session["personne_"+toto+"_cout_transport"];
+ res.locals["personne_"+toto+"_activite_cout"] = req.session["personne_"+toto+"_activite_cout"];
+ res.locals["personne_"+toto+"_observation_cout"] = req.session["personne_"+toto+"_observation_cout"];
+ res.locals["personne_"+toto+"_cours_cout"] = req.session["personne_"+toto+"_cours_cout"];
+ res.locals["personne_"+toto+"_campado_cout"] = req.session["personne_"+toto+"_campado_cout"];
+ }
+ res.locals.cout_total = req.session.cout_total;
+ res.locals.remise = req.session.remise;
+ res.locals.accompte_frais_bancaire = req.session.accompte_frais_bancaire;
+ res.locals.montant_accompte = req.session.inscription_accompte_paiement_montant;
+
+ if (!req.session.identifiant) {
+ res.locals.error = "Il y a eu une erreur lors de l'ajout de votre inscription dans la base de données du stage, veuillez contacter l'association Suzuki par mail pour le signaler à l'adresse StgNational@gmail.com";
+ }
+
+ res.render('stagenat/page_templates/inscription_reussi.ejs');
+}
+
+
+
+/////////////////////////////////////////////////
+// RETOUR PAIEMENT REUSSI
+const SN_accompte_reussi = async function(req, res){
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION SN_accompte_reussi ==========");
+ logger.info("======================================");
+
+ // RETOUR STRIPE
+ var id = req.query.id;
+
+ logger.info("id : " + id, { numsession: req.session.id });
+
+ const session_stripe = await stripe.checkout.sessions.retrieve(id);
+
+ var customer_email = session_stripe.customer_email;
+ var payment_status = session_stripe.payment_status;
+ var amount_total = session_stripe.amount_total/100;
+ var stripe_customer = session_stripe.customer;
+ var stripe_payment_intent = session_stripe.payment_intent;
+ var payment_method_types = session_stripe.payment_method_types;
+ var stripe_status = session_stripe.status;
+ var identifiant = session_stripe.metadata.identifiant;
+ var CB_retour = "identifiant_adherent:"+identifiant+",payment_status:"+payment_status+",stripe_customer:"+stripe_customer+",stripe_payment_intent:"+stripe_payment_intent+",sessionID:"+session_stripe.id+",payment_method_types:"+payment_method_types+",amount_total:"+amount_total+",stripe_status:"+stripe_status;
+ logger.info("cookiesessionid APRES Stripe :" + session_stripe.metadata.cookiesessionid, { numsession: req.session.id });
+ var cookiesessionid = session_stripe.metadata.cookiesessionid;
+ console.log("customer_email: ", customer_email);
+ logger.info("payment_status : " + payment_status, { numsession: req.session.id });
+ console.log("stripe_customer: ", stripe_customer);
+ console.log("amount_total: ", amount_total);
+ console.log("stripe_payment_intent: ", stripe_payment_intent);
+ console.log("payment_method_types: ", payment_method_types);
+ console.log("payment_method_types: ", payment_method_types[0]);
+ console.log("stripe_status: ", stripe_status);
+ console.log("CB_retour: ", CB_retour);
+
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // RÉCUPÉRATION DES INFOS STAGIAIRES DANS LA GOOGLE SHEET
+ // MISE À JOUR DES INFORMATIONS SUR LE PAIEMENT DANS LA BASE DE DONNÉES GSHEET
+
+
+ await GS_stagean.useServiceAccountAuth(GS_creds_stagean);
+ await GS_stagean.loadInfo(); // loads document properties and worksheets
+ console.log("NOM FICHIER SHEET: ",GS_stagean.title); //nom du fichier
+ const GS_SN_sheet = GS_stagean.sheetsByTitle['inscription_web'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + GS_SN_sheet.title, { numsession: req.session.id });
+
+ // on récupère le contenu de la GSheet dans un array nommé "infos_adherents"
+ const infos_adherents = await GS_SN_sheet.getRows();
+ // on récupère quelle ligne contient l'identifiant concerné pour mettre à jour cette ligne
+ let list_identifiants = new Array;
+ let compteur = GS_SN_sheet.rowCount - 1;
+ let rowToBeUpdate;
+ logger.info("identifiant TRANSMIS PAR STRIPE :" + identifiant, { numsession: req.session.id });
+ for (let i=0; i 0) {
+ //await GS_stagean.useServiceAccountAuth(GS_creds_stagean);
+ //await GS_stagean.loadInfo(); // loads document properties and worksheets
+ logger.info("NOM FICHIER SHEET : " + GS_stagean.title, { numsession: req.session.id });
+ const GS_SN_sheet_campado = GS_stagean.sheetsByTitle['campado'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + GS_SN_sheet_campado.title, { numsession: req.session.id });
+ await GS_SN_sheet_campado.loadCells('B1:B2');
+ const GS_SN_sheet_campado_b2 = GS_SN_sheet_campado.getCellByA1('B2');
+ logger.info("CONTENU DE LA CELLULE B2 : " + GS_SN_sheet_campado_b2.value, { numsession: req.session.id });
+ GS_SN_sheet_campado_b2.value -= compteur_ado_a_ajouter;
+ logger.info("CONTENU DE LA CELLULE B2 APRES SOUSTRACTION DU COMPTEUR ADO : " + GS_SN_sheet_campado_b2, { numsession: req.session.id });
+ await GS_SN_sheet_campado.saveUpdatedCells();
+ }
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // CONFIRMATION PAR MAIL
+
+ console.log("MAIL ENVOI AVANT");
+ var transporter = nodemailer.createTransport({
+ service: 'gmail',
+ auth: {
+ // TEST JULIE
+ //user: 'juliechaumard@gmail.com',
+ //pass: 'etfq umof iwbx ltxk'
+ // SUZUKI
+ user: 'afps.inscription@gmail.com',
+ pass: 'vljxrkhwgljjracs'
+ }
+ });
+ var mail_objet = "ASSOCIATION FRANÇAISE POUR LA PÉDAGOGIE SUZUKI - STAGE ANNUEL 2022/2023 - ";
+ mail_objet += infos_adherents[rowToBeUpdate].adherent_nom;
+ mail_html = "Cher adhérent,
Félicitations ! Vous êtes désormais inscrit au stage annuel de l’Association Française pour la Pédagogie Suzuki (http://www.afpedagogiesuzuki.fr) qui se tiendra du 20 au 25 août 2023.
";
+
+ mail_html += " ";
+ mail_html += "RÉCAPITULATIF :
";
+ mail_html += "Identifiant Suzuki : ";
+ mail_html += identifiant;
+ mail_html += "
Association Suzuki : ";
+ mail_html += infos_adherents[rowToBeUpdate].association_suzuki;
+ mail_html += "
Mode d'hébergement : ";
+ mail_html += infos_adherents[rowToBeUpdate].hebergement;
+ mail_html += "
";
+ for (let toto = 1; toto<7; toto++) {
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_nom"]) {
+ mail_html += "Nom : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_nom"];
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_prenom"];
+ mail_html += "
Profile âge : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_age"];
+ mail_html += "
Catégorie : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_categorie"];
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_profil"]) {
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_profil"];
+ }
+ mail_html += "
Mode de transport : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_transport_mode"];
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_transport_arret"];
+ mail_html += "
";
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_instrument"]) {
+ mail_html += "Instrument : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_instrument"];
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_cahier"];
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_option_coursindividuel"];
+ mail_html += "
";
+ }
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_1"]) {
+ mail_html += "Activité : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_1"];
+ mail_html += " ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_2"];
+ mail_html += "
";
+ }
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_cout_hebergement"]) {
+ mail_html += "Coût hébergement : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_cout_hebergement"];
+ mail_html += "
";
+ }
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_cout_transport"]) {
+ mail_html += "Coût transport : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_cout_transport"];
+ mail_html += "
";
+ }
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_campado_cout"]) {
+ mail_html += "Coût camp ado : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_campado_cout"];
+ mail_html += "
";
+ }
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_cours_cout"]) {
+ mail_html += "Coût cours : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_cours_cout"];
+ mail_html += "
";
+ }
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_cout"]) {
+ mail_html += "Coût activité : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_cout"];
+ mail_html += "
";
+ }
+ if (infos_adherents[rowToBeUpdate]["personne_"+toto+"_observation_cout"]) {
+ mail_html += "Coût observation : ";
+ mail_html += infos_adherents[rowToBeUpdate]["personne_"+toto+"_observation_cout"];
+ mail_html += "
";
+ }
+ mail_html += " ";
+ }
+ }
+
+ mail_html += " ";
+ mail_html += "Coût total : ";
+ mail_html += infos_adherents[rowToBeUpdate].cout_total;
+ mail_html += "
Remise : ";
+ mail_html += infos_adherents[rowToBeUpdate].remise;
+ mail_html += "
Frais bancaire de l'acompte : ";
+ mail_html += infos_adherents[rowToBeUpdate].accompte_frais_bancaire;
+ mail_html += "
Montant de l'acompte versé : ";
+ mail_html += infos_adherents[rowToBeUpdate].inscription_accompte_paiement_montant;
+ mail_html += "";
+
+ if (infos_adherents[rowToBeUpdate].cout_total_dalcroze_surplace > 0) {
+ mail_html += "Coût activité Dalcroze adulte à payer sur place : ";
+ mail_html += infos_adherents[rowToBeUpdate].cout_total_dalcroze_surplace;
+ mail_html += "€
";
+ }
+ if (infos_adherents[rowToBeUpdate].cout_total_percussion_surplace > 0) {
+ mail_html += "Coût activité percussions adulte à payer sur place : ";
+ mail_html += infos_adherents[rowToBeUpdate].cout_total_percussion_surplace;
+ mail_html += "€
";
+ }
+
+ mail_html += " Nous vous remercions pour votre intérêt et vous souhaitons une très bon stage !
Association Française pour la pédagogie Suzuki Anne-Laure SAUVEGRAIN Pôle organisation du stage
";
+ var mailOptions = {
+ from: 'afps.inscription@gmail.com',
+ to: customer_email,
+ subject: mail_objet,
+ html: mail_html,
+ };
+ transporter.sendMail(mailOptions, function(error, info){
+ if (error) {
+ logger.info("error : " + error, { numsession: req.session.id});
+ } else {
+ console.log('Email sent: ' + info.response);
+ }
+ });
+ console.log("MAIL ENVOI APRES");
+
+
+ // REDIRECTION VERS LA PAGE DE CONFIRMATION PAIEMENT CARTE BANCAIRE
+ res.locals.identifiant = infos_adherents[rowToBeUpdate].identifiant;
+ res.locals.association = infos_adherents[rowToBeUpdate].association_suzuki;
+ res.locals.adherent_nom = infos_adherents[rowToBeUpdate].adherent_nom;
+ res.locals.adherent_prenom = infos_adherents[rowToBeUpdate].adherent_prenom;
+ res.locals.adherent_adresse_rue = infos_adherents[rowToBeUpdate].adherent_adresse_rue;
+ res.locals.adherent_adresse_complement = infos_adherents[rowToBeUpdate].adherent_adresse_complement;
+ res.locals.adherent_adresse_codepostal = infos_adherents[rowToBeUpdate].adherent_adresse_codepostal;
+ res.locals.adherent_adresse_ville = infos_adherents[rowToBeUpdate].adherent_adresse_ville;
+ res.locals.adherent_adresse_pays = infos_adherents[rowToBeUpdate].adherent_adresse_pays;
+ res.locals.adherent_telephone_mobile = infos_adherents[rowToBeUpdate].adherent_telephone_mobile;
+ res.locals.adherent_telephone_fixe = infos_adherents[rowToBeUpdate].adherent_telephone_fixe;
+ res.locals.adherent_mail = infos_adherents[rowToBeUpdate].adherent_mail;
+ res.locals.hebergement = infos_adherents[rowToBeUpdate].hebergement;
+ res.locals.commentaire_adherent = infos_adherents[rowToBeUpdate].commentaire_adherent;
+
+
+ for (let toto = 1; toto < 7; toto++) {
+ res.locals["personne_"+toto+"_numero"] = toto;
+ res.locals["personne_"+toto+"_nom"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_nom"];
+ res.locals["personne_"+toto+"_prenom"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_prenom"];
+ res.locals["personne_"+toto+"_profilage"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_profilage"];
+ res.locals["personne_"+toto+"_categorie"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_categorie"];
+ res.locals["personne_"+toto+"_profil"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_profil"];
+ res.locals["personne_"+toto+"_transport_mode"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_transport_mode"];
+ res.locals["personne_"+toto+"_transport_arret"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_transport_arret"]
+ res.locals["personne_"+toto+"_instrument"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_instrument"];
+ res.locals["personne_"+toto+"_cahier"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_cahier"];
+ res.locals["personne_"+toto+"_option_coursindividuel"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_option_coursindividuel"];
+ res.locals["personne_"+toto+"_option_concertsolo"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_option_concertsolo"];
+ res.locals["personne_"+toto+"_activite_1"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_1"];
+ res.locals["personne_"+toto+"_activite_2"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_2"];
+ res.locals["personne_"+toto+"_cout_hebergement"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_cout_hebergement"];
+ res.locals["personne_"+toto+"_cout_transport"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_cout_transport"];
+ res.locals["personne_"+toto+"_activite_cout"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_activite_cout"];
+ res.locals["personne_"+toto+"_observation_cout"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_observation_cout"];
+ res.locals["personne_"+toto+"_cours_cout"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_cours_cout"];
+ res.locals["personne_"+toto+"_campado_cout"] = infos_adherents[rowToBeUpdate]["personne_"+toto+"_campado_cout"];
+ }
+ res.locals.cout_total = infos_adherents[rowToBeUpdate].cout_total;
+ res.locals.remise = infos_adherents[rowToBeUpdate].remise;
+ res.locals.accompte_frais_bancaire = infos_adherents[rowToBeUpdate].accompte_frais_bancaire;
+ res.locals.montant_accompte = infos_adherents[rowToBeUpdate].inscription_accompte_paiement_montant;
+
+ if (!infos_adherents[rowToBeUpdate].identifiant) {
+ res.locals.error = "Il y a eu une erreur lors de l'ajout de votre inscription dans la base de données du stage, veuillez contacter l'association Suzuki par mail pour le signaler à l'adresse StgNational@gmail.com";
+ }
+
+ res.render('stagenat/page_templates/paiement_reussi.ejs');
+}
+
+
+/////////////////////////////////////////////////
+// RETOUR PAIEMENT ECHOUE
+// CLICK SUR BOUTON RECOMMENCER
+const SN_accompte_annule = async function(req, res) {
+
+
+
+ logger.info("======================================");
+ logger.info("======== FUNCTION SN_accompte_echoue ==========");
+ logger.info("======================================");
+
+ // RETOUR STRIPE
+ var id = req.query.id;
+
+ logger.info("id : " + id, { numsession: req.session.id });
+
+ const session_stripe = await stripe.checkout.sessions.retrieve(id);
+
+ var customer_email = session_stripe.customer_email;
+ var payment_status = session_stripe.payment_status;
+ var amount_total = session_stripe.amount_total/100;
+ var stripe_customer = session_stripe.customer;
+ var stripe_payment_intent = session_stripe.payment_intent;
+ var payment_method_types = session_stripe.payment_method_types;
+ var stripe_status = session_stripe.status;
+ var identifiant = session_stripe.metadata.identifiant;
+ var CB_retour = "identifiant_adherent:"+identifiant+",payment_status:"+payment_status+",stripe_customer:"+stripe_customer+",stripe_payment_intent:"+stripe_payment_intent+",sessionID:"+session_stripe.id+",payment_method_types:"+payment_method_types+",amount_total:"+amount_total+",stripe_status:"+stripe_status;
+ logger.info("cookiesessionid APRES Stripe :" + session_stripe.metadata.cookiesessionid, { numsession: req.session.id });
+ var cookiesessionid = session_stripe.metadata.cookiesessionid;
+
+ logger.info("payment_status : " + payment_status, { numsession: req.session.id });
+
+
+ //////////////////////////////////////////////////////////////////////////////
+ // RÉCUPÉRATION DES INFOS STAGIAIRES DANS LA GOOGLE SHEET
+ // ANNULATION DE L'INSCRIT DANS LA BASE DE DONNÉES GSHEET
+ // GSHEET "identifiant" = ANNULE / "paye" = echec
+
+
+ await GS_stagean.useServiceAccountAuth(GS_creds_stagean);
+ await GS_stagean.loadInfo(); // loads document properties and worksheets
+ console.log("NOM FICHIER SHEET: ",GS_stagean.title); //nom du fichier
+ const GS_SN_sheet = GS_stagean.sheetsByTitle['inscription_web'];
+ logger.info("NOM DU TABLEAU (ONGLET): " + GS_SN_sheet.title, { numsession: req.session.id });
+
+ // on récupère le contenu de la GSheet dans un array nommé "infos_adherents"
+ const infos_adherents = await GS_SN_sheet.getRows();
+ // on récupère quelle ligne contient l'identifiant concerné pour mettre à jour cette ligne
+ let list_identifiants = new Array;
+ let compteur = GS_SN_sheet.rowCount - 1;
+ let rowToBeUpdate;
+ logger.info("identifiant TRANSMIS PAR STRIPE :" + identifiant, { numsession: req.session.id });
+ for (let i=0; i
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AFPS - Adhésion
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{#each membres}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Association Française pour la pédagogie Suzuki
+
+
+
Chez Anne PAGES 30 rue des Tattes 74500 PUBLIER afpedagogiesuzuki@gmail.com
+
+
+
SIRET : 507 569 952 00033
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
CARTE {{this.type_card}}
+
+
+
Association Française pour la pédagogie Suzuki
+
+
+
+
+
+
IDENTIFIANT : {{this.identifiant}}
+
+
+
+
+ {{this.profil1}}
+ {{this.profil2}}
+ {{this.profil3}}
+
+
+
+
+
{{this.adherent_paiement_mode}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{/each}}
+
+
\ No newline at end of file
diff --git a/pdf/template/don_justificatif.html b/pdf/template/don_justificatif.html
new file mode 100644
index 0000000..ab92567
--- /dev/null
+++ b/pdf/template/don_justificatif.html
@@ -0,0 +1,316 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AFPS - Adhésion
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{#each donneur}}
+
+
+
+
+
+
+
+
+
+
+
+
AFPS - Association Française pour la Pédagogie Suzuki
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Siège social : Chez Anne PAGES 30 rue des Tattes 74500 PUBLIER afpedagogiesuzuki@gmail.com Site web : www.afpedagogiesuzuki.fr
+
+
+
Numéro SIRET : 507 569 952 00033
+
+
+
+
+
+
+
+
Nous accusons réception de votre don à l’Association Française pour la pédagogie Suzuki. L’Association vous remercie chaleureusement.
+
+
+
+
+
+
Identifiant : {{this.identifiant}}
+
Nom : {{this.nom}} {{this.prenom}}
+
Adresse : {{this.adresse}}
+
Mode de paiement : {{this.adherent_paiement_mode}}
+
Don unique le : {{this.today}}
+
+
Montant de votre don : {{this.montant_don}} euros
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{/each}}
+
+
\ No newline at end of file
diff --git a/public/css/app.css b/public/css/app.css
new file mode 100644
index 0000000..bf76bb3
--- /dev/null
+++ b/public/css/app.css
@@ -0,0 +1,1450 @@
+/* CSS de base */
+body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, form, fieldset, blockquote, main, article, aside, section {
+ margin: 0px 0px 0px 0px;
+ padding: 0px 0px 0px 0px;
+}
+
+li, ul {
+ list-style: none;
+}
+
+a {
+ color: inherit;
+ text-decoration: none;
+}
+
+body {
+ font-family: cabin_regular;
+}
+
+/* SCSS */
+/* VARIABLES */
+/* COLORS */
+.rouge {
+ color: #E73058 !important;
+}
+
+.bg_green {
+ background-color: green !important;
+}
+
+/* CSS */
+/* fonts */
+@font-face {
+ font-family: "cabin_semibolditalic";
+ src: url("../fonts/cabin_semibolditalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "cabin_mediumitalic";
+ src: url("../fonts/cabin_mediumitalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "cabin_bolditalic";
+ src: url("../fonts/cabin_bolditalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "cabin_semibold";
+ src: url("../fonts/cabin_semibold.ttf") format("truetype");
+}
+@font-face {
+ font-family: "cabin_regular";
+ src: url("../fonts/cabin_regular.ttf") format("truetype");
+}
+@font-face {
+ font-family: "cabin_medium";
+ src: url("../fonts/cabin_medium.ttf") format("truetype");
+}
+@font-face {
+ font-family: "cabin_italic";
+ src: url("../fonts/cabin_italic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "cabin_bold";
+ src: url("../fonts/cabin_bold.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_semibolditalic";
+ src: url("../fonts/sourceserifpro_semibolditalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_extralightitalic";
+ src: url("../fonts/sourceserifpro_extralightitalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_regular";
+ src: url("../fonts/sourceserifpro_regular.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_lightitalic";
+ src: url("../fonts/sourceserifpro_lightitalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_bold";
+ src: url("../fonts/sourceserifpro_bold.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_blackitalic";
+ src: url("../fonts/sourceserifpro_blackitalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_italic";
+ src: url("../fonts/sourceserifpro_italic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_light";
+ src: url("../fonts/sourceserifpro_light.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_black";
+ src: url("../fonts/sourceserifpro_black.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_semibold";
+ src: url("../fonts/sourceserifpro_semibold.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_bolditalic";
+ src: url("../fonts/sourceserifpro_bolditalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "sourceserifpro_extralight";
+ src: url("../fonts/sourceserifpro_extralight.ttf") format("truetype");
+}
+@font-face {
+ font-family: "playfairdisplay_blackitalic";
+ src: url("../fonts/playfairdisplay_blackitalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "playfairdisplay_bolditalic";
+ src: url("../fonts/playfairdisplay_bolditalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "playfairdisplay_regular";
+ src: url("../fonts/playfairdisplay_regular.ttf") format("truetype");
+}
+@font-face {
+ font-family: "playfairdisplay_italic";
+ src: url("../fonts/playfairdisplay_italic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "playfairdisplay_black";
+ src: url("../fonts/playfairdisplay_black.ttf") format("truetype");
+}
+@font-face {
+ font-family: "playfairdisplay_bold";
+ src: url("../fonts/playfairdisplay_bold.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_extrabolditalic";
+ src: url("../fonts/montserrat_extrabolditalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_semibolditalic";
+ src: url("../fonts/montserrat_semibolditalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_italic";
+ src: url("../fonts/montserrat_italic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_regular";
+ src: url("../fonts/montserrat_regular.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_black";
+ src: url("../fonts/montserrat_black.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montsermontserrat_extraboldrat_regular";
+ src: url("../fonts/montserrat_extrabold.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_extralightitalic";
+ src: url("../fonts/montserrat_extralightitalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_semibold";
+ src: url("../fonts/montserrat_semibold.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_blackitalic";
+ src: url("../fonts/montserrat_blackitalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_mediumitalic";
+ src: url("../fonts/montserrat_mediumitalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_bold";
+ src: url("../fonts/montserrat_bold.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_thin";
+ src: url("../fonts/montserrat_thin.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_extralight";
+ src: url("../fonts/montserrat_extralight.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_thinitalic";
+ src: url("../fonts/montserrat_thinitalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_light";
+ src: url("../fonts/montserrat_light.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_bolditalic";
+ src: url("../fonts/montserrat_bolditalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_medium";
+ src: url("../fonts/montserrat_medium.ttf") format("truetype");
+}
+@font-face {
+ font-family: "montserrat_lightitalic";
+ src: url("../fonts/montserrat_lightitalic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "ubuntu_bold";
+ src: url("../fonts/ubuntu_bold.ttf") format("truetype");
+}
+@font-face {
+ font-family: "ubuntu_courant";
+ src: url("../fonts/ubuntu_courant.ttf") format("truetype");
+}
+@font-face {
+ font-family: "ubuntu_fin";
+ src: url("../fonts/ubuntu_fin.ttf") format("truetype");
+}
+@font-face {
+ font-family: "ubuntu_fin_italic";
+ src: url("../fonts/ubuntu_leger_italic.ttf") format("truetype");
+}
+@font-face {
+ font-family: "ubuntu_leger";
+ src: url("../fonts/ubuntu_leger.ttf") format("truetype");
+}
+@font-face {
+ font-family: "ubuntu_moyen";
+ src: url("../fonts/ubuntu_moyen.ttf") format("truetype");
+}
+@font-face {
+ font-family: "ubuntu_moyen_italique";
+ src: url("../fonts/ubuntu-moyen_italique.ttf") format("truetype");
+}
+.gras {
+ font-family: cabin_bold;
+}
+
+/* ***************************************** */
+/* ***************************************** */
+/* ESPACE ENTRE LES BLOCS */
+/* ***************************************** */
+/* ***************************************** */
+.space30 {
+ height: 30px;
+}
+
+main {
+ max-width: 1800px;
+ margin-left: auto;
+ margin-right: auto;
+ margin-top: 85px;
+}
+@media (min-width: 1200px) {
+ main {
+ min-height: 400px;
+ }
+}
+@media (max-width: 1200px) {
+ main {
+ min-height: 340px;
+ }
+}
+@media (max-width: 600px) {
+ main {
+ min-height: 230px;
+ }
+}
+
+.header_tunnel {
+ max-width: 1800px;
+ margin-left: auto;
+ margin-right: auto;
+}
+.header_tunnel .logo {
+ margin-top: 30px;
+ margin-bottom: 70px;
+}
+.header_tunnel .logo img {
+ max-width: 100%;
+}
+
+header {
+ max-width: 1800px;
+ margin-left: auto;
+ margin-right: auto;
+}
+header .logo {
+ margin-top: 30px;
+ margin-bottom: 70px;
+}
+header .logo img {
+ max-width: 100%;
+}
+
+.displaynone {
+ display: none;
+}
+
+.ouvrir {
+ display: block !important;
+}
+
+.savoirplus_icone {
+ width: 14px;
+ margin-bottom: -2px;
+}
+
+.close_icone {
+ width: 18px;
+ margin-bottom: 10px;
+}
+
+.savoirplus_content {
+ margin-top: 30px;
+ background-color: #fefefe;
+ padding: 20px;
+ border: 5px solid #E73058;
+ border-radius: 20px;
+}
+@media (max-width: 600px) {
+ .savoirplus_content {
+ padding: 10px;
+ }
+}
+.savoirplus_content ol {
+ margin-left: 20px;
+}
+.savoirplus_content ol li {
+ list-style-type: decimal;
+}
+.savoirplus_content ul {
+ margin-left: 20px;
+}
+.savoirplus_content ul li {
+ list-style-type: circle;
+}
+.savoirplus_content .gras {
+ font-family: cabin_semibold;
+}
+.savoirplus_content .souligne {
+ text-decoration: underline;
+}
+.savoirplus_content .rouge {
+ color: #E73058;
+}
+
+.savoirplus_accueil {
+ width: 80%;
+ margin-top: 150px;
+ margin-right: auto;
+ margin-left: auto;
+}
+@media (max-width: 600px) {
+ .savoirplus_accueil {
+ width: 95%;
+ }
+}
+.savoirplus_accueil .savoirplus_button {
+ text-align: center;
+ text-decoration: underline;
+}
+.savoirplus_accueil .savoirplus_button:hover {
+ cursor: pointer;
+}
+
+.savoirplus_stage {
+ width: 80%;
+ margin-top: 15px;
+ margin-bottom: 48px;
+ margin-right: auto;
+ margin-left: auto;
+}
+@media (max-width: 600px) {
+ .savoirplus_stage {
+ width: 95%;
+ }
+}
+
+.titre {
+ margin-bottom: 100px;
+}
+@media (max-width: 600px) {
+ .titre {
+ margin-left: 10px;
+ margin-right: 10px;
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .titre {
+ margin-left: 20px;
+ margin-right: 20px;
+ }
+}
+.titre h1 {
+ margin-bottom: 9px;
+ text-align: center;
+ font-family: cabin_semibold;
+ font-size: 24px;
+}
+.titre p {
+ text-align: center;
+ font-family: cabin_bold;
+ font-size: 24px;
+ color: #1c1c1c;
+}
+.titre p .soft {
+ font-family: cabin_semibold;
+ color: #707070;
+}
+
+/* ***************************************** */
+/* ***************************************** */
+/* LE FOOTER */
+/* ***************************************** */
+/* ***************************************** */
+footer {
+ min-height: 300px;
+ margin-top: 100px;
+ background-color: #343434;
+ padding: 15px;
+ display: grid;
+}
+footer .version {
+ align-self: end;
+ color: white;
+ text-align: end;
+ font-size: 11px;
+}
+
+/* ***************************************** */
+/* ***************************************** */
+/* INPUT */
+/* ***************************************** */
+/* ***************************************** */
+/* FORMAT DE LA STRUCTURE DU CHAMP DE SAISIE */
+/* ***************************************** */
+.input_box {
+ position: relative;
+}
+.input_box label {
+ position: absolute;
+ top: -12px;
+ left: 6px;
+ margin-left: 6px;
+ padding-left: 7px;
+ padding-right: 10px;
+ background-color: white;
+}
+.input_box .labeltextarea {
+ top: -28px;
+}
+.input_box input[type=email] {
+ padding-top: 19px;
+ padding-bottom: 16px;
+ padding-left: 16px;
+ padding-right: 13px;
+ background-color: white;
+ border: 2px solid #454343;
+ outline: none;
+ border-radius: 5px;
+ color: #454343;
+}
+.input_box input[type=email]:focus-visible, .input_box input[type=email]:focus, .input_box input[type=email]:focus-within, .input_box input[type=email]:hover, .input_box input[type=email]:focus, .input_box input[type=email]:active, .input_box input[type=email]:visited, .input_box input[type=email]:target {
+ background-color: white !important;
+ border: 2px solid #454343;
+ outline: none;
+}
+.input_box input[type=email]:-webkit-autofill, .input_box input[type=email]:-webkit-autofill:hover, .input_box input[type=email]:-webkit-autofill:focus, .input_box input[type=email]:-webkit-autofill:active, .input_box input[type=email]:-webkit-autofill:focus-visible, .input_box input[type=email]:-webkit-autofill:focus-within, .input_box input[type=email]:-webkit-autofill:visited, .input_box input[type=email]:target {
+ box-shadow: 0 0 0 30px white inset !important;
+}
+.input_box input, .input_box input[type=text], .input_box input[type=tel], .input_box input[type=date], .input_box textarea {
+ max-width: 500px;
+ padding-top: 14px;
+ padding-bottom: 6px;
+ padding-left: 10px;
+ padding-right: 8px;
+ background-color: white;
+ border-radius: 5px;
+ outline: none;
+}
+@media (max-width: 600px) {
+ .input_box input, .input_box input[type=text], .input_box input[type=tel], .input_box input[type=date], .input_box textarea {
+ min-width: 240px;
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .input_box input, .input_box input[type=text], .input_box input[type=tel], .input_box input[type=date], .input_box textarea {
+ min-width: 250px;
+ }
+}
+@media (min-width: 1200px) {
+ .input_box input, .input_box input[type=text], .input_box input[type=tel], .input_box input[type=date], .input_box textarea {
+ min-width: 330px;
+ }
+}
+.input_box input:focus-visible, .input_box input:focus, .input_box input:focus-within, .input_box input:hover, .input_box input:focus, .input_box input:active, .input_box input:visited, .input_box input:target, .input_box input[type=text]:focus-visible, .input_box input[type=text]:focus, .input_box input[type=text]:focus-within, .input_box input[type=text]:hover, .input_box input[type=text]:focus, .input_box input[type=text]:active, .input_box input[type=text]:visited, .input_box input[type=text]:target, .input_box input[type=tel]:focus-visible, .input_box input[type=tel]:focus, .input_box input[type=tel]:focus-within, .input_box input[type=tel]:hover, .input_box input[type=tel]:focus, .input_box input[type=tel]:active, .input_box input[type=tel]:visited, .input_box input[type=tel]:target, .input_box input[type=date]:focus-visible, .input_box input[type=date]:focus, .input_box input[type=date]:focus-within, .input_box input[type=date]:hover, .input_box input[type=date]:focus, .input_box input[type=date]:active, .input_box input[type=date]:visited, .input_box input[type=date]:target, .input_box textarea:focus-visible, .input_box textarea:focus, .input_box textarea:focus-within, .input_box textarea:hover, .input_box textarea:focus, .input_box textarea:active, .input_box textarea:visited, .input_box textarea:target {
+ background-color: white !important;
+ border: 2px solid #454343;
+ outline: none;
+}
+.input_box input:-webkit-autofill, .input_box input:-webkit-autofill:hover, .input_box input:-webkit-autofill:focus, .input_box input:-webkit-autofill:active, .input_box input:-webkit-autofill:focus-visible, .input_box input:-webkit-autofill:focus-within, .input_box input:-webkit-autofill:visited, .input_box input:target, .input_box input[type=text]:-webkit-autofill, .input_box input[type=text]:-webkit-autofill:hover, .input_box input[type=text]:-webkit-autofill:focus, .input_box input[type=text]:-webkit-autofill:active, .input_box input[type=text]:-webkit-autofill:focus-visible, .input_box input[type=text]:-webkit-autofill:focus-within, .input_box input[type=text]:-webkit-autofill:visited, .input_box input[type=text]:target, .input_box input[type=tel]:-webkit-autofill, .input_box input[type=tel]:-webkit-autofill:hover, .input_box input[type=tel]:-webkit-autofill:focus, .input_box input[type=tel]:-webkit-autofill:active, .input_box input[type=tel]:-webkit-autofill:focus-visible, .input_box input[type=tel]:-webkit-autofill:focus-within, .input_box input[type=tel]:-webkit-autofill:visited, .input_box input[type=tel]:target, .input_box input[type=date]:-webkit-autofill, .input_box input[type=date]:-webkit-autofill:hover, .input_box input[type=date]:-webkit-autofill:focus, .input_box input[type=date]:-webkit-autofill:active, .input_box input[type=date]:-webkit-autofill:focus-visible, .input_box input[type=date]:-webkit-autofill:focus-within, .input_box input[type=date]:-webkit-autofill:visited, .input_box input[type=date]:target, .input_box textarea:-webkit-autofill, .input_box textarea:-webkit-autofill:hover, .input_box textarea:-webkit-autofill:focus, .input_box textarea:-webkit-autofill:active, .input_box textarea:-webkit-autofill:focus-visible, .input_box textarea:-webkit-autofill:focus-within, .input_box textarea:-webkit-autofill:visited, .input_box textarea:target {
+ box-shadow: 0 0 0 30px white inset !important;
+}
+.input_box select {
+ max-width: 500px;
+ padding-top: 14px;
+ padding-bottom: 6px;
+ padding-left: 10px;
+ padding-right: 8px;
+ background-color: white;
+ border-radius: 5px;
+ outline: none;
+}
+@media (max-width: 600px) {
+ .input_box select {
+ min-width: 261px;
+ max-width: 261px;
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .input_box select {
+ min-width: 272px;
+ }
+}
+@media (min-width: 1200px) {
+ .input_box select {
+ min-width: 350px;
+ }
+}
+.input_box select:focus-visible, .input_box select:focus, .input_box select:focus-within, .input_box select:hover, .input_box select:focus, .input_box select:active, .input_box select:visited, .input_box select:target {
+ background-color: white !important;
+ border: 2px solid #454343;
+ outline: none;
+}
+.input_box select:-webkit-autofill, .input_box select:-webkit-autofill:hover, .input_box select:-webkit-autofill:focus, .input_box select:-webkit-autofill:active, .input_box select:-webkit-autofill:focus-visible, .input_box select:-webkit-autofill:focus-within, .input_box select:-webkit-autofill:visited, .input_box select:target {
+ box-shadow: 0 0 0 30px white inset !important;
+}
+
+.input_box_gris label {
+ color: #707070;
+}
+.input_box_gris input, .input_box_gris input[type=text], .input_box_gris input[type=tel], .input_box_gris input[type=date], .input_box_gris select, .input_box_gris textarea {
+ border: 1.8px solid #707070;
+}
+
+.input_box_bleu label {
+ color: #7984D1;
+}
+.input_box_bleu input, .input_box_bleu input[type=text], .input_box_bleu input[type=tel], .input_box_bleu input[type=date], .input_box_bleu select, .input_box_bleu textarea {
+ border: 1.8px solid #1B299A;
+}
+
+/* FORMAT DU CONTENUE DU CHAMP DE SAISIE */
+/* ***************************************** */
+.input_email {
+ margin-bottom: 11px;
+}
+.input_email input[type=email], .input_email input[type=text] {
+ max-width: 500px;
+ font-family: montserrat_light;
+ font-size: 15px;
+}
+@media (max-width: 600px) {
+ .input_email input[type=email], .input_email input[type=text] {
+ min-width: 240px;
+ }
+}
+@media (min-width: 600px) {
+ .input_email input[type=email], .input_email input[type=text] {
+ min-width: 330px;
+ }
+}
+@media (max-width: 600px) {
+ .input_email input[type=email], .input_email input[type=text] {
+ font-size: 12px;
+ }
+}
+.input_email input[type=email]::placeholder, .input_email input[type=text]::placeholder {
+ font-family: cabin_italic;
+ font-size: 12px;
+ color: #A2A0A0;
+}
+
+.input_identifiant {
+ margin-bottom: 11px;
+}
+.input_identifiant .inputbox_identifiant {
+ max-width: 500px;
+ padding-top: 19px !important;
+ padding-bottom: 16px !important;
+ padding-left: 16px !important;
+ padding-right: 13px !important;
+ background-color: white !important;
+ border: 2px solid #454343 !important;
+ outline: none;
+ color: #454343;
+}
+@media (max-width: 600px) {
+ .input_identifiant .inputbox_identifiant {
+ min-width: 240px;
+ }
+}
+@media (min-width: 600px) {
+ .input_identifiant .inputbox_identifiant {
+ min-width: 330px;
+ }
+}
+.input_identifiant .inputbox_identifiant:focus-visible, .input_identifiant .inputbox_identifiant:focus, .input_identifiant .inputbox_identifiant:focus-within, .input_identifiant .inputbox_identifiant:hover, .input_identifiant .inputbox_identifiant:focus, .input_identifiant .inputbox_identifiant:active, .input_identifiant .inputbox_identifiant:visited, .input_identifiant .inputbox_identifiant:target {
+ background-color: white !important;
+ border: 2px solid #454343;
+ outline: none;
+}
+.input_identifiant .inputbox_identifiant:-webkit-autofill, .input_identifiant .inputbox_identifiant:-webkit-autofill:hover, .input_identifiant .inputbox_identifiant:-webkit-autofill:focus, .input_identifiant .inputbox_identifiant:-webkit-autofill:active, .input_identifiant .inputbox_identifiant:-webkit-autofill:focus-visible, .input_identifiant .inputbox_identifiant:-webkit-autofill:focus-within, .input_identifiant .inputbox_identifiant:-webkit-autofill:visited, .input_identifiant .inputbox_identifiant:target {
+ box-shadow: 0 0 0 30px white inset !important;
+}
+@media (max-width: 600px) {
+ .input_identifiant .inputbox_identifiant {
+ font-size: 12px;
+ }
+}
+.input_identifiant .inputbox_identifiant::placeholder {
+ font-family: cabin_italic;
+ font-size: 12px;
+ color: #A2A0A0;
+}
+
+.input_text label {
+ font-size: 14px;
+}
+@media (max-width: 600px) {
+ .input_text label {
+ font-size: 13px;
+ }
+}
+.input_text input, .input_text input[type=text], .input_text input[type=tel], .input_text input[type=date], .input_text select, .input_text textarea {
+ font-family: cabin_regular;
+ font-size: 14px;
+ color: #1c1c1c;
+}
+@media (max-width: 600px) {
+ .input_text input, .input_text input[type=text], .input_text input[type=tel], .input_text input[type=date], .input_text select, .input_text textarea {
+ font-size: 13px;
+ }
+}
+.input_text input:-webkit-autofill, .input_text input:-webkit-autofill:hover, .input_text input:-webkit-autofill:focus, .input_text input:-webkit-autofill:active, .input_text input:-webkit-autofill:focus-visible, .input_text input:-webkit-autofill:focus-within, .input_text input:-webkit-autofill:visited, .input_text input:target, .input_text input[type=text]:-webkit-autofill, .input_text input[type=text]:-webkit-autofill:hover, .input_text input[type=text]:-webkit-autofill:focus, .input_text input[type=text]:-webkit-autofill:active, .input_text input[type=text]:-webkit-autofill:focus-visible, .input_text input[type=text]:-webkit-autofill:focus-within, .input_text input[type=text]:-webkit-autofill:visited, .input_text input[type=text]:target, .input_text input[type=tel]:-webkit-autofill, .input_text input[type=tel]:-webkit-autofill:hover, .input_text input[type=tel]:-webkit-autofill:focus, .input_text input[type=tel]:-webkit-autofill:active, .input_text input[type=tel]:-webkit-autofill:focus-visible, .input_text input[type=tel]:-webkit-autofill:focus-within, .input_text input[type=tel]:-webkit-autofill:visited, .input_text input[type=tel]:target, .input_text input[type=date]:-webkit-autofill, .input_text input[type=date]:-webkit-autofill:hover, .input_text input[type=date]:-webkit-autofill:focus, .input_text input[type=date]:-webkit-autofill:active, .input_text input[type=date]:-webkit-autofill:focus-visible, .input_text input[type=date]:-webkit-autofill:focus-within, .input_text input[type=date]:-webkit-autofill:visited, .input_text input[type=date]:target, .input_text select:-webkit-autofill, .input_text select:-webkit-autofill:hover, .input_text select:-webkit-autofill:focus, .input_text select:-webkit-autofill:active, .input_text select:-webkit-autofill:focus-visible, .input_text select:-webkit-autofill:focus-within, .input_text select:-webkit-autofill:visited, .input_text select:target, .input_text textarea:-webkit-autofill, .input_text textarea:-webkit-autofill:hover, .input_text textarea:-webkit-autofill:focus, .input_text textarea:-webkit-autofill:active, .input_text textarea:-webkit-autofill:focus-visible, .input_text textarea:-webkit-autofill:focus-within, .input_text textarea:-webkit-autofill:visited, .input_text textarea:target {
+ -webkit-text-fill-color: #1c1c1c;
+}
+.input_text input::placeholder, .input_text input[type=text]::placeholder, .input_text input[type=tel]::placeholder, .input_text input[type=date]::placeholder, .input_text select::placeholder, .input_text textarea::placeholder {
+ font-family: cabin_italic;
+ font-size: 12px;
+ color: #A2A0A0;
+}
+
+/* ***************************************** */
+/* ***************************************** */
+/* CHECKBOX */
+/* ***************************************** */
+/* ***************************************** */
+.input_checkbox label {
+ margin-left: 5px;
+ font-size: 14px;
+ color: #707070;
+}
+@media (max-width: 600px) {
+ .input_checkbox label {
+ font-size: 13px;
+ }
+}
+.input_checkbox input[type=checkbox] {
+ appearance: none;
+ width: 17px;
+ height: 17px;
+ margin: 0;
+ transform: translateY(3.9px);
+ border: 0.15em solid #E73058;
+ border-radius: 3px;
+ font: inherit;
+}
+.input_checkbox input[type=checkbox]:checked {
+ background-color: #E73058;
+}
+
+/* ***************************************** */
+/* ***************************************** */
+/* BUTTONS */
+/* ***************************************** */
+/* ***************************************** */
+.button_icone {
+ appearance: none;
+ width: 170px;
+ height: 60px;
+ margin: 0;
+ box-shadow: -10px 16px 24px -18px rgba(0, 0, 0, 0.6);
+ border: none;
+ border-radius: 28px;
+ font: inherit;
+ background-color: #E73058;
+ color: white;
+}
+.button_icone .btn_icone {
+ font-family: montserrat_regular;
+ font-size: 36px;
+}
+.button_icone .btn_texte {
+ display: inline-block;
+ transform: translateY(-7px);
+ padding-left: 10px;
+ font-size: 17px;
+}
+
+.button_text {
+ appearance: none;
+ width: 100px;
+ height: 35px;
+ margin: 0;
+ box-shadow: -10px 16px 24px -18px rgba(0, 0, 0, 0.6);
+ border: none;
+ border-radius: 20px;
+ font: inherit;
+ background-color: #E73058;
+ color: white;
+ font-size: 15px;
+}
+
+.button_sansicone .btn_texte {
+ transform: translateY(0px);
+ padding-left: 0px;
+}
+
+.erreur {
+ max-width: 500px;
+ display: flex;
+ flex-direction: column;
+ margin-left: auto;
+ margin-right: auto;
+ margin-bottom: 70px;
+ text-align: center;
+}
+@media (max-width: 600px) {
+ .erreur {
+ margin-left: 10px;
+ margin-right: 10px;
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .erreur {
+ margin-left: auto;
+ margin-right: auto;
+ }
+}
+.erreur p {
+ margin-bottom: 15px;
+ color: #E73058;
+}
+.erreur .souligne {
+ text-decoration: underline;
+}
+
+.form_check_mail {
+ display: grid;
+ grid-template-columns: 2fr 1fr 2fr;
+ grid-template-rows: auto auto auto;
+ grid-template-areas: ". input ." ". checkbox checkbox" ". button .";
+}
+.form_check_mail .input_email {
+ grid-area: input;
+}
+.form_check_mail .input_checkbox {
+ grid-area: checkbox;
+ margin-top: 5px;
+ margin-left: 5px;
+ margin-bottom: 35px;
+}
+.form_check_mail .input_checkbox .gras {
+ font-family: cabin_semibold;
+ color: #343434;
+}
+.form_check_mail button {
+ grid-area: button;
+ justify-self: center;
+}
+
+.open_modal {
+ display: grid;
+ justify-content: center;
+ margin-top: 150px;
+ text-decoration: underline;
+}
+.open_modal p:hover {
+ cursor: pointer;
+}
+
+.prelude {
+ /*display: grid;*/
+ /*justify-content: center;*/
+ /*margin-top: 150px;*/
+ /* **************************************************************** */
+ /* ** POUR FENETRE MODALE ** */
+ /* **************************************************************** */
+ display: none; /* Hidden by default */
+ position: fixed; /* Stay in place */
+ z-index: 1; /* Sit on top */
+ padding-top: 150px; /* Location of the box */
+ left: 0;
+ top: 0;
+ width: 100%; /* Full width */
+ height: 100%; /* Full height */
+ overflow: auto; /* Enable scroll if needed */
+ background-color: rgb(0, 0, 0); /* Fallback color */
+ background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
+ /* **************************************************************** */
+ font-family: cabin_regular;
+ font-size: 15px;
+}
+.prelude .prelude_content {
+ /*max-width: 700px;*/
+ /* **************************************************************** */
+ /* ** POUR FENETRE MODALE ** */
+ /* **************************************************************** */
+ background-color: #fefefe;
+ margin: auto;
+ padding: 20px;
+ border: 5px solid #E73058;
+ border-radius: 20px;
+ width: 80%;
+ /* **************************************************************** */
+}
+.prelude ol {
+ margin-left: 20px;
+}
+.prelude ol li {
+ list-style-type: decimal;
+}
+.prelude ul {
+ margin-left: 20px;
+}
+.prelude ul li {
+ list-style-type: circle;
+}
+.prelude .gras {
+ font-family: cabin_semibold;
+}
+
+.prelude_close {
+ float: right;
+ margin-top: -25px;
+ font-size: 50px;
+ color: #E73058;
+}
+
+.prelude_close:hover,
+.prelude_close:focus {
+ cursor: pointer;
+ color: #E73058;
+ text-decoration: none;
+}
+
+/* ***************************************** */
+/* ***************************************** */
+/* ADHESION */
+/* PAGE ACCUEIL SAISIE DU MAIL */
+/* ***************************************** */
+/* ***************************************** */
+/* **************************************************************** */
+/* ** OUVRIR EN SAVOIR PLUS ** */
+/* **************************************************************** */
+.form_adhesion {
+ display: grid;
+ justify-content: center;
+}
+@media (min-width: 600px) {
+ .form_adhesion {
+ margin-left: 30px;
+ margin-right: 30px;
+ }
+}
+@media (max-width: 600px) {
+ .form_adhesion {
+ margin-left: 11px;
+ margin-right: 10px;
+ }
+}
+.form_adhesion .input_checkbox {
+ margin-bottom: 37px;
+}
+.form_adhesion .explication {
+ max-width: 300px;
+ margin-bottom: 35px;
+ color: #101D77;
+}
+.form_adhesion .ajout_ecole_button {
+ margin-top: -35px;
+ margin-bottom: 30px;
+ text-decoration: underline;
+ font-family: montserrat_light;
+ font-size: 12px;
+}
+.form_adhesion .ajout_ecole_button:hover {
+ cursor: pointer;
+}
+
+.grid_3inputs {
+ display: grid;
+ grid-template-columns: minmax(auto, 350px) minmax(auto, 350px) minmax(auto, 350px);
+ grid-template-rows: auto;
+ column-gap: 20px;
+ row-gap: 30px;
+ margin-bottom: 50px;
+ margin-top: 10px;
+}
+@media (max-width: 600px) {
+ .grid_3inputs {
+ grid-template-columns: minmax(auto, 350px);
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .grid_3inputs {
+ grid-template-columns: minmax(auto, 350px) minmax(auto, 350px);
+ }
+}
+
+.grid_2inputs {
+ display: grid;
+ grid-template-columns: minmax(auto, 350px) minmax(auto, 350px);
+ grid-template-rows: auto;
+ column-gap: 20px;
+ row-gap: 30px;
+ margin-bottom: 35px;
+}
+@media (max-width: 600px) {
+ .grid_2inputs {
+ grid-template-columns: minmax(auto, 350px);
+ }
+}
+
+.paiement_explication {
+ max-width: 500px;
+ margin-top: 20px;
+ padding: 11px;
+ border-radius: 16px;
+ background-color: rgba(231, 48, 88, 0.1294117647);
+ font-size: 12px;
+ color: #707070;
+}
+@media (max-width: 600px) {
+ .paiement_explication {
+ max-width: 242px;
+ }
+}
+
+.hidden {
+ display: none;
+}
+
+.identifiant {
+ padding-left: 5px;
+ font-family: cabin_regular;
+ color: #707070;
+}
+@media (max-width: 600px) {
+ .identifiant {
+ display: block;
+ margin-top: 5px;
+ }
+}
+
+.paiement_container {
+ display: grid;
+ grid-column-gap: 20px;
+ grid-template-columns: 1fr 2fr 1fr;
+ grid-template-areas: ". paiement .";
+}
+@media (max-width: 600px) {
+ .paiement_container {
+ grid-column-gap: unset;
+ }
+}
+@media (max-width: 600px) {
+ .paiement_container {
+ grid-template-columns: minmax(5px, 300px) minmax(277px, 600px) minmax(10px, 300px);
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .paiement_container {
+ grid-template-columns: minmax(10px, 300px) minmax(300px, 600px) minmax(10px, 300px);
+ }
+}
+.paiement_container .paiement {
+ grid-area: paiement;
+ border: 2px solid #E73058;
+ display: grid;
+ grid-column-gap: 20px;
+ grid-row-gap: 15px;
+ grid-template-columns: 1fr 3fr 4fr;
+ grid-template-rows: auto auto auto auto auto auto auto auto auto;
+ grid-template-areas: "paiement_titre paiement_titre paiement_titre" ". montant_cotisation_label montant_cotisation_euros_box" ". montant_don_label montant_don_euros_box" ". . don" ". montant_total_label montant_total_euros_box" ". paiement_mode ." ". paiement_mode_choix paiement_mode_choix_nocb" ". paiement_cb paiement_cb" ". paiement_nocb_form paiement_nocb_form";
+}
+@media (max-width: 600px) {
+ .paiement_container .paiement {
+ grid-column-gap: unset;
+ }
+}
+@media (max-width: 600px) {
+ .paiement_container .paiement {
+ grid-template-columns: 10px 4fr 3fr;
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .paiement_container .paiement {
+ grid-template-columns: 0px 3fr 4fr;
+ }
+}
+@media (max-width: 600px) {
+ .paiement_container .paiement {
+ grid-template-areas: "paiement_titre paiement_titre paiement_titre" ". montant_cotisation_label montant_cotisation_euros_box" ". montant_don_label montant_don_euros_box" ". don don" ". montant_total_label montant_total_euros_box" ". paiement_mode ." ". paiement_mode_choix paiement_mode_choix_nocb" ". paiement_cb paiement_cb" ". paiement_nocb_form paiement_nocb_form";
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .paiement_container .paiement {
+ grid-template-areas: "paiement_titre paiement_titre paiement_titre" ". montant_cotisation_label montant_cotisation_euros_box" ". montant_don_label montant_don_euros_box" ". don don" ". montant_total_label montant_total_euros_box" ". paiement_mode ." ". paiement_mode_choix paiement_mode_choix_nocb" ". paiement_cb paiement_cb" ". paiement_nocb_form paiement_nocb_form";
+ }
+}
+.paiement_container .paiement .paiement_titre {
+ grid-area: paiement_titre;
+ margin-bottom: 30px;
+ padding-bottom: 5px;
+ padding-top: 5px;
+ background-color: #E73058;
+ color: white;
+ text-align: center;
+}
+.paiement_container .paiement .montant_cotisation_label {
+ grid-area: montant_cotisation_label;
+ align-self: center;
+ color: #A2A0A0;
+}
+@media (max-width: 600px) {
+ .paiement_container .paiement .montant_cotisation_label {
+ font-size: 15px;
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .paiement_container .paiement .montant_cotisation_label {
+ font-size: 15px;
+ }
+}
+.paiement_container .paiement .montant_cotisation_euros_box {
+ grid-area: montant_cotisation_euros_box;
+}
+.paiement_container .paiement .input_text_don label {
+ font-size: 14px;
+}
+@media (max-width: 600px) {
+ .paiement_container .paiement .input_text_don label {
+ font-size: 13px;
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .paiement_container .paiement .input_text_don label {
+ font-size: 13px;
+ }
+}
+.paiement_container .paiement .input_text_don input, .paiement_container .paiement .input_text_don input[type=text], .paiement_container .paiement .input_text_don input[type=tel], .paiement_container .paiement .input_text_don input[type=date], .paiement_container .paiement .input_text_don select {
+ min-height: 22px;
+ font-size: 14px;
+ color: #1c1c1c;
+}
+@media (max-width: 600px) {
+ .paiement_container .paiement .input_text_don input, .paiement_container .paiement .input_text_don input[type=text], .paiement_container .paiement .input_text_don input[type=tel], .paiement_container .paiement .input_text_don input[type=date], .paiement_container .paiement .input_text_don select {
+ font-size: 15px;
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .paiement_container .paiement .input_text_don input, .paiement_container .paiement .input_text_don input[type=text], .paiement_container .paiement .input_text_don input[type=tel], .paiement_container .paiement .input_text_don input[type=date], .paiement_container .paiement .input_text_don select {
+ font-size: 15px;
+ }
+}
+@media (max-width: 600px) {
+ .paiement_container .paiement .input_text_don input, .paiement_container .paiement .input_text_don input[type=text], .paiement_container .paiement .input_text_don input[type=tel], .paiement_container .paiement .input_text_don input[type=date], .paiement_container .paiement .input_text_don select {
+ font-size: 15px;
+ }
+}
+.paiement_container .paiement .input_text_don input:-webkit-autofill, .paiement_container .paiement .input_text_don input:-webkit-autofill:hover, .paiement_container .paiement .input_text_don input:-webkit-autofill:focus, .paiement_container .paiement .input_text_don input:-webkit-autofill:active, .paiement_container .paiement .input_text_don input:-webkit-autofill:focus-visible, .paiement_container .paiement .input_text_don input:-webkit-autofill:focus-within, .paiement_container .paiement .input_text_don input:-webkit-autofill:visited, .paiement_container .paiement .input_text_don input:target, .paiement_container .paiement .input_text_don input[type=text]:-webkit-autofill, .paiement_container .paiement .input_text_don input[type=text]:-webkit-autofill:hover, .paiement_container .paiement .input_text_don input[type=text]:-webkit-autofill:focus, .paiement_container .paiement .input_text_don input[type=text]:-webkit-autofill:active, .paiement_container .paiement .input_text_don input[type=text]:-webkit-autofill:focus-visible, .paiement_container .paiement .input_text_don input[type=text]:-webkit-autofill:focus-within, .paiement_container .paiement .input_text_don input[type=text]:-webkit-autofill:visited, .paiement_container .paiement .input_text_don input[type=text]:target, .paiement_container .paiement .input_text_don input[type=tel]:-webkit-autofill, .paiement_container .paiement .input_text_don input[type=tel]:-webkit-autofill:hover, .paiement_container .paiement .input_text_don input[type=tel]:-webkit-autofill:focus, .paiement_container .paiement .input_text_don input[type=tel]:-webkit-autofill:active, .paiement_container .paiement .input_text_don input[type=tel]:-webkit-autofill:focus-visible, .paiement_container .paiement .input_text_don input[type=tel]:-webkit-autofill:focus-within, .paiement_container .paiement .input_text_don input[type=tel]:-webkit-autofill:visited, .paiement_container .paiement .input_text_don input[type=tel]:target, .paiement_container .paiement .input_text_don input[type=date]:-webkit-autofill, .paiement_container .paiement .input_text_don input[type=date]:-webkit-autofill:hover, .paiement_container .paiement .input_text_don input[type=date]:-webkit-autofill:focus, .paiement_container .paiement .input_text_don input[type=date]:-webkit-autofill:active, .paiement_container .paiement .input_text_don input[type=date]:-webkit-autofill:focus-visible, .paiement_container .paiement .input_text_don input[type=date]:-webkit-autofill:focus-within, .paiement_container .paiement .input_text_don input[type=date]:-webkit-autofill:visited, .paiement_container .paiement .input_text_don input[type=date]:target, .paiement_container .paiement .input_text_don select:-webkit-autofill, .paiement_container .paiement .input_text_don select:-webkit-autofill:hover, .paiement_container .paiement .input_text_don select:-webkit-autofill:focus, .paiement_container .paiement .input_text_don select:-webkit-autofill:active, .paiement_container .paiement .input_text_don select:-webkit-autofill:focus-visible, .paiement_container .paiement .input_text_don select:-webkit-autofill:focus-within, .paiement_container .paiement .input_text_don select:-webkit-autofill:visited, .paiement_container .paiement .input_text_don select:target {
+ -webkit-text-fill-color: #1c1c1c;
+}
+.paiement_container .paiement .input_text_don input::placeholder, .paiement_container .paiement .input_text_don input[type=text]::placeholder, .paiement_container .paiement .input_text_don input[type=tel]::placeholder, .paiement_container .paiement .input_text_don input[type=date]::placeholder, .paiement_container .paiement .input_text_don select::placeholder {
+ font-family: cabin_italic;
+ font-size: 12px;
+ color: #A2A0A0;
+}
+.paiement_container .paiement .don {
+ grid-area: don;
+ margin-top: 22px;
+ margin-right: 15px;
+}
+.paiement_container .paiement .montant_don_label {
+ grid-area: montant_don_label;
+ align-self: center;
+ color: #A2A0A0;
+}
+.paiement_container .paiement .montant_don_euros_box {
+ grid-area: montant_don_euros_box;
+}
+.paiement_container .paiement .montant_total_label {
+ grid-area: montant_total_label;
+ align-self: center;
+}
+.paiement_container .paiement .montant_total_euros_box {
+ grid-area: montant_total_euros_box;
+}
+.paiement_container .paiement .paiement_mode {
+ grid-area: paiement_mode;
+ margin-top: 40px;
+}
+.paiement_container .paiement .paiement_mode_choix {
+ grid-area: paiement_mode_choix;
+}
+.paiement_container .paiement .paiement_mode_choix_nocb {
+ grid-area: paiement_mode_choix_nocb;
+}
+.paiement_container .paiement #paiement_cb {
+ grid-area: paiement_cb;
+}
+.paiement_container .paiement .paiement_nocb {
+ grid-area: paiement_cb;
+}
+.paiement_container .paiement .paiement_nocb_choix {
+ display: flex;
+}
+.paiement_container .paiement .paiement_nocb_choix_cheque {
+ margin-left: 20px;
+}
+.paiement_container .paiement .open_modal_don {
+ display: grid;
+ margin-top: 6px;
+ margin-bottom: 45px;
+ text-decoration: underline;
+ font-size: 12px;
+}
+.paiement_container .paiement .open_modal_don p:hover {
+ cursor: pointer;
+}
+.paiement_container .paiement .montant_cotisation_euros {
+ display: inline-block;
+ padding-top: 8px;
+ padding-bottom: 6px;
+ padding-left: 10px;
+ padding-right: 8px;
+}
+@media (max-width: 600px) {
+ .paiement_container .paiement .montant_cotisation_euros {
+ font-size: 15px;
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .paiement_container .paiement .montant_cotisation_euros {
+ font-size: 15px;
+ }
+}
+.paiement_container .paiement .montant_total_label {
+ color: #E73058;
+}
+.paiement_container .paiement .montant_total_euros {
+ display: inline-block;
+ padding-top: 8px;
+ padding-bottom: 6px;
+ padding-left: 10px;
+ padding-right: 8px;
+ color: #E73058;
+}
+.paiement_container .paiement .paiement_nocb_form {
+ grid-area: paiement_nocb_form;
+ margin-bottom: 25px;
+ font-size: 13px;
+}
+.paiement_container .paiement .paiement_nocb_form .paiement_description {
+ margin-bottom: 3px;
+ font-family: montserrat_light;
+}
+.paiement_container .paiement .paiement_nocb_infos {
+ display: grid;
+ grid-template-rows: auto auto auto auto;
+ grid-row-gap: 25px;
+}
+.paiement_container .paiement .paiement_nocb_infos .nom_banque {
+ margin-top: 15px;
+}
+.paiement_container .paiement .euro_label {
+ padding-left: 8px;
+ color: #A2A0A0;
+}
+
+.adhesion_fin_container {
+ display: grid;
+ grid-column-gap: 20px;
+ grid-template-columns: 1fr 3fr 1fr;
+ grid-template-areas: ". adhesion_fin .";
+}
+@media (max-width: 600px) {
+ .adhesion_fin_container {
+ grid-template-columns: minmax(3px, auto) minmax(auto, 600px) minmax(3px, auto);
+ }
+}
+@media (min-width: 600px) and (max-width: 1200px) {
+ .adhesion_fin_container {
+ grid-template-columns: minmax(10px, auto) minmax(400px, 600px) minmax(10px, auto);
+ }
+}
+.adhesion_fin_container .adhesion_fin {
+ grid-area: adhesion_fin;
+ display: grid;
+ grid-template-rows: auto auto auto;
+ row-gap: 30px;
+ grid-template-areas: "adhesion_fin_adresse" "adhesion_fin_description" "adhesion_fin_card";
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_adresse {
+ grid-area: adhesion_fin_adresse;
+ justify-self: end;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_adresse .adhesion_fin_adresse_titre {
+ font-family: montserrat_semibold;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_adresse .adhesion_fin_adresse_infos {
+ margin-top: 10px;
+ font-family: montserrat_regular;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_adresse .adhesion_fin_adresse_identifiant {
+ margin-top: 15px;
+ font-family: montserrat_thin;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_adresse .adhesion_fin_adresse_identifiant .adhesion_fin_adresse_identifiant_bold {
+ font-family: montserrat_regular;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_adresse .adhesion_fin_date {
+ margin-top: 15px;
+ font-family: montserrat_thin;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_description {
+ grid-area: adhesion_fin_description;
+ margin-top: 60px;
+ text-align: center;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_description .adhesion_fin_description_identifiant {
+ margin-top: 20px;
+ font-family: montserrat_thin;
+ font-size: 13px;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card {
+ grid-area: adhesion_fin_card;
+ display: grid;
+ grid-template-columns: 1fr 1fr 1fr 2fr;
+ grid-template-rows: auto auto auto auto;
+ row-gap: 30px;
+ grid-template-areas: "logo logo . adhesion_fin_card_description" ". adhesion_fin_card_identifiant adhesion_fin_card_identifiant adhesion_fin_card_identifiant" ". adhesion_fin_card_profil adhesion_fin_card_profil adhesion_fin_card_profil" ". adhesion_fin_paiement adhesion_fin_paiement adhesion_fin_paiement";
+ margin: 10%;
+ padding: 20px;
+ background-color: rgba(231, 48, 88, 0.1294117647);
+ border: 4px dashed #E73058;
+}
+@media (max-width: 600px) {
+ .adhesion_fin_container .adhesion_fin .adhesion_fin_card {
+ grid-template-columns: 5px minmax(auto, auto) minmax(auto, auto) minmax(5px, auto);
+ }
+}
+@media (max-width: 600px) {
+ .adhesion_fin_container .adhesion_fin .adhesion_fin_card {
+ grid-template-rows: auto auto auto auto auto;
+ }
+}
+@media (max-width: 600px) {
+ .adhesion_fin_container .adhesion_fin .adhesion_fin_card {
+ grid-template-areas: "logo logo logo ." "adhesion_fin_card_description adhesion_fin_card_description adhesion_fin_card_description adhesion_fin_card_description" ". adhesion_fin_card_identifiant adhesion_fin_card_identifiant adhesion_fin_card_identifiant" ". adhesion_fin_card_profil adhesion_fin_card_profil adhesion_fin_card_profil" ". adhesion_fin_paiement adhesion_fin_paiement adhesion_fin_paiement";
+ }
+}
+@media (max-width: 600px) {
+ .adhesion_fin_container .adhesion_fin .adhesion_fin_card {
+ margin: 0;
+ }
+}
+@media (max-width: 600px) {
+ .adhesion_fin_container .adhesion_fin .adhesion_fin_card {
+ padding: 8px;
+ }
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card .logo {
+ grid-area: logo;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card .logo img {
+ width: 100%;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card .adhesion_fin_card_description {
+ grid-area: adhesion_fin_card_description;
+ justify-self: end;
+ text-align: center;
+}
+@media (max-width: 600px) {
+ .adhesion_fin_container .adhesion_fin .adhesion_fin_card .adhesion_fin_card_description {
+ justify-self: center;
+ }
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card .adhesion_fin_card_description .adhesion_fin_card_description_assoc {
+ margin-top: 5px;
+ font-family: montserrat_regular;
+ font-size: 14px;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card .adhesion_fin_card_description .adhesion_fin_card_description_annee {
+ margin-top: 5px;
+ font-family: montserrat_light;
+ font-size: 12px;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card .adhesion_fin_card_identifiant {
+ grid-area: adhesion_fin_card_identifiant;
+ margin-top: 14px;
+ font-family: montserrat_thin;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card .adhesion_fin_card_identifiant .adhesion_fin_card_identifiant_mail {
+ padding-left: 10px;
+ font-family: montserrat_regular;
+ color: #E73058;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card .adhesion_fin_card_profil {
+ grid-area: adhesion_fin_card_profil;
+ font-family: montserrat_regular;
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card .adhesion_fin_card_profil ul li:before {
+ content: "- ";
+}
+.adhesion_fin_container .adhesion_fin .adhesion_fin_card .adhesion_fin_paiement {
+ grid-area: adhesion_fin_paiement;
+ font-family: montserrat_thin;
+ font-size: 13px;
+}
+
+.stage_formulaire_cont .stage_formulaire {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+.stage_formulaire_cont h1 {
+ margin-bottom: 35px;
+}
+.stage_formulaire_cont h1 .icone_titre {
+ width: 45px;
+ margin-bottom: -13px;
+ margin-right: 19px;
+}
+@media (max-width: 600px) {
+ .stage_formulaire_cont h1 {
+ font-size: 16px;
+ }
+}
+.stage_formulaire_cont .titre_personne {
+ margin-top: 50px;
+}
+.stage_formulaire_cont h2 {
+ margin-bottom: 47px;
+ font-size: 16px;
+}
+.stage_formulaire_cont h2 .icone_titre {
+ width: 42px;
+ margin-bottom: -17px;
+ margin-right: 13px;
+}
+.stage_formulaire_cont h2 .numero {
+ padding-left: 5px;
+ font-family: cabin_bold;
+}
+.stage_formulaire_cont h2 .remove_personne {
+ margin-left: 10px;
+}
+@media (max-width: 340px) {
+ .stage_formulaire_cont h2 .remove_personne {
+ display: block;
+ margin-top: 2px;
+ margin-left: 56px;
+ }
+}
+.stage_formulaire_cont h2 .input_suppr {
+ display: none;
+ width: 10px;
+}
+.stage_formulaire_cont h2 .label_suppr {
+ font-size: 12px;
+ font-family: cabin_regular;
+ color: #707070;
+}
+.stage_formulaire_cont .icone_hebergement {
+ display: flex;
+ align-items: end;
+ flex-wrap: wrap;
+ column-gap: 2px;
+ row-gap: 20px;
+}
+.stage_formulaire_cont .icone_hebergement .icone {
+ width: 45px;
+ margin-right: 15px;
+}
+.stage_formulaire_cont .personne {
+ margin-bottom: 45px;
+}
+.stage_formulaire_cont .commentaire {
+ margin-top: 130px;
+}
+.stage_formulaire_cont .commentaire .textarea_commentaire {
+ padding-top: 26px;
+}
+.stage_formulaire_cont .button_icone {
+ margin-top: 43px;
+}
+.stage_formulaire_cont .recap_personne {
+ margin-top: 40px;
+}
+.stage_formulaire_cont .recap_personne p, .stage_formulaire_cont .tarifs p {
+ margin-left: 27px;
+ margin-bottom: 5px;
+ font-size: 14px;
+}
+.stage_formulaire_cont .buttons {
+ display: flex;
+ flex-wrap: wrap;
+ column-gap: 20px;
+ row-gap: 20px;
+ justify-content: center;
+ margin-top: 30px;
+}
+.stage_formulaire_cont .buttons .button_icone_recap {
+ width: 206px !important;
+}
+.stage_formulaire_cont .savoirplus_accueil {
+ margin-top: 62px !important;
+}
+.stage_formulaire_cont hr {
+ width: 80%;
+ margin-top: 50px;
+ margin-bottom: 40px;
+}
+.stage_formulaire_cont .description {
+ margin-top: 30px;
+ margin-bottom: 60px;
+ background-color: #fefefe;
+ padding: 20px;
+ border: 5px solid #E73058;
+ border-radius: 20px;
+ font-family: montserrat_light;
+}
+
+/*# sourceMappingURL=app.css.map */
diff --git a/public/css/app.css.map b/public/css/app.css.map
new file mode 100644
index 0000000..3cf0c3f
--- /dev/null
+++ b/public/css/app.css.map
@@ -0,0 +1 @@
+{"version":3,"sourceRoot":"","sources":["../../src/scss/base/_reset.scss","../../src/scss/base/_colors.scss","../../src/scss/base/_fonts.scss","../../src/scss/base/_space.scss","../../src/scss/global/_main.scss","../../src/scss/global/_mediaqueries.scss","../../src/scss/components/_header_tunnel.scss","../../src/scss/components/_header_inscription.scss","../../src/scss/components/_savoirplus.scss","../../src/scss/components/_titrepage.scss","../../src/scss/components/_footer.scss","../../src/scss/components/_inputs.scss","../../src/scss/components/_check_mail.scss","../../src/scss/templates/_adhesion_mail.scss","../../src/scss/templates/_adhesion.scss","../../src/scss/templates/_paiement.scss","../../src/scss/templates/_adhesion_end.scss","../../src/scss/templates/_stageformulaire.scss"],"names":[],"mappings":"AAAA;AAEA;EACC;EACA;;;AAGD;EACI;;;AAKJ;EACC;EACA;;;AAGD;EACC;;;ACnBD;AACA;AACA;AA0BA;EACI;;;AAGJ;EACI;;;ACjCJ;AACA;AAEA;EACI;EAAoC;;AAExC;EACI;EAAkC;;AAEtC;EACI;EAAgC;;AAEpC;EACI;EAA8B;;AAElC;EACI;EAA6B;;AAEjC;EACI;EAA4B;;AAEhC;EACI;EAA4B;;AAEhC;EACI;EAA0B;;AAG9B;EACI;EAA6C;;AAEjD;EACI;EAA+C;;AAEnD;EACI;EAAsC;;AAE1C;EACI;EAA0C;;AAE9C;EACI;EAAmC;;AAEvC;EACI;EAA0C;;AAE9C;EACI;EAAqC;;AAEzC;EACI;EAAoC;;AAExC;EACI;EAAoC;;AAExC;EACI;EAAuC;;AAE3C;EACI;EAAyC;;AAE7C;EACI;EAAyC;;AAG7C;EACI;EAA2C;;AAE/C;EACI;EAA0C;;AAE9C;EACI;EAAuC;;AAE3C;EACI;EAAsC;;AAE1C;EACI;EAAqC;;AAEzC;EACI;EAAoC;;AAIxC;EACI;EAA0C;;AAE9C;EACA;EAAyC;;AAEzC;EACI;EAAiC;;AAErC;EACI;EAAkC;;AAEtC;EACI;EAAgC;;AAEpC;EACI;EAAsD;;AAE1D;EACI;EAA2C;;AAE/C;EACI;EAAmC;;AAEvC;EACI;EAAsC;;AAE1C;EACI;EAAuC;;AAE3C;EACI;EAA+B;;AAEnC;EACI;EAA+B;;AAEnC;EACI;EAAqC;;AAEzC;EACI;EAAqC;;AAEzC;EACI;EAAgC;;AAEpC;EACI;EAAqC;;AAEzC;EACI;EAAiC;;AAErC;EACI;EAAsC;;AAI1C;EACI;EAA2B;;AAG7B;EACE;EAA8B;;AAGhC;EACE;EAA0B;;AAE5B;EACE;EAAiC;;AAGnC;EACE;EAA4B;;AAG9B;EACE;EAA4B;;AAG9B;EACE;EAAqC;;AAGzC;EACI;;;ACzKJ;AACA;AACA;AACA;AACA;AAGA;EACI;;;ACRJ;EACI;EACA;EACA;EACA;;ACGA;EACI;IDDA;;;ACMJ;EACI;IDJA;;;ACGJ;EACI;IDDA;;;;AEbR;EACI;EACA;EACA;;AAEA;EACI;EACA;;AACA;EACI;;;ACTZ;EACI;EACA;EACA;;AAEA;EACI;EACA;;AACA;EACI;;;ACTZ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;EAEA;EAIA;EACA;;AHdA;EACI;IGUA;;;AAKJ;EACI;;AACA;EACI;;AAGR;EACI;;AACA;EACI;;AAGR;EACI;;AAEJ;EACI;;AAEJ;EACI,OPlCM;;;AOqCd;EAEI;EAIA;EACA;EACA;;AH9CA;EACI;IGyCA;;;AAMJ;EACI;EACA;;AACA;EACI;;;AAKZ;EACI;EAIA;EACA;EACA;EACA;;AHjEA;EACI;IG2DA;;;;ACzER;EAUI;;AJGA;EACI;IIZA;IACA;;;AJgBJ;EACI;IIdA;IACA;;;AAKJ;EACI;EACA;EACA;EACA;;AAEJ;EACI;EACA;EACA;EACA,ORXW;;AQYX;EACI;EACA;;;ACzBZ;AACA;AACA;AACA;AACA;AAEA;EACI;EACA;EACA;EAEA;EAEA;;AAGA;EACI;EACA;EACA;EACA;;;ACnBR;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;EACI;;AACA;EACI;EACA;EACA;EACA;EACA;EACA;EACA,kBVFM;;AUIV;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA,kBVbM;EUcN;EACA;EAUA;EACA,OVhCW;;AUsBP;EACI;EACA;EACA;;AAEJ;EACI;;AAMZ;EAUI;EACA;EACA;EACA;EACA;EACA,kBV3CM;EU4CN;EACA;;ANhDJ;EACI;IMgCI;;;AN3BR;EACI;IM6BI;;;AN1CR;EACI;IM4CI;;;AAUA;EACI;EACA;EACA;;AAEJ;EACI;;AAIZ;EAWI;EAEA;EACA;EACA;EACA;EACA,kBVzEM;EU0EN;EACA;;AN9EJ;EACI;IM4DI;IACA;;;ANxDR;EACI;IM0DI;;;ANvER;EACI;IMyEI;;;AAWA;EACI;EACA;EACA;;AAEJ;EACI;;;AAOZ;EACI,OV9FW;;AUgGf;EACI;;;AAIJ;EACI,OV/FW;;AUiGf;EACI;;;AAKR;AACA;AAEA;EAEI;;AAEA;EAQI;EACA;EACA;;AN9HJ;EACI;IMsHI;;;AN7HR;EACI;IM+HI;;;AN1HR;EACI;IM+HI;;;AAGJ;EACI;EACA;EACA,OVtIO;;;AU2InB;EAEI;;AAEA;EAQI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EASA,OV1KW;;AIGf;EACI;IMiJI;;;ANxJR;EACI;IM0JI;;;AAUA;EACI;EACA;EACA;;AAEJ;EACI;;ANrKZ;EACI;IMwKI;;;AAGJ;EACI;EACA;EACA,OV/KO;;;AUqLf;EACI;;ANtLJ;EACI;IMuLI;;;AAGR;EACI;EACA;EAIA,OVnMW;;AIEf;EACI;IM8LI;;;AAGJ;EACI,yBVrMO;;AUuMX;EACI;EACA;EACA,OVxMO;;;AU8MnB;AACA;AACA;AACA;AACA;AAKI;EACI;EACA;EAIA,OV9NW;;AICf;EACI;IM0NI;;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI,kBVxOE;;;AU6Od;AACA;AACA;AACA;AACA;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBV5PU;EU6PV,OV3PU;;AU4PV;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;;;AAKR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBVpRU;EUqRV,OVnRU;EUoRV;;;AAIA;EACI;EACA;;;AC1SR;EACI;EACA;EACA;EACA;EACA;EACA;EASA;;APFA;EACI;IONA;IACA;;;APUJ;EACI;IORA;IACA;;;AAGJ;EACI;EACA,OXJM;;AWMV;EACI;;;AAKR;EACI;EACA;EACA;EACA,qBACA;;AAIA;EACI;;AAGJ;EACI;EACA;EACA;EACA;;AACA;EACI;EACA,OXrCC;;AWwCT;EACI;EACA;;;AAQR;EACI;EACA;EACA;EACA;;AAEI;EACI;;;AAKZ;AACI;AACA;AACA;AAEA;AACA;AACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACA;EAMA;EACA;;AAEA;AACI;AAEA;AACA;AACA;EACA;EACA;EACA;EACA;EACA;EACA;AACA;;AAGJ;EACI;;AACA;EACI;;AAGR;EACI;;AACA;EACI;;AAGR;EACI;;;AAGR;EACI;EACA;EACA;EACA,OXxHU;;;AW2Hd;AAAA;EAEI;EACA,OX9HU;EW+HV;;;AC5IJ;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;ACXA;EACI;EACA;;ATKA;EACI;ISHA;IACA;;;ATOJ;EACI;ISLA;IACA;;;AAGJ;EACI;;AAEJ;EACI;EACA;EACA,ObGa;;AaAjB;EACI;EACA;EACA;EACA;EACA;;AACA;EACI;;;AAKZ;EACI;EACA;EAOA;EACA;EACA;EACA;EACA;;ATlCA;EACI;ISwBA;;;ATnBJ;EACI;ISqBA;;;;AAQR;EACI;EACA;EAIA;EACA;EACA;EAEA;;AT9CA;EACI;ISuCA;;;;AASR;EACQ;EAIA;EACA;EACA;EACA,kBbvDiB;EawDjB;EACA,Ob5DW;;AICf;EACI;ISmDI;;;;AAUZ;EACI;;;AAGJ;EACI;EAKA;EACA,Ob1Ee;;AICf;EACI;ISoEA;IACA;;;;AClFR;EAEI;EACA;EAIA;EAOA;;AVFA;EACI;IURA;;;AVOJ;EACI;IUJA;;;AVSJ;EACI;IUPA;;;AAIJ;EACI;EACA;EACA;EACA;EACA;EAIA;EAOA;EACA,qBACI;;AVtBR;EACI;IUUI;;;AVXR;EACI;IUcI;;;AVTR;EACI;IUWI;;;AVlBR;EACI;IUgCI,qBACI;;;AV5BZ;EACI;IUsCI,qBACI;;;AAWR;EACI;EACA;EACA;EACA;EACA,kBd7DE;Ec8DF,Od5DE;Ec6DF;;AAEJ;EACI;EACA;EACA,OdrEO;;AIAf;EACI;IUsEQ;;;AVjEZ;EACI;IUmEQ;;;AAGR;EACI;;AAGA;EACI;;AVlFZ;EACI;IUmFY;;;AV9EhB;EACI;IUgFY;;;AAGR;EACI;EACA;EAUA,OdxGG;;AIEf;EACI;IU6FY;;;AVxFhB;EACI;IU0FY;;;AVjGhB;EACI;IUmGY;;;AAGJ;EACI,yBd1GD;;Ac4GH;EACI;EACA;EACA,Od7GD;;AckHX;EACI;EACA;EACA;;AAEJ;EACI;EACA;EACA,Od1HO;;Ac4HX;EACI;;AAEJ;EACI;EACA;;AAEJ;EACI;;AAEJ;EACI;EACA;;AAEJ;EACI;;AAEJ;EACI;;AAEJ;EACI;;AAEJ;EACI;;AAEJ;EACI;;AAEJ;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;;AAEI;EACI;;AAKZ;EACI;EACA;EACA;EACA;EACA;;AV/KR;EACI;IUgLQ;;;AV3KZ;EACI;IU6KQ;;;AAIR;EACI,OdxLE;;Ac0LN;EACI;EACA;EACA;EACA;EACA;EACA,OdhME;;AcmMN;EACI;EACA;EACA;;AACA;EACI;EACA;;AAGR;EACI;EACA;EACA;;AACA;EACI;;AAGR;EACI;EACA,OdvNO;;;AebnB;EAEI;EACA;EACA;EAOA;;AXEA;EACI;IWRA;;;AXaJ;EACI;IWXA;;;AAIJ;EACI;EAEA;EACA;EACA;EACA,qBACA;;AAKA;EACI;EACA;;AACA;EACI;;AAEJ;EACI;EACA;;AAEJ;EACI;EACA;;AACgB;EACZ;;AAIR;EACI;EACA;;AAIR;EACI;EACA;EACA;;AACA;EACI;EACA;EACA;;AAIR;EACI;EACA;EACA;EAIA;EAIA;EACA,qBACI;EAYJ;EAIA;EAIA,kBf9Ea;Ee+Eb;;AXjFR;EACI;IWmDQ;;;AXpDZ;EACI;IWuDQ;;;AXxDZ;EACI;IWgEQ,qBACA;;;AXlEZ;EACI;IWyEQ;;;AX1EZ;EACI;IW6EQ;;;AAKJ;EACI;;AACA;EACI;;AAGR;EACI;EACA;EAIA;;AX/FZ;EACI;IW4FY;;;AAGJ;EACI;EACA;EACA;;AAEJ;EACI;EACA;EACA;;AAGR;EACI;EACA;EACA;;AACA;EACI;EACA;EACA,OfjHN;;AeoHF;EACI;EACA;;AAGQ;EACI;;AAKhB;EACI;EACA;EACA;;;AC3IZ;EACI;EACA;EACA;;AAGJ;EACI;;AACA;EACI;EACA;EACA;;AZHR;EACI;IYKI;;;AAGR;EACI;;AAEJ;EACI;EACA;;AACA;EACI;EACA;EACA;;AAEJ;EACI;EACA;;AAEJ;EACI;;AACA;EAFJ;IAGQ;IACA;IACA;;;AAKR;EACI;EACA;;AAEJ;EACI;EACA;EACA,OhB1CO;;AgB8Cf;EACI;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;;AAIR;EACI;;AAGJ;EAEI;;AACA;EACI;;AAIR;EACI;;AAGJ;EACI;;AAIA;EACI;EACA;EACA;;AAKR;EACI;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;;AAIR;EACI;;AAGJ;EACI;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA","file":"app.css"}
\ No newline at end of file
diff --git a/public/fonts/cabin_bold.ttf b/public/fonts/cabin_bold.ttf
new file mode 100755
index 0000000..a7e2f73
Binary files /dev/null and b/public/fonts/cabin_bold.ttf differ
diff --git a/public/fonts/cabin_bolditalic.ttf b/public/fonts/cabin_bolditalic.ttf
new file mode 100755
index 0000000..eb45bfa
Binary files /dev/null and b/public/fonts/cabin_bolditalic.ttf differ
diff --git a/public/fonts/cabin_italic.ttf b/public/fonts/cabin_italic.ttf
new file mode 100755
index 0000000..be81d4d
Binary files /dev/null and b/public/fonts/cabin_italic.ttf differ
diff --git a/public/fonts/cabin_medium.ttf b/public/fonts/cabin_medium.ttf
new file mode 100755
index 0000000..5541d91
Binary files /dev/null and b/public/fonts/cabin_medium.ttf differ
diff --git a/public/fonts/cabin_mediumitalic.ttf b/public/fonts/cabin_mediumitalic.ttf
new file mode 100755
index 0000000..441f7a3
Binary files /dev/null and b/public/fonts/cabin_mediumitalic.ttf differ
diff --git a/public/fonts/cabin_regular.ttf b/public/fonts/cabin_regular.ttf
new file mode 100755
index 0000000..a76c2e7
Binary files /dev/null and b/public/fonts/cabin_regular.ttf differ
diff --git a/public/fonts/cabin_semibold.ttf b/public/fonts/cabin_semibold.ttf
new file mode 100755
index 0000000..079c073
Binary files /dev/null and b/public/fonts/cabin_semibold.ttf differ
diff --git a/public/fonts/cabin_semibolditalic.ttf b/public/fonts/cabin_semibolditalic.ttf
new file mode 100755
index 0000000..70cfa3b
Binary files /dev/null and b/public/fonts/cabin_semibolditalic.ttf differ
diff --git a/public/fonts/montserrat_black.ttf b/public/fonts/montserrat_black.ttf
new file mode 100644
index 0000000..93b8bab
Binary files /dev/null and b/public/fonts/montserrat_black.ttf differ
diff --git a/public/fonts/montserrat_blackitalic.ttf b/public/fonts/montserrat_blackitalic.ttf
new file mode 100644
index 0000000..438630e
Binary files /dev/null and b/public/fonts/montserrat_blackitalic.ttf differ
diff --git a/public/fonts/montserrat_bold.ttf b/public/fonts/montserrat_bold.ttf
new file mode 100644
index 0000000..55e0b1a
Binary files /dev/null and b/public/fonts/montserrat_bold.ttf differ
diff --git a/public/fonts/montserrat_bolditalic.ttf b/public/fonts/montserrat_bolditalic.ttf
new file mode 100644
index 0000000..6b4541d
Binary files /dev/null and b/public/fonts/montserrat_bolditalic.ttf differ
diff --git a/public/fonts/montserrat_extrabold.ttf b/public/fonts/montserrat_extrabold.ttf
new file mode 100644
index 0000000..7b4f267
Binary files /dev/null and b/public/fonts/montserrat_extrabold.ttf differ
diff --git a/public/fonts/montserrat_extrabolditalic.ttf b/public/fonts/montserrat_extrabolditalic.ttf
new file mode 100644
index 0000000..66ccd46
Binary files /dev/null and b/public/fonts/montserrat_extrabolditalic.ttf differ
diff --git a/public/fonts/montserrat_extralight.ttf b/public/fonts/montserrat_extralight.ttf
new file mode 100644
index 0000000..532cbb5
Binary files /dev/null and b/public/fonts/montserrat_extralight.ttf differ
diff --git a/public/fonts/montserrat_extralightitalic.ttf b/public/fonts/montserrat_extralightitalic.ttf
new file mode 100644
index 0000000..150591a
Binary files /dev/null and b/public/fonts/montserrat_extralightitalic.ttf differ
diff --git a/public/fonts/montserrat_italic.ttf b/public/fonts/montserrat_italic.ttf
new file mode 100644
index 0000000..be99e1c
Binary files /dev/null and b/public/fonts/montserrat_italic.ttf differ
diff --git a/public/fonts/montserrat_light.ttf b/public/fonts/montserrat_light.ttf
new file mode 100644
index 0000000..2c91484
Binary files /dev/null and b/public/fonts/montserrat_light.ttf differ
diff --git a/public/fonts/montserrat_lightitalic.ttf b/public/fonts/montserrat_lightitalic.ttf
new file mode 100644
index 0000000..7082e03
Binary files /dev/null and b/public/fonts/montserrat_lightitalic.ttf differ
diff --git a/public/fonts/montserrat_medium.ttf b/public/fonts/montserrat_medium.ttf
new file mode 100644
index 0000000..0f0fd1d
Binary files /dev/null and b/public/fonts/montserrat_medium.ttf differ
diff --git a/public/fonts/montserrat_mediumitalic.ttf b/public/fonts/montserrat_mediumitalic.ttf
new file mode 100644
index 0000000..5bd6dd2
Binary files /dev/null and b/public/fonts/montserrat_mediumitalic.ttf differ
diff --git a/public/fonts/montserrat_regular.ttf b/public/fonts/montserrat_regular.ttf
new file mode 100644
index 0000000..1cd0259
Binary files /dev/null and b/public/fonts/montserrat_regular.ttf differ
diff --git a/public/fonts/montserrat_semibold.ttf b/public/fonts/montserrat_semibold.ttf
new file mode 100644
index 0000000..ccaba1a
Binary files /dev/null and b/public/fonts/montserrat_semibold.ttf differ
diff --git a/public/fonts/montserrat_semibolditalic.ttf b/public/fonts/montserrat_semibolditalic.ttf
new file mode 100644
index 0000000..b8278b9
Binary files /dev/null and b/public/fonts/montserrat_semibolditalic.ttf differ
diff --git a/public/fonts/montserrat_thin.ttf b/public/fonts/montserrat_thin.ttf
new file mode 100644
index 0000000..a6d0321
Binary files /dev/null and b/public/fonts/montserrat_thin.ttf differ
diff --git a/public/fonts/montserrat_thinitalic.ttf b/public/fonts/montserrat_thinitalic.ttf
new file mode 100644
index 0000000..585c82b
Binary files /dev/null and b/public/fonts/montserrat_thinitalic.ttf differ
diff --git a/public/fonts/playfairdisplay_black.ttf b/public/fonts/playfairdisplay_black.ttf
new file mode 100755
index 0000000..fec2ac8
Binary files /dev/null and b/public/fonts/playfairdisplay_black.ttf differ
diff --git a/public/fonts/playfairdisplay_blackitalic.ttf b/public/fonts/playfairdisplay_blackitalic.ttf
new file mode 100755
index 0000000..8e95d1d
Binary files /dev/null and b/public/fonts/playfairdisplay_blackitalic.ttf differ
diff --git a/public/fonts/playfairdisplay_bold.ttf b/public/fonts/playfairdisplay_bold.ttf
new file mode 100755
index 0000000..93a59cf
Binary files /dev/null and b/public/fonts/playfairdisplay_bold.ttf differ
diff --git a/public/fonts/playfairdisplay_bolditalic.ttf b/public/fonts/playfairdisplay_bolditalic.ttf
new file mode 100755
index 0000000..3d2fbde
Binary files /dev/null and b/public/fonts/playfairdisplay_bolditalic.ttf differ
diff --git a/public/fonts/playfairdisplay_italic.ttf b/public/fonts/playfairdisplay_italic.ttf
new file mode 100755
index 0000000..aa65a5f
Binary files /dev/null and b/public/fonts/playfairdisplay_italic.ttf differ
diff --git a/public/fonts/playfairdisplay_regular.ttf b/public/fonts/playfairdisplay_regular.ttf
new file mode 100755
index 0000000..8468e68
Binary files /dev/null and b/public/fonts/playfairdisplay_regular.ttf differ
diff --git a/public/fonts/sourceserifpro_black.ttf b/public/fonts/sourceserifpro_black.ttf
new file mode 100644
index 0000000..4562a7f
Binary files /dev/null and b/public/fonts/sourceserifpro_black.ttf differ
diff --git a/public/fonts/sourceserifpro_blackitalic.ttf b/public/fonts/sourceserifpro_blackitalic.ttf
new file mode 100644
index 0000000..ff6397a
Binary files /dev/null and b/public/fonts/sourceserifpro_blackitalic.ttf differ
diff --git a/public/fonts/sourceserifpro_bold.ttf b/public/fonts/sourceserifpro_bold.ttf
new file mode 100644
index 0000000..bf782fb
Binary files /dev/null and b/public/fonts/sourceserifpro_bold.ttf differ
diff --git a/public/fonts/sourceserifpro_bolditalic.ttf b/public/fonts/sourceserifpro_bolditalic.ttf
new file mode 100644
index 0000000..1461f4a
Binary files /dev/null and b/public/fonts/sourceserifpro_bolditalic.ttf differ
diff --git a/public/fonts/sourceserifpro_extralight.ttf b/public/fonts/sourceserifpro_extralight.ttf
new file mode 100644
index 0000000..f1cca55
Binary files /dev/null and b/public/fonts/sourceserifpro_extralight.ttf differ
diff --git a/public/fonts/sourceserifpro_extralightitalic.ttf b/public/fonts/sourceserifpro_extralightitalic.ttf
new file mode 100644
index 0000000..d1bde71
Binary files /dev/null and b/public/fonts/sourceserifpro_extralightitalic.ttf differ
diff --git a/public/fonts/sourceserifpro_italic.ttf b/public/fonts/sourceserifpro_italic.ttf
new file mode 100644
index 0000000..4baaf1d
Binary files /dev/null and b/public/fonts/sourceserifpro_italic.ttf differ
diff --git a/public/fonts/sourceserifpro_light.ttf b/public/fonts/sourceserifpro_light.ttf
new file mode 100644
index 0000000..ff60489
Binary files /dev/null and b/public/fonts/sourceserifpro_light.ttf differ
diff --git a/public/fonts/sourceserifpro_lightitalic.ttf b/public/fonts/sourceserifpro_lightitalic.ttf
new file mode 100644
index 0000000..b202bd5
Binary files /dev/null and b/public/fonts/sourceserifpro_lightitalic.ttf differ
diff --git a/public/fonts/sourceserifpro_regular.ttf b/public/fonts/sourceserifpro_regular.ttf
new file mode 100644
index 0000000..e6c5dff
Binary files /dev/null and b/public/fonts/sourceserifpro_regular.ttf differ
diff --git a/public/fonts/sourceserifpro_semibold.ttf b/public/fonts/sourceserifpro_semibold.ttf
new file mode 100644
index 0000000..b0f8edc
Binary files /dev/null and b/public/fonts/sourceserifpro_semibold.ttf differ
diff --git a/public/fonts/sourceserifpro_semibolditalic.ttf b/public/fonts/sourceserifpro_semibolditalic.ttf
new file mode 100644
index 0000000..040e7fc
Binary files /dev/null and b/public/fonts/sourceserifpro_semibolditalic.ttf differ
diff --git a/public/fonts/ubuntu-moyen_italique.ttf b/public/fonts/ubuntu-moyen_italique.ttf
new file mode 100644
index 0000000..e8d186c
Binary files /dev/null and b/public/fonts/ubuntu-moyen_italique.ttf differ
diff --git a/public/fonts/ubuntu_bold.ttf b/public/fonts/ubuntu_bold.ttf
new file mode 100644
index 0000000..b173da2
Binary files /dev/null and b/public/fonts/ubuntu_bold.ttf differ
diff --git a/public/fonts/ubuntu_courant.ttf b/public/fonts/ubuntu_courant.ttf
new file mode 100644
index 0000000..d748728
Binary files /dev/null and b/public/fonts/ubuntu_courant.ttf differ
diff --git a/public/fonts/ubuntu_fin.ttf b/public/fonts/ubuntu_fin.ttf
new file mode 100644
index 0000000..5cfec48
Binary files /dev/null and b/public/fonts/ubuntu_fin.ttf differ
diff --git a/public/fonts/ubuntu_leger.ttf b/public/fonts/ubuntu_leger.ttf
new file mode 100644
index 0000000..ed0f5bc
Binary files /dev/null and b/public/fonts/ubuntu_leger.ttf differ
diff --git a/public/fonts/ubuntu_leger_italic.ttf b/public/fonts/ubuntu_leger_italic.ttf
new file mode 100644
index 0000000..0295cbb
Binary files /dev/null and b/public/fonts/ubuntu_leger_italic.ttf differ
diff --git a/public/fonts/ubuntu_moyen.ttf b/public/fonts/ubuntu_moyen.ttf
new file mode 100644
index 0000000..ca9c03a
Binary files /dev/null and b/public/fonts/ubuntu_moyen.ttf differ
diff --git a/public/images/icones/icone_accompagnant.png b/public/images/icones/icone_accompagnant.png
new file mode 100644
index 0000000..71a6a82
Binary files /dev/null and b/public/images/icones/icone_accompagnant.png differ
diff --git a/public/images/icones/icone_close.png b/public/images/icones/icone_close.png
new file mode 100644
index 0000000..d412062
Binary files /dev/null and b/public/images/icones/icone_close.png differ
diff --git a/public/images/icones/icone_compte.png b/public/images/icones/icone_compte.png
new file mode 100644
index 0000000..69d9a10
Binary files /dev/null and b/public/images/icones/icone_compte.png differ
diff --git a/public/images/icones/icone_house.png b/public/images/icones/icone_house.png
new file mode 100644
index 0000000..325bd28
Binary files /dev/null and b/public/images/icones/icone_house.png differ
diff --git a/public/images/icones/icone_infos.png b/public/images/icones/icone_infos.png
new file mode 100644
index 0000000..b1ee83b
Binary files /dev/null and b/public/images/icones/icone_infos.png differ
diff --git a/public/images/icones/icone_personne.png b/public/images/icones/icone_personne.png
new file mode 100644
index 0000000..2f8bedb
Binary files /dev/null and b/public/images/icones/icone_personne.png differ
diff --git a/public/images/logos/LogoSuzukiGris.png b/public/images/logos/LogoSuzukiGris.png
new file mode 100644
index 0000000..0bf6fc5
Binary files /dev/null and b/public/images/logos/LogoSuzukiGris.png differ
diff --git a/public/js/adhesion/accueil_modal.js b/public/js/adhesion/accueil_modal.js
new file mode 100644
index 0000000..310ba4e
--- /dev/null
+++ b/public/js/adhesion/accueil_modal.js
@@ -0,0 +1,30 @@
+//// AFFICHER DANS LA CONSOLE LE FICHIER APPELÉ
+//console.log("NOUS SOMMES DANS LE FICHIER :",__filename);
+
+// Get the modal
+var modal = document.getElementById("prelude");
+
+// Get the button that opens the modal
+var btn = document.getElementById("open_modal");
+
+// Get the element that closes the modal
+var span = document.getElementsByClassName("prelude_close")[0];
+
+// When the user clicks the button, open the modal
+btn.onclick = function() {
+ console.log("modal = ",modal)
+ modal.style.display = "block";
+}
+
+// When the user clicks on (x), close the modal
+span.onclick = function() {
+ modal.style.display = "none";
+}
+
+// When the user clicks anywhere outside of the modal, close it
+window.onclick = function(event) {
+ if (event.target == modal) {
+ modal.style.display = "none";
+ }
+}
+
diff --git a/public/js/adhesion/adhesion_prof.js b/public/js/adhesion/adhesion_prof.js
new file mode 100644
index 0000000..1241ba1
--- /dev/null
+++ b/public/js/adhesion/adhesion_prof.js
@@ -0,0 +1,148 @@
+console.log("On est dans le fichier adhesion_prof.js (de PUBLIC)");
+
+
+function prof_diplome() {
+
+ console.log("On est dans function prof_diplome");
+ console.log("check_prof_diplome");
+ // Get the checkbox
+ var check_prof_diplome = document.getElementById("check_prof_diplome");
+ // Get the output text
+ var prof_diplome = document.getElementById("prof_diplome");
+
+ console.log("check_prof_diplome", check_prof_diplome);
+
+ for (let cssClass of prof_diplome.classList) {
+ console.log("cssClass: ",cssClass);
+ };
+
+
+ // If the checkbox is checked, display the output text
+ if (check_prof_diplome.checked == true){
+ console.log("if (check_prof_diplome.checked == true)");
+ console.log("prof_diplome", prof_diplome);
+ prof_diplome.style.display = "block";
+ } else {
+ console.log("ELSE if (check_prof_diplome.checked == true)");
+ prof_diplome.style.display = "none";
+ }
+}
+
+
+function prof_formation() {
+
+ console.log("On est dans function prof_formation");
+
+ // Get the checkbox
+ var check_prof_formation = document.getElementById("check_prof_formation");
+ // Get the output text
+ var prof_formation = document.getElementById("prof_formation");
+
+ console.log("check_prof_formation", check_prof_formation);
+
+ for (let cssClass of prof_formation.classList) {
+ console.log("cssClass: ",cssClass);
+ };
+
+
+ // If the checkbox is checked, display the output text
+ if (check_prof_formation.checked == true){
+ console.log("if (check_prof_formation.checked == true)");
+ console.log("prof_formation", prof_formation);
+
+ prof_formation.style.display = "block";
+ } else {
+ console.log("ELSE if (check_prof_diplome.checked == true)");
+
+ prof_formation.style.display = "none";
+ }
+}
+
+function prof_eleve() {
+
+ console.log("On est dans function prof_eleve");
+
+ // Get the checkbox
+ var check_prof_eleve = document.getElementById("check_prof_eleve");
+ // Get the output text
+ var eleve = document.getElementById("eleve");
+
+ console.log("check_prof_eleve", check_prof_eleve);
+
+ for (let cssClass of eleve.classList) {
+ console.log("cssClass: ",cssClass);
+ };
+
+
+ // If the checkbox is checked, display the output text
+ if (check_prof_eleve.checked == true){
+ console.log("if (check_prof_eleve.checked == true)");
+ console.log("eleve", eleve);
+
+ eleve.style.display = "block";
+ } else {
+ console.log("ELSE if (check_prof_eleve.checked == true)");
+
+ eleve.style.display = "none";
+ }
+}
+
+function ajout_eleve2() {
+ console.log("On est dans function ajout_eleve2");
+ // Get the checkbox
+ var check_eleve2 = document.getElementById("check_eleve2");
+ // Get the output text
+ var eleve2 = document.getElementById("eleve2");
+
+ // If the checkbox is checked, display the output text
+ if (check_eleve2.checked == true){
+ eleve2.style.display = "block";
+ } else {
+ eleve2.style.display = "none";
+ }
+}
+
+function ajout_eleve3() {
+ console.log("On est dans function ajout_eleve3");
+ // Get the checkbox
+ var check_eleve3 = document.getElementById("check_eleve3");
+ // Get the output text
+ var eleve3 = document.getElementById("eleve3");
+
+ // If the checkbox is checked, display the output text
+ if (check_eleve3.checked == true){
+ eleve3.style.display = "block";
+ } else {
+ eleve3.style.display = "none";
+ }
+}
+
+function ajout_eleve4() {
+
+ // Get the checkbox
+ var check_eleve4 = document.getElementById("check_eleve4");
+ // Get the output text
+ var eleve4 = document.getElementById("eleve4");
+
+ // If the checkbox is checked, display the output text
+ if (check_eleve4.checked == true){
+ eleve4.style.display = "block";
+ } else {
+ eleve4.style.display = "none";
+ }
+}
+
+function ajout_eleve5() {
+
+ // Get the checkbox
+ var check_eleve5 = document.getElementById("check_eleve5");
+ // Get the output text
+ var eleve5 = document.getElementById("eleve5");
+
+ // If the checkbox is checked, display the output text
+ if (check_eleve5.checked == true){
+ eleve5.style.display = "block";
+ } else {
+ eleve5.style.display = "none";
+ }
+}
\ No newline at end of file
diff --git a/public/js/adhesion/form_paiement.js b/public/js/adhesion/form_paiement.js
new file mode 100644
index 0000000..4aa1051
--- /dev/null
+++ b/public/js/adhesion/form_paiement.js
@@ -0,0 +1,73 @@
+// test
+// authetification banque
+
+
+ console.log("On est dans function choix_cb");
+
+ // Get the checkbox
+ var check_cb = document.getElementById("check_cb");
+ // Get the output text
+ var paiement_cb = document.getElementById("paiement_cb");
+ // Get the checkbox
+ var check_nocb = document.getElementById("check_nocb");
+ // Get the output text
+ var paiement_nocb = document.getElementById("paiement_nocb");
+ // Get the checkbox
+ var check_virement = document.getElementById("check_virement");
+ // Get the output text
+ var paiement_virement = document.getElementById("paiement_virement");
+ // Get the checkbox
+ var check_cheque = document.getElementById("check_cheque");
+ // Get the output text
+ var paiement_cheque = document.getElementById("paiement_cheque");
+
+
+ check_cb.onclick = function() {
+ console.log("check_cb.checked = ", check_cb.checked);
+ if (check_cb.checked == true){
+ console.log("check_cb.checked == true");
+ check_nocb.checked = false;
+ check_virement.checked = false;
+ check_cheque.checked = false;
+ paiement_cb.style.display = "block";
+ paiement_nocb.style.display = "none";
+ paiement_cheque.style.display = "none";
+ paiement_virement.style.display = "none";
+ } else {
+ console.log("check_cb.checked == true / ELSE");
+ paiement_cb.style.display = "none";
+ }
+ }
+
+ check_nocb.onclick = function() {
+ if (check_nocb.checked == true){
+ check_cb.checked = false;
+ paiement_nocb.style.display = "block";
+ paiement_cb.style.display = "none";
+ } else {
+ paiement_nocb.style.display = "none";
+ }
+ }
+
+ check_virement.onclick = function() {
+ if (check_virement.checked == true){
+ check_cheque.checked = false;
+ paiement_virement.style.display = "block";
+ paiement_cheque.style.display = "none";
+ } else {
+ paiement_virement.style.display = "none";
+ }
+ }
+
+ check_cheque.onclick = function() {
+ if (check_cheque.checked == true){
+ check_virement.checked = false;
+ paiement_cheque.style.display = "block";
+ paiement_virement.style.display = "none";
+ } else {
+ paiement_cheque.style.display = "none";
+ }
+ }
+
+
+
diff --git a/public/js/adhesion/hidden_visible.js b/public/js/adhesion/hidden_visible.js
new file mode 100644
index 0000000..1a3737f
--- /dev/null
+++ b/public/js/adhesion/hidden_visible.js
@@ -0,0 +1,41 @@
+// AFFICHER OU CACHER DES ÉLÉMENTS
+
+var savoirplus_button = document.getElementById("savoirplus_button");
+
+// si savoirplus_button est bien présent dans la page
+if (savoirplus_button) {
+ savoirplus_button.onclick = function() {
+ savoirplus_content = document.getElementById("savoirplus_content");
+ savoirplus_content.classList.remove('hidden');
+ }
+}
+
+// si ajout_ecole2 est bien présent dans la page
+var ajout_ecole2 = document.getElementById("ajout_ecole2");
+
+if (ajout_ecole2) {
+ ajout_ecole2.onclick = function() {
+ ajout_ecole2_content = document.getElementById("ajout_ecole2_content");
+ ajout_ecole2_content.classList.remove('hidden');
+ }
+}
+
+// si ajout_ecole3 est bien présent dans la page
+var ajout_ecole3 = document.getElementById("ajout_ecole3");
+
+if (ajout_ecole3) {
+ ajout_ecole3.onclick = function() {
+ ajout_ecole3_content = document.getElementById("ajout_ecole3_content");
+ ajout_ecole3_content.classList.remove('hidden');
+ }
+}
+
+
+// BOUTON TOGGLE FORMULAIRE D'INSCRIPTION STAGE
+var savoirplus_heberg_toggle = document.getElementById("savoirplus_heberg_toggle");
+if (savoirplus_heberg_toggle) {
+ savoirplus_heberg_toggle.onclick = function() {
+ savoirplus_heberg_content = document.getElementById("savoirplus_heberg_content");
+ savoirplus_heberg_content.classList.remove('hidden');
+ }
+}
\ No newline at end of file
diff --git a/public/js/adhesion/professeurs.js b/public/js/adhesion/professeurs.js
new file mode 100644
index 0000000..c112e2b
--- /dev/null
+++ b/public/js/adhesion/professeurs.js
@@ -0,0 +1,2176 @@
+
+// PROFESSEURS POUR LES STAGIAIRES
+
+const select_prof_stagiaire_instrument1 = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_prof_stagiaire_instrument1_prof = ' ';
+ adherent_prof_stagiaire_instrument1_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_prof_stagiaire_instrument1_prof").innerHTML = adherent_prof_stagiaire_instrument1_prof;
+ adherent_prof_stagiaire_instrument1_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_prof_stagiaire_instrument1_prof").innerHTML = '';
+ adherent_prof_stagiaire_instrument1_prof = ' ';
+ adherent_prof_stagiaire_instrument1_prof += 'PERRIN Véronique ';
+ adherent_prof_stagiaire_instrument1_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_prof_stagiaire_instrument1_prof").innerHTML = adherent_prof_stagiaire_instrument1_prof;
+ adherent_prof_stagiaire_instrument1_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_prof_stagiaire_instrument1_prof").innerHTML = '';
+ adherent_prof_stagiaire_instrument1_prof = ' ';
+ adherent_prof_stagiaire_instrument1_prof += 'BOSSUAT Christophe ';
+ adherent_prof_stagiaire_instrument1_prof += 'MARTIN Joanne ';
+ adherent_prof_stagiaire_instrument1_prof += ' PROST Geneviève ';
+ adherent_prof_stagiaire_instrument1_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_prof_stagiaire_instrument1_prof").innerHTML = adherent_prof_stagiaire_instrument1_prof;
+ adherent_prof_stagiaire_instrument1_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_prof_stagiaire_instrument1_prof").innerHTML = '';
+ adherent_prof_stagiaire_instrument1_prof = ' ';
+ adherent_prof_stagiaire_instrument1_prof += 'LATIL Chantal ';
+ adherent_prof_stagiaire_instrument1_prof += 'RIVERA Ruben ';
+ adherent_prof_stagiaire_instrument1_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_prof_stagiaire_instrument1_prof").innerHTML = adherent_prof_stagiaire_instrument1_prof;
+ adherent_prof_stagiaire_instrument1_prof ='';
+ };
+};
+
+const select_prof_stagiaire_instrument2 = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_prof_stagiaire_instrument2_prof = ' ';
+ adherent_prof_stagiaire_instrument2_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_prof_stagiaire_instrument2_prof").innerHTML = adherent_prof_stagiaire_instrument2_prof;
+ adherent_prof_stagiaire_instrument2_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_prof_stagiaire_instrument2_prof").innerHTML = '';
+ adherent_prof_stagiaire_instrument2_prof = ' ';
+ adherent_prof_stagiaire_instrument2_prof += 'PERRIN Véronique ';
+ adherent_prof_stagiaire_instrument2_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_prof_stagiaire_instrument2_prof").innerHTML = adherent_prof_stagiaire_instrument2_prof;
+ adherent_prof_stagiaire_instrument2_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_prof_stagiaire_instrument2_prof").innerHTML = '';
+ adherent_prof_stagiaire_instrument2_prof = ' ';
+ adherent_prof_stagiaire_instrument2_prof += 'BOSSUAT Christophe ';
+ adherent_prof_stagiaire_instrument2_prof += 'MARTIN Joanne ';
+ adherent_prof_stagiaire_instrument2_prof += ' PROST Geneviève ';
+ adherent_prof_stagiaire_instrument2_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_prof_stagiaire_instrument2_prof").innerHTML = adherent_prof_stagiaire_instrument2_prof;
+ adherent_prof_stagiaire_instrument2_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_prof_stagiaire_instrument2_prof").innerHTML = '';
+ adherent_prof_stagiaire_instrument2_prof = ' ';
+ adherent_prof_stagiaire_instrument2_prof += 'LATIL Chantal ';
+ adherent_prof_stagiaire_instrument2_prof += 'RIVERA Ruben ';
+ adherent_prof_stagiaire_instrument2_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_prof_stagiaire_instrument2_prof").innerHTML = adherent_prof_stagiaire_instrument2_prof;
+ adherent_prof_stagiaire_instrument2_prof ='';
+ };
+};
+
+// PROFESSEURS POUR LES ÉLÈVES
+
+const select_eleve1_InstrumentA = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_eleve1_InstrumentA_prof = ' ';
+ adherent_eleve1_InstrumentA_prof += 'PLATONE Hélène ';
+ adherent_eleve1_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = adherent_eleve1_InstrumentA_prof;
+ adherent_eleve1_InstrumentA_prof ='';
+ };
+ if (select.value == "Contrebasse"){
+ console.log("on est dans le Contrebasse");
+ adherent_eleve1_InstrumentA_prof = ' ';
+ adherent_eleve1_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = adherent_eleve1_InstrumentA_prof;
+ adherent_eleve1_InstrumentA_prof ='';
+ };
+ if (select.value == "Flûte traversière"){
+ console.log("on est dans le Flûte traversière");
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = '';
+ adherent_eleve1_InstrumentA_prof = ' ';
+ adherent_eleve1_InstrumentA_prof += 'DOZO Guadalupe ';
+ adherent_eleve1_InstrumentA_prof += 'MILLE Christelle ';
+ adherent_eleve1_InstrumentA_prof += 'MONTAGNA Cristina ';
+ adherent_eleve1_InstrumentA_prof += 'PAILLOT-DURY Catherine ';
+ adherent_eleve1_InstrumentA_prof += 'PRIESTER Fanny ';
+ adherent_eleve1_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = adherent_eleve1_InstrumentA_prof;
+ adherent_eleve1_InstrumentA_prof ='';
+ };
+ if (select.value == "Guitare"){
+ console.log("on est dans le Guitare");
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = '';
+ adherent_eleve1_InstrumentA_prof = ' ';
+ adherent_eleve1_InstrumentA_prof += 'FAU Benjamin ';
+ adherent_eleve1_InstrumentA_prof += 'LOFFLER Marcelo ';
+ adherent_eleve1_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = adherent_eleve1_InstrumentA_prof;
+ adherent_eleve1_InstrumentA_prof ='';
+ };
+ if (select.value == "Harpe"){
+ console.log("on est dans le Harpe");
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = '';
+ adherent_eleve1_InstrumentA_prof = ' ';
+ adherent_eleve1_InstrumentA_prof += 'BASMADJIAN-POIRIER Muriel ';
+ adherent_eleve1_InstrumentA_prof += 'DENIS Raphaëlle ';
+ adherent_eleve1_InstrumentA_prof += 'MAGRINI Alessandra ';
+ adherent_eleve1_InstrumentA_prof += 'RIVERA Eva ';
+ adherent_eleve1_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = adherent_eleve1_InstrumentA_prof;
+ adherent_eleve1_InstrumentA_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = '';
+ adherent_eleve1_InstrumentA_prof = ' ';
+ adherent_eleve1_InstrumentA_prof += 'BOINEAU-BENHAIM Nicole ';
+ adherent_eleve1_InstrumentA_prof += 'CALATAYUD Marielle ';
+ adherent_eleve1_InstrumentA_prof += 'CHAPRON Camille ';
+ adherent_eleve1_InstrumentA_prof += 'DENARO Luigi ';
+ adherent_eleve1_InstrumentA_prof += 'EL DACCACHE Georges ';
+ adherent_eleve1_InstrumentA_prof += 'EL KAROUT Fouad ';
+ adherent_eleve1_InstrumentA_prof += 'ESPONA Véronique ';
+ adherent_eleve1_InstrumentA_prof += 'GASTON Isabelle ';
+ adherent_eleve1_InstrumentA_prof += 'GOKELAERE Fabienne ';
+ adherent_eleve1_InstrumentA_prof += 'HAEDT- GOUSSU Camille ';
+ adherent_eleve1_InstrumentA_prof += 'KAWAHARA Koyuki ';
+ adherent_eleve1_InstrumentA_prof += 'OLIVIER-SAGAWA Reika ';
+ adherent_eleve1_InstrumentA_prof += 'PERRIN Véronique ';
+ adherent_eleve1_InstrumentA_prof += 'TCHERNOOKOV Viola ';
+ adherent_eleve1_InstrumentA_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve1_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = adherent_eleve1_InstrumentA_prof;
+ adherent_eleve1_InstrumentA_prof ='';
+ };
+ if (select.value == "Trompette"){
+ console.log("on est dans le Trompette");
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = '';
+ adherent_eleve1_InstrumentA_prof = ' ';
+ adherent_eleve1_InstrumentA_prof += 'CALVAYRAC Michel ';
+ adherent_eleve1_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = adherent_eleve1_InstrumentA_prof;
+ adherent_eleve1_InstrumentA_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = '';
+ adherent_eleve1_InstrumentA_prof = ' ';
+ adherent_eleve1_InstrumentA_prof += 'ADAMS Kate ';
+ adherent_eleve1_InstrumentA_prof += 'ALLARD Cédric ';
+ adherent_eleve1_InstrumentA_prof += 'ARESTAN Philippe ';
+ adherent_eleve1_InstrumentA_prof += 'AUDUC Cécile ';
+ adherent_eleve1_InstrumentA_prof += 'BAUJARD Mariko ';
+ adherent_eleve1_InstrumentA_prof += 'BEAU-FAUCHER Gaëlle ';
+ adherent_eleve1_InstrumentA_prof += 'BEETSCHEN Ghislaine ';
+ adherent_eleve1_InstrumentA_prof += 'BERNARDON Vincent ';
+ adherent_eleve1_InstrumentA_prof += 'BONHOMME Amandine ';
+ adherent_eleve1_InstrumentA_prof += 'BOSSUAT Christophe ';
+ adherent_eleve1_InstrumentA_prof += 'CABLEY-DENOIX Hélène ';
+ adherent_eleve1_InstrumentA_prof += 'CACHOT Sigismond ';
+ adherent_eleve1_InstrumentA_prof += 'CALVAYRAC Danielle ';
+ adherent_eleve1_InstrumentA_prof += 'CASTOR Gaëlle ';
+ adherent_eleve1_InstrumentA_prof += 'CATOIRE Mélanie ';
+ adherent_eleve1_InstrumentA_prof += 'CAUCHEFER Marie ';
+ adherent_eleve1_InstrumentA_prof += 'CHAUSSADE Amélie ';
+ adherent_eleve1_InstrumentA_prof += 'CHITEPO Chiyedza ';
+ adherent_eleve1_InstrumentA_prof += 'COLLIN Ombeline ';
+ adherent_eleve1_InstrumentA_prof += 'COLOMBO Axelle ';
+ adherent_eleve1_InstrumentA_prof += 'CONTI Cristina ';
+ adherent_eleve1_InstrumentA_prof += 'DE LAROUZIERE Aude ';
+ adherent_eleve1_InstrumentA_prof += 'DE MALEFETTE Stéphanie ';
+ adherent_eleve1_InstrumentA_prof += 'DEVUN Danièle ';
+ adherent_eleve1_InstrumentA_prof += 'DEVUN François ';
+ adherent_eleve1_InstrumentA_prof += 'DODELIER Thibaut ';
+ adherent_eleve1_InstrumentA_prof += 'DUTOIT Sophie ';
+ adherent_eleve1_InstrumentA_prof += 'EYMARD Marianne ';
+ adherent_eleve1_InstrumentA_prof += 'FARGEOT-MAUCHE Elodie ';
+ adherent_eleve1_InstrumentA_prof += 'FEGE-DUBET Blandine ';
+ adherent_eleve1_InstrumentA_prof += 'FORAY Camille ';
+ adherent_eleve1_InstrumentA_prof += 'FORTUNE Fanny ';
+ adherent_eleve1_InstrumentA_prof += 'GAZZOLA Stefania ';
+ adherent_eleve1_InstrumentA_prof += 'GILLIERON Eve ';
+ adherent_eleve1_InstrumentA_prof += 'GRIMAND-BOUDIER Hélène ';
+ adherent_eleve1_InstrumentA_prof += 'GUYONNET Jonathan ';
+ adherent_eleve1_InstrumentA_prof += 'JONVILLE Pauline ';
+ adherent_eleve1_InstrumentA_prof += 'KHALLOUKY Eva ';
+ adherent_eleve1_InstrumentA_prof += 'LAPLANCHE Isabelle ';
+ adherent_eleve1_InstrumentA_prof += 'LAUBEPIN Mathilde ';
+ adherent_eleve1_InstrumentA_prof += 'LECLAIRE Larissa ';
+ adherent_eleve1_InstrumentA_prof += 'LESAING Isabelle ';
+ adherent_eleve1_InstrumentA_prof += 'LLEDO Daniel ';
+ adherent_eleve1_InstrumentA_prof += 'MARGAIN Marine ';
+ adherent_eleve1_InstrumentA_prof += 'MARTIN Joanne ';
+ adherent_eleve1_InstrumentA_prof += 'MELCONIAN Annie ';
+ adherent_eleve1_InstrumentA_prof += 'MICCIO Nadine ';
+ adherent_eleve1_InstrumentA_prof += 'MODAFFARI Adrien ';
+ adherent_eleve1_InstrumentA_prof += 'ODDOU Julie ';
+ adherent_eleve1_InstrumentA_prof += 'OLIVIER Marc ';
+ adherent_eleve1_InstrumentA_prof += 'PAGES Anne ';
+ adherent_eleve1_InstrumentA_prof += 'POL Anaïs ';
+ adherent_eleve1_InstrumentA_prof += 'PROST Geneviève ';
+ adherent_eleve1_InstrumentA_prof += 'RAFTERY Aine ';
+ adherent_eleve1_InstrumentA_prof += 'RAIFFAUD Marine ';
+ adherent_eleve1_InstrumentA_prof += 'READ Sophie ';
+ adherent_eleve1_InstrumentA_prof += 'RENARD Christelle ';
+ adherent_eleve1_InstrumentA_prof += 'RENTY Anna Maria ';
+ adherent_eleve1_InstrumentA_prof += 'ROSSOT Marie ';
+ adherent_eleve1_InstrumentA_prof += 'ROUTIER Rachel ';
+ adherent_eleve1_InstrumentA_prof += 'RUCLI Vanessa ';
+ adherent_eleve1_InstrumentA_prof += 'SANCHEZ-GUZMAN Ana-Maria ';
+ adherent_eleve1_InstrumentA_prof += 'SAUVEGRAIN Anne-Laure ';
+ adherent_eleve1_InstrumentA_prof += 'SCHILLER Jennifer ';
+ adherent_eleve1_InstrumentA_prof += 'SEIGNEURIN Aegine ';
+ adherent_eleve1_InstrumentA_prof += 'SELMANI Enkeleida ';
+ adherent_eleve1_InstrumentA_prof += 'SIMON Juliette ';
+ adherent_eleve1_InstrumentA_prof += 'SOL-MOLINER Aurore ';
+ adherent_eleve1_InstrumentA_prof += 'TISSOT Roxane ';
+ adherent_eleve1_InstrumentA_prof += 'VELU Marie ';
+ adherent_eleve1_InstrumentA_prof += 'VERDIER Iléana-Brandusa ';
+ adherent_eleve1_InstrumentA_prof += 'XHABIA Daniela ';
+ adherent_eleve1_InstrumentA_prof += 'ZANKO Barbara ';
+ adherent_eleve1_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = adherent_eleve1_InstrumentA_prof;
+ adherent_eleve1_InstrumentA_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = '';
+ adherent_eleve1_InstrumentA_prof = ' ';
+ adherent_eleve1_InstrumentA_prof += 'BERTAZZON Virginie ';
+ adherent_eleve1_InstrumentA_prof += 'BEYRIS Carlos ';
+ adherent_eleve1_InstrumentA_prof += 'BOISSIERE Lison ';
+ adherent_eleve1_InstrumentA_prof += 'BOYAUD Chloé ';
+ adherent_eleve1_InstrumentA_prof += 'BRESSON Alexandre ';
+ adherent_eleve1_InstrumentA_prof += 'CHARLES Faustine ';
+ adherent_eleve1_InstrumentA_prof += 'FRANCOIS Zofia ';
+ adherent_eleve1_InstrumentA_prof += 'HERVAULT Chloé ';
+ adherent_eleve1_InstrumentA_prof += 'JAEGER Chantal ';
+ adherent_eleve1_InstrumentA_prof += 'JARDINES Jacqueline ';
+ adherent_eleve1_InstrumentA_prof += 'LATIL Chantal ';
+ adherent_eleve1_InstrumentA_prof += 'LAUGENIE Anaïs ';
+ adherent_eleve1_InstrumentA_prof += 'LAUGENIE Florence ';
+ adherent_eleve1_InstrumentA_prof += 'LECRAS - PARAIRE Amandine ';
+ adherent_eleve1_InstrumentA_prof += 'LOBET Sophie ';
+ adherent_eleve1_InstrumentA_prof += 'OTALORA Luz Dary ';
+ adherent_eleve1_InstrumentA_prof += 'PASUT Ugo ';
+ adherent_eleve1_InstrumentA_prof += 'RENAUD Johanna ';
+ adherent_eleve1_InstrumentA_prof += 'RIEDEL Rebekka ';
+ adherent_eleve1_InstrumentA_prof += 'RIVERA Ruben ';
+ adherent_eleve1_InstrumentA_prof += 'ROUSSEL Sandrine ';
+ adherent_eleve1_InstrumentA_prof += 'SEGUIN Hélène ';
+ adherent_eleve1_InstrumentA_prof += 'SPRENG Alexander ';
+ adherent_eleve1_InstrumentA_prof += 'VIDAL Pauline ';
+ adherent_eleve1_InstrumentA_prof += 'WILSON Ariane ';
+ adherent_eleve1_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = adherent_eleve1_InstrumentA_prof;
+ adherent_eleve1_InstrumentA_prof ='';
+ };
+ if (select.value == "SECE"){
+ console.log("on est dans le SECE");
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = '';
+ adherent_eleve1_InstrumentA_prof = ' ';
+ adherent_eleve1_InstrumentA_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve1_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentA_prof").innerHTML = adherent_eleve1_InstrumentA_prof;
+ adherent_eleve1_InstrumentA_prof ='';
+ };
+};
+
+const select_eleve1_InstrumentB = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_eleve1_InstrumentB_prof = ' ';
+ adherent_eleve1_InstrumentB_prof += 'PLATONE Hélène ';
+ adherent_eleve1_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = adherent_eleve1_InstrumentB_prof;
+ adherent_eleve1_InstrumentB_prof ='';
+ };
+ if (select.value == "Contrebasse"){
+ console.log("on est dans le Contrebasse");
+ adherent_eleve1_InstrumentB_prof = ' ';
+ adherent_eleve1_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = adherent_eleve1_InstrumentB_prof;
+ adherent_eleve1_InstrumentB_prof ='';
+ };
+ if (select.value == "Flûte traversière"){
+ console.log("on est dans le Flûte traversière");
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = '';
+ adherent_eleve1_InstrumentB_prof = ' ';
+ adherent_eleve1_InstrumentB_prof += 'DOZO Guadalupe ';
+ adherent_eleve1_InstrumentB_prof += 'MILLE Christelle ';
+ adherent_eleve1_InstrumentB_prof += 'MONTAGNA Cristina ';
+ adherent_eleve1_InstrumentB_prof += 'PAILLOT-DURY Catherine ';
+ adherent_eleve1_InstrumentB_prof += 'PRIESTER Fanny ';
+ adherent_eleve1_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = adherent_eleve1_InstrumentB_prof;
+ adherent_eleve1_InstrumentB_prof ='';
+ };
+ if (select.value == "Guitare"){
+ console.log("on est dans le Guitare");
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = '';
+ adherent_eleve1_InstrumentB_prof = ' ';
+ adherent_eleve1_InstrumentB_prof += 'FAU Benjamin ';
+ adherent_eleve1_InstrumentB_prof += 'LOFFLER Marcelo ';
+ adherent_eleve1_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = adherent_eleve1_InstrumentB_prof;
+ adherent_eleve1_InstrumentB_prof ='';
+ };
+ if (select.value == "Harpe"){
+ console.log("on est dans le Harpe");
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = '';
+ adherent_eleve1_InstrumentB_prof = ' ';
+ adherent_eleve1_InstrumentB_prof += 'BASMADJIAN-POIRIER Muriel ';
+ adherent_eleve1_InstrumentB_prof += 'DENIS Raphaëlle ';
+ adherent_eleve1_InstrumentB_prof += 'MAGRINI Alessandra ';
+ adherent_eleve1_InstrumentB_prof += 'RIVERA Eva ';
+ adherent_eleve1_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = adherent_eleve1_InstrumentB_prof;
+ adherent_eleve1_InstrumentB_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = '';
+ adherent_eleve1_InstrumentB_prof = ' ';
+ adherent_eleve1_InstrumentB_prof += 'BOINEAU-BENHAIM Nicole ';
+ adherent_eleve1_InstrumentB_prof += 'CALATAYUD Marielle ';
+ adherent_eleve1_InstrumentB_prof += 'CHAPRON Camille ';
+ adherent_eleve1_InstrumentB_prof += 'DENARO Luigi ';
+ adherent_eleve1_InstrumentB_prof += 'EL DACCACHE Georges ';
+ adherent_eleve1_InstrumentB_prof += 'EL KAROUT Fouad ';
+ adherent_eleve1_InstrumentB_prof += 'ESPONA Véronique ';
+ adherent_eleve1_InstrumentB_prof += 'GASTON Isabelle ';
+ adherent_eleve1_InstrumentB_prof += 'GOKELAERE Fabienne ';
+ adherent_eleve1_InstrumentB_prof += 'HAEDT- GOUSSU Camille ';
+ adherent_eleve1_InstrumentB_prof += 'KAWAHARA Koyuki ';
+ adherent_eleve1_InstrumentB_prof += 'OLIVIER-SAGAWA Reika ';
+ adherent_eleve1_InstrumentB_prof += 'PERRIN Véronique ';
+ adherent_eleve1_InstrumentB_prof += 'TCHERNOOKOV Viola ';
+ adherent_eleve1_InstrumentB_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve1_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = adherent_eleve1_InstrumentB_prof;
+ adherent_eleve1_InstrumentB_prof ='';
+ };
+ if (select.value == "Trompette"){
+ console.log("on est dans le Trompette");
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = '';
+ adherent_eleve1_InstrumentB_prof = ' ';
+ adherent_eleve1_InstrumentB_prof += 'CALVAYRAC Michel ';
+ adherent_eleve1_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = adherent_eleve1_InstrumentB_prof;
+ adherent_eleve1_InstrumentB_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = '';
+ adherent_eleve1_InstrumentB_prof = ' ';
+ adherent_eleve1_InstrumentB_prof += 'ADAMS Kate ';
+ adherent_eleve1_InstrumentB_prof += 'ALLARD Cédric ';
+ adherent_eleve1_InstrumentB_prof += 'ARESTAN Philippe ';
+ adherent_eleve1_InstrumentB_prof += 'AUDUC Cécile ';
+ adherent_eleve1_InstrumentB_prof += 'BAUJARD Mariko ';
+ adherent_eleve1_InstrumentB_prof += 'BEAU-FAUCHER Gaëlle ';
+ adherent_eleve1_InstrumentB_prof += 'BEETSCHEN Ghislaine ';
+ adherent_eleve1_InstrumentB_prof += 'BERNARDON Vincent ';
+ adherent_eleve1_InstrumentB_prof += 'BONHOMME Amandine ';
+ adherent_eleve1_InstrumentB_prof += 'BOSSUAT Christophe ';
+ adherent_eleve1_InstrumentB_prof += 'CABLEY-DENOIX Hélène ';
+ adherent_eleve1_InstrumentB_prof += 'CACHOT Sigismond ';
+ adherent_eleve1_InstrumentB_prof += 'CALVAYRAC Danielle ';
+ adherent_eleve1_InstrumentB_prof += 'CASTOR Gaëlle ';
+ adherent_eleve1_InstrumentB_prof += 'CATOIRE Mélanie ';
+ adherent_eleve1_InstrumentB_prof += 'CAUCHEFER Marie ';
+ adherent_eleve1_InstrumentB_prof += 'CHAUSSADE Amélie ';
+ adherent_eleve1_InstrumentB_prof += 'CHITEPO Chiyedza ';
+ adherent_eleve1_InstrumentB_prof += 'COLLIN Ombeline ';
+ adherent_eleve1_InstrumentB_prof += 'COLOMBO Axelle ';
+ adherent_eleve1_InstrumentB_prof += 'CONTI Cristina ';
+ adherent_eleve1_InstrumentB_prof += 'DE LAROUZIERE Aude ';
+ adherent_eleve1_InstrumentB_prof += 'DE MALEFETTE Stéphanie ';
+ adherent_eleve1_InstrumentB_prof += 'DEVUN Danièle ';
+ adherent_eleve1_InstrumentB_prof += 'DEVUN François ';
+ adherent_eleve1_InstrumentB_prof += 'DODELIER Thibaut ';
+ adherent_eleve1_InstrumentB_prof += 'DUTOIT Sophie ';
+ adherent_eleve1_InstrumentB_prof += 'EYMARD Marianne ';
+ adherent_eleve1_InstrumentB_prof += 'FARGEOT-MAUCHE Elodie ';
+ adherent_eleve1_InstrumentB_prof += 'FEGE-DUBET Blandine ';
+ adherent_eleve1_InstrumentB_prof += 'FORAY Camille ';
+ adherent_eleve1_InstrumentB_prof += 'FORTUNE Fanny ';
+ adherent_eleve1_InstrumentB_prof += 'GAZZOLA Stefania ';
+ adherent_eleve1_InstrumentB_prof += 'GILLIERON Eve ';
+ adherent_eleve1_InstrumentB_prof += 'GRIMAND-BOUDIER Hélène ';
+ adherent_eleve1_InstrumentB_prof += 'GUYONNET Jonathan ';
+ adherent_eleve1_InstrumentB_prof += 'JONVILLE Pauline ';
+ adherent_eleve1_InstrumentB_prof += 'KHALLOUKY Eva ';
+ adherent_eleve1_InstrumentB_prof += 'LAPLANCHE Isabelle ';
+ adherent_eleve1_InstrumentB_prof += 'LAUBEPIN Mathilde ';
+ adherent_eleve1_InstrumentB_prof += 'LECLAIRE Larissa ';
+ adherent_eleve1_InstrumentB_prof += 'LESAING Isabelle ';
+ adherent_eleve1_InstrumentB_prof += 'LLEDO Daniel ';
+ adherent_eleve1_InstrumentB_prof += 'MARGAIN Marine ';
+ adherent_eleve1_InstrumentB_prof += 'MARTIN Joanne ';
+ adherent_eleve1_InstrumentB_prof += 'MELCONIAN Annie ';
+ adherent_eleve1_InstrumentB_prof += 'MICCIO Nadine ';
+ adherent_eleve1_InstrumentB_prof += 'MODAFFARI Adrien ';
+ adherent_eleve1_InstrumentB_prof += 'ODDOU Julie ';
+ adherent_eleve1_InstrumentB_prof += 'OLIVIER Marc ';
+ adherent_eleve1_InstrumentB_prof += 'PAGES Anne ';
+ adherent_eleve1_InstrumentB_prof += 'POL Anaïs ';
+ adherent_eleve1_InstrumentB_prof += 'PROST Geneviève ';
+ adherent_eleve1_InstrumentB_prof += 'RAFTERY Aine ';
+ adherent_eleve1_InstrumentB_prof += 'RAIFFAUD Marine ';
+ adherent_eleve1_InstrumentB_prof += 'READ Sophie ';
+ adherent_eleve1_InstrumentB_prof += 'RENARD Christelle ';
+ adherent_eleve1_InstrumentB_prof += 'RENTY Anna Maria ';
+ adherent_eleve1_InstrumentB_prof += 'ROSSOT Marie ';
+ adherent_eleve1_InstrumentB_prof += 'ROUTIER Rachel ';
+ adherent_eleve1_InstrumentB_prof += 'RUCLI Vanessa ';
+ adherent_eleve1_InstrumentB_prof += 'SANCHEZ-GUZMAN Ana-Maria ';
+ adherent_eleve1_InstrumentB_prof += 'SAUVEGRAIN Anne-Laure ';
+ adherent_eleve1_InstrumentB_prof += 'SCHILLER Jennifer ';
+ adherent_eleve1_InstrumentB_prof += 'SEIGNEURIN Aegine ';
+ adherent_eleve1_InstrumentB_prof += 'SELMANI Enkeleida ';
+ adherent_eleve1_InstrumentB_prof += 'SIMON Juliette ';
+ adherent_eleve1_InstrumentB_prof += 'SOL-MOLINER Aurore ';
+ adherent_eleve1_InstrumentB_prof += 'TISSOT Roxane ';
+ adherent_eleve1_InstrumentB_prof += 'VELU Marie ';
+ adherent_eleve1_InstrumentB_prof += 'VERDIER Iléana-Brandusa ';
+ adherent_eleve1_InstrumentB_prof += 'XHABIA Daniela ';
+ adherent_eleve1_InstrumentB_prof += 'ZANKO Barbara ';
+ adherent_eleve1_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = adherent_eleve1_InstrumentB_prof;
+ adherent_eleve1_InstrumentB_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = '';
+ adherent_eleve1_InstrumentB_prof = ' ';
+ adherent_eleve1_InstrumentB_prof += 'BERTAZZON Virginie ';
+ adherent_eleve1_InstrumentB_prof += 'BEYRIS Carlos ';
+ adherent_eleve1_InstrumentB_prof += 'BOISSIERE Lison ';
+ adherent_eleve1_InstrumentB_prof += 'BOYAUD Chloé ';
+ adherent_eleve1_InstrumentB_prof += 'BRESSON Alexandre ';
+ adherent_eleve1_InstrumentB_prof += 'CHARLES Faustine ';
+ adherent_eleve1_InstrumentB_prof += 'FRANCOIS Zofia ';
+ adherent_eleve1_InstrumentB_prof += 'HERVAULT Chloé ';
+ adherent_eleve1_InstrumentB_prof += 'JAEGER Chantal ';
+ adherent_eleve1_InstrumentB_prof += 'JARDINES Jacqueline ';
+ adherent_eleve1_InstrumentB_prof += 'LATIL Chantal ';
+ adherent_eleve1_InstrumentB_prof += 'LAUGENIE Anaïs ';
+ adherent_eleve1_InstrumentB_prof += 'LAUGENIE Florence ';
+ adherent_eleve1_InstrumentB_prof += 'LECRAS - PARAIRE Amandine ';
+ adherent_eleve1_InstrumentB_prof += 'LOBET Sophie ';
+ adherent_eleve1_InstrumentB_prof += 'OTALORA Luz Dary ';
+ adherent_eleve1_InstrumentB_prof += 'PASUT Ugo ';
+ adherent_eleve1_InstrumentB_prof += 'RENAUD Johanna ';
+ adherent_eleve1_InstrumentB_prof += 'RIEDEL Rebekka ';
+ adherent_eleve1_InstrumentB_prof += 'RIVERA Ruben ';
+ adherent_eleve1_InstrumentB_prof += 'ROUSSEL Sandrine ';
+ adherent_eleve1_InstrumentB_prof += 'SEGUIN Hélène ';
+ adherent_eleve1_InstrumentB_prof += 'SPRENG Alexander ';
+ adherent_eleve1_InstrumentB_prof += 'VIDAL Pauline ';
+ adherent_eleve1_InstrumentB_prof += 'WILSON Ariane ';
+ adherent_eleve1_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = adherent_eleve1_InstrumentB_prof;
+ adherent_eleve1_InstrumentB_prof ='';
+ };
+ if (select.value == "SECE"){
+ console.log("on est dans le SECE");
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = '';
+ adherent_eleve1_InstrumentB_prof = ' ';
+ adherent_eleve1_InstrumentB_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve1_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve1_InstrumentB_prof").innerHTML = adherent_eleve1_InstrumentB_prof;
+ adherent_eleve1_InstrumentB_prof ='';
+ };
+};
+
+const select_eleve2_InstrumentA = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_eleve2_InstrumentA_prof = ' ';
+ adherent_eleve2_InstrumentA_prof += 'PLATONE Hélène ';
+ adherent_eleve2_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = adherent_eleve2_InstrumentA_prof;
+ adherent_eleve2_InstrumentA_prof ='';
+ };
+ if (select.value == "Contrebasse"){
+ console.log("on est dans le Contrebasse");
+ adherent_eleve2_InstrumentA_prof = ' ';
+ adherent_eleve2_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = adherent_eleve2_InstrumentA_prof;
+ adherent_eleve2_InstrumentA_prof ='';
+ };
+ if (select.value == "Flûte traversière"){
+ console.log("on est dans le Flûte traversière");
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = '';
+ adherent_eleve2_InstrumentA_prof = ' ';
+ adherent_eleve2_InstrumentA_prof += 'DOZO Guadalupe ';
+ adherent_eleve2_InstrumentA_prof += 'MILLE Christelle ';
+ adherent_eleve2_InstrumentA_prof += 'MONTAGNA Cristina ';
+ adherent_eleve2_InstrumentA_prof += 'PAILLOT-DURY Catherine ';
+ adherent_eleve2_InstrumentA_prof += 'PRIESTER Fanny ';
+ adherent_eleve2_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = adherent_eleve2_InstrumentA_prof;
+ adherent_eleve2_InstrumentA_prof ='';
+ };
+ if (select.value == "Guitare"){
+ console.log("on est dans le Guitare");
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = '';
+ adherent_eleve2_InstrumentA_prof = ' ';
+ adherent_eleve2_InstrumentA_prof += 'FAU Benjamin ';
+ adherent_eleve2_InstrumentA_prof += 'LOFFLER Marcelo ';
+ adherent_eleve2_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = adherent_eleve2_InstrumentA_prof;
+ adherent_eleve2_InstrumentA_prof ='';
+ };
+ if (select.value == "Harpe"){
+ console.log("on est dans le Harpe");
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = '';
+ adherent_eleve2_InstrumentA_prof = ' ';
+ adherent_eleve2_InstrumentA_prof += 'BASMADJIAN-POIRIER Muriel ';
+ adherent_eleve2_InstrumentA_prof += 'DENIS Raphaëlle ';
+ adherent_eleve2_InstrumentA_prof += 'MAGRINI Alessandra ';
+ adherent_eleve2_InstrumentA_prof += 'RIVERA Eva ';
+ adherent_eleve2_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = adherent_eleve2_InstrumentA_prof;
+ adherent_eleve2_InstrumentA_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = '';
+ adherent_eleve2_InstrumentA_prof = ' ';
+ adherent_eleve2_InstrumentA_prof += 'BOINEAU-BENHAIM Nicole ';
+ adherent_eleve2_InstrumentA_prof += 'CALATAYUD Marielle ';
+ adherent_eleve2_InstrumentA_prof += 'CHAPRON Camille ';
+ adherent_eleve2_InstrumentA_prof += 'DENARO Luigi ';
+ adherent_eleve2_InstrumentA_prof += 'EL DACCACHE Georges ';
+ adherent_eleve2_InstrumentA_prof += 'EL KAROUT Fouad ';
+ adherent_eleve2_InstrumentA_prof += 'ESPONA Véronique ';
+ adherent_eleve2_InstrumentA_prof += 'GASTON Isabelle ';
+ adherent_eleve2_InstrumentA_prof += 'GOKELAERE Fabienne ';
+ adherent_eleve2_InstrumentA_prof += 'HAEDT- GOUSSU Camille ';
+ adherent_eleve2_InstrumentA_prof += 'KAWAHARA Koyuki ';
+ adherent_eleve2_InstrumentA_prof += 'OLIVIER-SAGAWA Reika ';
+ adherent_eleve2_InstrumentA_prof += 'PERRIN Véronique ';
+ adherent_eleve2_InstrumentA_prof += 'TCHERNOOKOV Viola ';
+ adherent_eleve2_InstrumentA_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve2_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = adherent_eleve2_InstrumentA_prof;
+ adherent_eleve2_InstrumentA_prof ='';
+ };
+ if (select.value == "Trompette"){
+ console.log("on est dans le Trompette");
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = '';
+ adherent_eleve2_InstrumentA_prof = ' ';
+ adherent_eleve2_InstrumentA_prof += 'CALVAYRAC Michel ';
+ adherent_eleve2_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = adherent_eleve2_InstrumentA_prof;
+ adherent_eleve2_InstrumentA_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = '';
+ adherent_eleve2_InstrumentA_prof = ' ';
+ adherent_eleve2_InstrumentA_prof += 'ADAMS Kate ';
+ adherent_eleve2_InstrumentA_prof += 'ALLARD Cédric ';
+ adherent_eleve2_InstrumentA_prof += 'ARESTAN Philippe ';
+ adherent_eleve2_InstrumentA_prof += 'AUDUC Cécile ';
+ adherent_eleve2_InstrumentA_prof += 'BAUJARD Mariko ';
+ adherent_eleve2_InstrumentA_prof += 'BEAU-FAUCHER Gaëlle ';
+ adherent_eleve2_InstrumentA_prof += 'BEETSCHEN Ghislaine ';
+ adherent_eleve2_InstrumentA_prof += 'BERNARDON Vincent ';
+ adherent_eleve2_InstrumentA_prof += 'BONHOMME Amandine ';
+ adherent_eleve2_InstrumentA_prof += 'BOSSUAT Christophe ';
+ adherent_eleve2_InstrumentA_prof += 'CABLEY-DENOIX Hélène ';
+ adherent_eleve2_InstrumentA_prof += 'CACHOT Sigismond ';
+ adherent_eleve2_InstrumentA_prof += 'CALVAYRAC Danielle ';
+ adherent_eleve2_InstrumentA_prof += 'CASTOR Gaëlle ';
+ adherent_eleve2_InstrumentA_prof += 'CATOIRE Mélanie ';
+ adherent_eleve2_InstrumentA_prof += 'CAUCHEFER Marie ';
+ adherent_eleve2_InstrumentA_prof += 'CHAUSSADE Amélie ';
+ adherent_eleve2_InstrumentA_prof += 'CHITEPO Chiyedza ';
+ adherent_eleve2_InstrumentA_prof += 'COLLIN Ombeline ';
+ adherent_eleve2_InstrumentA_prof += 'COLOMBO Axelle ';
+ adherent_eleve2_InstrumentA_prof += 'CONTI Cristina ';
+ adherent_eleve2_InstrumentA_prof += 'DE LAROUZIERE Aude ';
+ adherent_eleve2_InstrumentA_prof += 'DE MALEFETTE Stéphanie ';
+ adherent_eleve2_InstrumentA_prof += 'DEVUN Danièle ';
+ adherent_eleve2_InstrumentA_prof += 'DEVUN François ';
+ adherent_eleve2_InstrumentA_prof += 'DODELIER Thibaut ';
+ adherent_eleve2_InstrumentA_prof += 'DUTOIT Sophie ';
+ adherent_eleve2_InstrumentA_prof += 'EYMARD Marianne ';
+ adherent_eleve2_InstrumentA_prof += 'FARGEOT-MAUCHE Elodie ';
+ adherent_eleve2_InstrumentA_prof += 'FEGE-DUBET Blandine ';
+ adherent_eleve2_InstrumentA_prof += 'FORAY Camille ';
+ adherent_eleve2_InstrumentA_prof += 'FORTUNE Fanny ';
+ adherent_eleve2_InstrumentA_prof += 'GAZZOLA Stefania ';
+ adherent_eleve2_InstrumentA_prof += 'GILLIERON Eve ';
+ adherent_eleve2_InstrumentA_prof += 'GRIMAND-BOUDIER Hélène ';
+ adherent_eleve2_InstrumentA_prof += 'GUYONNET Jonathan ';
+ adherent_eleve2_InstrumentA_prof += 'JONVILLE Pauline ';
+ adherent_eleve2_InstrumentA_prof += 'KHALLOUKY Eva ';
+ adherent_eleve2_InstrumentA_prof += 'LAPLANCHE Isabelle ';
+ adherent_eleve2_InstrumentA_prof += 'LAUBEPIN Mathilde ';
+ adherent_eleve2_InstrumentA_prof += 'LECLAIRE Larissa ';
+ adherent_eleve2_InstrumentA_prof += 'LESAING Isabelle ';
+ adherent_eleve2_InstrumentA_prof += 'LLEDO Daniel ';
+ adherent_eleve2_InstrumentA_prof += 'MARGAIN Marine ';
+ adherent_eleve2_InstrumentA_prof += 'MARTIN Joanne ';
+ adherent_eleve2_InstrumentA_prof += 'MELCONIAN Annie ';
+ adherent_eleve2_InstrumentA_prof += 'MICCIO Nadine ';
+ adherent_eleve2_InstrumentA_prof += 'MODAFFARI Adrien ';
+ adherent_eleve2_InstrumentA_prof += 'ODDOU Julie ';
+ adherent_eleve2_InstrumentA_prof += 'OLIVIER Marc ';
+ adherent_eleve2_InstrumentA_prof += 'PAGES Anne ';
+ adherent_eleve2_InstrumentA_prof += 'POL Anaïs ';
+ adherent_eleve2_InstrumentA_prof += 'PROST Geneviève ';
+ adherent_eleve2_InstrumentA_prof += 'RAIFFAUD Marine ';
+ adherent_eleve2_InstrumentA_prof += 'RAFTERY Aine ';
+ adherent_eleve2_InstrumentA_prof += 'READ Sophie ';
+ adherent_eleve2_InstrumentA_prof += 'RENARD Christelle ';
+ adherent_eleve2_InstrumentA_prof += 'RENTY Anna Maria ';
+ adherent_eleve2_InstrumentA_prof += 'ROSSOT Marie ';
+ adherent_eleve2_InstrumentA_prof += 'ROUTIER Rachel ';
+ adherent_eleve2_InstrumentA_prof += 'RUCLI Vanessa ';
+ adherent_eleve2_InstrumentA_prof += 'SANCHEZ-GUZMAN Ana-Maria ';
+ adherent_eleve2_InstrumentA_prof += 'SAUVEGRAIN Anne-Laure ';
+ adherent_eleve2_InstrumentA_prof += 'SCHILLER Jennifer ';
+ adherent_eleve2_InstrumentA_prof += 'SEIGNEURIN Aegine ';
+ adherent_eleve2_InstrumentA_prof += 'SELMANI Enkeleida ';
+ adherent_eleve2_InstrumentA_prof += 'SIMON Juliette ';
+ adherent_eleve2_InstrumentA_prof += 'SOL-MOLINER Aurore ';
+ adherent_eleve2_InstrumentA_prof += 'TISSOT Roxane ';
+ adherent_eleve2_InstrumentA_prof += 'VELU Marie ';
+ adherent_eleve2_InstrumentA_prof += 'VERDIER Iléana-Brandusa ';
+ adherent_eleve2_InstrumentA_prof += 'XHABIA Daniela ';
+ adherent_eleve2_InstrumentA_prof += 'ZANKO Barbara ';
+ adherent_eleve2_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = adherent_eleve2_InstrumentA_prof;
+ adherent_eleve2_InstrumentA_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = '';
+ adherent_eleve2_InstrumentA_prof = ' ';
+ adherent_eleve2_InstrumentA_prof += 'BERTAZZON Virginie ';
+ adherent_eleve2_InstrumentA_prof += 'BEYRIS Carlos ';
+ adherent_eleve2_InstrumentA_prof += 'BOISSIERE Lison ';
+ adherent_eleve2_InstrumentA_prof += 'BOYAUD Chloé ';
+ adherent_eleve2_InstrumentA_prof += 'BRESSON Alexandre ';
+ adherent_eleve2_InstrumentA_prof += 'CHARLES Faustine ';
+ adherent_eleve2_InstrumentA_prof += 'FRANCOIS Zofia ';
+ adherent_eleve2_InstrumentA_prof += 'HERVAULT Chloé ';
+ adherent_eleve2_InstrumentA_prof += 'JAEGER Chantal ';
+ adherent_eleve2_InstrumentA_prof += 'JARDINES Jacqueline ';
+ adherent_eleve2_InstrumentA_prof += 'LATIL Chantal ';
+ adherent_eleve2_InstrumentA_prof += 'LAUGENIE Anaïs ';
+ adherent_eleve2_InstrumentA_prof += 'LAUGENIE Florence ';
+ adherent_eleve2_InstrumentA_prof += 'LECRAS - PARAIRE Amandine ';
+ adherent_eleve2_InstrumentA_prof += 'LOBET Sophie ';
+ adherent_eleve2_InstrumentA_prof += 'OTALORA Luz Dary ';
+ adherent_eleve2_InstrumentA_prof += 'PASUT Ugo ';
+ adherent_eleve2_InstrumentA_prof += 'RENAUD Johanna ';
+ adherent_eleve2_InstrumentA_prof += 'RIEDEL Rebekka ';
+ adherent_eleve2_InstrumentA_prof += 'RIVERA Ruben ';
+ adherent_eleve2_InstrumentA_prof += 'ROUSSEL Sandrine ';
+ adherent_eleve2_InstrumentA_prof += 'SEGUIN Hélène ';
+ adherent_eleve2_InstrumentA_prof += 'SPRENG Alexander ';
+ adherent_eleve2_InstrumentA_prof += 'VIDAL Pauline ';
+ adherent_eleve2_InstrumentA_prof += 'WILSON Ariane ';
+ adherent_eleve2_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = adherent_eleve2_InstrumentA_prof;
+ adherent_eleve2_InstrumentA_prof ='';
+ };
+ if (select.value == "SECE"){
+ console.log("on est dans le SECE");
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = '';
+ adherent_eleve2_InstrumentA_prof = ' ';
+ adherent_eleve2_InstrumentA_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve2_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentA_prof").innerHTML = adherent_eleve2_InstrumentA_prof;
+ adherent_eleve2_InstrumentA_prof ='';
+ };
+};
+
+const select_eleve2_InstrumentB = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_eleve2_InstrumentB_prof = ' ';
+ adherent_eleve2_InstrumentB_prof += 'PLATONE Hélène ';
+ adherent_eleve2_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = adherent_eleve2_InstrumentB_prof;
+ adherent_eleve2_InstrumentB_prof ='';
+ };
+ if (select.value == "Contrebasse"){
+ console.log("on est dans le Contrebasse");
+ adherent_eleve2_InstrumentB_prof = ' ';
+ adherent_eleve2_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = adherent_eleve2_InstrumentB_prof;
+ adherent_eleve2_InstrumentB_prof ='';
+ };
+ if (select.value == "Flûte traversière"){
+ console.log("on est dans le Flûte traversière");
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = '';
+ adherent_eleve2_InstrumentB_prof = ' ';
+ adherent_eleve2_InstrumentB_prof += 'DOZO Guadalupe ';
+ adherent_eleve2_InstrumentB_prof += 'MILLE Christelle ';
+ adherent_eleve2_InstrumentB_prof += 'MONTAGNA Cristina ';
+ adherent_eleve2_InstrumentB_prof += 'PAILLOT-DURY Catherine ';
+ adherent_eleve2_InstrumentB_prof += 'PRIESTER Fanny ';
+ adherent_eleve2_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = adherent_eleve2_InstrumentB_prof;
+ adherent_eleve2_InstrumentB_prof ='';
+ };
+ if (select.value == "Guitare"){
+ console.log("on est dans le Guitare");
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = '';
+ adherent_eleve2_InstrumentB_prof = ' ';
+ adherent_eleve2_InstrumentB_prof += 'FAU Benjamin ';
+ adherent_eleve2_InstrumentB_prof += 'LOFFLER Marcelo ';
+ adherent_eleve2_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = adherent_eleve2_InstrumentB_prof;
+ adherent_eleve2_InstrumentB_prof ='';
+ };
+ if (select.value == "Harpe"){
+ console.log("on est dans le Harpe");
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = '';
+ adherent_eleve2_InstrumentB_prof = ' ';
+ adherent_eleve2_InstrumentB_prof += 'BASMADJIAN-POIRIER Muriel ';
+ adherent_eleve2_InstrumentB_prof += 'DENIS Raphaëlle ';
+ adherent_eleve2_InstrumentB_prof += 'MAGRINI Alessandra ';
+ adherent_eleve2_InstrumentB_prof += 'RIVERA Eva ';
+ adherent_eleve2_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = adherent_eleve2_InstrumentB_prof;
+ adherent_eleve2_InstrumentB_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = '';
+ adherent_eleve2_InstrumentB_prof = ' ';
+ adherent_eleve2_InstrumentB_prof += 'BOINEAU-BENHAIM Nicole ';
+ adherent_eleve2_InstrumentB_prof += 'CALATAYUD Marielle ';
+ adherent_eleve2_InstrumentB_prof += 'CHAPRON Camille ';
+ adherent_eleve2_InstrumentB_prof += 'DENARO Luigi ';
+ adherent_eleve2_InstrumentB_prof += 'EL DACCACHE Georges ';
+ adherent_eleve2_InstrumentB_prof += 'EL KAROUT Fouad ';
+ adherent_eleve2_InstrumentB_prof += 'ESPONA Véronique ';
+ adherent_eleve2_InstrumentB_prof += 'GASTON Isabelle ';
+ adherent_eleve2_InstrumentB_prof += 'GOKELAERE Fabienne ';
+ adherent_eleve2_InstrumentB_prof += 'HAEDT- GOUSSU Camille ';
+ adherent_eleve2_InstrumentB_prof += 'KAWAHARA Koyuki ';
+ adherent_eleve2_InstrumentB_prof += 'OLIVIER-SAGAWA Reika ';
+ adherent_eleve2_InstrumentB_prof += 'PERRIN Véronique ';
+ adherent_eleve2_InstrumentB_prof += 'TCHERNOOKOV Viola ';
+ adherent_eleve2_InstrumentB_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve2_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = adherent_eleve2_InstrumentB_prof;
+ adherent_eleve2_InstrumentB_prof ='';
+ };
+ if (select.value == "Trompette"){
+ console.log("on est dans le Trompette");
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = '';
+ adherent_eleve2_InstrumentB_prof = ' ';
+ adherent_eleve2_InstrumentB_prof += 'CALVAYRAC Michel ';
+ adherent_eleve2_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = adherent_eleve2_InstrumentB_prof;
+ adherent_eleve2_InstrumentB_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = '';
+ adherent_eleve2_InstrumentB_prof = ' ';
+ adherent_eleve2_InstrumentB_prof += 'ADAMS Kate ';
+ adherent_eleve2_InstrumentB_prof += 'ALLARD Cédric ';
+ adherent_eleve2_InstrumentB_prof += 'ARESTAN Philippe ';
+ adherent_eleve2_InstrumentB_prof += 'AUDUC Cécile ';
+ adherent_eleve2_InstrumentB_prof += 'BAUJARD Mariko ';
+ adherent_eleve2_InstrumentB_prof += 'BEAU-FAUCHER Gaëlle ';
+ adherent_eleve2_InstrumentB_prof += 'BEETSCHEN Ghislaine ';
+ adherent_eleve2_InstrumentB_prof += 'BERNARDON Vincent ';
+ adherent_eleve2_InstrumentB_prof += 'BONHOMME Amandine ';
+ adherent_eleve2_InstrumentB_prof += 'BOSSUAT Christophe ';
+ adherent_eleve2_InstrumentB_prof += 'CABLEY-DENOIX Hélène ';
+ adherent_eleve2_InstrumentB_prof += 'CACHOT Sigismond ';
+ adherent_eleve2_InstrumentB_prof += 'CALVAYRAC Danielle ';
+ adherent_eleve2_InstrumentB_prof += 'CASTOR Gaëlle ';
+ adherent_eleve2_InstrumentB_prof += 'CATOIRE Mélanie ';
+ adherent_eleve2_InstrumentB_prof += 'CAUCHEFER Marie ';
+ adherent_eleve2_InstrumentB_prof += 'CHAUSSADE Amélie ';
+ adherent_eleve2_InstrumentB_prof += 'CHITEPO Chiyedza ';
+ adherent_eleve2_InstrumentB_prof += 'COLLIN Ombeline ';
+ adherent_eleve2_InstrumentB_prof += 'COLOMBO Axelle ';
+ adherent_eleve2_InstrumentB_prof += 'CONTI Cristina ';
+ adherent_eleve2_InstrumentB_prof += 'DE LAROUZIERE Aude ';
+ adherent_eleve2_InstrumentB_prof += 'DE MALEFETTE Stéphanie ';
+ adherent_eleve2_InstrumentB_prof += 'DEVUN Danièle ';
+ adherent_eleve2_InstrumentB_prof += 'DEVUN François ';
+ adherent_eleve2_InstrumentB_prof += 'DODELIER Thibaut ';
+ adherent_eleve2_InstrumentB_prof += 'DUTOIT Sophie ';
+ adherent_eleve2_InstrumentB_prof += 'EYMARD Marianne ';
+ adherent_eleve2_InstrumentB_prof += 'FARGEOT-MAUCHE Elodie ';
+ adherent_eleve2_InstrumentB_prof += 'FEGE-DUBET Blandine ';
+ adherent_eleve2_InstrumentB_prof += 'FORAY Camille ';
+ adherent_eleve2_InstrumentB_prof += 'FORTUNE Fanny ';
+ adherent_eleve2_InstrumentB_prof += 'GAZZOLA Stefania ';
+ adherent_eleve2_InstrumentB_prof += 'GILLIERON Eve ';
+ adherent_eleve2_InstrumentB_prof += 'GRIMAND-BOUDIER Hélène ';
+ adherent_eleve2_InstrumentB_prof += 'GUYONNET Jonathan ';
+ adherent_eleve2_InstrumentB_prof += 'JONVILLE Pauline ';
+ adherent_eleve2_InstrumentB_prof += 'KHALLOUKY Eva ';
+ adherent_eleve2_InstrumentB_prof += 'LAPLANCHE Isabelle ';
+ adherent_eleve2_InstrumentB_prof += 'LAUBEPIN Mathilde ';
+ adherent_eleve2_InstrumentB_prof += 'LECLAIRE Larissa ';
+ adherent_eleve2_InstrumentB_prof += 'LESAING Isabelle ';
+ adherent_eleve2_InstrumentB_prof += 'LLEDO Daniel ';
+ adherent_eleve2_InstrumentB_prof += 'MARGAIN Marine ';
+ adherent_eleve2_InstrumentB_prof += 'MARTIN Joanne ';
+ adherent_eleve2_InstrumentB_prof += 'MELCONIAN Annie ';
+ adherent_eleve2_InstrumentB_prof += 'MICCIO Nadine ';
+ adherent_eleve2_InstrumentB_prof += 'MODAFFARI Adrien ';
+ adherent_eleve2_InstrumentB_prof += 'ODDOU Julie ';
+ adherent_eleve2_InstrumentB_prof += 'OLIVIER Marc ';
+ adherent_eleve2_InstrumentB_prof += 'PAGES Anne ';
+ adherent_eleve2_InstrumentB_prof += 'POL Anaïs ';
+ adherent_eleve2_InstrumentB_prof += 'PROST Geneviève ';
+ adherent_eleve2_InstrumentB_prof += 'RAFTERY Aine ';
+ adherent_eleve2_InstrumentB_prof += 'RAIFFAUD Marine ';
+ adherent_eleve2_InstrumentB_prof += 'READ Sophie ';
+ adherent_eleve2_InstrumentB_prof += 'RENARD Christelle ';
+ adherent_eleve2_InstrumentB_prof += 'RENTY Anna Maria ';
+ adherent_eleve2_InstrumentB_prof += 'ROSSOT Marie ';
+ adherent_eleve2_InstrumentB_prof += 'ROUTIER Rachel ';
+ adherent_eleve2_InstrumentB_prof += 'RUCLI Vanessa ';
+ adherent_eleve2_InstrumentB_prof += 'SANCHEZ-GUZMAN Ana-Maria ';
+ adherent_eleve2_InstrumentB_prof += 'SAUVEGRAIN Anne-Laure ';
+ adherent_eleve2_InstrumentB_prof += 'SCHILLER Jennifer ';
+ adherent_eleve2_InstrumentB_prof += 'SEIGNEURIN Aegine ';
+ adherent_eleve2_InstrumentB_prof += 'SELMANI Enkeleida ';
+ adherent_eleve2_InstrumentB_prof += 'SIMON Juliette ';
+ adherent_eleve2_InstrumentB_prof += 'SOL-MOLINER Aurore ';
+ adherent_eleve2_InstrumentB_prof += 'TISSOT Roxane ';
+ adherent_eleve2_InstrumentB_prof += 'VELU Marie ';
+ adherent_eleve2_InstrumentB_prof += 'VERDIER Iléana-Brandusa ';
+ adherent_eleve2_InstrumentB_prof += 'XHABIA Daniela ';
+ adherent_eleve2_InstrumentB_prof += 'ZANKO Barbara ';
+ adherent_eleve2_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = adherent_eleve2_InstrumentB_prof;
+ adherent_eleve2_InstrumentB_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = '';
+ adherent_eleve2_InstrumentB_prof = ' ';
+ adherent_eleve2_InstrumentB_prof += 'BERTAZZON Virginie ';
+ adherent_eleve2_InstrumentB_prof += 'BEYRIS Carlos ';
+ adherent_eleve2_InstrumentB_prof += 'BOISSIERE Lison ';
+ adherent_eleve2_InstrumentB_prof += 'BOYAUD Chloé ';
+ adherent_eleve2_InstrumentB_prof += 'BRESSON Alexandre ';
+ adherent_eleve2_InstrumentB_prof += 'CHARLES Faustine ';
+ adherent_eleve2_InstrumentB_prof += 'FRANCOIS Zofia ';
+ adherent_eleve2_InstrumentB_prof += 'HERVAULT Chloé ';
+ adherent_eleve2_InstrumentB_prof += 'JAEGER Chantal ';
+ adherent_eleve2_InstrumentB_prof += 'JARDINES Jacqueline ';
+ adherent_eleve2_InstrumentB_prof += 'LATIL Chantal ';
+ adherent_eleve2_InstrumentB_prof += 'LAUGENIE Anaïs ';
+ adherent_eleve2_InstrumentB_prof += 'LAUGENIE Florence ';
+ adherent_eleve2_InstrumentB_prof += 'LECRAS - PARAIRE Amandine ';
+ adherent_eleve2_InstrumentB_prof += 'LOBET Sophie ';
+ adherent_eleve2_InstrumentB_prof += 'OTALORA Luz Dary ';
+ adherent_eleve2_InstrumentB_prof += 'PASUT Ugo ';
+ adherent_eleve2_InstrumentB_prof += 'RENAUD Johanna ';
+ adherent_eleve2_InstrumentB_prof += 'RIEDEL Rebekka ';
+ adherent_eleve2_InstrumentB_prof += 'RIVERA Ruben ';
+ adherent_eleve2_InstrumentB_prof += 'ROUSSEL Sandrine ';
+ adherent_eleve2_InstrumentB_prof += 'SEGUIN Hélène ';
+ adherent_eleve2_InstrumentB_prof += 'SPRENG Alexander ';
+ adherent_eleve2_InstrumentB_prof += 'VIDAL Pauline ';
+ adherent_eleve2_InstrumentB_prof += 'WILSON Ariane ';
+ adherent_eleve2_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = adherent_eleve2_InstrumentB_prof;
+ adherent_eleve2_InstrumentB_prof ='';
+ };
+ if (select.value == "SECE"){
+ console.log("on est dans le SECE");
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = '';
+ adherent_eleve2_InstrumentB_prof = ' ';
+ adherent_eleve2_InstrumentB_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve2_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve2_InstrumentB_prof").innerHTML = adherent_eleve2_InstrumentB_prof;
+ adherent_eleve2_InstrumentB_prof ='';
+ };
+};
+
+const select_eleve3_InstrumentA = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_eleve3_InstrumentA_prof = ' ';
+ adherent_eleve3_InstrumentA_prof += 'PLATONE Hélène ';
+ adherent_eleve3_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = adherent_eleve3_InstrumentA_prof;
+ adherent_eleve3_InstrumentA_prof ='';
+ };
+ if (select.value == "Contrebasse"){
+ console.log("on est dans le Contrebasse");
+ adherent_eleve3_InstrumentA_prof = ' ';
+ adherent_eleve3_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = adherent_eleve3_InstrumentA_prof;
+ adherent_eleve3_InstrumentA_prof ='';
+ };
+ if (select.value == "Flûte traversière"){
+ console.log("on est dans le Flûte traversière");
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = '';
+ adherent_eleve3_InstrumentA_prof = ' ';
+ adherent_eleve3_InstrumentA_prof += 'DOZO Guadalupe ';
+ adherent_eleve3_InstrumentA_prof += 'MILLE Christelle ';
+ adherent_eleve3_InstrumentA_prof += 'MONTAGNA Cristina ';
+ adherent_eleve3_InstrumentA_prof += 'PAILLOT-DURY Catherine ';
+ adherent_eleve3_InstrumentA_prof += 'PRIESTER Fanny ';
+ adherent_eleve3_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = adherent_eleve3_InstrumentA_prof;
+ adherent_eleve3_InstrumentA_prof ='';
+ };
+ if (select.value == "Guitare"){
+ console.log("on est dans le Guitare");
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = '';
+ adherent_eleve3_InstrumentA_prof = ' ';
+ adherent_eleve3_InstrumentA_prof += 'FAU Benjamin ';
+ adherent_eleve3_InstrumentA_prof += 'LOFFLER Marcelo ';
+ adherent_eleve3_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = adherent_eleve3_InstrumentA_prof;
+ adherent_eleve3_InstrumentA_prof ='';
+ };
+ if (select.value == "Harpe"){
+ console.log("on est dans le Harpe");
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = '';
+ adherent_eleve3_InstrumentA_prof = ' ';
+ adherent_eleve3_InstrumentA_prof += 'BASMADJIAN-POIRIER Muriel ';
+ adherent_eleve3_InstrumentA_prof += 'DENIS Raphaëlle ';
+ adherent_eleve3_InstrumentA_prof += 'MAGRINI Alessandra ';
+ adherent_eleve3_InstrumentA_prof += 'RIVERA Eva ';
+ adherent_eleve3_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = adherent_eleve3_InstrumentA_prof;
+ adherent_eleve3_InstrumentA_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = '';
+ adherent_eleve3_InstrumentA_prof = ' ';
+ adherent_eleve3_InstrumentA_prof += 'BOINEAU-BENHAIM Nicole ';
+ adherent_eleve3_InstrumentA_prof += 'CALATAYUD Marielle ';
+ adherent_eleve3_InstrumentA_prof += 'CHAPRON Camille ';
+ adherent_eleve3_InstrumentA_prof += 'DENARO Luigi ';
+ adherent_eleve3_InstrumentA_prof += 'EL DACCACHE Georges ';
+ adherent_eleve3_InstrumentA_prof += 'EL KAROUT Fouad ';
+ adherent_eleve3_InstrumentA_prof += 'ESPONA Véronique ';
+ adherent_eleve3_InstrumentA_prof += 'GASTON Isabelle ';
+ adherent_eleve3_InstrumentA_prof += 'GOKELAERE Fabienne ';
+ adherent_eleve3_InstrumentA_prof += 'HAEDT- GOUSSU Camille ';
+ adherent_eleve3_InstrumentA_prof += 'KAWAHARA Koyuki ';
+ adherent_eleve3_InstrumentA_prof += 'OLIVIER-SAGAWA Reika ';
+ adherent_eleve3_InstrumentA_prof += 'PERRIN Véronique ';
+ adherent_eleve3_InstrumentA_prof += 'TCHERNOOKOV Viola ';
+ adherent_eleve3_InstrumentA_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve3_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = adherent_eleve3_InstrumentA_prof;
+ adherent_eleve3_InstrumentA_prof ='';
+ };
+ if (select.value == "Trompette"){
+ console.log("on est dans le Trompette");
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = '';
+ adherent_eleve3_InstrumentA_prof = ' ';
+ adherent_eleve3_InstrumentA_prof += 'CALVAYRAC Michel ';
+ adherent_eleve3_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = adherent_eleve3_InstrumentA_prof;
+ adherent_eleve3_InstrumentA_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = '';
+ adherent_eleve3_InstrumentA_prof = ' ';
+ adherent_eleve3_InstrumentA_prof += 'ADAMS Kate ';
+ adherent_eleve3_InstrumentA_prof += 'ALLARD Cédric ';
+ adherent_eleve3_InstrumentA_prof += 'ARESTAN Philippe ';
+ adherent_eleve3_InstrumentA_prof += 'AUDUC Cécile ';
+ adherent_eleve3_InstrumentA_prof += 'BAUJARD Mariko ';
+ adherent_eleve3_InstrumentA_prof += 'BEAU-FAUCHER Gaëlle ';
+ adherent_eleve3_InstrumentA_prof += 'BEETSCHEN Ghislaine ';
+ adherent_eleve3_InstrumentA_prof += 'BERNARDON Vincent ';
+ adherent_eleve3_InstrumentA_prof += 'BONHOMME Amandine ';
+ adherent_eleve3_InstrumentA_prof += 'BOSSUAT Christophe ';
+ adherent_eleve3_InstrumentA_prof += 'CABLEY-DENOIX Hélène ';
+ adherent_eleve3_InstrumentA_prof += 'CACHOT Sigismond ';
+ adherent_eleve3_InstrumentA_prof += 'CALVAYRAC Danielle ';
+ adherent_eleve3_InstrumentA_prof += 'CASTOR Gaëlle ';
+ adherent_eleve3_InstrumentA_prof += 'CATOIRE Mélanie ';
+ adherent_eleve3_InstrumentA_prof += 'CAUCHEFER Marie ';
+ adherent_eleve3_InstrumentA_prof += 'CHAUSSADE Amélie ';
+ adherent_eleve3_InstrumentA_prof += 'CHITEPO Chiyedza ';
+ adherent_eleve3_InstrumentA_prof += 'COLLIN Ombeline ';
+ adherent_eleve3_InstrumentA_prof += 'COLOMBO Axelle ';
+ adherent_eleve3_InstrumentA_prof += 'CONTI Cristina ';
+ adherent_eleve3_InstrumentA_prof += 'DE LAROUZIERE Aude ';
+ adherent_eleve3_InstrumentA_prof += 'DE MALEFETTE Stéphanie ';
+ adherent_eleve3_InstrumentA_prof += 'DEVUN Danièle ';
+ adherent_eleve3_InstrumentA_prof += 'DEVUN François ';
+ adherent_eleve3_InstrumentA_prof += 'DODELIER Thibaut ';
+ adherent_eleve3_InstrumentA_prof += 'DUTOIT Sophie ';
+ adherent_eleve3_InstrumentA_prof += 'EYMARD Marianne ';
+ adherent_eleve3_InstrumentA_prof += 'FARGEOT-MAUCHE Elodie ';
+ adherent_eleve3_InstrumentA_prof += 'FEGE-DUBET Blandine ';
+ adherent_eleve3_InstrumentA_prof += 'FORAY Camille ';
+ adherent_eleve3_InstrumentA_prof += 'FORTUNE Fanny ';
+ adherent_eleve3_InstrumentA_prof += 'GAZZOLA Stefania ';
+ adherent_eleve3_InstrumentA_prof += 'GILLIERON Eve ';
+ adherent_eleve3_InstrumentA_prof += 'GRIMAND-BOUDIER Hélène ';
+ adherent_eleve3_InstrumentA_prof += 'GUYONNET Jonathan ';
+ adherent_eleve3_InstrumentA_prof += 'JONVILLE Pauline ';
+ adherent_eleve3_InstrumentA_prof += 'KHALLOUKY Eva ';
+ adherent_eleve3_InstrumentA_prof += 'LAPLANCHE Isabelle ';
+ adherent_eleve3_InstrumentA_prof += 'LAUBEPIN Mathilde ';
+ adherent_eleve3_InstrumentA_prof += 'LECLAIRE Larissa ';
+ adherent_eleve3_InstrumentA_prof += 'LESAING Isabelle ';
+ adherent_eleve3_InstrumentA_prof += 'LLEDO Daniel ';
+ adherent_eleve3_InstrumentA_prof += 'MARGAIN Marine ';
+ adherent_eleve3_InstrumentA_prof += 'MARTIN Joanne ';
+ adherent_eleve3_InstrumentA_prof += 'MELCONIAN Annie ';
+ adherent_eleve3_InstrumentA_prof += 'MICCIO Nadine ';
+ adherent_eleve3_InstrumentA_prof += 'MODAFFARI Adrien ';
+ adherent_eleve3_InstrumentA_prof += 'ODDOU Julie ';
+ adherent_eleve3_InstrumentA_prof += 'OLIVIER Marc ';
+ adherent_eleve3_InstrumentA_prof += 'PAGES Anne ';
+ adherent_eleve3_InstrumentA_prof += 'POL Anaïs ';
+ adherent_eleve3_InstrumentA_prof += 'PROST Geneviève ';
+ adherent_eleve3_InstrumentA_prof += 'RAFTERY Aine ';
+ adherent_eleve3_InstrumentA_prof += 'RAIFFAUD Marine ';
+ adherent_eleve3_InstrumentA_prof += 'READ Sophie ';
+ adherent_eleve3_InstrumentA_prof += 'RENARD Christelle ';
+ adherent_eleve3_InstrumentA_prof += 'RENTY Anna Maria ';
+ adherent_eleve3_InstrumentA_prof += 'ROSSOT Marie ';
+ adherent_eleve3_InstrumentA_prof += 'ROUTIER Rachel ';
+ adherent_eleve3_InstrumentA_prof += 'RUCLI Vanessa ';
+ adherent_eleve3_InstrumentA_prof += 'SANCHEZ-GUZMAN Ana-Maria ';
+ adherent_eleve3_InstrumentA_prof += 'SAUVEGRAIN Anne-Laure ';
+ adherent_eleve3_InstrumentA_prof += 'SCHILLER Jennifer ';
+ adherent_eleve3_InstrumentA_prof += 'SEIGNEURIN Aegine ';
+ adherent_eleve3_InstrumentA_prof += 'SELMANI Enkeleida ';
+ adherent_eleve3_InstrumentA_prof += 'SIMON Juliette ';
+ adherent_eleve3_InstrumentA_prof += 'SOL-MOLINER Aurore ';
+ adherent_eleve3_InstrumentA_prof += 'TISSOT Roxane ';
+ adherent_eleve3_InstrumentA_prof += 'VELU Marie ';
+ adherent_eleve3_InstrumentA_prof += 'VERDIER Iléana-Brandusa ';
+ adherent_eleve3_InstrumentA_prof += 'XHABIA Daniela ';
+ adherent_eleve3_InstrumentA_prof += 'ZANKO Barbara ';
+ adherent_eleve3_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = adherent_eleve3_InstrumentA_prof;
+ adherent_eleve3_InstrumentA_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = '';
+ adherent_eleve3_InstrumentA_prof = ' ';
+ adherent_eleve3_InstrumentA_prof += 'BERTAZZON Virginie ';
+ adherent_eleve3_InstrumentA_prof += 'BEYRIS Carlos ';
+ adherent_eleve3_InstrumentA_prof += 'BOISSIERE Lison ';
+ adherent_eleve3_InstrumentA_prof += 'BOYAUD Chloé ';
+ adherent_eleve3_InstrumentA_prof += 'BRESSON Alexandre ';
+ adherent_eleve3_InstrumentA_prof += 'CHARLES Faustine ';
+ adherent_eleve3_InstrumentA_prof += 'FRANCOIS Zofia ';
+ adherent_eleve3_InstrumentA_prof += 'HERVAULT Chloé ';
+ adherent_eleve3_InstrumentA_prof += 'JAEGER Chantal ';
+ adherent_eleve3_InstrumentA_prof += 'JARDINES Jacqueline ';
+ adherent_eleve3_InstrumentA_prof += 'LATIL Chantal ';
+ adherent_eleve3_InstrumentA_prof += 'LAUGENIE Anaïs ';
+ adherent_eleve3_InstrumentA_prof += 'LAUGENIE Florence ';
+ adherent_eleve3_InstrumentA_prof += 'LECRAS - PARAIRE Amandine ';
+ adherent_eleve3_InstrumentA_prof += 'LOBET Sophie ';
+ adherent_eleve3_InstrumentA_prof += 'OTALORA Luz Dary ';
+ adherent_eleve3_InstrumentA_prof += 'PASUT Ugo ';
+ adherent_eleve3_InstrumentA_prof += 'RENAUD Johanna ';
+ adherent_eleve3_InstrumentA_prof += 'RIEDEL Rebekka ';
+ adherent_eleve3_InstrumentA_prof += 'RIVERA Ruben ';
+ adherent_eleve3_InstrumentA_prof += 'ROUSSEL Sandrine ';
+ adherent_eleve3_InstrumentA_prof += 'SEGUIN Hélène ';
+ adherent_eleve3_InstrumentA_prof += 'SPRENG Alexander ';
+ adherent_eleve3_InstrumentA_prof += 'VIDAL Pauline ';
+ adherent_eleve3_InstrumentA_prof += 'WILSON Ariane ';
+ adherent_eleve3_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = adherent_eleve3_InstrumentA_prof;
+ adherent_eleve3_InstrumentA_prof ='';
+ };
+ if (select.value == "SECE"){
+ console.log("on est dans le SECE");
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = '';
+ adherent_eleve3_InstrumentA_prof = ' ';
+ adherent_eleve3_InstrumentA_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve3_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentA_prof").innerHTML = adherent_eleve3_InstrumentA_prof;
+ adherent_eleve3_InstrumentA_prof ='';
+ };
+};
+
+const select_eleve3_InstrumentB = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_eleve3_InstrumentB_prof = ' ';
+ adherent_eleve3_InstrumentB_prof += 'PLATONE Hélène ';
+ adherent_eleve3_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = adherent_eleve3_InstrumentB_prof;
+ adherent_eleve3_InstrumentB_prof ='';
+ };
+ if (select.value == "Contrebasse"){
+ console.log("on est dans le Contrebasse");
+ adherent_eleve3_InstrumentB_prof = ' ';
+ adherent_eleve3_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = adherent_eleve3_InstrumentB_prof;
+ adherent_eleve3_InstrumentB_prof ='';
+ };
+ if (select.value == "Flûte traversière"){
+ console.log("on est dans le Flûte traversière");
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = '';
+ adherent_eleve3_InstrumentB_prof = ' ';
+ adherent_eleve3_InstrumentB_prof += 'DOZO Guadalupe ';
+ adherent_eleve3_InstrumentB_prof += 'MILLE Christelle ';
+ adherent_eleve3_InstrumentB_prof += 'MONTAGNA Cristina ';
+ adherent_eleve3_InstrumentB_prof += 'PAILLOT-DURY Catherine ';
+ adherent_eleve3_InstrumentB_prof += 'PRIESTER Fanny ';
+ adherent_eleve3_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = adherent_eleve3_InstrumentB_prof;
+ adherent_eleve3_InstrumentB_prof ='';
+ };
+ if (select.value == "Guitare"){
+ console.log("on est dans le Guitare");
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = '';
+ adherent_eleve3_InstrumentB_prof = ' ';
+ adherent_eleve3_InstrumentB_prof += 'FAU Benjamin ';
+ adherent_eleve3_InstrumentB_prof += 'LOFFLER Marcelo ';
+ adherent_eleve3_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = adherent_eleve3_InstrumentB_prof;
+ adherent_eleve3_InstrumentB_prof ='';
+ };
+ if (select.value == "Harpe"){
+ console.log("on est dans le Harpe");
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = '';
+ adherent_eleve3_InstrumentB_prof = ' ';
+ adherent_eleve3_InstrumentB_prof += 'BASMADJIAN-POIRIER Muriel ';
+ adherent_eleve3_InstrumentB_prof += 'DENIS Raphaëlle ';
+ adherent_eleve3_InstrumentB_prof += 'MAGRINI Alessandra ';
+ adherent_eleve3_InstrumentB_prof += 'RIVERA Eva ';
+ adherent_eleve3_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = adherent_eleve3_InstrumentB_prof;
+ adherent_eleve3_InstrumentB_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = '';
+ adherent_eleve3_InstrumentB_prof = ' ';
+ adherent_eleve3_InstrumentB_prof += 'BOINEAU-BENHAIM Nicole ';
+ adherent_eleve3_InstrumentB_prof += 'CALATAYUD Marielle ';
+ adherent_eleve3_InstrumentB_prof += 'CHAPRON Camille ';
+ adherent_eleve3_InstrumentB_prof += 'DENARO Luigi ';
+ adherent_eleve3_InstrumentB_prof += 'EL DACCACHE Georges ';
+ adherent_eleve3_InstrumentB_prof += 'EL KAROUT Fouad ';
+ adherent_eleve3_InstrumentB_prof += 'ESPONA Véronique ';
+ adherent_eleve3_InstrumentB_prof += 'GASTON Isabelle ';
+ adherent_eleve3_InstrumentB_prof += 'GOKELAERE Fabienne ';
+ adherent_eleve3_InstrumentB_prof += 'HAEDT- GOUSSU Camille ';
+ adherent_eleve3_InstrumentB_prof += 'KAWAHARA Koyuki ';
+ adherent_eleve3_InstrumentB_prof += 'OLIVIER-SAGAWA Reika ';
+ adherent_eleve3_InstrumentB_prof += 'PERRIN Véronique ';
+ adherent_eleve3_InstrumentB_prof += 'TCHERNOOKOV Viola ';
+ adherent_eleve3_InstrumentB_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve3_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = adherent_eleve3_InstrumentB_prof;
+ adherent_eleve3_InstrumentB_prof ='';
+ };
+ if (select.value == "Trompette"){
+ console.log("on est dans le Trompette");
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = '';
+ adherent_eleve3_InstrumentB_prof = ' ';
+ adherent_eleve3_InstrumentB_prof += 'CALVAYRAC Michel ';
+ adherent_eleve3_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = adherent_eleve3_InstrumentB_prof;
+ adherent_eleve3_InstrumentB_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = '';
+ adherent_eleve3_InstrumentB_prof = ' ';
+ adherent_eleve3_InstrumentB_prof += 'ADAMS Kate ';
+ adherent_eleve3_InstrumentB_prof += 'ALLARD Cédric ';
+ adherent_eleve3_InstrumentB_prof += 'ARESTAN Philippe ';
+ adherent_eleve3_InstrumentB_prof += 'AUDUC Cécile ';
+ adherent_eleve3_InstrumentB_prof += 'BAUJARD Mariko ';
+ adherent_eleve3_InstrumentB_prof += 'BEAU-FAUCHER Gaëlle ';
+ adherent_eleve3_InstrumentB_prof += 'BEETSCHEN Ghislaine ';
+ adherent_eleve3_InstrumentB_prof += 'BERNARDON Vincent ';
+ adherent_eleve3_InstrumentB_prof += 'BONHOMME Amandine ';
+ adherent_eleve3_InstrumentB_prof += 'BOSSUAT Christophe ';
+ adherent_eleve3_InstrumentB_prof += 'CABLEY-DENOIX Hélène ';
+ adherent_eleve3_InstrumentB_prof += 'CACHOT Sigismond ';
+ adherent_eleve3_InstrumentB_prof += 'CALVAYRAC Danielle ';
+ adherent_eleve3_InstrumentB_prof += 'CASTOR Gaëlle ';
+ adherent_eleve3_InstrumentB_prof += 'CATOIRE Mélanie ';
+ adherent_eleve3_InstrumentB_prof += 'CAUCHEFER Marie ';
+ adherent_eleve3_InstrumentB_prof += 'CHAUSSADE Amélie ';
+ adherent_eleve3_InstrumentB_prof += 'CHITEPO Chiyedza ';
+ adherent_eleve3_InstrumentB_prof += 'COLLIN Ombeline ';
+ adherent_eleve3_InstrumentB_prof += 'COLOMBO Axelle ';
+ adherent_eleve3_InstrumentB_prof += 'CONTI Cristina ';
+ adherent_eleve3_InstrumentB_prof += 'DE LAROUZIERE Aude ';
+ adherent_eleve3_InstrumentB_prof += 'DE MALEFETTE Stéphanie ';
+ adherent_eleve3_InstrumentB_prof += 'DEVUN Danièle ';
+ adherent_eleve3_InstrumentB_prof += 'DEVUN François ';
+ adherent_eleve3_InstrumentB_prof += 'DODELIER Thibaut ';
+ adherent_eleve3_InstrumentB_prof += 'DUTOIT Sophie ';
+ adherent_eleve3_InstrumentB_prof += 'EYMARD Marianne ';
+ adherent_eleve3_InstrumentB_prof += 'FARGEOT-MAUCHE Elodie ';
+ adherent_eleve3_InstrumentB_prof += 'FEGE-DUBET Blandine ';
+ adherent_eleve3_InstrumentB_prof += 'FORAY Camille ';
+ adherent_eleve3_InstrumentB_prof += 'FORTUNE Fanny ';
+ adherent_eleve3_InstrumentB_prof += 'GAZZOLA Stefania ';
+ adherent_eleve3_InstrumentB_prof += 'GILLIERON Eve ';
+ adherent_eleve3_InstrumentB_prof += 'GRIMAND-BOUDIER Hélène ';
+ adherent_eleve3_InstrumentB_prof += 'GUYONNET Jonathan ';
+ adherent_eleve3_InstrumentB_prof += 'JONVILLE Pauline ';
+ adherent_eleve3_InstrumentB_prof += 'KHALLOUKY Eva ';
+ adherent_eleve3_InstrumentB_prof += 'LAPLANCHE Isabelle ';
+ adherent_eleve3_InstrumentB_prof += 'LAUBEPIN Mathilde ';
+ adherent_eleve3_InstrumentB_prof += 'LECLAIRE Larissa ';
+ adherent_eleve3_InstrumentB_prof += 'LESAING Isabelle ';
+ adherent_eleve3_InstrumentB_prof += 'LLEDO Daniel ';
+ adherent_eleve3_InstrumentB_prof += 'MARGAIN Marine ';
+ adherent_eleve3_InstrumentB_prof += 'MARTIN Joanne ';
+ adherent_eleve3_InstrumentB_prof += 'MELCONIAN Annie ';
+ adherent_eleve3_InstrumentB_prof += 'MICCIO Nadine ';
+ adherent_eleve3_InstrumentB_prof += 'MODAFFARI Adrien ';
+ adherent_eleve3_InstrumentB_prof += 'ODDOU Julie ';
+ adherent_eleve3_InstrumentB_prof += 'OLIVIER Marc ';
+ adherent_eleve3_InstrumentB_prof += 'PAGES Anne ';
+ adherent_eleve3_InstrumentB_prof += 'POL Anaïs ';
+ adherent_eleve3_InstrumentB_prof += 'PROST Geneviève ';
+ adherent_eleve3_InstrumentB_prof += 'RAFTERY Aine ';
+ adherent_eleve3_InstrumentB_prof += 'RAIFFAUD Marine ';
+ adherent_eleve3_InstrumentB_prof += 'READ Sophie ';
+ adherent_eleve3_InstrumentB_prof += 'RENARD Christelle ';
+ adherent_eleve3_InstrumentB_prof += 'RENTY Anna Maria ';
+ adherent_eleve3_InstrumentB_prof += 'ROSSOT Marie ';
+ adherent_eleve3_InstrumentB_prof += 'ROUTIER Rachel ';
+ adherent_eleve3_InstrumentB_prof += 'RUCLI Vanessa ';
+ adherent_eleve3_InstrumentB_prof += 'SANCHEZ-GUZMAN Ana-Maria ';
+ adherent_eleve3_InstrumentB_prof += 'SAUVEGRAIN Anne-Laure ';
+ adherent_eleve3_InstrumentB_prof += 'SCHILLER Jennifer ';
+ adherent_eleve3_InstrumentB_prof += 'SEIGNEURIN Aegine ';
+ adherent_eleve3_InstrumentB_prof += 'SELMANI Enkeleida ';
+ adherent_eleve3_InstrumentB_prof += 'SIMON Juliette ';
+ adherent_eleve3_InstrumentB_prof += 'SOL-MOLINER Aurore ';
+ adherent_eleve3_InstrumentB_prof += 'TISSOT Roxane ';
+ adherent_eleve3_InstrumentB_prof += 'VELU Marie ';
+ adherent_eleve3_InstrumentB_prof += 'VERDIER Iléana-Brandusa ';
+ adherent_eleve3_InstrumentB_prof += 'XHABIA Daniela ';
+ adherent_eleve3_InstrumentB_prof += 'ZANKO Barbara ';
+ adherent_eleve3_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = adherent_eleve3_InstrumentB_prof;
+ adherent_eleve3_InstrumentB_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = '';
+ adherent_eleve3_InstrumentB_prof = ' ';
+ adherent_eleve3_InstrumentB_prof += 'BERTAZZON Virginie ';
+ adherent_eleve3_InstrumentB_prof += 'BEYRIS Carlos ';
+ adherent_eleve3_InstrumentB_prof += 'BOISSIERE Lison ';
+ adherent_eleve3_InstrumentB_prof += 'BOYAUD Chloé ';
+ adherent_eleve3_InstrumentB_prof += 'BRESSON Alexandre ';
+ adherent_eleve3_InstrumentB_prof += 'CHARLES Faustine ';
+ adherent_eleve3_InstrumentB_prof += 'FRANCOIS Zofia ';
+ adherent_eleve3_InstrumentB_prof += 'HERVAULT Chloé ';
+ adherent_eleve3_InstrumentB_prof += 'JAEGER Chantal ';
+ adherent_eleve3_InstrumentB_prof += 'JARDINES Jacqueline ';
+ adherent_eleve3_InstrumentB_prof += 'LATIL Chantal ';
+ adherent_eleve3_InstrumentB_prof += 'LAUGENIE Anaïs ';
+ adherent_eleve3_InstrumentB_prof += 'LAUGENIE Florence ';
+ adherent_eleve3_InstrumentB_prof += 'LECRAS - PARAIRE Amandine ';
+ adherent_eleve3_InstrumentB_prof += 'LOBET Sophie ';
+ adherent_eleve3_InstrumentB_prof += 'OTALORA Luz Dary ';
+ adherent_eleve3_InstrumentB_prof += 'PASUT Ugo ';
+ adherent_eleve3_InstrumentB_prof += 'RENAUD Johanna ';
+ adherent_eleve3_InstrumentB_prof += 'RIEDEL Rebekka ';
+ adherent_eleve3_InstrumentB_prof += 'RIVERA Ruben ';
+ adherent_eleve3_InstrumentB_prof += 'ROUSSEL Sandrine ';
+ adherent_eleve3_InstrumentB_prof += 'SEGUIN Hélène ';
+ adherent_eleve3_InstrumentB_prof += 'SPRENG Alexander ';
+ adherent_eleve3_InstrumentB_prof += 'VIDAL Pauline ';
+ adherent_eleve3_InstrumentB_prof += 'WILSON Ariane ';
+ adherent_eleve3_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = adherent_eleve3_InstrumentB_prof;
+ adherent_eleve3_InstrumentB_prof ='';
+ };
+ if (select.value == "SECE"){
+ console.log("on est dans le SECE");
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = '';
+ adherent_eleve3_InstrumentB_prof = ' ';
+ adherent_eleve3_InstrumentB_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve3_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve3_InstrumentB_prof").innerHTML = adherent_eleve3_InstrumentB_prof;
+ adherent_eleve3_InstrumentB_prof ='';
+ };
+};
+
+const select_eleve4_InstrumentA = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_eleve4_InstrumentA_prof = ' ';
+ adherent_eleve4_InstrumentA_prof += 'PLATONE Hélène ';
+ adherent_eleve4_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = adherent_eleve4_InstrumentA_prof;
+ adherent_eleve4_InstrumentA_prof ='';
+ };
+ if (select.value == "Contrebasse"){
+ console.log("on est dans le Contrebasse");
+ adherent_eleve4_InstrumentA_prof = ' ';
+ adherent_eleve4_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = adherent_eleve4_InstrumentA_prof;
+ adherent_eleve4_InstrumentA_prof ='';
+ };
+ if (select.value == "Flûte traversière"){
+ console.log("on est dans le Flûte traversière");
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = '';
+ adherent_eleve4_InstrumentA_prof = ' ';
+ adherent_eleve4_InstrumentA_prof += 'DOZO Guadalupe ';
+ adherent_eleve4_InstrumentA_prof += 'MILLE Christelle ';
+ adherent_eleve4_InstrumentA_prof += 'MONTAGNA Cristina ';
+ adherent_eleve4_InstrumentA_prof += 'PAILLOT-DURY Catherine ';
+ adherent_eleve4_InstrumentA_prof += 'PRIESTER Fanny ';
+ adherent_eleve4_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = adherent_eleve4_InstrumentA_prof;
+ adherent_eleve4_InstrumentA_prof ='';
+ };
+ if (select.value == "Guitare"){
+ console.log("on est dans le Guitare");
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = '';
+ adherent_eleve4_InstrumentA_prof = ' ';
+ adherent_eleve4_InstrumentA_prof += 'FAU Benjamin ';
+ adherent_eleve4_InstrumentA_prof += 'LOFFLER Marcelo ';
+ adherent_eleve4_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = adherent_eleve4_InstrumentA_prof;
+ adherent_eleve4_InstrumentA_prof ='';
+ };
+ if (select.value == "Harpe"){
+ console.log("on est dans le Harpe");
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = '';
+ adherent_eleve4_InstrumentA_prof = ' ';
+ adherent_eleve4_InstrumentA_prof += 'BASMADJIAN-POIRIER Muriel ';
+ adherent_eleve4_InstrumentA_prof += 'DENIS Raphaëlle ';
+ adherent_eleve4_InstrumentA_prof += 'MAGRINI Alessandra ';
+ adherent_eleve4_InstrumentA_prof += 'RIVERA Eva ';
+ adherent_eleve4_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = adherent_eleve4_InstrumentA_prof;
+ adherent_eleve4_InstrumentA_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = '';
+ adherent_eleve4_InstrumentA_prof = ' ';
+ adherent_eleve4_InstrumentA_prof += 'BOINEAU-BENHAIM Nicole ';
+ adherent_eleve4_InstrumentA_prof += 'CALATAYUD Marielle ';
+ adherent_eleve4_InstrumentA_prof += 'CHAPRON Camille ';
+ adherent_eleve4_InstrumentA_prof += 'DENARO Luigi ';
+ adherent_eleve4_InstrumentA_prof += 'EL DACCACHE Georges ';
+ adherent_eleve4_InstrumentA_prof += 'EL KAROUT Fouad ';
+ adherent_eleve4_InstrumentA_prof += 'ESPONA Véronique ';
+ adherent_eleve4_InstrumentA_prof += 'GASTON Isabelle ';
+ adherent_eleve4_InstrumentA_prof += 'GOKELAERE Fabienne ';
+ adherent_eleve4_InstrumentA_prof += 'HAEDT- GOUSSU Camille ';
+ adherent_eleve4_InstrumentA_prof += 'KAWAHARA Koyuki ';
+ adherent_eleve4_InstrumentA_prof += 'OLIVIER-SAGAWA Reika ';
+ adherent_eleve4_InstrumentA_prof += 'PERRIN Véronique ';
+ adherent_eleve4_InstrumentA_prof += 'TCHERNOOKOV Viola ';
+ adherent_eleve4_InstrumentA_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve4_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = adherent_eleve4_InstrumentA_prof;
+ adherent_eleve4_InstrumentA_prof ='';
+ };
+ if (select.value == "Trompette"){
+ console.log("on est dans le Trompette");
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = '';
+ adherent_eleve4_InstrumentA_prof = ' ';
+ adherent_eleve4_InstrumentA_prof += 'CALVAYRAC Michel ';
+ adherent_eleve4_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = adherent_eleve4_InstrumentA_prof;
+ adherent_eleve4_InstrumentA_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = '';
+ adherent_eleve4_InstrumentA_prof = ' ';
+ adherent_eleve4_InstrumentA_prof += 'ADAMS Kate ';
+ adherent_eleve4_InstrumentA_prof += 'ALLARD Cédric ';
+ adherent_eleve4_InstrumentA_prof += 'ARESTAN Philippe ';
+ adherent_eleve4_InstrumentA_prof += 'AUDUC Cécile ';
+ adherent_eleve4_InstrumentA_prof += 'BAUJARD Mariko ';
+ adherent_eleve4_InstrumentA_prof += 'BEAU-FAUCHER Gaëlle ';
+ adherent_eleve4_InstrumentA_prof += 'BEETSCHEN Ghislaine ';
+ adherent_eleve4_InstrumentA_prof += 'BERNARDON Vincent ';
+ adherent_eleve4_InstrumentA_prof += 'BONHOMME Amandine ';
+ adherent_eleve4_InstrumentA_prof += 'BOSSUAT Christophe ';
+ adherent_eleve4_InstrumentA_prof += 'CABLEY-DENOIX Hélène ';
+ adherent_eleve4_InstrumentA_prof += 'CACHOT Sigismond ';
+ adherent_eleve4_InstrumentA_prof += 'CALVAYRAC Danielle ';
+ adherent_eleve4_InstrumentA_prof += 'CASTOR Gaëlle ';
+ adherent_eleve4_InstrumentA_prof += 'CATOIRE Mélanie ';
+ adherent_eleve4_InstrumentA_prof += 'CAUCHEFER Marie ';
+ adherent_eleve4_InstrumentA_prof += 'CHAUSSADE Amélie ';
+ adherent_eleve4_InstrumentA_prof += 'CHITEPO Chiyedza ';
+ adherent_eleve4_InstrumentA_prof += 'COLLIN Ombeline ';
+ adherent_eleve4_InstrumentA_prof += 'COLOMBO Axelle ';
+ adherent_eleve4_InstrumentA_prof += 'CONTI Cristina ';
+ adherent_eleve4_InstrumentA_prof += 'DE LAROUZIERE Aude ';
+ adherent_eleve4_InstrumentA_prof += 'DE MALEFETTE Stéphanie ';
+ adherent_eleve4_InstrumentA_prof += 'DEVUN Danièle ';
+ adherent_eleve4_InstrumentA_prof += 'DEVUN François ';
+ adherent_eleve4_InstrumentA_prof += 'DODELIER Thibaut ';
+ adherent_eleve4_InstrumentA_prof += 'DUTOIT Sophie ';
+ adherent_eleve4_InstrumentA_prof += 'EYMARD Marianne ';
+ adherent_eleve4_InstrumentA_prof += 'FARGEOT-MAUCHE Elodie ';
+ adherent_eleve4_InstrumentA_prof += 'FEGE-DUBET Blandine ';
+ adherent_eleve4_InstrumentA_prof += 'FORAY Camille ';
+ adherent_eleve4_InstrumentA_prof += 'FORTUNE Fanny ';
+ adherent_eleve4_InstrumentA_prof += 'GAZZOLA Stefania ';
+ adherent_eleve4_InstrumentA_prof += 'GILLIERON Eve ';
+ adherent_eleve4_InstrumentA_prof += 'GRIMAND-BOUDIER Hélène ';
+ adherent_eleve4_InstrumentA_prof += 'GUYONNET Jonathan ';
+ adherent_eleve4_InstrumentA_prof += 'JONVILLE Pauline ';
+ adherent_eleve4_InstrumentA_prof += 'KHALLOUKY Eva ';
+ adherent_eleve4_InstrumentA_prof += 'LAPLANCHE Isabelle ';
+ adherent_eleve4_InstrumentA_prof += 'LAUBEPIN Mathilde ';
+ adherent_eleve4_InstrumentA_prof += 'LECLAIRE Larissa ';
+ adherent_eleve4_InstrumentA_prof += 'LESAING Isabelle ';
+ adherent_eleve4_InstrumentA_prof += 'LLEDO Daniel ';
+ adherent_eleve4_InstrumentA_prof += 'MARGAIN Marine ';
+ adherent_eleve4_InstrumentA_prof += 'MARTIN Joanne ';
+ adherent_eleve4_InstrumentA_prof += 'MELCONIAN Annie ';
+ adherent_eleve4_InstrumentA_prof += 'MICCIO Nadine ';
+ adherent_eleve4_InstrumentA_prof += 'MODAFFARI Adrien ';
+ adherent_eleve4_InstrumentA_prof += 'ODDOU Julie ';
+ adherent_eleve4_InstrumentA_prof += 'OLIVIER Marc ';
+ adherent_eleve4_InstrumentA_prof += 'PAGES Anne ';
+ adherent_eleve4_InstrumentA_prof += 'POL Anaïs ';
+ adherent_eleve4_InstrumentA_prof += 'PROST Geneviève ';
+ adherent_eleve4_InstrumentA_prof += 'RAFTERY Aine ';
+ adherent_eleve4_InstrumentA_prof += 'RAIFFAUD Marine ';
+ adherent_eleve4_InstrumentA_prof += 'READ Sophie ';
+ adherent_eleve4_InstrumentA_prof += 'RENARD Christelle ';
+ adherent_eleve4_InstrumentA_prof += 'RENTY Anna Maria ';
+ adherent_eleve4_InstrumentA_prof += 'ROSSOT Marie ';
+ adherent_eleve4_InstrumentA_prof += 'ROUTIER Rachel ';
+ adherent_eleve4_InstrumentA_prof += 'RUCLI Vanessa ';
+ adherent_eleve4_InstrumentA_prof += 'SANCHEZ-GUZMAN Ana-Maria ';
+ adherent_eleve4_InstrumentA_prof += 'SAUVEGRAIN Anne-Laure ';
+ adherent_eleve4_InstrumentA_prof += 'SCHILLER Jennifer ';
+ adherent_eleve4_InstrumentA_prof += 'SEIGNEURIN Aegine ';
+ adherent_eleve4_InstrumentA_prof += 'SELMANI Enkeleida ';
+ adherent_eleve4_InstrumentA_prof += 'SIMON Juliette ';
+ adherent_eleve4_InstrumentA_prof += 'SOL-MOLINER Aurore ';
+ adherent_eleve4_InstrumentA_prof += 'TISSOT Roxane ';
+ adherent_eleve4_InstrumentA_prof += 'VELU Marie ';
+ adherent_eleve4_InstrumentA_prof += 'VERDIER Iléana-Brandusa ';
+ adherent_eleve4_InstrumentA_prof += 'XHABIA Daniela ';
+ adherent_eleve4_InstrumentA_prof += 'ZANKO Barbara ';
+ adherent_eleve4_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = adherent_eleve4_InstrumentA_prof;
+ adherent_eleve4_InstrumentA_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = '';
+ adherent_eleve4_InstrumentA_prof = ' ';
+ adherent_eleve4_InstrumentA_prof += 'BERTAZZON Virginie ';
+ adherent_eleve4_InstrumentA_prof += 'BEYRIS Carlos ';
+ adherent_eleve4_InstrumentA_prof += 'BOISSIERE Lison ';
+ adherent_eleve4_InstrumentA_prof += 'BOYAUD Chloé ';
+ adherent_eleve4_InstrumentA_prof += 'BRESSON Alexandre ';
+ adherent_eleve4_InstrumentA_prof += 'CHARLES Faustine ';
+ adherent_eleve4_InstrumentA_prof += 'FRANCOIS Zofia ';
+ adherent_eleve4_InstrumentA_prof += 'HERVAULT Chloé ';
+ adherent_eleve4_InstrumentA_prof += 'JAEGER Chantal ';
+ adherent_eleve4_InstrumentA_prof += 'JARDINES Jacqueline ';
+ adherent_eleve4_InstrumentA_prof += 'LATIL Chantal ';
+ adherent_eleve4_InstrumentA_prof += 'LAUGENIE Anaïs ';
+ adherent_eleve4_InstrumentA_prof += 'LAUGENIE Florence ';
+ adherent_eleve4_InstrumentA_prof += 'LECRAS - PARAIRE Amandine ';
+ adherent_eleve4_InstrumentA_prof += 'LOBET Sophie ';
+ adherent_eleve4_InstrumentA_prof += 'OTALORA Luz Dary ';
+ adherent_eleve4_InstrumentA_prof += 'PASUT Ugo ';
+ adherent_eleve4_InstrumentA_prof += 'RENAUD Johanna ';
+ adherent_eleve4_InstrumentA_prof += 'RIEDEL Rebekka ';
+ adherent_eleve4_InstrumentA_prof += 'RIVERA Ruben ';
+ adherent_eleve4_InstrumentA_prof += 'ROUSSEL Sandrine ';
+ adherent_eleve4_InstrumentA_prof += 'SEGUIN Hélène ';
+ adherent_eleve4_InstrumentA_prof += 'SPRENG Alexander ';
+ adherent_eleve4_InstrumentA_prof += 'VIDAL Pauline ';
+ adherent_eleve4_InstrumentA_prof += 'WILSON Ariane ';
+ adherent_eleve4_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = adherent_eleve4_InstrumentA_prof;
+ adherent_eleve4_InstrumentA_prof ='';
+ };
+ if (select.value == "SECE"){
+ console.log("on est dans le SECE");
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = '';
+ adherent_eleve4_InstrumentA_prof = ' ';
+ adherent_eleve4_InstrumentA_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve4_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentA_prof").innerHTML = adherent_eleve4_InstrumentA_prof;
+ adherent_eleve4_InstrumentA_prof ='';
+ };
+};
+
+const select_eleve4_InstrumentB = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_eleve4_InstrumentB_prof = ' ';
+ adherent_eleve4_InstrumentB_prof += 'PLATONE Hélène ';
+ adherent_eleve4_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = adherent_eleve4_InstrumentB_prof;
+ adherent_eleve4_InstrumentB_prof ='';
+ };
+ if (select.value == "Contrebasse"){
+ console.log("on est dans le Contrebasse");
+ adherent_eleve4_InstrumentB_prof = ' ';
+ adherent_eleve4_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = adherent_eleve4_InstrumentB_prof;
+ adherent_eleve4_InstrumentB_prof ='';
+ };
+ if (select.value == "Flûte traversière"){
+ console.log("on est dans le Flûte traversière");
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = '';
+ adherent_eleve4_InstrumentB_prof = ' ';
+ adherent_eleve4_InstrumentB_prof += 'DOZO Guadalupe ';
+ adherent_eleve4_InstrumentB_prof += 'MILLE Christelle ';
+ adherent_eleve4_InstrumentB_prof += 'MONTAGNA Cristina ';
+ adherent_eleve4_InstrumentB_prof += 'PAILLOT-DURY Catherine ';
+ adherent_eleve4_InstrumentB_prof += 'PRIESTER Fanny ';
+ adherent_eleve4_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = adherent_eleve4_InstrumentB_prof;
+ adherent_eleve4_InstrumentB_prof ='';
+ };
+ if (select.value == "Guitare"){
+ console.log("on est dans le Guitare");
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = '';
+ adherent_eleve4_InstrumentB_prof = ' ';
+ adherent_eleve4_InstrumentB_prof += 'FAU Benjamin ';
+ adherent_eleve4_InstrumentB_prof += 'LOFFLER Marcelo ';
+ adherent_eleve4_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = adherent_eleve4_InstrumentB_prof;
+ adherent_eleve4_InstrumentB_prof ='';
+ };
+ if (select.value == "Harpe"){
+ console.log("on est dans le Harpe");
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = '';
+ adherent_eleve4_InstrumentB_prof = ' ';
+ adherent_eleve4_InstrumentB_prof += 'BASMADJIAN-POIRIER Muriel ';
+ adherent_eleve4_InstrumentB_prof += 'DENIS Raphaëlle ';
+ adherent_eleve4_InstrumentB_prof += 'MAGRINI Alessandra ';
+ adherent_eleve4_InstrumentB_prof += 'RIVERA Eva ';
+ adherent_eleve4_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = adherent_eleve4_InstrumentB_prof;
+ adherent_eleve4_InstrumentB_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = '';
+ adherent_eleve4_InstrumentB_prof = ' ';
+ adherent_eleve4_InstrumentB_prof += 'BOINEAU-BENHAIM Nicole ';
+ adherent_eleve4_InstrumentB_prof += 'CALATAYUD Marielle ';
+ adherent_eleve4_InstrumentB_prof += 'CHAPRON Camille ';
+ adherent_eleve4_InstrumentB_prof += 'DENARO Luigi ';
+ adherent_eleve4_InstrumentB_prof += 'EL DACCACHE Georges ';
+ adherent_eleve4_InstrumentB_prof += 'EL KAROUT Fouad ';
+ adherent_eleve4_InstrumentB_prof += 'ESPONA Véronique ';
+ adherent_eleve4_InstrumentB_prof += 'GASTON Isabelle ';
+ adherent_eleve4_InstrumentB_prof += 'GOKELAERE Fabienne ';
+ adherent_eleve4_InstrumentB_prof += 'HAEDT- GOUSSU Camille ';
+ adherent_eleve4_InstrumentB_prof += 'KAWAHARA Koyuki ';
+ adherent_eleve4_InstrumentB_prof += 'OLIVIER-SAGAWA Reika ';
+ adherent_eleve4_InstrumentB_prof += 'PERRIN Véronique ';
+ adherent_eleve4_InstrumentB_prof += 'TCHERNOOKOV Viola ';
+ adherent_eleve4_InstrumentB_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve4_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = adherent_eleve4_InstrumentB_prof;
+ adherent_eleve4_InstrumentB_prof ='';
+ };
+ if (select.value == "Trompette"){
+ console.log("on est dans le Trompette");
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = '';
+ adherent_eleve4_InstrumentB_prof = ' ';
+ adherent_eleve4_InstrumentB_prof += 'CALVAYRAC Michel ';
+ adherent_eleve4_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = adherent_eleve4_InstrumentB_prof;
+ adherent_eleve4_InstrumentB_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = '';
+ adherent_eleve4_InstrumentB_prof = ' ';
+ adherent_eleve4_InstrumentB_prof += 'ADAMS Kate ';
+ adherent_eleve4_InstrumentB_prof += 'ALLARD Cédric ';
+ adherent_eleve4_InstrumentB_prof += 'ARESTAN Philippe ';
+ adherent_eleve4_InstrumentB_prof += 'AUDUC Cécile ';
+ adherent_eleve4_InstrumentB_prof += 'BAUJARD Mariko ';
+ adherent_eleve4_InstrumentB_prof += 'BEAU-FAUCHER Gaëlle ';
+ adherent_eleve4_InstrumentB_prof += 'BEETSCHEN Ghislaine ';
+ adherent_eleve4_InstrumentB_prof += 'BERNARDON Vincent ';
+ adherent_eleve4_InstrumentB_prof += 'BONHOMME Amandine ';
+ adherent_eleve4_InstrumentB_prof += 'BOSSUAT Christophe ';
+ adherent_eleve4_InstrumentB_prof += 'CABLEY-DENOIX Hélène ';
+ adherent_eleve4_InstrumentB_prof += 'CACHOT Sigismond ';
+ adherent_eleve4_InstrumentB_prof += 'CALVAYRAC Danielle ';
+ adherent_eleve4_InstrumentB_prof += 'CASTOR Gaëlle ';
+ adherent_eleve4_InstrumentB_prof += 'CATOIRE Mélanie ';
+ adherent_eleve4_InstrumentB_prof += 'CAUCHEFER Marie ';
+ adherent_eleve4_InstrumentB_prof += 'CHAUSSADE Amélie ';
+ adherent_eleve4_InstrumentB_prof += 'CHITEPO Chiyedza ';
+ adherent_eleve4_InstrumentB_prof += 'COLLIN Ombeline ';
+ adherent_eleve4_InstrumentB_prof += 'COLOMBO Axelle ';
+ adherent_eleve4_InstrumentB_prof += 'CONTI Cristina ';
+ adherent_eleve4_InstrumentB_prof += 'DE LAROUZIERE Aude ';
+ adherent_eleve4_InstrumentB_prof += 'DE MALEFETTE Stéphanie ';
+ adherent_eleve4_InstrumentB_prof += 'DEVUN Danièle ';
+ adherent_eleve4_InstrumentB_prof += 'DEVUN François ';
+ adherent_eleve4_InstrumentB_prof += 'DODELIER Thibaut ';
+ adherent_eleve4_InstrumentB_prof += 'DUTOIT Sophie ';
+ adherent_eleve4_InstrumentB_prof += 'EYMARD Marianne ';
+ adherent_eleve4_InstrumentB_prof += 'FARGEOT-MAUCHE Elodie ';
+ adherent_eleve4_InstrumentB_prof += 'FEGE-DUBET Blandine ';
+ adherent_eleve4_InstrumentB_prof += 'FORAY Camille ';
+ adherent_eleve4_InstrumentB_prof += 'FORTUNE Fanny ';
+ adherent_eleve4_InstrumentB_prof += 'GAZZOLA Stefania ';
+ adherent_eleve4_InstrumentB_prof += 'GILLIERON Eve ';
+ adherent_eleve4_InstrumentB_prof += 'GRIMAND-BOUDIER Hélène ';
+ adherent_eleve4_InstrumentB_prof += 'GUYONNET Jonathan ';
+ adherent_eleve4_InstrumentB_prof += 'JONVILLE Pauline ';
+ adherent_eleve4_InstrumentB_prof += 'KHALLOUKY Eva ';
+ adherent_eleve4_InstrumentB_prof += 'LAPLANCHE Isabelle ';
+ adherent_eleve4_InstrumentB_prof += 'LAUBEPIN Mathilde ';
+ adherent_eleve4_InstrumentB_prof += 'LECLAIRE Larissa ';
+ adherent_eleve4_InstrumentB_prof += 'LESAING Isabelle ';
+ adherent_eleve4_InstrumentB_prof += 'LLEDO Daniel ';
+ adherent_eleve4_InstrumentB_prof += 'MARGAIN Marine ';
+ adherent_eleve4_InstrumentB_prof += 'MARTIN Joanne ';
+ adherent_eleve4_InstrumentB_prof += 'MELCONIAN Annie ';
+ adherent_eleve4_InstrumentB_prof += 'MICCIO Nadine ';
+ adherent_eleve4_InstrumentB_prof += 'MODAFFARI Adrien ';
+ adherent_eleve4_InstrumentB_prof += 'ODDOU Julie ';
+ adherent_eleve4_InstrumentB_prof += 'OLIVIER Marc ';
+ adherent_eleve4_InstrumentB_prof += 'PAGES Anne ';
+ adherent_eleve4_InstrumentB_prof += 'POL Anaïs ';
+ adherent_eleve4_InstrumentB_prof += 'PROST Geneviève ';
+ adherent_eleve4_InstrumentB_prof += 'RAFTERY Aine ';
+ adherent_eleve4_InstrumentB_prof += 'RAIFFAUD Marine ';
+ adherent_eleve4_InstrumentB_prof += 'READ Sophie ';
+ adherent_eleve4_InstrumentB_prof += 'RENARD Christelle ';
+ adherent_eleve4_InstrumentB_prof += 'RENTY Anna Maria ';
+ adherent_eleve4_InstrumentB_prof += 'ROSSOT Marie ';
+ adherent_eleve4_InstrumentB_prof += 'ROUTIER Rachel ';
+ adherent_eleve4_InstrumentB_prof += 'RUCLI Vanessa ';
+ adherent_eleve4_InstrumentB_prof += 'SANCHEZ-GUZMAN Ana-Maria ';
+ adherent_eleve4_InstrumentB_prof += 'SAUVEGRAIN Anne-Laure ';
+ adherent_eleve4_InstrumentB_prof += 'SCHILLER Jennifer ';
+ adherent_eleve4_InstrumentB_prof += 'SEIGNEURIN Aegine ';
+ adherent_eleve4_InstrumentB_prof += 'SELMANI Enkeleida ';
+ adherent_eleve4_InstrumentB_prof += 'SIMON Juliette ';
+ adherent_eleve4_InstrumentB_prof += 'SOL-MOLINER Aurore ';
+ adherent_eleve4_InstrumentB_prof += 'TISSOT Roxane ';
+ adherent_eleve4_InstrumentB_prof += 'VELU Marie ';
+ adherent_eleve4_InstrumentB_prof += 'VERDIER Iléana-Brandusa ';
+ adherent_eleve4_InstrumentB_prof += 'XHABIA Daniela ';
+ adherent_eleve4_InstrumentB_prof += 'ZANKO Barbara ';
+ adherent_eleve4_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = adherent_eleve4_InstrumentB_prof;
+ adherent_eleve4_InstrumentB_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = '';
+ adherent_eleve4_InstrumentB_prof = ' ';
+ adherent_eleve4_InstrumentB_prof += 'BERTAZZON Virginie ';
+ adherent_eleve4_InstrumentB_prof += 'BEYRIS Carlos ';
+ adherent_eleve4_InstrumentB_prof += 'BOISSIERE Lison ';
+ adherent_eleve4_InstrumentB_prof += 'BOYAUD Chloé ';
+ adherent_eleve4_InstrumentB_prof += 'BRESSON Alexandre ';
+ adherent_eleve4_InstrumentB_prof += 'CHARLES Faustine ';
+ adherent_eleve4_InstrumentB_prof += 'FRANCOIS Zofia ';
+ adherent_eleve4_InstrumentB_prof += 'HERVAULT Chloé ';
+ adherent_eleve4_InstrumentB_prof += 'JAEGER Chantal ';
+ adherent_eleve4_InstrumentB_prof += 'JARDINES Jacqueline ';
+ adherent_eleve4_InstrumentB_prof += 'LATIL Chantal ';
+ adherent_eleve4_InstrumentB_prof += 'LAUGENIE Anaïs ';
+ adherent_eleve4_InstrumentB_prof += 'LAUGENIE Florence ';
+ adherent_eleve4_InstrumentB_prof += 'LECRAS - PARAIRE Amandine ';
+ adherent_eleve4_InstrumentB_prof += 'LOBET Sophie ';
+ adherent_eleve4_InstrumentB_prof += 'OTALORA Luz Dary ';
+ adherent_eleve4_InstrumentB_prof += 'PASUT Ugo ';
+ adherent_eleve4_InstrumentB_prof += 'RENAUD Johanna ';
+ adherent_eleve4_InstrumentB_prof += 'RIEDEL Rebekka ';
+ adherent_eleve4_InstrumentB_prof += 'RIVERA Ruben ';
+ adherent_eleve4_InstrumentB_prof += 'ROUSSEL Sandrine ';
+ adherent_eleve4_InstrumentB_prof += 'SEGUIN Hélène ';
+ adherent_eleve4_InstrumentB_prof += 'SPRENG Alexander ';
+ adherent_eleve4_InstrumentB_prof += 'VIDAL Pauline ';
+ adherent_eleve4_InstrumentB_prof += 'WILSON Ariane ';
+ adherent_eleve4_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = adherent_eleve4_InstrumentB_prof;
+ adherent_eleve4_InstrumentB_prof ='';
+ };
+ if (select.value == "SECE"){
+ console.log("on est dans le SECE");
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = '';
+ adherent_eleve4_InstrumentB_prof = ' ';
+ adherent_eleve4_InstrumentB_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve4_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve4_InstrumentB_prof").innerHTML = adherent_eleve4_InstrumentB_prof;
+ adherent_eleve4_InstrumentB_prof ='';
+ };
+};
+
+const select_eleve5_InstrumentA = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_eleve5_InstrumentA_prof = ' ';
+ adherent_eleve5_InstrumentA_prof += 'PLATONE Hélène ';
+ adherent_eleve5_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = adherent_eleve5_InstrumentA_prof;
+ adherent_eleve5_InstrumentA_prof ='';
+ };
+ if (select.value == "Contrebasse"){
+ console.log("on est dans le Contrebasse");
+ adherent_eleve5_InstrumentA_prof = ' ';
+ adherent_eleve5_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = adherent_eleve5_InstrumentA_prof;
+ adherent_eleve5_InstrumentA_prof ='';
+ };
+ if (select.value == "Flûte traversière"){
+ console.log("on est dans le Flûte traversière");
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = '';
+ adherent_eleve5_InstrumentA_prof = ' ';
+ adherent_eleve5_InstrumentA_prof += 'DOZO Guadalupe ';
+ adherent_eleve5_InstrumentA_prof += 'MILLE Christelle ';
+ adherent_eleve5_InstrumentA_prof += 'MONTAGNA Cristina ';
+ adherent_eleve5_InstrumentA_prof += 'PAILLOT-DURY Catherine ';
+ adherent_eleve5_InstrumentA_prof += 'PRIESTER Fanny ';
+ adherent_eleve5_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = adherent_eleve5_InstrumentA_prof;
+ adherent_eleve5_InstrumentA_prof ='';
+ };
+ if (select.value == "Guitare"){
+ console.log("on est dans le Guitare");
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = '';
+ adherent_eleve5_InstrumentA_prof = ' ';
+ adherent_eleve5_InstrumentA_prof += 'FAU Benjamin ';
+ adherent_eleve5_InstrumentA_prof += 'LOFFLER Marcelo ';
+ adherent_eleve5_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = adherent_eleve5_InstrumentA_prof;
+ adherent_eleve5_InstrumentA_prof ='';
+ };
+ if (select.value == "Harpe"){
+ console.log("on est dans le Harpe");
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = '';
+ adherent_eleve5_InstrumentA_prof = ' ';
+ adherent_eleve5_InstrumentA_prof += 'BASMADJIAN-POIRIER Muriel ';
+ adherent_eleve5_InstrumentA_prof += 'DENIS Raphaëlle ';
+ adherent_eleve5_InstrumentA_prof += 'MAGRINI Alessandra ';
+ adherent_eleve5_InstrumentA_prof += 'RIVERA Eva ';
+ adherent_eleve5_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = adherent_eleve5_InstrumentA_prof;
+ adherent_eleve5_InstrumentA_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = '';
+ adherent_eleve5_InstrumentA_prof = ' ';
+ adherent_eleve5_InstrumentA_prof += 'BOINEAU-BENHAIM Nicole ';
+ adherent_eleve5_InstrumentA_prof += 'CALATAYUD Marielle ';
+ adherent_eleve5_InstrumentA_prof += 'CHAPRON Camille ';
+ adherent_eleve5_InstrumentA_prof += 'DENARO Luigi ';
+ adherent_eleve5_InstrumentA_prof += 'EL DACCACHE Georges ';
+ adherent_eleve5_InstrumentA_prof += 'EL KAROUT Fouad ';
+ adherent_eleve5_InstrumentA_prof += 'ESPONA Véronique ';
+ adherent_eleve5_InstrumentA_prof += 'GASTON Isabelle ';
+ adherent_eleve5_InstrumentA_prof += 'GOKELAERE Fabienne ';
+ adherent_eleve5_InstrumentA_prof += 'HAEDT- GOUSSU Camille ';
+ adherent_eleve5_InstrumentA_prof += 'KAWAHARA Koyuki ';
+ adherent_eleve5_InstrumentA_prof += 'OLIVIER-SAGAWA Reika ';
+ adherent_eleve5_InstrumentA_prof += 'PERRIN Véronique ';
+ adherent_eleve5_InstrumentA_prof += 'TCHERNOOKOV Viola ';
+ adherent_eleve5_InstrumentA_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve5_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = adherent_eleve5_InstrumentA_prof;
+ adherent_eleve5_InstrumentA_prof ='';
+ };
+ if (select.value == "Trompette"){
+ console.log("on est dans le Trompette");
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = '';
+ adherent_eleve5_InstrumentA_prof = ' ';
+ adherent_eleve5_InstrumentA_prof += 'CALVAYRAC Michel ';
+ adherent_eleve5_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = adherent_eleve5_InstrumentA_prof;
+ adherent_eleve5_InstrumentA_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = '';
+ adherent_eleve5_InstrumentA_prof = ' ';
+ adherent_eleve5_InstrumentA_prof += 'ADAMS Kate ';
+ adherent_eleve5_InstrumentA_prof += 'ALLARD Cédric ';
+ adherent_eleve5_InstrumentA_prof += 'ARESTAN Philippe ';
+ adherent_eleve5_InstrumentA_prof += 'AUDUC Cécile ';
+ adherent_eleve5_InstrumentA_prof += 'BAUJARD Mariko ';
+ adherent_eleve5_InstrumentA_prof += 'BEAU-FAUCHER Gaëlle ';
+ adherent_eleve5_InstrumentA_prof += 'BEETSCHEN Ghislaine ';
+ adherent_eleve5_InstrumentA_prof += 'BERNARDON Vincent ';
+ adherent_eleve5_InstrumentA_prof += 'BONHOMME Amandine ';
+ adherent_eleve5_InstrumentA_prof += 'BOSSUAT Christophe ';
+ adherent_eleve5_InstrumentA_prof += 'CABLEY-DENOIX Hélène ';
+ adherent_eleve5_InstrumentA_prof += 'CACHOT Sigismond ';
+ adherent_eleve5_InstrumentA_prof += 'CALVAYRAC Danielle ';
+ adherent_eleve5_InstrumentA_prof += 'CASTOR Gaëlle ';
+ adherent_eleve5_InstrumentA_prof += 'CATOIRE Mélanie ';
+ adherent_eleve5_InstrumentA_prof += 'CAUCHEFER Marie ';
+ adherent_eleve5_InstrumentA_prof += 'CHAUSSADE Amélie ';
+ adherent_eleve5_InstrumentA_prof += 'CHITEPO Chiyedza ';
+ adherent_eleve5_InstrumentA_prof += 'COLLIN Ombeline ';
+ adherent_eleve5_InstrumentA_prof += 'COLOMBO Axelle ';
+ adherent_eleve5_InstrumentA_prof += 'CONTI Cristina ';
+ adherent_eleve5_InstrumentA_prof += 'DE LAROUZIERE Aude ';
+ adherent_eleve5_InstrumentA_prof += 'DE MALEFETTE Stéphanie ';
+ adherent_eleve5_InstrumentA_prof += 'DEVUN Danièle ';
+ adherent_eleve5_InstrumentA_prof += 'DEVUN François ';
+ adherent_eleve5_InstrumentA_prof += 'DODELIER Thibaut ';
+ adherent_eleve5_InstrumentA_prof += 'DUTOIT Sophie ';
+ adherent_eleve5_InstrumentA_prof += 'EYMARD Marianne ';
+ adherent_eleve5_InstrumentA_prof += 'FARGEOT-MAUCHE Elodie ';
+ adherent_eleve5_InstrumentA_prof += 'FEGE-DUBET Blandine ';
+ adherent_eleve5_InstrumentA_prof += 'FORAY Camille ';
+ adherent_eleve5_InstrumentA_prof += 'FORTUNE Fanny ';
+ adherent_eleve5_InstrumentA_prof += 'GAZZOLA Stefania ';
+ adherent_eleve5_InstrumentA_prof += 'GILLIERON Eve ';
+ adherent_eleve5_InstrumentA_prof += 'GRIMAND-BOUDIER Hélène ';
+ adherent_eleve5_InstrumentA_prof += 'GUYONNET Jonathan ';
+ adherent_eleve5_InstrumentA_prof += 'JONVILLE Pauline ';
+ adherent_eleve5_InstrumentA_prof += 'KHALLOUKY Eva ';
+ adherent_eleve5_InstrumentA_prof += 'LAPLANCHE Isabelle ';
+ adherent_eleve5_InstrumentA_prof += 'LAUBEPIN Mathilde ';
+ adherent_eleve5_InstrumentA_prof += 'LECLAIRE Larissa ';
+ adherent_eleve5_InstrumentA_prof += 'LESAING Isabelle ';
+ adherent_eleve5_InstrumentA_prof += 'LLEDO Daniel ';
+ adherent_eleve5_InstrumentA_prof += 'MARGAIN Marine ';
+ adherent_eleve5_InstrumentA_prof += 'MARTIN Joanne ';
+ adherent_eleve5_InstrumentA_prof += 'MELCONIAN Annie ';
+ adherent_eleve5_InstrumentA_prof += 'MICCIO Nadine ';
+ adherent_eleve5_InstrumentA_prof += 'MODAFFARI Adrien ';
+ adherent_eleve5_InstrumentA_prof += 'ODDOU Julie ';
+ adherent_eleve5_InstrumentA_prof += 'OLIVIER Marc ';
+ adherent_eleve5_InstrumentA_prof += 'PAGES Anne ';
+ adherent_eleve5_InstrumentA_prof += 'POL Anaïs ';
+ adherent_eleve5_InstrumentA_prof += 'PROST Geneviève ';
+ adherent_eleve5_InstrumentA_prof += 'RAFTERY Aine ';
+ adherent_eleve5_InstrumentA_prof += 'RAIFFAUD Marine ';
+ adherent_eleve5_InstrumentA_prof += 'READ Sophie ';
+ adherent_eleve5_InstrumentA_prof += 'RENARD Christelle ';
+ adherent_eleve5_InstrumentA_prof += 'RENTY Anna Maria ';
+ adherent_eleve5_InstrumentA_prof += 'ROSSOT Marie ';
+ adherent_eleve5_InstrumentA_prof += 'ROUTIER Rachel ';
+ adherent_eleve5_InstrumentA_prof += 'RUCLI Vanessa ';
+ adherent_eleve5_InstrumentA_prof += 'SANCHEZ-GUZMAN Ana-Maria ';
+ adherent_eleve5_InstrumentA_prof += 'SAUVEGRAIN Anne-Laure ';
+ adherent_eleve5_InstrumentA_prof += 'SCHILLER Jennifer ';
+ adherent_eleve5_InstrumentA_prof += 'SEIGNEURIN Aegine ';
+ adherent_eleve5_InstrumentA_prof += 'SELMANI Enkeleida ';
+ adherent_eleve5_InstrumentA_prof += 'SIMON Juliette ';
+ adherent_eleve5_InstrumentA_prof += 'SOL-MOLINER Aurore ';
+ adherent_eleve5_InstrumentA_prof += 'TISSOT Roxane ';
+ adherent_eleve5_InstrumentA_prof += 'VELU Marie ';
+ adherent_eleve5_InstrumentA_prof += 'VERDIER Iléana-Brandusa ';
+ adherent_eleve5_InstrumentA_prof += 'XHABIA Daniela ';
+ adherent_eleve5_InstrumentA_prof += 'ZANKO Barbara ';
+ adherent_eleve5_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = adherent_eleve5_InstrumentA_prof;
+ adherent_eleve5_InstrumentA_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = '';
+ adherent_eleve5_InstrumentA_prof = ' ';
+ adherent_eleve5_InstrumentA_prof += 'BERTAZZON Virginie ';
+ adherent_eleve5_InstrumentA_prof += 'BEYRIS Carlos ';
+ adherent_eleve5_InstrumentA_prof += 'BOISSIERE Lison ';
+ adherent_eleve5_InstrumentA_prof += 'BOYAUD Chloé ';
+ adherent_eleve5_InstrumentA_prof += 'BRESSON Alexandre ';
+ adherent_eleve5_InstrumentA_prof += 'CHARLES Faustine ';
+ adherent_eleve5_InstrumentA_prof += 'FRANCOIS Zofia ';
+ adherent_eleve5_InstrumentA_prof += 'HERVAULT Chloé ';
+ adherent_eleve5_InstrumentA_prof += 'JAEGER Chantal ';
+ adherent_eleve5_InstrumentA_prof += 'JARDINES Jacqueline ';
+ adherent_eleve5_InstrumentA_prof += 'LATIL Chantal ';
+ adherent_eleve5_InstrumentA_prof += 'LAUGENIE Anaïs ';
+ adherent_eleve5_InstrumentA_prof += 'LAUGENIE Florence ';
+ adherent_eleve5_InstrumentA_prof += 'LECRAS - PARAIRE Amandine ';
+ adherent_eleve5_InstrumentA_prof += 'LOBET Sophie ';
+ adherent_eleve5_InstrumentA_prof += 'OTALORA Luz Dary ';
+ adherent_eleve5_InstrumentA_prof += 'PASUT Ugo ';
+ adherent_eleve5_InstrumentA_prof += 'RENAUD Johanna ';
+ adherent_eleve5_InstrumentA_prof += 'RIEDEL Rebekka ';
+ adherent_eleve5_InstrumentA_prof += 'RIVERA Ruben ';
+ adherent_eleve5_InstrumentA_prof += 'ROUSSEL Sandrine ';
+ adherent_eleve5_InstrumentA_prof += 'SEGUIN Hélène ';
+ adherent_eleve5_InstrumentA_prof += 'SPRENG Alexander ';
+ adherent_eleve5_InstrumentA_prof += 'VIDAL Pauline ';
+ adherent_eleve5_InstrumentA_prof += 'WILSON Ariane ';
+ adherent_eleve5_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = adherent_eleve5_InstrumentA_prof;
+ adherent_eleve5_InstrumentA_prof ='';
+ };
+ if (select.value == "SECE"){
+ console.log("on est dans le SECE");
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = '';
+ adherent_eleve5_InstrumentA_prof = ' ';
+ adherent_eleve5_InstrumentA_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve5_InstrumentA_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentA_prof").innerHTML = adherent_eleve5_InstrumentA_prof;
+ adherent_eleve5_InstrumentA_prof ='';
+ };
+};
+
+const select_eleve5_InstrumentB = (select) => {
+ console.log("select.value : ",select.value);
+ if (select.value == "Alto"){
+ console.log("on est dans le ALTO");
+ adherent_eleve5_InstrumentB_prof = ' ';
+ adherent_eleve5_InstrumentB_prof += 'PLATONE Hélène ';
+ adherent_eleve5_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = adherent_eleve5_InstrumentB_prof;
+ adherent_eleve5_InstrumentB_prof ='';
+ };
+ if (select.value == "Contrebasse"){
+ console.log("on est dans le Contrebasse");
+ adherent_eleve5_InstrumentB_prof = ' ';
+ adherent_eleve5_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = adherent_eleve5_InstrumentB_prof;
+ adherent_eleve5_InstrumentB_prof ='';
+ };
+ if (select.value == "Flûte traversière"){
+ console.log("on est dans le Flûte traversière");
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = '';
+ adherent_eleve5_InstrumentB_prof = ' ';
+ adherent_eleve5_InstrumentB_prof += 'DOZO Guadalupe ';
+ adherent_eleve5_InstrumentB_prof += 'MILLE Christelle ';
+ adherent_eleve5_InstrumentB_prof += 'MONTAGNA Cristina ';
+ adherent_eleve5_InstrumentB_prof += 'PAILLOT-DURY Catherine ';
+ adherent_eleve5_InstrumentB_prof += 'PRIESTER Fanny ';
+ adherent_eleve5_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = adherent_eleve5_InstrumentB_prof;
+ adherent_eleve5_InstrumentB_prof ='';
+ };
+ if (select.value == "Guitare"){
+ console.log("on est dans le Guitare");
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = '';
+ adherent_eleve5_InstrumentB_prof = ' ';
+ adherent_eleve5_InstrumentB_prof += 'FAU Benjamin ';
+ adherent_eleve5_InstrumentB_prof += 'LOFFLER Marcelo ';
+ adherent_eleve5_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = adherent_eleve5_InstrumentB_prof;
+ adherent_eleve5_InstrumentB_prof ='';
+ };
+ if (select.value == "Harpe"){
+ console.log("on est dans le Harpe");
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = '';
+ adherent_eleve5_InstrumentB_prof = ' ';
+ adherent_eleve5_InstrumentB_prof += 'BASMADJIAN-POIRIER Muriel ';
+ adherent_eleve5_InstrumentB_prof += 'DENIS Raphaëlle ';
+ adherent_eleve5_InstrumentB_prof += 'MAGRINI Alessandra ';
+ adherent_eleve5_InstrumentB_prof += 'RIVERA Eva ';
+ adherent_eleve5_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = adherent_eleve5_InstrumentB_prof;
+ adherent_eleve5_InstrumentB_prof ='';
+ };
+ if (select.value == "Piano"){
+ console.log("on est dans le Piano");
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = '';
+ adherent_eleve5_InstrumentB_prof = ' ';
+ adherent_eleve5_InstrumentB_prof += 'BOINEAU-BENHAIM Nicole ';
+ adherent_eleve5_InstrumentB_prof += 'CALATAYUD Marielle ';
+ adherent_eleve5_InstrumentB_prof += 'CHAPRON Camille ';
+ adherent_eleve5_InstrumentB_prof += 'DENARO Luigi ';
+ adherent_eleve5_InstrumentB_prof += 'EL DACCACHE Georges ';
+ adherent_eleve5_InstrumentB_prof += 'EL KAROUT Fouad ';
+ adherent_eleve5_InstrumentB_prof += 'ESPONA Véronique ';
+ adherent_eleve5_InstrumentB_prof += 'GASTON Isabelle ';
+ adherent_eleve5_InstrumentB_prof += 'GOKELAERE Fabienne ';
+ adherent_eleve5_InstrumentB_prof += 'HAEDT- GOUSSU Camille ';
+ adherent_eleve5_InstrumentB_prof += 'KAWAHARA Koyuki ';
+ adherent_eleve5_InstrumentB_prof += 'OLIVIER-SAGAWA Reika ';
+ adherent_eleve5_InstrumentB_prof += 'PERRIN Véronique ';
+ adherent_eleve5_InstrumentB_prof += 'TCHERNOOKOV Viola ';
+ adherent_eleve5_InstrumentB_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve5_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = adherent_eleve5_InstrumentB_prof;
+ adherent_eleve5_InstrumentB_prof ='';
+ };
+ if (select.value == "Trompette"){
+ console.log("on est dans le Trompette");
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = '';
+ adherent_eleve5_InstrumentB_prof = ' ';
+ adherent_eleve5_InstrumentB_prof += 'CALVAYRAC Michel ';
+ adherent_eleve5_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = adherent_eleve5_InstrumentB_prof;
+ adherent_eleve5_InstrumentB_prof ='';
+ };
+ if (select.value == "Violon"){
+ console.log("on est dans le Violon");
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = '';
+ adherent_eleve5_InstrumentB_prof = ' ';
+ adherent_eleve5_InstrumentB_prof += 'ADAMS Kate ';
+ adherent_eleve5_InstrumentB_prof += 'ALLARD Cédric ';
+ adherent_eleve5_InstrumentB_prof += 'ARESTAN Philippe ';
+ adherent_eleve5_InstrumentB_prof += 'AUDUC Cécile ';
+ adherent_eleve5_InstrumentB_prof += 'BAUJARD Mariko ';
+ adherent_eleve5_InstrumentB_prof += 'BEAU-FAUCHER Gaëlle ';
+ adherent_eleve5_InstrumentB_prof += 'BEETSCHEN Ghislaine ';
+ adherent_eleve5_InstrumentB_prof += 'BERNARDON Vincent ';
+ adherent_eleve5_InstrumentB_prof += 'BONHOMME Amandine ';
+ adherent_eleve5_InstrumentB_prof += 'BOSSUAT Christophe ';
+ adherent_eleve5_InstrumentB_prof += 'CABLEY-DENOIX Hélène ';
+ adherent_eleve5_InstrumentB_prof += 'CACHOT Sigismond ';
+ adherent_eleve5_InstrumentB_prof += 'CALVAYRAC Danielle ';
+ adherent_eleve5_InstrumentB_prof += 'CASTOR Gaëlle ';
+ adherent_eleve5_InstrumentB_prof += 'CATOIRE Mélanie ';
+ adherent_eleve5_InstrumentB_prof += 'CAUCHEFER Marie ';
+ adherent_eleve5_InstrumentB_prof += 'CHAUSSADE Amélie ';
+ adherent_eleve5_InstrumentB_prof += 'CHITEPO Chiyedza ';
+ adherent_eleve5_InstrumentB_prof += 'COLLIN Ombeline ';
+ adherent_eleve5_InstrumentB_prof += 'COLOMBO Axelle ';
+ adherent_eleve5_InstrumentB_prof += 'CONTI Cristina ';
+ adherent_eleve5_InstrumentB_prof += 'DE LAROUZIERE Aude ';
+ adherent_eleve5_InstrumentB_prof += 'DE MALEFETTE Stéphanie ';
+ adherent_eleve5_InstrumentB_prof += 'DEVUN Danièle ';
+ adherent_eleve5_InstrumentB_prof += 'DEVUN François ';
+ adherent_eleve5_InstrumentB_prof += 'DODELIER Thibaut ';
+ adherent_eleve5_InstrumentB_prof += 'DUTOIT Sophie ';
+ adherent_eleve5_InstrumentB_prof += 'EYMARD Marianne ';
+ adherent_eleve5_InstrumentB_prof += 'FARGEOT-MAUCHE Elodie ';
+ adherent_eleve5_InstrumentB_prof += 'FEGE-DUBET Blandine ';
+ adherent_eleve5_InstrumentB_prof += 'FORAY Camille ';
+ adherent_eleve5_InstrumentB_prof += 'FORTUNE Fanny ';
+ adherent_eleve5_InstrumentB_prof += 'GAZZOLA Stefania ';
+ adherent_eleve5_InstrumentB_prof += 'GILLIERON Eve ';
+ adherent_eleve5_InstrumentB_prof += 'GRIMAND-BOUDIER Hélène ';
+ adherent_eleve5_InstrumentB_prof += 'GUYONNET Jonathan ';
+ adherent_eleve5_InstrumentB_prof += 'JONVILLE Pauline ';
+ adherent_eleve5_InstrumentB_prof += 'KHALLOUKY Eva ';
+ adherent_eleve5_InstrumentB_prof += 'LAPLANCHE Isabelle ';
+ adherent_eleve5_InstrumentB_prof += 'LAUBEPIN Mathilde ';
+ adherent_eleve5_InstrumentB_prof += 'LECLAIRE Larissa ';
+ adherent_eleve5_InstrumentB_prof += 'LESAING Isabelle ';
+ adherent_eleve5_InstrumentB_prof += 'LLEDO Daniel ';
+ adherent_eleve5_InstrumentB_prof += 'MARGAIN Marine ';
+ adherent_eleve5_InstrumentB_prof += 'MARTIN Joanne ';
+ adherent_eleve5_InstrumentB_prof += 'MELCONIAN Annie ';
+ adherent_eleve5_InstrumentB_prof += 'MICCIO Nadine ';
+ adherent_eleve5_InstrumentB_prof += 'MODAFFARI Adrien ';
+ adherent_eleve5_InstrumentB_prof += 'ODDOU Julie ';
+ adherent_eleve5_InstrumentB_prof += 'OLIVIER Marc ';
+ adherent_eleve5_InstrumentB_prof += 'PAGES Anne ';
+ adherent_eleve5_InstrumentB_prof += 'POL Anaïs ';
+ adherent_eleve5_InstrumentB_prof += 'PROST Geneviève ';
+ adherent_eleve5_InstrumentB_prof += 'RAFTERY Aine ';
+ adherent_eleve5_InstrumentB_prof += 'RAIFFAUD Marine ';
+ adherent_eleve5_InstrumentB_prof += 'READ Sophie ';
+ adherent_eleve5_InstrumentB_prof += 'RENARD Christelle ';
+ adherent_eleve5_InstrumentB_prof += 'RENTY Anna Maria ';
+ adherent_eleve5_InstrumentB_prof += 'ROSSOT Marie ';
+ adherent_eleve5_InstrumentB_prof += 'ROUTIER Rachel ';
+ adherent_eleve5_InstrumentB_prof += 'RUCLI Vanessa ';
+ adherent_eleve5_InstrumentB_prof += 'SANCHEZ-GUZMAN Ana-Maria ';
+ adherent_eleve5_InstrumentB_prof += 'SAUVEGRAIN Anne-Laure ';
+ adherent_eleve5_InstrumentB_prof += 'SCHILLER Jennifer ';
+ adherent_eleve5_InstrumentB_prof += 'SEIGNEURIN Aegine ';
+ adherent_eleve5_InstrumentB_prof += 'SELMANI Enkeleida ';
+ adherent_eleve5_InstrumentB_prof += 'SIMON Juliette ';
+ adherent_eleve5_InstrumentB_prof += 'SOL-MOLINER Aurore ';
+ adherent_eleve5_InstrumentB_prof += 'TISSOT Roxane ';
+ adherent_eleve5_InstrumentB_prof += 'VELU Marie ';
+ adherent_eleve5_InstrumentB_prof += 'VERDIER Iléana-Brandusa ';
+ adherent_eleve5_InstrumentB_prof += 'XHABIA Daniela ';
+ adherent_eleve5_InstrumentB_prof += 'ZANKO Barbara ';
+ adherent_eleve5_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = adherent_eleve5_InstrumentB_prof;
+ adherent_eleve5_InstrumentB_prof ='';
+ };
+ if (select.value == "Violoncelle"){
+ console.log("on est dans le Violoncelle");
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = '';
+ adherent_eleve5_InstrumentB_prof = ' ';
+ adherent_eleve5_InstrumentB_prof += 'BERTAZZON Virginie ';
+ adherent_eleve5_InstrumentB_prof += 'BEYRIS Carlos ';
+ adherent_eleve5_InstrumentB_prof += 'BOISSIERE Lison ';
+ adherent_eleve5_InstrumentB_prof += 'BOYAUD Chloé ';
+ adherent_eleve5_InstrumentB_prof += 'BRESSON Alexandre ';
+ adherent_eleve5_InstrumentB_prof += 'CHARLES Faustine ';
+ adherent_eleve5_InstrumentB_prof += 'FRANCOIS Zofia ';
+ adherent_eleve5_InstrumentB_prof += 'HERVAULT Chloé ';
+ adherent_eleve5_InstrumentB_prof += 'JAEGER Chantal ';
+ adherent_eleve5_InstrumentB_prof += 'JARDINES Jacqueline ';
+ adherent_eleve5_InstrumentB_prof += 'LATIL Chantal ';
+ adherent_eleve5_InstrumentB_prof += 'LAUGENIE Anaïs ';
+ adherent_eleve5_InstrumentB_prof += 'LAUGENIE Florence ';
+ adherent_eleve5_InstrumentB_prof += 'LECRAS - PARAIRE Amandine ';
+ adherent_eleve5_InstrumentB_prof += 'LOBET Sophie ';
+ adherent_eleve5_InstrumentB_prof += 'OTALORA Luz Dary ';
+ adherent_eleve5_InstrumentB_prof += 'PASUT Ugo ';
+ adherent_eleve5_InstrumentB_prof += 'RENAUD Johanna ';
+ adherent_eleve5_InstrumentB_prof += 'RIEDEL Rebekka ';
+ adherent_eleve5_InstrumentB_prof += 'RIVERA Ruben ';
+ adherent_eleve5_InstrumentB_prof += 'ROUSSEL Sandrine ';
+ adherent_eleve5_InstrumentB_prof += 'SEGUIN Hélène ';
+ adherent_eleve5_InstrumentB_prof += 'SPRENG Alexander ';
+ adherent_eleve5_InstrumentB_prof += 'VIDAL Pauline ';
+ adherent_eleve5_InstrumentB_prof += 'WILSON Ariane ';
+ adherent_eleve5_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = adherent_eleve5_InstrumentB_prof;
+ adherent_eleve5_InstrumentB_prof ='';
+ };
+ if (select.value == "SECE"){
+ console.log("on est dans le SECE");
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = '';
+ adherent_eleve5_InstrumentB_prof = ' ';
+ adherent_eleve5_InstrumentB_prof += 'JACQUET-BOURDIN Lucie ';
+ adherent_eleve5_InstrumentB_prof += 'professeur non encore inscrit ';
+ document.getElementById("adherent_eleve5_InstrumentB_prof").innerHTML = adherent_eleve5_InstrumentB_prof;
+ adherent_eleve5_InstrumentB_prof ='';
+ };
+};
\ No newline at end of file
diff --git a/public/js/app/logger.js b/public/js/app/logger.js
new file mode 100644
index 0000000..513c130
--- /dev/null
+++ b/public/js/app/logger.js
@@ -0,0 +1,58 @@
+const winston = require('winston');
+
+const { createLogger, format, transports } = require('winston');
+const { combine, timestamp, label, printf, numsession } = format;
+
+const myFormatFile = printf(({ level, message, label, timestamp, numsession }) => {
+ return `${timestamp} ${level} [${label}] SID[${numsession}] ${message}`;
+});
+
+const myFormatConsole = printf(({ level, message, label, timestamp, numsession }) => {
+ return `${timestamp} ${level} [${label}] SID[${numsession}] ${message}`;
+});
+
+
+const DailyRotateFile = require('winston-daily-rotate-file');
+
+
+const logger = winston.createLogger({
+ //level: 'info',
+ format: combine(
+ //label({ label: '' }),
+ timestamp({format: 'YYYY-MM-DD HH:mm:ss'}),
+ myFormatFile
+ ),
+ defaultMeta: { service: 'user-service' },
+ transports: [
+ new DailyRotateFile({ filename: 'logs/combined.log' }),
+ ],
+ exceptionHandlers: [
+ new DailyRotateFile({ filename: 'logs/combined.log' }),
+ new winston.transports.Console()
+ ],
+ rejectionHandlers: [
+ new DailyRotateFile({ filename: 'logs/combined.log' }),
+ new winston.transports.Console()
+ ]
+});
+
+
+
+
+if (process.env.ENV !== 'production' ) {
+ logger.add(new winston.transports.Console(
+ {
+ format: combine(
+ //label({ label: '' }),
+ timestamp({format: 'YYYY-MM-DD HH:mm:ss'}),
+ myFormatConsole
+ ),
+ handleExceptions: true //pour afficher également les exceptions dans la console
+ })
+ );
+}
+
+/////////////////////////////////////////////////
+// EXPORT DE MODULE POUR QU'IL SOIT LU DANS LES AUTRES FICHIERS JS
+/////////////////////////////////////////////////
+module.exports = logger;
\ No newline at end of file
diff --git a/public/js/rassemblementidf/rassemblementidf_formulaire_personne.js b/public/js/rassemblementidf/rassemblementidf_formulaire_personne.js
new file mode 100644
index 0000000..5af3778
--- /dev/null
+++ b/public/js/rassemblementidf/rassemblementidf_formulaire_personne.js
@@ -0,0 +1,142 @@
+// STAGE NATIONAL
+// REMPLIR LE FORMULAIRE
+// PARAGRAPHE PERSONNE
+// POUR 6 Personnes
+
+var personne = "0";
+console.log("personne : ",personne);
+window.onload = affichepersonne(personne);
+function ajout_personne(personne) {
+
+ console.log("personne : ",personne);
+ affichepersonne(personne);
+}
+
+function affichepersonne(personne) {
+ console.log("affichepersonne personne : ",personne);
+ personne++;
+ console.log("affiche personne personne incrémenté : ",personne);
+
+
+ if (personne > 6 ) {
+ console.log("6 personnes maximum");
+ return;
+ }
+
+
+
+ // Ce if sert pour ne pas répéter plusieurs fois le même numéro de personne si l'internaute clique plusieurs fois sur le même "ajouter une personne"
+ if (!document.querySelector('#personne'+ personne +'')) {
+
+ let contenuhtml_personne = ``;
+
+
+ personne--;
+ document.querySelector('#personne'+ personne +'').insertAdjacentHTML("afterend",contenuhtml_personne);
+
+ console.log("personne à la fin de la fonction : ",personne);
+ personne++;
+
+ return personne;
+ }
+
+}
+
+
+function supprimer_personne(personne) {
+ document.querySelector('#personne'+ personne +'').remove();
+}
+
+
+
+
+
+
diff --git a/public/js/stagenat/stagenational_formulaire_personne.js b/public/js/stagenat/stagenational_formulaire_personne.js
new file mode 100644
index 0000000..f92077b
--- /dev/null
+++ b/public/js/stagenat/stagenational_formulaire_personne.js
@@ -0,0 +1,529 @@
+// STAGE NATIONAL
+// REMPLIR LE FORMULAIRE
+// PARAGRAPHE PERSONNE
+// POUR 6 Personnes
+
+var personne = "0";
+console.log("personne : ",personne);
+window.onload = affichepersonne(personne);
+function ajout_personne(personne) {
+
+ console.log("personne : ",personne);
+ affichepersonne(personne);
+}
+
+function affichepersonne(personne) {
+ console.log("affichepersonne personne : ",personne);
+ personne++;
+ console.log("affiche personne personne incrémenté : ",personne);
+
+
+ if (personne > 6 ) {
+ console.log("6 personnes maximum");
+ return;
+ }
+
+
+
+ // Ce if sert pour ne pas répéter plusieurs fois le même numéro de personne si l'internaute clique plusieurs fois sur le même "ajouter une personne"
+ if (!document.querySelector('#personne'+ personne +'')) {
+
+ let contenuhtml_personne = `
+
+ PERSONNE `+ personne +` `;
+
+ if (personne > 1) {
+ contenuhtml_personne += ` Supprimer cette personne `;
+ };
+
+ contenuhtml_personne += `
+
+
+
+
+
+
+
+
+
+
+
Informations sur le car.
+
+
Aller/Retour Lyon ⇔ Carroz d’Arâches
+
+
DÉPART 20 août, 11h pour l'arrêt du 7 quai Lassagne, Lyon 1er
+
ou 11h30 pour l'arrêt Gare de la Part Dieu, sortie Porte des Alpes
+
+
PRÉVOIR UN PIQUE-NIQUE POUR LE 20 AOÛT
+
+
+
RETOUR 25 août, 14h - Arrivée à Gare de la Part Dieu vers 17h
+
Il est possible de prévoir un train en partance de Lyon à partir de 18h.
+
+
+
+
+
+
+
+
+
+
+
Informations sur le PROFIL
+
+
INSTRUMENTISTE : tous les enfants qui suivent le programme du stage en violon, alto, violoncelle ou piano.
+
+
OBSERVATEUR : Toute personne extérieure à la pédagogie Suzuki peut observer les leçons et assister aux
+ concerts des élèves. Ce stage constitue une source d’informations importantes pour toute personne
+ qui désire mieux connaître la pédagogie Suzuki.
+
+ L’observation des cours est gratuite pour tous les professeurs Suzuki, et stagiaires en formation Suzuki adhérents à l’AFPS.
+
+
ACCOMPAGNANT SANS ACTIVITÉ : personne qui accompagne les enfants et qui logent au Flocons Verts
+
+
ACCOMPAGNANT AVEC ACTIVITÉ : personne qui accompagne les enfants qui logent au Flocons Verts ou non et qui font une activité.
+
+ L'activité sera payée sur place, le coût n'est pas compté dans le total du stage.
+
+
+
+
+
+ `;
+
+
+
+ if (personne < 6) {
+ contenuhtml_personne += ""+
+ ``+
+ ``+
+ ``+
+ ` `+
+ `Voulez-vous ajouter une autre personne au stage ? `+
+ `
`
+ };
+
+ contenuhtml_personne += ` `;
+
+
+ personne--;
+ document.querySelector('#personne'+ personne +'').insertAdjacentHTML("afterend",contenuhtml_personne);
+
+ console.log("personne à la fin de la fonction : ",personne);
+ personne++;
+
+ return personne;
+ }
+
+}
+
+
+function select_personne_transport_mode(select, personne) {
+ console.log("personne dans select_personne_transport_mode : ",personne);
+ console.log("select.value : ",select.value);
+ if (select.value == "car"){
+ console.log("on est dans Car");
+ let transport_arret_call = '#personne_'+ personne +'_transport_arret_call';
+ document.querySelector(transport_arret_call).insertAdjacentHTML("afterend",
+ `
+ Quel arrêt de car ? *
+
+
+ 7 quai Lassagne Lyon
+ Gare Part Dieu Lyon
+
+
`
+ );
+ };
+ if (select.value == "independant"){
+ console.log("on est dans independant");
+ if (document.querySelector("#personne_"+ personne +"_transport_arret_display")){
+ console.log("on est dans independant arret exist");
+ document.querySelector("#personne_"+ personne +"_transport_arret_display").remove();
+ }
+ };
+
+};
+
+
+
+function select_personne_profil(select, personne) {
+ console.log("select.value : ",select.value);
+ if (select.value == "observateur"){
+ console.log("on est dans observateur");
+
+ if (document.querySelector("#personne_"+ personne +"_instrument_display")){
+ console.log("on est dans instrumentiste instrument exist");
+ document.querySelector("#personne_"+ personne +"_instrument_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_activite_display")){
+ console.log("on est dans instrumentiste activite exist");
+ document.querySelector("#personne_"+ personne +"_activite_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_piece_display")){
+ document.querySelector("#personne_"+ personne +"_piece_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_prof_display")){
+ document.querySelector("#personne_"+ personne +"_prof_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_call")){
+ document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_call").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_display")){
+ document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_coursindividuel_display")){
+ document.querySelector("#personne_"+ personne +"_coursindividuel_display").remove();
+ }
+
+ document.querySelector('#personne_'+ personne +'_instrument_activite_call').insertAdjacentHTML("afterend",
+ ``
+ );
+ };
+
+
+ if (select.value == "instrumentiste"){
+ console.log("on est dans instrumentiste");
+
+ if (document.querySelector("#personne_"+ personne +"_profil_display")){
+ console.log("on est dans observateur profil exist");
+ document.querySelector("#personne_"+ personne +"_profil_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_activite_display")){
+ console.log("on est dans instrumentiste activite exist");
+ document.querySelector("#personne_"+ personne +"_activite_display").remove();
+ }
+
+ document.querySelector('#personne_'+ personne +'_instrument_activite_call').insertAdjacentHTML("afterend",
+ ``
+ );
+ };
+
+ if (select.value == "accompagnant_activite"){
+ console.log("on est dans accompagnant_activite");
+
+ if (document.querySelector("#personne_"+ personne +"_instrument_display")){
+ console.log("on est dans accompagnant_activite instrument exist");
+ document.querySelector("#personne_"+ personne +"_instrument_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_piece_display")){
+ document.querySelector("#personne_"+ personne +"_piece_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_prof_display")){
+ console.log("on est dans accompagnant_activite prof exist");
+ document.querySelector("#personne_"+ personne +"_prof_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_display")){
+ document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_coursindividuel_display")){
+ document.querySelector("#personne_"+ personne +"_coursindividuel_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_call")){
+ document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_call").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_activite_display")){
+ console.log("on est dans accompagnant_activite activite exist");
+ document.querySelector("#personne_"+ personne +"_activite_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_profil_display")){
+ console.log("on est dans accompagnant_activite profil exist");
+ document.querySelector("#personne_"+ personne +"_profil_display").remove();
+ }
+
+ document.querySelector('#personne_'+ personne +'_instrument_activite_call').insertAdjacentHTML("afterend",
+ ``
+ );
+ };
+
+ if (select.value == "accompagnant"){
+ console.log("accompagnant");
+ if (document.querySelector("#personne_"+ personne +"_instrument_display")){
+ console.log("on est dans instrumentiste instrument exist");
+ document.querySelector("#personne_"+ personne +"_instrument_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_activite_display")){
+ console.log("on est dans instrumentiste activite exist");
+ document.querySelector("#personne_"+ personne +"_activite_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_profil_display")){
+ console.log("on est dans observateur profil exist");
+ document.querySelector("#personne_"+ personne +"_profil_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_piece_display")){
+ document.querySelector("#personne_"+ personne +"_piece_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_prof_display")){
+ document.querySelector("#personne_"+ personne +"_prof_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_call")){
+ document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_call").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_display")){
+ document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_coursindividuel_display")){
+ document.querySelector("#personne_"+ personne +"_coursindividuel_display").remove();
+ }
+ };
+
+ if (!select.value){
+ console.log("rien sélectionné");
+ if (document.querySelector("#personne_"+ personne +"_instrument_display")){
+ console.log("on est dans instrumentiste instrument exist");
+ document.querySelector("#personne_"+ personne +"_instrument_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_activite_display")){
+ console.log("on est dans instrumentiste activite exist");
+ document.querySelector("#personne_"+ personne +"_activite_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_profil_display")){
+ console.log("on est dans observateur profil exist");
+ document.querySelector("#personne_"+ personne +"_profil_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_piece_display")){
+ document.querySelector("#personne_"+ personne +"_piece_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_prof_display")){
+ document.querySelector("#personne_"+ personne +"_prof_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_call")){
+ document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_call").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_display")){
+ document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_coursindividuel_display")){
+ document.querySelector("#personne_"+ personne +"_coursindividuel_display").remove();
+ }
+ };
+
+};
+
+function select_cahier(select, personne) {
+ if (select.value == "alto") {
+ console.log("on est dans cahier pour alto");
+ if (document.querySelector("#select_personne_"+ personne +"cahier_display")){
+ document.querySelector("#select_personne_"+ personne +"cahier_display").remove();
+ }
+ document.querySelector('#personne_'+ personne +'_cahier_display').insertAdjacentHTML("afterend",
+ `
+ Niveau Cahier *
+
+
+ Cahier 1
+ Cahier 2
+ Cahier 3
+ Cahier 4
+
+
`
+ );
+ } else {
+ console.log("on est dans cahier autre que alto");
+ if (document.querySelector("#select_personne_"+ personne +"cahier_display")){
+ document.querySelector("#select_personne_"+ personne +"cahier_display").remove();
+ }
+ if (document.querySelector("#personne_"+ personne +"_coursindividuel_display")){
+ document.querySelector("#personne_"+ personne +"_coursindividuel_display").remove();
+ }
+ document.querySelector('#personne_'+ personne +'_cahier_display').insertAdjacentHTML("afterend",
+ `
+ Niveau Cahier *
+
+
+ Cahier 1
+ Cahier 2
+ Cahier 3
+ Cahier 4
+ Cahier 5
+ Cahier 6
+ Cahier 7
+ Cahier 8
+ Cahier 9
+ Cahier 10
+
+
`
+ );
+ }
+
+ // OPTION COURS INDIVIDUEL POUR ALTO, VIOLON, VILONCELLE
+ if (select.value == "alto" || select.value == "violon" ||select.value == "violoncelle" ) {
+ console.log("on est dans cours indivi pour alto V V");
+ if (document.querySelector("#personne_"+ personne +"_coursindividuel_display")){
+ document.querySelector("#personne_"+ personne +"_coursindividuel_display").remove();
+ }
+ document.querySelector('#personne_'+ personne +'_option_concertsolo_piece_call').insertAdjacentHTML("beforebegin",
+ ``
+ );
+ }
+};
+
+
+
+function select_personne_option_concertsolo (select, personne) {
+ if (select.value == "concert solo"){
+ console.log("on est dans concert solo");
+ document.querySelector('#personne_'+ personne +'_option_concertsolo_piece_call').insertAdjacentHTML("afterend",
+ ``
+ );
+ };
+ if (select.value == "non"){
+ console.log("on n'est pas dans concert solo");
+ if (document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_display")){
+ console.log("on est dans concert solo piece exist");
+ document.querySelector("#personne_"+ personne +"_option_concertsolo_piece_display").remove();
+ }
+ };
+};
+
+
+function supprimer_personne(personne) {
+ document.querySelector('#personne'+ personne +'').remove();
+}
\ No newline at end of file
diff --git a/readme.txt b/readme.txt
new file mode 100644
index 0000000..c6fd322
--- /dev/null
+++ b/readme.txt
@@ -0,0 +1,108 @@
+/Users/julie/Documents/GitHub/aduzuki
+
+***********************************************************
+***********************************************************
+****** NODE.JS
+***********************************************************
+***********************************************************
+DÉMARRAGE DU PROJET
+ cd /Users/julie/Documents/GitHub/aduzuki
+ npm start
+
+***********************************************************
+***********************************************************
+****** URLs
+***********************************************************
+***********************************************************
+
+ACCUEIL
+ https://www.adhesion.afpedagogiesuzuki.fr/inscription/accueil
+
+FORMULAIRE ADHÉSION
+ http://localhost:8888/inscription/adhesion
+ https://www.adusuki.juliechaumard.paris/inscription/adhesion
+ https://www.adhesion.afpedagogiesuzuki.fr/inscription/adhesion
+
+ENVOIE CARTE ADHÉRENT ET JUSTIFICATIF DE DON MANUEL
+ http://localhost:8888/inscription/adhesion/carte_manuelle
+ https://www.adusuki.juliechaumard.paris/inscription/adhesion/carte_manuelle
+ https://www.adhesion.afpedagogiesuzuki.fr/inscription/adhesion/carte_manuelle
+
+STAGE ANNUEL
+ http://localhost:8888/stagenational
+ https://www.adusuki.juliechaumard.paris/stagenational
+ https://www.adhesion.afpedagogiesuzuki.fr/stagenational
+
+RASSEMBLEMENT IDF
+ http://localhost:8888/rassemblementidf
+ https://www.adusuki.juliechaumard.paris/rassemblementidf
+ https://www.adhesion.afpedagogiesuzuki.fr/rassemblementidf
+
+
+https://adusuki.juliechaumard.paris/inscription/stagenational/identifier
+
+
+
+https://www.adhesion.afpedagogiesuzuki.fr/stagenational/paiement_annule?id={CHECKOUT_SESSION_ID}
+https://www.adhesion.afpedagogiesuzuki.fr/stagenational/paiement_reussi?id={CHECKOUT_SESSION_ID}
+
+***********************************************************
+***********************************************************
+****** ABBRÉVIATION
+***********************************************************
+***********************************************************
+SN = STAGE NATIONAL
+
+***********************************************************
+***********************************************************
+****** LOGGING
+***********************************************************
+***********************************************************
+Exemples de traces
+
+ N'importe où
+ logger.info("NOUS SOMMES DANS LE FICHIER : " + __filename, { label: __filename });
+
+ Dans une fonction req res :
+ logger.info('bonjour Julie', { numsession: req.session.id });
+ logger.info('process.env.PORT : ' + process.env.PORT), { numsession: req.session.id }, { label: __filename };
+
+
+ logger.info("XXX" + ZZZ, { numsession: req.session.id }, { label: __filename });
+
+
+
+***********************************************************
+***********************************************************
+****** STRIPE
+***********************************************************
+***********************************************************
+
+TEST CARD
+
+ ok normal
+ 4242424242424242
+
+ ok 3DS
+ 4000000000003063
+
+ pb
+ 4000000000000002
+
+RETOUR
+ https://www.adusuki.afpedagogiesuzuki.fr/inscription/adhesion_paiement/reussi?id=cs_test_b1teU2a5wbTFwdPKGefvrKS1N6deBGPK86xFhdbxqKo9dtmgCzwoYZ8fJ6
+
+
+
+
+
+personne_1_nom
+personne_1_prenom
+personne_1_datenaissance
+personne_1_age
+personne_1_categorie
+personne_1_instrument
+personne_1_cahier
+personne_1_piece
+personne_1_prof
+
diff --git a/routes/adhesionRouter.js b/routes/adhesionRouter.js
new file mode 100644
index 0000000..cdfb302
--- /dev/null
+++ b/routes/adhesionRouter.js
@@ -0,0 +1,259 @@
+/////////////////////////////////////////////////
+// ADHÉSION
+// [DOMAIN]/inscription
+/////////////////////////////////////////////////
+
+/////////////////////////////////////////////////
+// LOGGING
+/////////////////////////////////////////////////
+const logger = require("../public/js/app/logger");
+logger.info("NOUS SOMMES DANS LE FICHIER : " + __filename);
+
+/////////////////////////////////////////////////
+// APPELS DES MODULES
+/////////////////////////////////////////////////
+const express = require('express');
+const router = express.Router();
+const moment = require('moment');
+
+/////////////////////////////////////////////////
+// APPELS DES FONCTIONS
+/////////////////////////////////////////////////
+const {
+ checkMail,
+ post_form_adhesion,
+ post_form_montant_total,
+ post_paiement_cheque_save,
+ post_paiement_virement_save,
+ post_req_bank,
+ get_res_bank,
+ get_res_bank_annul,
+ post_cartemanuelle_verifmail_envoicarte,
+ post_cartes_manuelles_envoi
+} = require("../controllers/adhesionController");
+
+/////////////////////////////////////////////////
+// ROUTES
+/////////////////////////////////////////////////
+
+// Saisie de l'identifiant
+router.get('/adhesion', function(req, res) {
+
+ logger.info("ON EST DANS adhesionrouter.js - router.get('/adhesion',");
+
+ // AFFICHER LES VARIABLES CONTENANT LES ERREURS
+
+ if (req.session.err_mail_form_adhesion_1) {
+ res.locals.err_mail_form_adhesion_1 = req.session.err_mail_form_adhesion_1;
+ res.locals.err_mail_form_adhesion_2 = req.session.err_mail_form_adhesion_2;
+ res.locals.err_mail_form_adhesion_3 = req.session.err_mail_form_adhesion_3;
+ res.locals.err_mail_form_adhesion_4 = req.session.err_mail_form_adhesion_4;
+ // on supprime le contenu après affichage
+ req.session.err_mail_form_adhesion = undefined;
+ req.session.err_mail_form_adhesion_1 = undefined;
+ req.session.err_mail_form_adhesion_2 = undefined;
+ req.session.err_mail_form_adhesion_3 = undefined;
+ req.session.err_mail_form_adhesion_4 = undefined;
+ }
+
+ // AFFICHER LE MAIL IDENTIFIANT SI DÉJA SAISIE ET GARDÉ EN VARIABLE DE SESSION
+ // EN CAS DE RECHARGEMENT DE LA PAGE
+ if (req.session.identifiant) {
+ res.locals.identifiant = req.session.identifiant;
+ }
+ res.locals.dirname = __dirname;
+
+ // affichage du template ejs /views/page_templates/formulaire_adhesion_mail.ejs
+ res.render('adhesion/page_templates/formulaire_adhesion_mail');
+});
+
+
+/////////////////////////////////////////////////
+// VERIFICATION DU MAILcheckMail
+// METHODE HTTP POST
+/////////////////////////////////////////////////
+router.post('/adhesion', checkMail);
+
+/////////////////////////////////////////////////
+// OUVRIR LA PAGE DE SAISIE DES INFORMATIONS
+// APRÈS VALIDATION DU MAIL
+/////////////////////////////////////////////////
+router.get('/adhesion_prof', function(req, res) {
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.adherent_nom = req.session.adherent_nom;
+ req.session.adherent_type = "";
+ res.render('adhesion/page_templates/formulaire_adhesion_prof');
+});
+
+router.get('/adhesion_choix', function(req, res) {
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.adherent_nom = req.session.adherent_nom;
+ req.session.adherent_type = "";
+ res.render('adhesion/page_templates/formulaire_adhesion_choix');
+});
+
+router.get('/adhesion_observateur', function(req, res) {
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.adherent_nom = req.session.adherent_nom;
+ res.locals.famille = "Inscription observateur :";
+ req.session.adherent_type = "observateur";
+ res.render('adhesion/page_templates/formulaire_adhesion_observateur');
+});
+
+router.get('/adhesion_famille', function(req, res) {
+ logger.info("req.session.identifiant DANS router.get('/adhesion_famille', = " + req.session.identifiant, { numsession: req.session.id });
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.adherent_nom = req.session.adherent_nom;
+ res.locals.famille = "Responsable de la famille :";
+ req.session.adherent_type = "famille";
+ res.render('adhesion/page_templates/formulaire_adhesion_famille');
+});
+
+/////////////////////////////////////////////////
+// POST ENREGISTRER INFOS DANS GOOGLE SHEET
+/////////////////////////////////////////////////
+router.post('/adhesion_prof', post_form_adhesion);
+router.post('/adhesion_observateur', post_form_adhesion);
+router.post('/adhesion_famille', post_form_adhesion);
+
+
+/////////////////////////////////////////////////
+// PAGE DE PAIEMENT
+/////////////////////////////////////////////////
+router.get('/adhesion_paiement_total', function(req, res) {
+ logger.info("on est dans la ROUTE /adhesion page_templates/adhesion_paiement_total.ejs", { numsession: req.session.id });
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.adherent_paiement_montant_adhesion = req.session.adherent_paiement_montant_adhesion;
+
+ res.render('adhesion/page_templates/adhesion_paiement_total.ejs');
+});
+router.post('/calcul_total', post_form_montant_total);
+
+router.get('/adhesion_paiement_mode_paiement', function(req, res) {
+ logger.info("on est dans la ROUTE /adhesion page_templates/adhesion_paiement/mode_paiement.ejs", { numsession: req.session.id });
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.adherent_paiement_montant_adhesion = req.session.adherent_paiement_montant_adhesion;
+ res.locals.montant_apayer = req.session.montant_apayer;
+ res.locals.montant_apayer_cent = req.session.montant_apayer_cent;
+ res.locals.adherent_paiement_montant_don = req.session.adherent_paiement_montant_don;
+ logger.info("ROUTER req.session.montant_apayer: " + req.session.montant_apayer, { numsession: req.session.id });
+ res.render('adhesion/page_templates/adhesion_paiement_mode_paiement.ejs');
+});
+
+router.post('/goto_bank', post_req_bank);
+// CLIC SUR LE BOUTON VALIDER DU FORMULAIRE
+// form action="paiement_cheque_save"
+// DU FICHIER views/page_templates/adhesion_paiement_mode_paiement.ejs
+router.post('/paiement_cheque_save', post_paiement_cheque_save);
+router.post('/paiement_virement_save', post_paiement_virement_save);
+
+
+
+router.get('/adhesion_paiement/attente', function(req, res) {
+ logger.info("on est dans la ROUTE /adhesion_paiement/attente", { numsession: req.session.id });
+ moment().format();
+ moment.locale('fr');
+ var date_formattee = moment().format('L');
+ res.locals.today = date_formattee;
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.profil1 = req.session.profil1;
+ logger.info("req.session.profil1; : " + req.session.profil1, { numsession: req.session.id });
+ res.locals.profil2 = req.session.profil2;
+ res.locals.profil3 = req.session.profil3;
+ res.locals.adherent_paiement_mode = req.session.adherent_paiement_mode;
+ res.locals.adherent_paiement_montant_adhesion = req.session.adherent_paiement_montant_adhesion;
+ res.locals.adherent_paiement_montant_don = req.session.adherent_paiement_montant_don;
+ res.locals.adherent_paiement_montant_total = req.session.montant_apayer;
+ res.render('adhesion/page_templates/adhesion_paiement_attente.ejs');
+ logger.info("res.sendFile", { numsession: req.session.id });
+});
+
+router.get('/adhesion_paiement/reussi', get_res_bank);
+router.get('/adhesion_paiement/annule', get_res_bank_annul);
+
+/////////////////////////////////////////////////
+// B) GÉNÉRER CARTE D'ADHÉRENT
+// et justificatif de don
+/////////////////////////////////////////////////
+/////////////////////////////////////////////////
+
+
+/////////////////////////////////////////////////
+// ENVOI MANUEL CARTE ADHÉSION ET JUSTIFICATIF DE DON (SI DON)
+// en saisissant l'identifiant dans un formulaire (1 identifiant à la fois)
+// GET URL https://www.adhesion.afpedagogiesuzuki.fr/inscription/adhesion/carte_manuelle
+/////////////////////////////////////////////////
+
+router.get('/adhesion/carte_manuelle', function(req, res) {
+ logger.info("ON EST DANS ROUTE carte_manuelle", { numsession: req.session.id });
+ // AFFICHER LES VARIABLES CONTENANT LES ERREURS
+ // LE CONTENU DE CES VARIABLES ERREURS EST MIS DANS LE PROGRAMME ET AFFICHÉ AU RECHARGEMENT DE LA PAGE
+ if (req.session.err_mail_form_adhesion_1) {
+ res.locals.err_mail_form_adhesion_1 = req.session.err_mail_form_adhesion_1;
+ res.locals.err_mail_form_adhesion_2 = req.session.err_mail_form_adhesion_2;
+ res.locals.err_mail_form_adhesion_3 = req.session.err_mail_form_adhesion_3;
+ res.locals.err_mail_form_adhesion_4 = req.session.err_mail_form_adhesion_4;
+ // on supprime le contenu après affichage
+ req.session.err_mail_form_adhesion = undefined;
+ }
+
+ // AFFICHER LE MAIL IDENTIIFANT SI DÉJ0 SAISIE ET GARDÉ EN VARIABLE DE SESSION
+ // EN CAS DE RECHARGEMENT DE LA PAGE
+ if (req.session.identifiant) {
+ res.locals.identifiant = req.session.identifiant;
+ }
+ res.locals.dirname = __dirname;
+
+ res.render('adhesion/page_templates/formulaire_cartemanuelle_mail');
+});
+
+// CLIC SUR LE BOUTON ENVOYER CARTE ADHÉRENT DU FORMULAIRE
+// form action="cartemanuelle_verifmail_envoicarte"
+// DU FICHIER /views/page_templates/formulaire_cartemanuelle_mail.ejs
+router.post('/adhesion/cartemanuelle_verifmail_envoicarte', post_cartemanuelle_verifmail_envoicarte);
+
+/////////////////////////////////////////////////
+// ENVOI MANUEL CARTE ADHÉSION ET JUSTIFICATIF DE DON (SI DON)
+// Si "x" dans la colonne "filtre" de la Google Sheet
+// GET URL https://www.adhesion.afpedagogiesuzuki.fr/inscription/adhesion/carte_manuelle
+/////////////////////////////////////////////////
+
+router.get('/adhesion/cartes_manuelles', function(req, res) {
+ logger.info("ON EST DANS ROUTE cartes_manuelles", { numsession: req.session.id });
+ // AFFICHER LES VARIABLES CONTENANT LES ERREURS
+ // LE CONTENU DE CES VARIABLES ERREURS EST MIS DANS LE PROGRAMME ET AFFICHÉ AU RECHARGEMENT DE LA PAGE
+ if (req.session.err_mail_form_adhesion_1) {
+ res.locals.err_mail_form_adhesion_1 = req.session.err_mail_form_adhesion_1;
+ res.locals.err_mail_form_adhesion_2 = req.session.err_mail_form_adhesion_2;
+ res.locals.err_mail_form_adhesion_3 = req.session.err_mail_form_adhesion_3;
+ res.locals.err_mail_form_adhesion_4 = req.session.err_mail_form_adhesion_4;
+ // on supprime le contenu après affichage
+ req.session.err_mail_form_adhesion_1 = undefined;
+ req.session.err_mail_form_adhesion_2 = undefined;
+ req.session.err_mail_form_adhesion_3 = undefined;
+ req.session.err_mail_form_adhesion_4 = undefined;
+ }
+
+ // AFFICHER LE MAIL IDENTIIFANT SI DÉJ0 SAISIE ET GARDÉ EN VARIABLE DE SESSION
+ // EN CAS DE RECHARGEMENT DE LA PAGE
+ if (req.session.identifiant) {
+ res.locals.identifiant = req.session.identifiant;
+ }
+ res.locals.dirname = __dirname;
+
+ res.render('adhesion/page_templates/adhesion_cartes_manuelles');
+});
+
+// CLIC SUR LE BOUTON ENVOYER CARTES ADHÉRENTS
+// form action="cartes_manuelles_envoi"
+// DU FICHIER /views/page_templates/adhesion_cartes_manuelles.ejs
+router.post('/adhesion/cartes_manuelles_envoi', post_cartes_manuelles_envoi);
+
+
+
+
+
+/////////////////////////////////////////////////
+// EXPORT DE MODULE POUR QU'IL SOIT LU DANS LES AUTRES FICHIERS JS
+/////////////////////////////////////////////////
+module.exports = router;
\ No newline at end of file
diff --git a/routes/appRouter.js b/routes/appRouter.js
new file mode 100644
index 0000000..6adf6fb
--- /dev/null
+++ b/routes/appRouter.js
@@ -0,0 +1,30 @@
+/////////////////////////////////////////////////
+// ACCUEIL DU SITE OU DE L'APPLICATION
+// [DOMAIN]/
+/////////////////////////////////////////////////
+
+const express = require('express');
+const router = express.Router();
+
+/////////////////////////////////////////////////
+// LOGGING
+/////////////////////////////////////////////////
+const logger = require("../public/js/app/logger");
+logger.info("NOUS SOMMES DANS LE FICHIER : " + __filename);
+
+/////////////////////////////////////////////////
+// ROUTES
+/////////////////////////////////////////////////
+
+// si l'URL est appelé on lui envoie la page html inscription_accueil.ejs (c'est un template)
+
+router.get('/', function(req,res) {
+ logger.info("on est dans la page web d'accueil ADUZUKI", { numsession: req.session.id });
+ res.render('app/page_templates/inscription_accueil');
+});
+
+
+/////////////////////////////////////////////////
+// EXPORT DE MODULE POUR QU'IL SOIT LU DANS LES AUTRES FICHIERS JS
+/////////////////////////////////////////////////
+module.exports = router;
\ No newline at end of file
diff --git a/routes/rassemblementRouter.js b/routes/rassemblementRouter.js
new file mode 100644
index 0000000..0015c9e
--- /dev/null
+++ b/routes/rassemblementRouter.js
@@ -0,0 +1,213 @@
+/////////////////////////////////////////////////
+// RASSEMBLEMENT IDF
+// [DOMAIN]/stagenational
+/////////////////////////////////////////////////
+
+/////////////////////////////////////////////////
+// LOGGING
+/////////////////////////////////////////////////
+const logger = require("../public/js/app/logger");
+logger.info("NOUS SOMMES DANS LE FICHIER : " + __filename, { label: __filename });
+
+
+
+
+
+/////////////////////////////////////////////////
+// APPELS DES MODULES
+/////////////////////////////////////////////////
+const express = require('express');
+const router = express.Router();
+
+/////////////////////////////////////////////////
+// APPELS DES FONCTIONS
+/////////////////////////////////////////////////
+const {
+ RI_checkidentifiant,
+ RI_checkinfos,
+ post_recap_modifier,
+ post_payer_ri,
+ RI_accompte_reussi,
+ RI_accompte_annule
+} = require("../controllers/rassemblementController");
+
+/////////////////////////////////////////////////
+// ROUTES
+/////////////////////////////////////////////////
+
+
+/////////////////////////////////////////////////
+// 1 - PAGE CHECK IDENTIFIANT
+
+// AFFICHAGE DE LA PAGE
+// URL du stage donné au public /rassemblementidf pour une url facile à mémoriser
+// derrière on dirige vers la page d'identification
+router.get('/', function(req, res) {
+ // rediriger vers la page de saisie de l'identifiant
+ res.redirect('/rassemblementidf/identifier');
+});
+router.get('/identifier', function(req, res) {
+ if (req.session.err_mail_form_adhesion_1) {
+ res.locals.err_mail_form_adhesion_1 = req.session.err_mail_form_adhesion_1;
+ res.locals.err_mail_form_adhesion_2 = req.session.err_mail_form_adhesion_2;
+ res.locals.err_mail_form_adhesion_3 = req.session.err_mail_form_adhesion_3;
+ // on supprime le contenu après affichage
+ req.session.err_mail_form_adhesion_1 = undefined;
+ req.session.err_mail_form_adhesion_2 = undefined;
+ req.session.err_mail_form_adhesion_3 = undefined;
+ }
+ // affichage du template ejs /views/page_templates/inscription_accueil.ejs
+ res.render('rassemblementidf/page_templates/inscrip_formulaire_identifier');
+});
+
+// SCRIPT SUR CLIC "S'INSCRIRE" POUR CHECKER IDENTIFIANT
+router.post('/identifier', RI_checkidentifiant);
+
+
+/////////////////////////////////////////////////
+// 2 - SAISIE DU FORMULAIRE D'INSCRIPTION AU STAGE
+
+router.get('/formulaire', function(req, res) {
+
+ res.locals.err_nbr_eleve = req.session.err_nbr_eleve;
+ // on supprime le contenu après affichage
+ res.locals.err_nbr_eleve = undefined;
+
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.association = req.session.association;
+
+ res.locals.adherent_nom = req.session.adherent_nom;
+ res.locals.adherent_prenom = req.session.adherent_prenom;
+ res.locals.adherent_adresse_rue = req.session.adherent_adresse_rue;
+ res.locals.adherent_adresse_complement = req.session.adherent_adresse_complement;
+ res.locals.adherent_adresse_codepostal = req.session.adherent_adresse_codepostal;
+ res.locals.adherent_adresse_ville = req.session.adherent_adresse_ville;
+ res.locals.adherent_adresse_pays = req.session.adherent_adresse_pays;
+ res.locals.adherent_telephone_mobile = req.session.adherent_telephone_mobile;
+ res.locals.adherent_telephone_fixe = req.session.adherent_telephone_fixe;
+ res.locals.adherent_mail = req.session.adherent_mail;
+ res.locals.accompagnant_nom = req.session.accompagnant_nom;
+ res.locals.accompagnant_prenom = req.session.accompagnant_prenom;
+
+ // affichage du template ejs /views/page_templates/inscription_accueil.ejs
+ res.render('rassemblementidf/page_templates/inscrip_formulaire');
+});
+
+// SCRIPT SUR CLIC "VALIDER" APRÈS AVOIR REMPLI LE FORMULAIRE
+router.post('/formulaire', RI_checkinfos);
+
+/////////////////////////////////////////////////
+// 3 - AFFICHER PAGE RÉCAP
+
+router.get('/recap', function(req, res) {
+
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.association = req.session.association;
+ res.locals.adherent_nom = req.session.adherent_nom;
+ res.locals.adherent_prenom = req.session.adherent_prenom;
+ res.locals.adherent_adresse_rue = req.session.adherent_adresse_rue;
+ res.locals.adherent_adresse_complement = req.session.adherent_adresse_complement;
+ res.locals.adherent_adresse_codepostal = req.session.adherent_adresse_codepostal;
+ res.locals.adherent_adresse_ville = req.session.adherent_adresse_ville;
+ res.locals.adherent_adresse_pays = req.session.adherent_adresse_pays;
+ res.locals.adherent_telephone_mobile = req.session.adherent_telephone_mobile;
+ res.locals.adherent_telephone_fixe = req.session.adherent_telephone_fixe;
+ res.locals.adherent_mail = req.session.adherent_mail;
+ res.locals.accompagnant_prenom = req.session.accompagnant_prenom;
+ res.locals.accompagnant_nom = req.session.accompagnant_nom;
+
+
+ for (let toto = 1; toto < 7; toto++) {
+ res.locals["personne_"+toto+"_numero"] = toto;
+ res.locals["personne_"+toto+"_nom"] = req.session["personne_"+toto+"_nom"];
+ res.locals["personne_"+toto+"_prenom"] = req.session["personne_"+toto+"_prenom"];
+ res.locals["personne_"+toto+"_datenaissance"] = req.session["personne_"+toto+"_datenaissance"];
+ res.locals["personne_"+toto+"_instrument"] = req.session["personne_"+toto+"_instrument"];
+ res.locals["personne_"+toto+"_cahier"] = req.session["personne_"+toto+"_cahier"];
+ res.locals["personne_"+toto+"_piece"] = req.session["personne_"+toto+"_piece"];
+ res.locals["personne_"+toto+"_prof"] = req.session["personne_"+toto+"_prof"];
+ }
+ res.locals.cout_rassemblement = req.session.cout_rassemblement;
+ res.locals.accompte_frais_bancaire = req.session.accompte_frais_bancaire;
+ res.locals.cout_total = req.session.cout_total;
+
+ // affichage du template ejs /views/page_templates/inscription_accueil.ejs
+ res.render('rassemblementidf/page_templates/recap');
+});
+
+
+
+// PAGE RÉCAP - CLICK SUR LE BOUTON MODIFIER
+// EN CAS DE LIEN avec plusieurs / comme /stagenational/recap, il faut rappeler le premier (ici /stagenational)
+// vir l'URL du POST dans l'onglet network de Chrome (type = document)
+router.post('/post_recap_modifier', post_recap_modifier);
+
+// PAGE RÉCAP - CLICK SUR LE BOUTON PAYER ACCOMPTE
+router.post('/post_payer_ri', post_payer_ri);
+
+/////////////////////////////////////////////////
+// 4 - PAIEMENT DE L'ACOMPTE
+
+router.get('/paiement_reussi', RI_accompte_reussi);
+router.get('/paiement_annule', RI_accompte_annule);
+
+/////////////////////////////////////////////////
+// 4 - SANS ACOMPTE INSCRIPTION RÉUSSIE
+router.get('/inscription_reussi', function(req, res) {
+
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.association = req.session.association;
+ res.locals.adherent_nom = req.session.adherent_nom;
+ res.locals.adherent_prenom = req.session.adherent_prenom;
+ res.locals.adherent_adresse_rue = req.session.adherent_adresse_rue;
+ res.locals.adherent_adresse_complement = req.session.adherent_adresse_complement;
+ res.locals.adherent_adresse_codepostal = req.session.adherent_adresse_codepostal;
+ res.locals.adherent_adresse_ville = req.session.adherent_adresse_ville;
+ res.locals.adherent_adresse_pays = req.session.adherent_adresse_pays;
+ res.locals.adherent_telephone_mobile = req.session.adherent_telephone_mobile;
+ res.locals.adherent_telephone_fixe = req.session.adherent_telephone_fixe;
+ res.locals.adherent_mail = req.session.adherent_mail;
+ res.locals.hebergement = req.session.hebergement;
+ res.locals.commentaire_adherent = req.session.commentaire_adherent;
+
+
+ for (let toto = 1; toto < 7; toto++) {
+ res.locals["personne_"+toto+"_numero"] = toto;
+ res.locals["personne_"+toto+"_nom"] = req.session["personne_"+toto+"_nom"];
+ res.locals["personne_"+toto+"_prenom"] = req.session["personne_"+toto+"_prenom"];
+ res.locals["personne_"+toto+"_profilage"] = req.session["personne_"+toto+"_profilage"];
+ res.locals["personne_"+toto+"_categorie"] = req.session["personne_"+toto+"_categorie"];
+ res.locals["personne_"+toto+"_profil"] = req.session["personne_"+toto+"_profil"];
+ res.locals["personne_"+toto+"_transport_mode"] = req.session["personne_"+toto+"_transport_mode"];
+ res.locals["personne_"+toto+"_transport_arret"] = req.session["personne_"+toto+"_transport_arret"]
+ res.locals["personne_"+toto+"_instrument"] = req.session["personne_"+toto+"_instrument"];
+ res.locals["personne_"+toto+"_cahier"] = req.session["personne_"+toto+"_cahier"];
+ res.locals["personne_"+toto+"_option_coursindividuel"] = req.session["personne_"+toto+"_option_coursindividuel"];
+ res.locals["personne_"+toto+"_option_concertsolo"] = req.session["personne_"+toto+"_option_concertsolo"];
+ res.locals["personne_"+toto+"_activite_1"] = req.session["personne_"+toto+"_activite_1"];
+ res.locals["personne_"+toto+"_activite_2"] = req.session["personne_"+toto+"_activite_2"];
+ res.locals["personne_"+toto+"_cout_hebergement"] = req.session["personne_"+toto+"_cout_hebergement"];
+ res.locals["personne_"+toto+"_cout_transport"] = req.session["personne_"+toto+"_cout_transport"];
+ res.locals["personne_"+toto+"_activite_cout"] = req.session["personne_"+toto+"_activite_cout"];
+ res.locals["personne_"+toto+"_observation_cout"] = req.session["personne_"+toto+"_observation_cout"];
+ res.locals["personne_"+toto+"_cours_cout"] = req.session["personne_"+toto+"_cours_cout"];
+ res.locals["personne_"+toto+"_campado_cout"] = req.session["personne_"+toto+"_campado_cout"];
+ }
+ res.locals.cout_total = req.session.cout_total;
+ res.locals.remise = req.session.remise;
+ res.locals.accompte_frais_bancaire = req.session.accompte_frais_bancaire;
+ res.locals.montant_accompte = req.session.montant_accompte;
+ res.locals.cout_total_dalcroze_surplace = req.session.cout_total_dalcroze_surplace;
+ res.locals.cout_total_percussion_surplace = req.session.cout_total_percussion_surplace;
+
+
+
+ // affichage du template ejs /views/page_templates/inscription_accueil.ejs
+ res.render('stagenat/page_templates/inscription_reussi');
+});
+
+
+/////////////////////////////////////////////////
+// EXPORT DE MODULE POUR QU'IL SOIT LU DANS LES AUTRES FICHIERS JS
+/////////////////////////////////////////////////
+module.exports = router;
\ No newline at end of file
diff --git a/routes/stagenatRouter.js b/routes/stagenatRouter.js
new file mode 100644
index 0000000..4fec8fc
--- /dev/null
+++ b/routes/stagenatRouter.js
@@ -0,0 +1,286 @@
+/////////////////////////////////////////////////
+// STAGE NATIONAL
+// [DOMAIN]/stagenational
+/////////////////////////////////////////////////
+
+/////////////////////////////////////////////////
+// LOGGING
+/////////////////////////////////////////////////
+const logger = require("../public/js/app/logger");
+logger.info("NOUS SOMMES DANS LE FICHIER : " + __filename);
+
+
+
+/////////////////////////////////////////////////
+// APPELS DES MODULES
+/////////////////////////////////////////////////
+const express = require('express');
+const router = express.Router();
+
+/////////////////////////////////////////////////
+// APPELS DES FONCTIONS
+/////////////////////////////////////////////////
+const {
+ SN_checkidentifiant,
+ SN_checkinfos,
+ post_recap_modifier,
+ post_payer_accompte,
+ post_enregistrer_inscrip_ssacompte,
+ SN_accompte_reussi,
+ SN_accompte_annule
+} = require("../controllers/stagenatController");
+
+/////////////////////////////////////////////////
+// ROUTES
+/////////////////////////////////////////////////
+
+
+/////////////////////////////////////////////////
+// 1 - PAGE CHECK IDENTIFIANT
+
+// AFFICHAGE DE LA PAGE
+// URL du stage donné au public /stagenational pour une url facile à mémoriser
+// derrière on dirige vers la page d'identification
+router.get('/', function(req, res) {
+ // rediriger vers la page de saisie de l'identifiant
+ res.redirect('/stagenational/identifier');
+});
+router.get('/identifier', function(req, res) {
+ if (req.session.err_mail_form_adhesion_1) {
+ res.locals.err_mail_form_adhesion_1 = req.session.err_mail_form_adhesion_1;
+ res.locals.err_mail_form_adhesion_2 = req.session.err_mail_form_adhesion_2;
+ res.locals.err_mail_form_adhesion_3 = req.session.err_mail_form_adhesion_3;
+ // on supprime le contenu après affichage
+ req.session.err_mail_form_adhesion_1 = undefined;
+ req.session.err_mail_form_adhesion_2 = undefined;
+ req.session.err_mail_form_adhesion_3 = undefined;
+ }
+ // affichage du template ejs /views/page_templates/inscription_accueil.ejs
+ res.render('stagenat/page_templates/inscrip_formulaire_identifier');
+});
+
+// SCRIPT SUR CLIC "S'INSCRIRE" POUR CHECKER IDENTIFIANT
+router.post('/identifier', SN_checkidentifiant);
+
+
+/////////////////////////////////////////////////
+// 2 - SAISIE DU FORMULAIRE D'INSCRIPTION AU STAGE
+
+router.get('/formulaire', function(req, res) {
+
+ res.locals.err_mineur = req.session.err_mineur;
+ // on supprime le contenu après affichage
+ res.locals.err_mineur = undefined;
+
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.association = req.session.association;
+
+ res.locals.adherent_nom = req.session.adherent_nom;
+ res.locals.adherent_prenom = req.session.adherent_prenom;
+ res.locals.adherent_adresse_rue = req.session.adherent_adresse_rue;
+ res.locals.adherent_adresse_complement = req.session.adherent_adresse_complement;
+ res.locals.adherent_adresse_codepostal = req.session.adherent_adresse_codepostal;
+ res.locals.adherent_adresse_ville = req.session.adherent_adresse_ville;
+ res.locals.adherent_adresse_pays = req.session.adherent_adresse_pays;
+ res.locals.adherent_telephone_mobile = req.session.adherent_telephone_mobile;
+ res.locals.adherent_telephone_fixe = req.session.adherent_telephone_fixe;
+ res.locals.adherent_mail = req.session.adherent_mail;
+ res.locals.hebergement = req.session.hebergement;
+ res.locals.commentaire_adherent = req.session.commentaire_adherent;
+
+ // affichage du template ejs /views/page_templates/inscription_accueil.ejs
+ res.render('stagenat/page_templates/inscrip_formulaire');
+});
+
+// SCRIPT SUR CLIC "VALIDER" APRÈS AVOIR REMPLI LE FORMULAIRE
+router.post('/formulaire', SN_checkinfos);
+
+/////////////////////////////////////////////////
+// 3 - AFFICHER PAGE RÉCAP
+
+router.get('/recap', function(req, res) {
+
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.association = req.session.association;
+ res.locals.adherent_nom = req.session.adherent_nom;
+ res.locals.adherent_prenom = req.session.adherent_prenom;
+ res.locals.adherent_adresse_rue = req.session.adherent_adresse_rue;
+ res.locals.adherent_adresse_complement = req.session.adherent_adresse_complement;
+ res.locals.adherent_adresse_codepostal = req.session.adherent_adresse_codepostal;
+ res.locals.adherent_adresse_ville = req.session.adherent_adresse_ville;
+ res.locals.adherent_adresse_pays = req.session.adherent_adresse_pays;
+ res.locals.adherent_telephone_mobile = req.session.adherent_telephone_mobile;
+ res.locals.adherent_telephone_fixe = req.session.adherent_telephone_fixe;
+ res.locals.adherent_mail = req.session.adherent_mail;
+ res.locals.hebergement = req.session.hebergement;
+ res.locals.commentaire_adherent = req.session.commentaire_adherent;
+
+
+ for (let toto = 1; toto < 7; toto++) {
+ res.locals["personne_"+toto+"_numero"] = toto;
+ res.locals["personne_"+toto+"_nom"] = req.session["personne_"+toto+"_nom"];
+ res.locals["personne_"+toto+"_prenom"] = req.session["personne_"+toto+"_prenom"];
+ res.locals["personne_"+toto+"_profilage"] = req.session["personne_"+toto+"_profilage"];
+ res.locals["personne_"+toto+"_categorie"] = req.session["personne_"+toto+"_categorie"];
+ res.locals["personne_"+toto+"_profil"] = req.session["personne_"+toto+"_profil"];
+ res.locals["personne_"+toto+"_transport_mode"] = req.session["personne_"+toto+"_transport_mode"];
+ res.locals["personne_"+toto+"_transport_arret"] = req.session["personne_"+toto+"_transport_arret"]
+ res.locals["personne_"+toto+"_instrument"] = req.session["personne_"+toto+"_instrument"];
+ res.locals["personne_"+toto+"_cahier"] = req.session["personne_"+toto+"_cahier"];
+ res.locals["personne_"+toto+"_option_coursindividuel"] = req.session["personne_"+toto+"_option_coursindividuel"];
+ res.locals["personne_"+toto+"_option_concertsolo"] = req.session["personne_"+toto+"_option_concertsolo"];
+ res.locals["personne_"+toto+"_activite_1"] = req.session["personne_"+toto+"_activite_1"];
+ res.locals["personne_"+toto+"_activite_2"] = req.session["personne_"+toto+"_activite_2"];
+ res.locals["personne_"+toto+"_cout_hebergement"] = req.session["personne_"+toto+"_cout_hebergement"];
+ res.locals["personne_"+toto+"_cout_transport"] = req.session["personne_"+toto+"_cout_transport"];
+ res.locals["personne_"+toto+"_activite_cout"] = req.session["personne_"+toto+"_activite_cout"];
+ res.locals["personne_"+toto+"_observation_cout"] = req.session["personne_"+toto+"_observation_cout"];
+ res.locals["personne_"+toto+"_cours_cout"] = req.session["personne_"+toto+"_cours_cout"];
+ res.locals["personne_"+toto+"_campado_cout"] = req.session["personne_"+toto+"_campado_cout"];
+ }
+ res.locals.cout_total = req.session.cout_total;
+ res.locals.remise = req.session.remise;
+ res.locals.accompte_frais_bancaire = req.session.accompte_frais_bancaire;
+ res.locals.montant_accompte = req.session.montant_accompte;
+ res.locals.cout_total_dalcroze_surplace = req.session.cout_total_dalcroze_surplace;
+ res.locals.cout_total_percussion_surplace = req.session.cout_total_percussion_surplace;
+
+
+
+ // affichage du template ejs /views/page_templates/inscription_accueil.ejs
+ res.render('stagenat/page_templates/recap');
+});
+
+/////////////////////////////////////////////////
+// 3 - AFFICHER PAGE RÉCAP SANS ACCOMPTE
+
+router.get('/recapssacompte', function(req, res) {
+
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.association = req.session.association;
+ res.locals.adherent_nom = req.session.adherent_nom;
+ res.locals.adherent_prenom = req.session.adherent_prenom;
+ res.locals.adherent_adresse_rue = req.session.adherent_adresse_rue;
+ res.locals.adherent_adresse_complement = req.session.adherent_adresse_complement;
+ res.locals.adherent_adresse_codepostal = req.session.adherent_adresse_codepostal;
+ res.locals.adherent_adresse_ville = req.session.adherent_adresse_ville;
+ res.locals.adherent_adresse_pays = req.session.adherent_adresse_pays;
+ res.locals.adherent_telephone_mobile = req.session.adherent_telephone_mobile;
+ res.locals.adherent_telephone_fixe = req.session.adherent_telephone_fixe;
+ res.locals.adherent_mail = req.session.adherent_mail;
+ res.locals.hebergement = req.session.hebergement;
+ res.locals.commentaire_adherent = req.session.commentaire_adherent;
+
+
+ for (let toto = 1; toto < 7; toto++) {
+ res.locals["personne_"+toto+"_numero"] = toto;
+ res.locals["personne_"+toto+"_nom"] = req.session["personne_"+toto+"_nom"];
+ res.locals["personne_"+toto+"_prenom"] = req.session["personne_"+toto+"_prenom"];
+ res.locals["personne_"+toto+"_profilage"] = req.session["personne_"+toto+"_profilage"];
+ res.locals["personne_"+toto+"_categorie"] = req.session["personne_"+toto+"_categorie"];
+ res.locals["personne_"+toto+"_profil"] = req.session["personne_"+toto+"_profil"];
+ res.locals["personne_"+toto+"_transport_mode"] = req.session["personne_"+toto+"_transport_mode"];
+ res.locals["personne_"+toto+"_transport_arret"] = req.session["personne_"+toto+"_transport_arret"]
+ res.locals["personne_"+toto+"_instrument"] = req.session["personne_"+toto+"_instrument"];
+ res.locals["personne_"+toto+"_cahier"] = req.session["personne_"+toto+"_cahier"];
+ res.locals["personne_"+toto+"_option_coursindividuel"] = req.session["personne_"+toto+"_option_coursindividuel"];
+ res.locals["personne_"+toto+"_option_concertsolo"] = req.session["personne_"+toto+"_option_concertsolo"];
+ res.locals["personne_"+toto+"_activite_1"] = req.session["personne_"+toto+"_activite_1"];
+ res.locals["personne_"+toto+"_activite_2"] = req.session["personne_"+toto+"_activite_2"];
+ res.locals["personne_"+toto+"_cout_hebergement"] = req.session["personne_"+toto+"_cout_hebergement"];
+ res.locals["personne_"+toto+"_cout_transport"] = req.session["personne_"+toto+"_cout_transport"];
+ res.locals["personne_"+toto+"_activite_cout"] = req.session["personne_"+toto+"_activite_cout"];
+ res.locals["personne_"+toto+"_observation_cout"] = req.session["personne_"+toto+"_observation_cout"];
+ res.locals["personne_"+toto+"_cours_cout"] = req.session["personne_"+toto+"_cours_cout"];
+ res.locals["personne_"+toto+"_campado_cout"] = req.session["personne_"+toto+"_campado_cout"];
+ }
+ res.locals.cout_total = req.session.cout_total;
+ res.locals.remise = req.session.remise;
+ res.locals.accompte_frais_bancaire = req.session.accompte_frais_bancaire;
+ res.locals.montant_accompte = req.session.montant_accompte;
+ res.locals.cout_total_dalcroze_surplace = req.session.cout_total_dalcroze_surplace;
+ res.locals.cout_total_percussion_surplace = req.session.cout_total_percussion_surplace;
+
+
+
+ // affichage du template ejs /views/page_templates/inscription_accueil.ejs
+ res.render('stagenat/page_templates/recapssacompte');
+});
+
+// PAGE RÉCAP - CLICK SUR LE BOUTON MODIFIER
+// EN CAS DE LIEN avec plusieurs / comme /stagenational/recap, il faut rappeler le premier (ici /stagenational)
+// vir l'URL du POST dans l'onglet network de Chrome (type = document)
+router.post('/post_recap_modifier', post_recap_modifier);
+
+// PAGE RÉCAP - CLICK SUR LE BOUTON PAYER ACCOMPTE
+router.post('/post_payer_accompte', post_payer_accompte);
+
+// PAGE RÉCAP - CLICK SUR LE BOUTON ENREGISTRER
+router.post('/post_enregistrer_inscrip_ssacompte', post_enregistrer_inscrip_ssacompte);
+
+/////////////////////////////////////////////////
+// 4 - PAIEMENT DE L'ACOMPTE
+
+router.get('/paiement_reussi', SN_accompte_reussi);
+router.get('/paiement_annule', SN_accompte_annule);
+
+/////////////////////////////////////////////////
+// 4 - SANS ACOMPTE INSCRIPTION RÉUSSIE
+router.get('/inscription_reussi', function(req, res) {
+
+ res.locals.identifiant = req.session.identifiant;
+ res.locals.association = req.session.association;
+ res.locals.adherent_nom = req.session.adherent_nom;
+ res.locals.adherent_prenom = req.session.adherent_prenom;
+ res.locals.adherent_adresse_rue = req.session.adherent_adresse_rue;
+ res.locals.adherent_adresse_complement = req.session.adherent_adresse_complement;
+ res.locals.adherent_adresse_codepostal = req.session.adherent_adresse_codepostal;
+ res.locals.adherent_adresse_ville = req.session.adherent_adresse_ville;
+ res.locals.adherent_adresse_pays = req.session.adherent_adresse_pays;
+ res.locals.adherent_telephone_mobile = req.session.adherent_telephone_mobile;
+ res.locals.adherent_telephone_fixe = req.session.adherent_telephone_fixe;
+ res.locals.adherent_mail = req.session.adherent_mail;
+ res.locals.hebergement = req.session.hebergement;
+ res.locals.commentaire_adherent = req.session.commentaire_adherent;
+
+
+ for (let toto = 1; toto < 7; toto++) {
+ res.locals["personne_"+toto+"_numero"] = toto;
+ res.locals["personne_"+toto+"_nom"] = req.session["personne_"+toto+"_nom"];
+ res.locals["personne_"+toto+"_prenom"] = req.session["personne_"+toto+"_prenom"];
+ res.locals["personne_"+toto+"_profilage"] = req.session["personne_"+toto+"_profilage"];
+ res.locals["personne_"+toto+"_categorie"] = req.session["personne_"+toto+"_categorie"];
+ res.locals["personne_"+toto+"_profil"] = req.session["personne_"+toto+"_profil"];
+ res.locals["personne_"+toto+"_transport_mode"] = req.session["personne_"+toto+"_transport_mode"];
+ res.locals["personne_"+toto+"_transport_arret"] = req.session["personne_"+toto+"_transport_arret"]
+ res.locals["personne_"+toto+"_instrument"] = req.session["personne_"+toto+"_instrument"];
+ res.locals["personne_"+toto+"_cahier"] = req.session["personne_"+toto+"_cahier"];
+ res.locals["personne_"+toto+"_option_coursindividuel"] = req.session["personne_"+toto+"_option_coursindividuel"];
+ res.locals["personne_"+toto+"_option_concertsolo"] = req.session["personne_"+toto+"_option_concertsolo"];
+ res.locals["personne_"+toto+"_activite_1"] = req.session["personne_"+toto+"_activite_1"];
+ res.locals["personne_"+toto+"_activite_2"] = req.session["personne_"+toto+"_activite_2"];
+ res.locals["personne_"+toto+"_cout_hebergement"] = req.session["personne_"+toto+"_cout_hebergement"];
+ res.locals["personne_"+toto+"_cout_transport"] = req.session["personne_"+toto+"_cout_transport"];
+ res.locals["personne_"+toto+"_activite_cout"] = req.session["personne_"+toto+"_activite_cout"];
+ res.locals["personne_"+toto+"_observation_cout"] = req.session["personne_"+toto+"_observation_cout"];
+ res.locals["personne_"+toto+"_cours_cout"] = req.session["personne_"+toto+"_cours_cout"];
+ res.locals["personne_"+toto+"_campado_cout"] = req.session["personne_"+toto+"_campado_cout"];
+ }
+ res.locals.cout_total = req.session.cout_total;
+ res.locals.remise = req.session.remise;
+ res.locals.accompte_frais_bancaire = req.session.accompte_frais_bancaire;
+ res.locals.montant_accompte = req.session.montant_accompte;
+ res.locals.cout_total_dalcroze_surplace = req.session.cout_total_dalcroze_surplace;
+ res.locals.cout_total_percussion_surplace = req.session.cout_total_percussion_surplace;
+
+
+
+ // affichage du template ejs /views/page_templates/inscription_accueil.ejs
+ res.render('stagenat/page_templates/inscription_reussi');
+});
+
+
+/////////////////////////////////////////////////
+// EXPORT DE MODULE POUR QU'IL SOIT LU DANS LES AUTRES FICHIERS JS
+/////////////////////////////////////////////////
+module.exports = router;
\ No newline at end of file
diff --git a/src/scss/app.scss b/src/scss/app.scss
new file mode 100644
index 0000000..4855ecb
--- /dev/null
+++ b/src/scss/app.scss
@@ -0,0 +1,36 @@
+@charset 'utf-8';
+
+// création du app.css
+
+//base
+@import "base/reset";
+@import "base/colors";
+@import "base/fonts";
+@import "base/space";
+
+
+
+//Global
+@import "global/mediaqueries";
+@import "global/main";
+
+// vendors
+
+// Components
+@import "components/header_tunnel";
+@import "components/header_inscription";
+@import "components/savoirplus";
+@import "components/titrepage";
+@import "components/footer";
+@import "components/inputs";
+@import "components/check_mail";
+
+// Modules
+
+// Templates
+@import "templates/adhesion_mail";
+@import "templates/adhesion";
+@import "templates/paiement";
+@import "templates/adhesion_end";
+@import "templates/stageformulaire";
+
diff --git a/src/scss/base/_colors.scss b/src/scss/base/_colors.scss
new file mode 100644
index 0000000..4ed308b
--- /dev/null
+++ b/src/scss/base/_colors.scss
@@ -0,0 +1,35 @@
+/* SCSS */
+/* VARIABLES */
+/* COLORS */
+
+// /////////////////////////////////
+// VARIABLES DES COULEURS
+// /////////////////////////////////
+
+// NOIR
+$color_noir: #343434;
+$color_noir_fonce: #454343;
+$color_noir_clair: #1c1c1c;
+$color_gris_fonce: #707070;
+$color_gris_clair: #A2A0A0;
+$color_rouge: #E73058;
+$color_rouge_tres_clair: #e7305821;
+$color_blanc: white;
+
+$color_bleu: #3644AC;
+$color_bleu_clair: #7984D1;
+$color_bleu_clair2: #525EBB;
+$color_bleu_fonce_1: #1B299A;
+$color_bleu_fonce_2: #101D77;
+
+// /////////////////////////////////
+// CSS COULEURS
+// /////////////////////////////////
+
+.rouge {
+ color: $color_rouge !important;
+}
+
+.bg_green {
+ background-color: green !important;
+}
\ No newline at end of file
diff --git a/src/scss/base/_fonts.scss b/src/scss/base/_fonts.scss
new file mode 100644
index 0000000..decdd52
--- /dev/null
+++ b/src/scss/base/_fonts.scss
@@ -0,0 +1,171 @@
+/* CSS */
+/* fonts */
+
+@font-face {
+ font-family: 'cabin_semibolditalic';src: url('../fonts/cabin_semibolditalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'cabin_mediumitalic';src: url('../fonts/cabin_mediumitalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'cabin_bolditalic';src: url('../fonts/cabin_bolditalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'cabin_semibold';src: url('../fonts/cabin_semibold.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'cabin_regular';src: url('../fonts/cabin_regular.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'cabin_medium';src: url('../fonts/cabin_medium.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'cabin_italic';src: url('../fonts/cabin_italic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'cabin_bold';src: url('../fonts/cabin_bold.ttf') format('truetype');
+}
+
+@font-face {
+ font-family: 'sourceserifpro_semibolditalic';src: url('../fonts/sourceserifpro_semibolditalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_extralightitalic';src: url('../fonts/sourceserifpro_extralightitalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_regular';src: url('../fonts/sourceserifpro_regular.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_lightitalic';src: url('../fonts/sourceserifpro_lightitalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_bold';src: url('../fonts/sourceserifpro_bold.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_blackitalic';src: url('../fonts/sourceserifpro_blackitalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_italic';src: url('../fonts/sourceserifpro_italic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_light';src: url('../fonts/sourceserifpro_light.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_black';src: url('../fonts/sourceserifpro_black.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_semibold';src: url('../fonts/sourceserifpro_semibold.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_bolditalic';src: url('../fonts/sourceserifpro_bolditalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'sourceserifpro_extralight';src: url('../fonts/sourceserifpro_extralight.ttf') format('truetype');
+}
+
+@font-face {
+ font-family: 'playfairdisplay_blackitalic';src: url('../fonts/playfairdisplay_blackitalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'playfairdisplay_bolditalic';src: url('../fonts/playfairdisplay_bolditalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'playfairdisplay_regular';src: url('../fonts/playfairdisplay_regular.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'playfairdisplay_italic';src: url('../fonts/playfairdisplay_italic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'playfairdisplay_black';src: url('../fonts/playfairdisplay_black.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'playfairdisplay_bold';src: url('../fonts/playfairdisplay_bold.ttf') format('truetype');
+}
+
+
+@font-face {
+ font-family: 'montserrat_extrabolditalic';src: url('../fonts/montserrat_extrabolditalic.ttf') format('truetype');
+}
+@font-face {
+font-family: 'montserrat_semibolditalic';src: url('../fonts/montserrat_semibolditalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_italic';src: url('../fonts/montserrat_italic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_regular';src: url('../fonts/montserrat_regular.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_black';src: url('../fonts/montserrat_black.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montsermontserrat_extraboldrat_regular';src: url('../fonts/montserrat_extrabold.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_extralightitalic';src: url('../fonts/montserrat_extralightitalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_semibold';src: url('../fonts/montserrat_semibold.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_blackitalic';src: url('../fonts/montserrat_blackitalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_mediumitalic';src: url('../fonts/montserrat_mediumitalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_bold';src: url('../fonts/montserrat_bold.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_thin';src: url('../fonts/montserrat_thin.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_extralight';src: url('../fonts/montserrat_extralight.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_thinitalic';src: url('../fonts/montserrat_thinitalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_light';src: url('../fonts/montserrat_light.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_bolditalic';src: url('../fonts/montserrat_bolditalic.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_medium';src: url('../fonts/montserrat_medium.ttf') format('truetype');
+}
+@font-face {
+ font-family: 'montserrat_lightitalic';src: url('../fonts/montserrat_lightitalic.ttf') format('truetype');
+}
+
+
+@font-face {
+ font-family: 'ubuntu_bold';src: url('../fonts/ubuntu_bold.ttf') format('truetype');
+ }
+
+ @font-face {
+ font-family: 'ubuntu_courant';src: url('../fonts/ubuntu_courant.ttf') format('truetype');
+ }
+
+ @font-face {
+ font-family: 'ubuntu_fin';src: url('../fonts/ubuntu_fin.ttf') format('truetype');
+ }
+ @font-face {
+ font-family: 'ubuntu_fin_italic';src: url('../fonts/ubuntu_leger_italic.ttf') format('truetype');
+ }
+
+ @font-face {
+ font-family: 'ubuntu_leger';src: url('../fonts/ubuntu_leger.ttf') format('truetype');
+ }
+
+ @font-face {
+ font-family: 'ubuntu_moyen';src: url('../fonts/ubuntu_moyen.ttf') format('truetype');
+ }
+
+ @font-face {
+ font-family: 'ubuntu_moyen_italique';src: url('../fonts/ubuntu-moyen_italique.ttf') format('truetype');
+}
+
+.gras {
+ font-family: cabin_bold;
+}
\ No newline at end of file
diff --git a/src/scss/base/_reset.scss b/src/scss/base/_reset.scss
new file mode 100644
index 0000000..e607764
--- /dev/null
+++ b/src/scss/base/_reset.scss
@@ -0,0 +1,21 @@
+/* CSS de base */
+
+body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, form, fieldset, blockquote, main, article, aside, section {
+ margin:0px 0px 0px 0px;
+ padding:0px 0px 0px 0px;
+}
+
+li, ul {
+ list-style: none;
+}
+
+
+
+a {
+ color: inherit;
+ text-decoration: none;
+}
+
+body {
+ font-family: cabin_regular;
+}
\ No newline at end of file
diff --git a/src/scss/base/_space.scss b/src/scss/base/_space.scss
new file mode 100644
index 0000000..aa565e4
--- /dev/null
+++ b/src/scss/base/_space.scss
@@ -0,0 +1,10 @@
+/* ***************************************** */
+/* ***************************************** */
+/* ESPACE ENTRE LES BLOCS */
+/* ***************************************** */
+/* ***************************************** */
+
+
+.space30 {
+ height: 30px;
+}
\ No newline at end of file
diff --git a/src/scss/components/_check_mail.scss b/src/scss/components/_check_mail.scss
new file mode 100644
index 0000000..1a3d96f
--- /dev/null
+++ b/src/scss/components/_check_mail.scss
@@ -0,0 +1,145 @@
+.erreur {
+ max-width: 500px;
+ display: flex;
+ flex-direction: column;
+ margin-left: auto;
+ margin-right: auto;
+ margin-bottom: 70px;
+ @include media_max(phone){
+ margin-left: 10px;
+ margin-right: 10px;
+ }
+ @include media_minmax(phone,desktop){
+ margin-left: auto;
+ margin-right: auto;
+ }
+ text-align: center;
+ p {
+ margin-bottom: 15px;
+ color: $color_rouge;
+ }
+ .souligne {
+ text-decoration: underline;
+ }
+}
+
+
+.form_check_mail {
+ display: grid;
+ grid-template-columns: 2fr 1fr 2fr;
+ grid-template-rows: auto auto auto;
+ grid-template-areas:
+ ". input ."
+ ". checkbox checkbox"
+ ". button .";
+
+ .input_email {
+ grid-area: input;
+
+ }
+ .input_checkbox {
+ grid-area: checkbox;
+ margin-top: 5px;
+ margin-left: 5px;
+ margin-bottom: 35px;
+ .gras {
+ font-family: cabin_semibold;
+ color: $color_noir;
+ }
+ }
+ button {
+ grid-area: button;
+ justify-self: center;
+ }
+
+}
+
+
+
+
+.open_modal {
+ display: grid;
+ justify-content: center;
+ margin-top: 150px;
+ text-decoration: underline;
+ p {
+ &:hover {
+ cursor: pointer;
+ }
+ }
+}
+
+.prelude {
+ /*display: grid;*/
+ /*justify-content: center;*/
+ /*margin-top: 150px;*/
+
+ /* **************************************************************** */
+ /* ** POUR FENETRE MODALE ** */
+ /* **************************************************************** */
+ display: none; /* Hidden by default */
+ position: fixed; /* Stay in place */
+ z-index: 1; /* Sit on top */
+ padding-top: 150px; /* Location of the box */
+ left: 0;
+ top: 0;
+ width: 100%; /* Full width */
+ height: 100%; /* Full height */
+ overflow: auto; /* Enable scroll if needed */
+ background-color: rgb(0,0,0); /* Fallback color */
+ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
+ /* **************************************************************** */
+
+
+
+
+
+ font-family: cabin_regular;
+ font-size: 15px;
+
+ .prelude_content {
+ /*max-width: 700px;*/
+
+ /* **************************************************************** */
+ /* ** POUR FENETRE MODALE ** */
+ /* **************************************************************** */
+ background-color: #fefefe;
+ margin: auto;
+ padding: 20px;
+ border: 5px solid $color_rouge;
+ border-radius: 20px;
+ width: 80%;
+ /* **************************************************************** */
+ }
+
+ ol {
+ margin-left: 20px;
+ li {
+ list-style-type: decimal;
+ }
+ }
+ ul {
+ margin-left: 20px;
+ li {
+ list-style-type: circle;
+ }
+ }
+ .gras {
+ font-family: cabin_semibold;
+ }
+}
+.prelude_close {
+ float: right;
+ margin-top: -25px;
+ font-size: 50px;
+ color: $color_rouge;
+}
+
+.prelude_close:hover,
+.prelude_close:focus {
+ cursor: pointer;
+ color: $color_rouge;
+ text-decoration: none;
+}
+
+
diff --git a/src/scss/components/_footer.scss b/src/scss/components/_footer.scss
new file mode 100644
index 0000000..1baf5ae
--- /dev/null
+++ b/src/scss/components/_footer.scss
@@ -0,0 +1,23 @@
+/* ***************************************** */
+/* ***************************************** */
+/* LE FOOTER */
+/* ***************************************** */
+/* ***************************************** */
+
+footer{
+ min-height: 300px;
+ margin-top: 100px;
+ background-color: $color_noir;
+
+ padding: 15px;
+
+ display: grid;
+
+
+ .version {
+ align-self: end;
+ color: white;
+ text-align: end;
+ font-size: 11px;
+ }
+}
\ No newline at end of file
diff --git a/src/scss/components/_header_inscription.scss b/src/scss/components/_header_inscription.scss
new file mode 100644
index 0000000..7b206ee
--- /dev/null
+++ b/src/scss/components/_header_inscription.scss
@@ -0,0 +1,13 @@
+header {
+ max-width: 1800px;
+ margin-left: auto;
+ margin-right: auto;
+
+ .logo {
+ margin-top: 30px;
+ margin-bottom: 70px;
+ img {
+ max-width: 100%;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/scss/components/_header_tunnel.scss b/src/scss/components/_header_tunnel.scss
new file mode 100644
index 0000000..776167e
--- /dev/null
+++ b/src/scss/components/_header_tunnel.scss
@@ -0,0 +1,13 @@
+.header_tunnel {
+ max-width: 1800px;
+ margin-left: auto;
+ margin-right: auto;
+
+ .logo {
+ margin-top: 30px;
+ margin-bottom: 70px;
+ img {
+ max-width: 100%;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/scss/components/_inputs.scss b/src/scss/components/_inputs.scss
new file mode 100644
index 0000000..b5b5d56
--- /dev/null
+++ b/src/scss/components/_inputs.scss
@@ -0,0 +1,302 @@
+
+/* ***************************************** */
+/* ***************************************** */
+/* INPUT */
+/* ***************************************** */
+/* ***************************************** */
+
+/* FORMAT DE LA STRUCTURE DU CHAMP DE SAISIE */
+/* ***************************************** */
+.input_box {
+ position: relative;
+ label {
+ position: absolute;
+ top: -12px;
+ left: 6px;
+ margin-left: 6px;
+ padding-left: 7px;
+ padding-right: 10px;
+ background-color: $color_blanc;
+ }
+ .labeltextarea {
+ top: -28px;
+ }
+
+ input[type=email] {
+ padding-top: 19px;
+ padding-bottom: 16px;
+ padding-left: 16px;
+ padding-right: 13px;
+ background-color: $color_blanc;
+ border: 2px solid $color_noir_fonce;
+ outline: none;
+ &:focus-visible, &:focus, &:focus-within, &:hover, &:focus, &:active, &:visited, &:target {
+ background-color: $color_blanc !important;
+ border: 2px solid $color_noir_fonce;
+ outline: none;
+ }
+ &:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active, &:-webkit-autofill:focus-visible, &:-webkit-autofill:focus-within, &:-webkit-autofill:visited, &:target {
+ box-shadow: 0 0 0 30px white inset !important;
+ }
+
+ border-radius: 5px;
+ color: $color_noir_fonce;
+ }
+ input,input[type=text],input[type=tel],input[type=date], textarea {
+ @include media_max(phone){
+ min-width: 240px;
+ }
+ @include media_minmax(phone,desktop){
+ min-width: 250px;
+ }
+ @include media_min(desktop){
+ min-width: 330px;
+ }
+ max-width: 500px;
+ padding-top: 14px;
+ padding-bottom: 6px;
+ padding-left: 10px;
+ padding-right: 8px;
+ background-color: $color_blanc;
+ border-radius: 5px;
+ outline: none;
+ &:focus-visible, &:focus, &:focus-within, &:hover, &:focus, &:active, &:visited, &:target {
+ background-color: $color_blanc !important;
+ border: 2px solid $color_noir_fonce;
+ outline: none;
+ }
+ &:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active, &:-webkit-autofill:focus-visible, &:-webkit-autofill:focus-within, &:-webkit-autofill:visited, &:target {
+ box-shadow: 0 0 0 30px white inset !important;
+ }
+
+ }
+ select {
+ @include media_max(phone){
+ min-width: 261px;
+ max-width: 261px;
+ }
+ @include media_minmax(phone,desktop){
+ min-width: 272px;
+ }
+ @include media_min(desktop){
+ min-width: 350px;
+ }
+ max-width: 500px;
+
+ padding-top: 14px;
+ padding-bottom: 6px;
+ padding-left: 10px;
+ padding-right: 8px;
+ background-color: $color_blanc;
+ border-radius: 5px;
+ outline: none;
+ &:focus-visible, &:focus, &:focus-within, &:hover, &:focus, &:active, &:visited, &:target {
+ background-color: $color_blanc !important;
+ border: 2px solid $color_noir_fonce;
+ outline: none;
+ }
+ &:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active, &:-webkit-autofill:focus-visible, &:-webkit-autofill:focus-within, &:-webkit-autofill:visited, &:target {
+ box-shadow: 0 0 0 30px white inset !important;
+ }
+
+ }
+
+}
+.input_box_gris {
+ label {
+ color: $color_gris_fonce;
+ }
+ input,input[type=text],input[type=tel],input[type=date], select, textarea {
+ border: 1.8px solid $color_gris_fonce;
+ }
+}
+.input_box_bleu {
+ label {
+ color: $color_bleu_clair;
+ }
+ input,input[type=text],input[type=tel],input[type=date], select, textarea {
+ border: 1.8px solid $color_bleu_fonce_1;
+ }
+}
+
+
+/* FORMAT DU CONTENUE DU CHAMP DE SAISIE */
+/* ***************************************** */
+
+.input_email {
+
+ margin-bottom: 11px;
+
+ input[type="email"],input[type=text] {
+
+ @include media_max(phone){
+ min-width: 240px;
+ }
+ @include media_min(phone){
+ min-width: 330px;
+ }
+ max-width: 500px;
+ font-family: montserrat_light;
+ font-size: 15px;
+ @include media_max(phone){
+ font-size: 12px;
+ }
+
+ &::placeholder {
+ font-family: cabin_italic;
+ font-size: 12px;
+ color: $color_gris_clair;
+ }
+ }
+}
+
+.input_identifiant {
+
+ margin-bottom: 11px;
+
+ .inputbox_identifiant {
+
+ @include media_max(phone){
+ min-width: 240px;
+ }
+ @include media_min(phone){
+ min-width: 330px;
+ }
+ max-width: 500px;
+ padding-top: 19px !important;
+ padding-bottom: 16px !important;
+ padding-left: 16px !important;
+ padding-right: 13px !important;
+ background-color: $color_blanc !important;
+ border: 2px solid $color_noir_fonce !important;
+ outline: none;
+ &:focus-visible, &:focus, &:focus-within, &:hover, &:focus, &:active, &:visited, &:target {
+ background-color: $color_blanc !important;
+ border: 2px solid $color_noir_fonce;
+ outline: none;
+ }
+ &:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active, &:-webkit-autofill:focus-visible, &:-webkit-autofill:focus-within, &:-webkit-autofill:visited, &:target {
+ box-shadow: 0 0 0 30px white inset !important;
+ }
+ color: $color_noir_fonce;
+ @include media_max(phone){
+ font-size: 12px;
+ }
+
+ &::placeholder {
+ font-family: cabin_italic;
+ font-size: 12px;
+ color: $color_gris_clair;
+ }
+ }
+}
+
+.input_text {
+ label {
+ font-size: 14px;
+ @include media_max(phone){
+ font-size: 13px;
+ }
+ }
+ input,input[type=text],input[type=tel],input[type=date], select, textarea {
+ font-family: cabin_regular;
+ font-size: 14px;
+ @include media_max(phone){
+ font-size: 13px;
+ }
+ color: $color_noir_clair;
+ &:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active, &:-webkit-autofill:focus-visible, &:-webkit-autofill:focus-within, &:-webkit-autofill:visited, &:target {
+ -webkit-text-fill-color: $color_noir_clair;
+ }
+ &::placeholder {
+ font-family: cabin_italic;
+ font-size: 12px;
+ color: $color_gris_clair;
+ }
+ }
+}
+
+
+/* ***************************************** */
+/* ***************************************** */
+/* CHECKBOX */
+/* ***************************************** */
+/* ***************************************** */
+
+.input_checkbox {
+ //max-width: 300px;
+
+ label {
+ margin-left: 5px;
+ font-size: 14px;
+ @include media_max(phone){
+ font-size: 13px;
+ }
+ color: $color_gris_fonce;
+ }
+ input[type="checkbox"] {
+ appearance: none;
+ width: 17px;
+ height: 17px;
+ margin: 0;
+ transform: translateY(3.9px);
+ border: 0.15em solid $color_rouge;
+ border-radius: 3px;
+ font: inherit;
+ &:checked {
+ background-color: $color_rouge;
+ }
+ }
+}
+
+/* ***************************************** */
+/* ***************************************** */
+/* BUTTONS */
+/* ***************************************** */
+/* ***************************************** */
+
+.button_icone {
+ appearance: none;
+ width: 170px;
+ height: 60px;
+ margin: 0;
+ box-shadow: -10px 16px 24px -18px rgb(0 0 0 / 60%);
+ border: none;
+ border-radius: 28px;
+ font: inherit;
+ background-color: $color_rouge;
+ color: $color_blanc;
+ .btn_icone {
+ font-family: montserrat_regular;
+ font-size: 36px;
+ }
+ .btn_texte {
+ display: inline-block;
+ transform: translateY(-7px);
+ padding-left: 10px;
+ font-size: 17px;
+ }
+
+}
+
+.button_text {
+ appearance: none;
+ width: 100px;
+ height: 35px;
+ margin: 0;
+ box-shadow: -10px 16px 24px -18px rgb(0 0 0 / 60%);
+ border: none;
+ border-radius: 20px;
+ font: inherit;
+ background-color: $color_rouge;
+ color: $color_blanc;
+ font-size: 15px;
+}
+
+.button_sansicone {
+ .btn_texte {
+ transform: translateY(0px);
+ padding-left: 00px;
+ }
+
+}
diff --git a/src/scss/components/_savoirplus.scss b/src/scss/components/_savoirplus.scss
new file mode 100644
index 0000000..e157b3b
--- /dev/null
+++ b/src/scss/components/_savoirplus.scss
@@ -0,0 +1,81 @@
+.displaynone {
+ display: none;
+}
+
+.ouvrir {
+ display: block !important;
+}
+
+.savoirplus_icone {
+ width: 14px;
+ margin-bottom: -2px;
+}
+
+.close_icone {
+ width: 18px;
+ margin-bottom: 10px;
+}
+
+.savoirplus_content {
+ margin-top: 30px;
+ background-color: #fefefe;
+
+ padding: 20px;
+ @include media_max(phone){
+ padding: 10px;
+ }
+ border: 5px solid $color_rouge;
+ border-radius: 20px;
+
+ ol {
+ margin-left: 20px;
+ li {
+ list-style-type: decimal;
+ }
+ }
+ ul {
+ margin-left: 20px;
+ li {
+ list-style-type: circle;
+ }
+ }
+ .gras {
+ font-family: cabin_semibold;
+ }
+ .souligne {
+ text-decoration: underline;
+ }
+ .rouge {
+ color: $color_rouge;
+ }
+}
+.savoirplus_accueil{
+
+ width: 80%;
+ @include media_max(phone){
+ width: 95%;
+ }
+ margin-top: 150px;
+ margin-right: auto;
+ margin-left: auto;
+
+ .savoirplus_button {
+ text-align: center;
+ text-decoration: underline;
+ &:hover {
+ cursor: pointer;
+ }
+ }
+}
+
+.savoirplus_stage {
+ width: 80%;
+ @include media_max(phone){
+ width: 95%;
+ }
+ margin-top: 15px;
+ margin-bottom: 48px;
+ margin-right: auto;
+ margin-left: auto;
+
+}
\ No newline at end of file
diff --git a/src/scss/components/_titrepage.scss b/src/scss/components/_titrepage.scss
new file mode 100644
index 0000000..a27c071
--- /dev/null
+++ b/src/scss/components/_titrepage.scss
@@ -0,0 +1,29 @@
+.titre {
+ @include media_max(phone){
+ margin-left: 10px;
+ margin-right: 10px;
+ }
+ @include media_minmax(phone,desktop){
+ margin-left: 20px;
+ margin-right: 20px;
+ }
+
+ margin-bottom: 100px;
+
+ h1 {
+ margin-bottom: 9px;
+ text-align: center;
+ font-family: cabin_semibold;
+ font-size: 24px;
+ }
+ p {
+ text-align: center;
+ font-family: cabin_bold;
+ font-size: 24px;
+ color: $color_noir_clair;
+ .soft {
+ font-family: cabin_semibold;
+ color: #707070;
+ }
+ }
+}
diff --git a/src/scss/global/_main.scss b/src/scss/global/_main.scss
new file mode 100644
index 0000000..4e409bd
--- /dev/null
+++ b/src/scss/global/_main.scss
@@ -0,0 +1,16 @@
+main {
+ max-width: 1800px;
+ margin-left: auto;
+ margin-right: auto;
+ margin-top: 85px;
+
+ @include media_min("desktop"){
+ min-height: 400px;
+ }
+ @include media_max("desktop"){
+ min-height: 340px;
+ }
+ @include media_max("phone"){
+ min-height: 230px;
+ }
+}
\ No newline at end of file
diff --git a/src/scss/global/_mediaqueries.scss b/src/scss/global/_mediaqueries.scss
new file mode 100644
index 0000000..d8c87a0
--- /dev/null
+++ b/src/scss/global/_mediaqueries.scss
@@ -0,0 +1,23 @@
+
+$breakpoints: (
+ "phone": 600px,
+ "desktop": 1200px
+);
+
+@mixin media_min($key) {
+ @media (min-width: map-get($breakpoints,$key)) {
+ &{ @content; }
+ }
+}
+
+@mixin media_max($key) {
+ @media (max-width: map-get($breakpoints,$key)) {
+ &{ @content; }
+ }
+}
+
+@mixin media_minmax($key_min, $key_max) {
+ @media (min-width: map-get($breakpoints,$key_min)) and (max-width: map-get($breakpoints,$key_max)) {
+ &{ @content; }
+ }
+}
diff --git a/src/scss/templates/_adhesion.scss b/src/scss/templates/_adhesion.scss
new file mode 100644
index 0000000..020445a
--- /dev/null
+++ b/src/scss/templates/_adhesion.scss
@@ -0,0 +1,88 @@
+.form_adhesion {
+ display: grid;
+ justify-content: center;
+
+ @include media_min("phone"){
+ margin-left: 30px;
+ margin-right: 30px;
+ }
+ @include media_max("phone"){
+ margin-left: 11px;
+ margin-right: 10px;
+ }
+
+ .input_checkbox {
+ margin-bottom: 37px;
+ }
+ .explication {
+ max-width: 300px;
+ margin-bottom: 35px;
+ color: $color_bleu_fonce_2;
+ }
+
+ .ajout_ecole_button {
+ margin-top: -35px;
+ margin-bottom: 30px;
+ text-decoration: underline;
+ font-family: montserrat_light;
+ font-size: 12px;
+ &:hover {
+ cursor: pointer;
+ }
+ }
+}
+
+.grid_3inputs {
+ display: grid;
+ grid-template-columns: minmax(auto,350px) minmax(auto,350px) minmax(auto,350px);
+ @include media_max(phone){
+ grid-template-columns: minmax(auto,350px);
+ }
+ @include media_minmax(phone,desktop){
+ grid-template-columns: minmax(auto,350px) minmax(auto,350px);
+ }
+ grid-template-rows: auto;
+ column-gap: 20px;
+ row-gap: 30px;
+ margin-bottom: 50px;
+ margin-top: 10px;
+}
+.grid_2inputs {
+ display: grid;
+ grid-template-columns: minmax(auto,350px) minmax(auto,350px);
+ @include media_max(phone){
+ grid-template-columns: minmax(auto,350px);
+ }
+ grid-template-rows: auto;
+ column-gap: 20px;
+ row-gap: 30px;
+ //margin-bottom: 50px; mdifie le 14 janvier 2023
+ margin-bottom: 35px;
+}
+
+.paiement_explication {
+ max-width: 500px;
+ @include media_max(phone){
+ max-width: 242px;
+ }
+ margin-top: 20px;
+ padding: 11px;
+ border-radius: 16px;
+ background-color: $color_rouge_tres_clair;
+ font-size: 12px;
+ color: $color_gris_fonce;
+}
+
+.hidden {
+ display: none;
+}
+
+.identifiant {
+ padding-left: 5px;
+ @include media_max(phone){
+ display: block;
+ margin-top: 5px;
+ }
+ font-family: cabin_regular;
+ color: $color_gris_fonce;
+}
\ No newline at end of file
diff --git a/src/scss/templates/_adhesion_end.scss b/src/scss/templates/_adhesion_end.scss
new file mode 100644
index 0000000..042cdd4
--- /dev/null
+++ b/src/scss/templates/_adhesion_end.scss
@@ -0,0 +1,153 @@
+.adhesion_fin_container {
+
+ display: grid;
+ grid-column-gap: 20px;
+ grid-template-columns: 1fr 3fr 1fr;
+ @include media_max(phone){
+ grid-template-columns: minmax(3px, auto) minmax(auto, 600px) minmax(3px, auto);
+ }
+ @include media_minmax(phone,desktop){
+ grid-template-columns: minmax(10px, auto) minmax(400px, 600px) minmax(10px, auto);
+ }
+ grid-template-areas: ". adhesion_fin .";
+
+ .adhesion_fin {
+ grid-area: adhesion_fin;
+
+ display: grid;
+ grid-template-rows: auto auto auto;
+ row-gap: 30px;
+ grid-template-areas:
+ "adhesion_fin_adresse"
+ "adhesion_fin_description"
+ "adhesion_fin_card";
+
+
+ .adhesion_fin_adresse {
+ grid-area: adhesion_fin_adresse;
+ justify-self: end;
+ .adhesion_fin_adresse_titre {
+ font-family: montserrat_semibold;
+ }
+ .adhesion_fin_adresse_infos {
+ margin-top: 10px;
+ font-family: montserrat_regular;
+ }
+ .adhesion_fin_adresse_identifiant {
+ margin-top: 15px;
+ font-family: montserrat_thin;
+ .adhesion_fin_adresse_identifiant_bold {
+ font-family: montserrat_regular;
+ }
+ }
+
+ .adhesion_fin_date {
+ margin-top: 15px;
+ font-family: montserrat_thin;
+ }
+ }
+
+ .adhesion_fin_description {
+ grid-area: adhesion_fin_description;
+ margin-top: 60px;
+ text-align: center;
+ .adhesion_fin_description_identifiant{
+ margin-top: 20px;
+ font-family: montserrat_thin;
+ font-size: 13px;
+ }
+ }
+
+ .adhesion_fin_card {
+ grid-area: adhesion_fin_card;
+ display: grid;
+ grid-template-columns: 1fr 1fr 1fr 2fr;
+ @include media_max(phone){
+ grid-template-columns: 5px minmax(auto, auto) minmax(auto, auto) minmax(5px, auto);
+ }
+ grid-template-rows: auto auto auto auto;
+ @include media_max(phone){
+ grid-template-rows: auto auto auto auto auto;
+ }
+ row-gap: 30px;
+ grid-template-areas:
+ "logo logo . adhesion_fin_card_description"
+ ". adhesion_fin_card_identifiant adhesion_fin_card_identifiant adhesion_fin_card_identifiant"
+ ". adhesion_fin_card_profil adhesion_fin_card_profil adhesion_fin_card_profil"
+ ". adhesion_fin_paiement adhesion_fin_paiement adhesion_fin_paiement";
+ @include media_max(phone){
+ grid-template-areas:
+ "logo logo logo ."
+ "adhesion_fin_card_description adhesion_fin_card_description adhesion_fin_card_description adhesion_fin_card_description"
+ ". adhesion_fin_card_identifiant adhesion_fin_card_identifiant adhesion_fin_card_identifiant"
+ ". adhesion_fin_card_profil adhesion_fin_card_profil adhesion_fin_card_profil"
+ ". adhesion_fin_paiement adhesion_fin_paiement adhesion_fin_paiement";
+ }
+ margin: 10%;
+ @include media_max(phone){
+ margin: 0;
+ }
+ padding: 20px;
+ @include media_max(phone){
+ padding: 8px;
+ }
+ background-color: $color_rouge_tres_clair;
+ border: 4px dashed $color_rouge;
+
+ .logo {
+ grid-area: logo;
+ img {
+ width: 100%;
+ }
+ }
+ .adhesion_fin_card_description {
+ grid-area: adhesion_fin_card_description;
+ justify-self: end;
+ @include media_max(phone){
+ justify-self: center;
+ }
+ text-align: center;
+ .adhesion_fin_card_description_assoc {
+ margin-top: 5px;
+ font-family: montserrat_regular;
+ font-size: 14px;
+ }
+ .adhesion_fin_card_description_annee {
+ margin-top: 5px;
+ font-family: montserrat_light;
+ font-size: 12px;
+ }
+ }
+ .adhesion_fin_card_identifiant {
+ grid-area: adhesion_fin_card_identifiant;
+ margin-top: 14px;
+ font-family: montserrat_thin;
+ .adhesion_fin_card_identifiant_mail {
+ padding-left: 10px;
+ font-family: montserrat_regular;
+ color: $color_rouge;
+ }
+ }
+ .adhesion_fin_card_profil {
+ grid-area: adhesion_fin_card_profil;
+ font-family: montserrat_regular;
+ ul {
+ li {
+ &:before {
+ content: '- ';
+ }
+ }
+ }
+ }
+ .adhesion_fin_paiement {
+ grid-area: adhesion_fin_paiement;
+ font-family: montserrat_thin;
+ font-size: 13px;
+ }
+ }
+
+ }
+
+
+
+}
\ No newline at end of file
diff --git a/src/scss/templates/_adhesion_mail.scss b/src/scss/templates/_adhesion_mail.scss
new file mode 100644
index 0000000..8c8cdff
--- /dev/null
+++ b/src/scss/templates/_adhesion_mail.scss
@@ -0,0 +1,12 @@
+
+/* ***************************************** */
+/* ***************************************** */
+/* ADHESION */
+/* PAGE ACCUEIL SAISIE DU MAIL */
+/* ***************************************** */
+/* ***************************************** */
+
+
+/* **************************************************************** */
+/* ** OUVRIR EN SAVOIR PLUS ** */
+/* **************************************************************** */
diff --git a/src/scss/templates/_paiement.scss b/src/scss/templates/_paiement.scss
new file mode 100644
index 0000000..a043944
--- /dev/null
+++ b/src/scss/templates/_paiement.scss
@@ -0,0 +1,237 @@
+
+.paiement_container {
+
+ display: grid;
+ grid-column-gap: 20px;
+ @include media_max(phone){
+ grid-column-gap: unset;
+ }
+ grid-template-columns: 1fr 2fr 1fr;
+ @include media_max(phone){
+ grid-template-columns: minmax(5px, 300px) minmax(277px, 600px) minmax(10px, 300px);
+ }
+ @include media_minmax(phone,desktop){
+ grid-template-columns: minmax(10px, 300px) minmax(300px, 600px) minmax(10px, 300px);
+ }
+ grid-template-areas: ". paiement .";
+
+ .paiement {
+ grid-area: paiement;
+ border: 2px solid $color_rouge;
+ display: grid;
+ grid-column-gap: 20px;
+ grid-row-gap: 15px;
+ @include media_max(phone){
+ grid-column-gap: unset;
+ }
+ grid-template-columns: 1fr 3fr 4fr;
+ @include media_max(phone){
+ grid-template-columns: 10px 4fr 3fr;
+ }
+ @include media_minmax(phone,desktop){
+ grid-template-columns: 0px 3fr 4fr;
+ }
+ grid-template-rows: auto auto auto auto auto auto auto auto auto;
+ grid-template-areas:
+ "paiement_titre paiement_titre paiement_titre"
+ ". montant_cotisation_label montant_cotisation_euros_box"
+ ". montant_don_label montant_don_euros_box"
+ ". . don"
+ ". montant_total_label montant_total_euros_box"
+ ". paiement_mode ."
+ ". paiement_mode_choix paiement_mode_choix_nocb"
+ ". paiement_cb paiement_cb"
+ ". paiement_nocb_form paiement_nocb_form";
+
+ @include media_max(phone){
+ grid-template-areas:
+ "paiement_titre paiement_titre paiement_titre"
+ ". montant_cotisation_label montant_cotisation_euros_box"
+ ". montant_don_label montant_don_euros_box"
+ ". don don"
+ ". montant_total_label montant_total_euros_box"
+ ". paiement_mode ."
+ ". paiement_mode_choix paiement_mode_choix_nocb"
+ ". paiement_cb paiement_cb"
+ ". paiement_nocb_form paiement_nocb_form";
+ }
+ @include media_minmax(phone,desktop){
+ grid-template-areas:
+ "paiement_titre paiement_titre paiement_titre"
+ ". montant_cotisation_label montant_cotisation_euros_box"
+ ". montant_don_label montant_don_euros_box"
+ ". don don"
+ ". montant_total_label montant_total_euros_box"
+ ". paiement_mode ."
+ ". paiement_mode_choix paiement_mode_choix_nocb"
+ ". paiement_cb paiement_cb"
+ ". paiement_nocb_form paiement_nocb_form";
+ }
+
+ .paiement_titre {
+ grid-area: paiement_titre;
+ margin-bottom: 30px;
+ padding-bottom: 5px;
+ padding-top: 5px;
+ background-color: $color_rouge;
+ color: $color_blanc;
+ text-align: center;
+ }
+ .montant_cotisation_label {
+ grid-area: montant_cotisation_label;
+ align-self: center;
+ color: $color_gris_clair;
+ @include media_max(phone){
+ font-size: 15px;
+ }
+ @include media_minmax(phone,desktop){
+ font-size: 15px;
+ }
+ }
+ .montant_cotisation_euros_box {
+ grid-area: montant_cotisation_euros_box;
+ }
+ .input_text_don {
+ label {
+ font-size: 14px;
+ @include media_max(phone){
+ font-size: 13px;
+ }
+ @include media_minmax(phone,desktop){
+ font-size: 13px;
+ }
+ }
+ input,input[type=text],input[type=tel],input[type=date], select {
+ min-height: 22px;
+ font-size: 14px;
+ @include media_max(phone){
+ font-size: 15px;
+ }
+ @include media_minmax(phone,desktop){
+ font-size: 15px;
+ }
+ @include media_max(phone){
+ font-size: 15px;
+ }
+ color: $color_noir_clair;
+ &:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active, &:-webkit-autofill:focus-visible, &:-webkit-autofill:focus-within, &:-webkit-autofill:visited, &:target {
+ -webkit-text-fill-color: $color_noir_clair;
+ }
+ &::placeholder {
+ font-family: cabin_italic;
+ font-size: 12px;
+ color: $color_gris_clair;
+ }
+ }
+ }
+
+ .don {
+ grid-area: don;
+ margin-top: 22px;
+ margin-right: 15px;
+ }
+ .montant_don_label {
+ grid-area: montant_don_label;
+ align-self: center;
+ color: $color_gris_clair;
+ }
+ .montant_don_euros_box {
+ grid-area: montant_don_euros_box;
+ }
+ .montant_total_label {
+ grid-area: montant_total_label;
+ align-self: center;
+ }
+ .montant_total_euros_box {
+ grid-area: montant_total_euros_box;
+ }
+ .paiement_mode {
+ grid-area: paiement_mode;
+ margin-top: 40px;
+ }
+ .paiement_mode_choix {
+ grid-area: paiement_mode_choix;
+ }
+ .paiement_mode_choix_nocb {
+ grid-area: paiement_mode_choix_nocb;
+ }
+ #paiement_cb {
+ grid-area: paiement_cb;
+ }
+ .paiement_nocb {
+ grid-area: paiement_cb;
+ }
+ .paiement_nocb_choix {
+ display: flex;
+ }
+ .paiement_nocb_choix_cheque {
+ margin-left: 20px;
+ }
+
+ .open_modal_don {
+ display: grid;
+ margin-top: 6px;
+ margin-bottom: 45px;
+ text-decoration: underline;
+ font-size: 12px;
+ p {
+ &:hover {
+ cursor: pointer;
+ }
+ }
+ }
+
+ .montant_cotisation_euros {
+ display: inline-block;
+ padding-top: 8px;
+ padding-bottom: 6px;
+ padding-left: 10px;
+ padding-right: 8px;
+ @include media_max(phone){
+ font-size: 15px;
+ }
+ @include media_minmax(phone,desktop){
+ font-size: 15px;
+ }
+ }
+
+ .montant_total_label {
+ color: $color_rouge;
+ }
+ .montant_total_euros {
+ display: inline-block;
+ padding-top: 8px;
+ padding-bottom: 6px;
+ padding-left: 10px;
+ padding-right: 8px;
+ color: $color_rouge;
+ }
+
+ .paiement_nocb_form {
+ grid-area: paiement_nocb_form;
+ margin-bottom: 25px;
+ font-size: 13px;
+ .paiement_description {
+ margin-bottom: 3px;
+ font-family: montserrat_light;
+ }
+ }
+ .paiement_nocb_infos {
+ display: grid;
+ grid-template-rows: auto auto auto auto;
+ grid-row-gap: 25px;
+ .nom_banque {
+ margin-top: 15px;
+ }
+ }
+ .euro_label {
+ padding-left: 8px;
+ color: $color_gris_clair;
+ }
+
+
+
+ }
+
+}
+
diff --git a/src/scss/templates/_stageformulaire.scss b/src/scss/templates/_stageformulaire.scss
new file mode 100644
index 0000000..23f7a95
--- /dev/null
+++ b/src/scss/templates/_stageformulaire.scss
@@ -0,0 +1,132 @@
+.stage_formulaire_cont {
+ //max-width: 1000px;
+ //margin-right: auto;
+ //margin-left: auto;
+
+ .stage_formulaire {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ }
+
+ h1 {
+ margin-bottom: 35px;
+ .icone_titre {
+ width: 45px;
+ margin-bottom: -13px;
+ margin-right: 19px;
+ }
+ @include media_max("phone"){
+ font-size: 16px;
+ }
+ }
+ .titre_personne {
+ margin-top: 50px;
+ }
+ h2 {
+ margin-bottom: 47px;
+ font-size: 16px;
+ .icone_titre {
+ width: 42px;
+ margin-bottom: -17px;
+ margin-right: 13px;
+ }
+ .numero {
+ padding-left: 5px;
+ font-family: cabin_bold;
+ }
+ .remove_personne {
+ margin-left: 10px;
+ @media (max-width: 340px){
+ display: block;
+ margin-top: 2px;
+ margin-left: 56px;
+ }
+
+
+ }
+ .input_suppr {
+ display: none;
+ width: 10px;
+ }
+ .label_suppr {
+ font-size: 12px;
+ font-family: cabin_regular;
+ color: $color_gris_fonce;
+ }
+ }
+
+ .icone_hebergement {
+ display: flex;
+ align-items: end;
+ flex-wrap: wrap;
+ column-gap: 2px;
+ row-gap: 20px;
+ .icone {
+ width: 45px;
+ margin-right: 15px;
+ }
+ }
+
+ .personne {
+ margin-bottom: 45px;
+ }
+
+ .commentaire {
+ //align-self: flex-start;
+ margin-top: 130px;
+ .textarea_commentaire {
+ padding-top: 26px;
+ }
+ }
+
+ .button_icone {
+ margin-top: 43px;
+ }
+
+ .recap_personne {
+ margin-top: 40px;
+ }
+
+ .recap_personne, .tarifs {
+ p{
+ margin-left: 27px;
+ margin-bottom: 5px;
+ font-size: 14px;
+ }
+ }
+
+
+ .buttons {
+ display: flex;
+ flex-wrap: wrap;
+ column-gap: 20px;
+ row-gap: 20px;
+ justify-content: center;
+ margin-top: 30px;
+ .button_icone_recap {
+ width: 206px !important;
+ }
+ }
+
+ .savoirplus_accueil {
+ margin-top: 62px !important;
+ }
+
+ hr {
+ width: 80%;
+ margin-top: 50px;
+ margin-bottom: 40px;
+ }
+
+ .description {
+ margin-top: 30px;
+ margin-bottom: 60px;
+ background-color: #fefefe;
+ padding: 20px;
+ border: 5px solid #E73058;
+ border-radius: 20px;
+ font-family: montserrat_light;
+ }
+
+}
\ No newline at end of file
diff --git a/testapi336520-3105cc3caa46.json b/testapi336520-3105cc3caa46.json
new file mode 100644
index 0000000..2d1aa25
--- /dev/null
+++ b/testapi336520-3105cc3caa46.json
@@ -0,0 +1,15 @@
+{
+ "type": "service_account",
+ "project_id": "testapi336520",
+ "private_key_id": "3105cc3caa46599d1f6483a3882ccc9f58f60196",
+ "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCHvuvikldiyJCS\nmDDgDV53GM7X3FglLvOQF6orSB/iqOxyDUjZQW3B8T5ScwztYHizIsCc7Vv7rDG3\nshreNDYzlH0EiiQGWPI1U+A/QPFjjGX5A6phO/QFftJEgpsu9wkQOeIvFXYt/Lej\nvu8f1JlWKTSJb9ZVh6bHTp06sMl2lP4QOSv1qgT/LUu+lwZ0SnVfvnuUJIAcZOEZ\nXjyvjjmhGKUm56TOmADbsB/IKhvWMuXQgN2urPaN/L/r+QBjth5GXhzZEKtHrkn9\nIGn3BHN0vEnGuUGOABdvmsaNOW8K5rDqA91KRIgdcdKRayv1o15oBQWCC+0mzDIs\niuaONgSLAgMBAAECggEACS5qpJ/NSqB81s11u3xr/+uCTKtZ8uSNaMOQ/kMZ6lS5\nRAWOAH53vqm4fg8guArRtHFh9xCUK3ORcUvvRp7gGPZZdlh5k0xU0DKPdPfJho1/\nytXqojpR3kVI/NqbRb6ZCFXslyQBIvR4NJpncLm1HVTFeZOXkEq6hw8pfJy/I5wF\nqCCU8OarFTADBZLB0tE6ns8HhmQwEIExtOXAFYVj5TgT8QGH5GR33TJFSoHCHJtQ\n3RXOc2Dmq+sTMDEkaHC2z366rhGrODHWS5dnc9EGeCAmEfb+p7AlbfrDXAfx1faI\nfSMIn8hbZMmb1WSTKTRHrk7tmalWuiq2fxP1O0jhkQKBgQC9KvaE8XW57chGDYtn\nRRe5Zyc7w2bNZ5QCqCal+neo9wRy6bYFF9SRS/e1xbpQkHZTycvt4wYXsta248Yl\nqjcRZyOGpEfg9rfjq9LneWgF0oxi1iAF72WW91R9mlwmS+1pdyZLKtt/cNKjG5s/\nKJ/TgQ7R7w/7I6rMSSU7A8hE/wKBgQC3tEWh4xObHzsK/YXwaOPz/UUREaIuaW7o\nVPzukpUKGmQPN3LyzkRw94OZg74v221TSIGtxen6B5g093g9KO7xI3FJu8pyzxxz\nK/khR5CrK5qKmvxNIxTL9wz0gaGw0oLvruEWmXtojiW20GJHGdG1VgFBv1KhJeRB\nyRLzKOWEdQKBgEyNC0/HSuXf5ND8gDJdUnlz1fuoWny68rmUhHdcgXn95G4AR+mN\nuDbIMEj96CTcIRZNLlppKbkDZUKDsFbjp/9B5q2A45mVHdtjWCjWB5N7ndYNYs4k\nD89k7WsawTm6NiwczIFUqZjL9mGNNWj8rpjvvCiWfrgZue+LliZopG3PAoGAJo5c\niwS46bbdUooxYWryZRREObfkvS79yx+DUqNLSqqNU7BEnPdz3+3jHgZLlYnNYUx3\ngzxlxkdvx7Yk81kzBUN2FI6oh/42L2oMSNLXZ0WokuzChYIWbFS20F6gzBbyylF/\nBppCD4i+G6eS6O9fV1rsuproQdBNHw2Pv59WxL0CgYBwkKi1Z/c1bAQUOvWs5e+8\nKww5i/wrPmqFSAIzFtNk1IiUeTiBLjQB9Gh3E5AHwRbDWEumaa7TN9WpgaPnYnZl\n/ltjQTjhhyWVGT4MubkgAe3CsL0xtPoXSSVsE5uTWLkzP2ugD1kdnOe56qo25RIt\nqqsUwEtImy2/hEpsTBvnqg==\n-----END PRIVATE KEY-----\n",
+ "client_email": "testapigooglesheetcompteservic@testapi336520.iam.gserviceaccount.com",
+ "client_id": "108179819631254724956",
+ "auth_uri": "https://accounts.google.com/o/oauth2/auth",
+ "token_uri": "https://oauth2.googleapis.com/token",
+ "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
+ "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/testapigooglesheetcompteservic%40testapi336520.iam.gserviceaccount.com"
+}
+
+
+
diff --git a/views/adhesion/page_templates/adhesion_cartes_manuelles.ejs b/views/adhesion/page_templates/adhesion_cartes_manuelles.ejs
new file mode 100644
index 0000000..47d7477
--- /dev/null
+++ b/views/adhesion/page_templates/adhesion_cartes_manuelles.ejs
@@ -0,0 +1,79 @@
+<%- include('../../template_parts/head')%>
+
+
+
+
+
+
+ <%- include('../../template_parts/header_tunnel')%>
+
+
+
+
+
+
+
+
+
+
+
+ <%- include('../template_parts/adhesion_titrepage')%>
+
+
+ <% if (locals.err_mail_form_adhesion_1) { %>
+
+
<%= err_mail_form_adhesion_1 %>
+
<%= err_mail_form_adhesion_2 %>
+
<%= err_mail_form_adhesion_3 %>
+
<%= err_mail_form_adhesion_4 %>
+
+ <% }; %>
+
+
+
+
+
+
Vous allez envoyer les cartes adhérents et les justificatifs de don
+
aux adhérents qui ont un "x" dans la colonne "filtre" des 2 tableaux de la Google Sheet [adhesion_annuelle_web] et [adhesion_ass_locales]
+
+
Veuillez vérifier que le tableau [adhesion_ass_locales] ne contient pas de lignes vides, ni de lignes vides à la fin
+
+
CLIQUEZ ET PATIENTEZ QUELQUES MINUTES / LE RÉSULTAT VA S'AFFICHER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%- include('../../template_parts/footer')%>
+
+
+
+
+
+