<fo:block margin-top="0.2cm" margin-left="0.5cm" margin-right="0.5cm" text-align="center">
                    <fo:external-graphic border-style="none" border-width="0mm" width="3.cm" content-height="scale-to-fit" content-width="scale-to-fit" src="url('http://gipco-adns.com/gnetresa/wa/Graphics/qrCode?content=${typePersonne.id}')" />
  </fo:block>



[@fpParagraphe ]
[@fpLigne ]
Il a été convenu ce qui suit, en application de la loi n°75-575 du 16 juillet 1971 et du décret n°75-469
du 16 juin 1975 pour l'application des dispositions du livre IX du Code du travail aux agents relevant
du livre IX du Code de la Santé Publique.
[/@fpLigne]
[/@fpParagraphe ]

[@fpParagraphe ]
[@fpLigne ][@fpGras ]
Article 1 : OBJET DE LA CONVENTION
[/@fpGras ] [/@fpLigne]
[/@fpParagraphe ]





[@fopImageBlock
url = 'https://static-cid.gipco-adns.com/~4365977/Espace_Angers/Mediation2025/images/badge/programme_gauche-nouveau.png'
style = ' width = "10.5cm" content-width="scale-to-fit" '
styleBlock = 'left="0mm" top="0mm" margin-top="0cm" text-align="center" position="absolute"'
/]


https://gipco-adns.com/file/~260/JDF_2025/BANDEAU_JDF_2025_large.png


  [@fopImageBlock
                url = img_Signature_Organisateur
                style = ' width = "8cm" content-width="scale-to-fit" '
                styleBlock = ' margin="0.2cm" text-align="right" margin-right="2cm" position="absolute"' /]



[@fpParagraphe ] [/@fpParagraphe ]
[@fpParagraphe style = ''] Je soussigné, Professeur  XXXX [/@fpParagraphe ]



[#-- ************************* Début du document **************** --]
[#--
**** Création du document ****
Une seule instruction suffit à créer un PDF
--]
[@fopDefDocument
a4_bloc_contenu
a4_bloc_haut_page
a4_bloc_bas_page /]
[#-- ************************* Fin du document **************** --]


Les macros

[#-- ****** Macro génériques --]
[#include "template(4398)"]
[#-- ****** Macro Mapar (debut) --]
[#include "template(7455)"]

[#macro badgeMaparSession typePersonne ]

[#assign avantBadge]

<fo:block margin-top="0.8cm" margin-left="0.5cm" margin-right="0.1cm" text-align="center" font-size="${css_liste_taille_font!}">
    [@fpParagraphe style = ' text-align="center" color="#B42578" font-size="16pt" font-weight="bold" space-before="2mm" space-after="2mm"']
    Votre programme
    [/@fpParagraphe ]
    [/#assign]
    [#assign apresBadge]
</fo:block>

[/#assign]

[#if true ]
[#if personne.sessionsIntervenants?? && ((personne.sessionsIntervenants?size) != 0 ) ]
[#assign maListe = displayGroupFromList( personne.sessionsIntervenants,100) ]
[#assign maListeTri = displayGroupSorter(maListe, "dateDebut", "asc")]
[@displayListeObjets maListeTri 7501 avantBadge apresBadge /]

[/#if ]
[#else ]


[#assign rechercheId = 990]
[#assign maListe = personne.sessionsIntervenants]
[#-- tri des inscriptions par ordre chrono --]
[#assign inscriptions = sortArray(maListe, "sessionPrestation.titre1", "asc")]
[@afficheListeObjets listeObjets=maListe motifTemplate = 7501 contenuAvant=avantBadge contenuApres=apresBadge contenuSiVide= "<fo:block></fo:block>"/]

[@fpParagraphe style = ' text-align="center" color="#B42578" font-size="16pt" font-weight="bold" space-before="2mm" space-after="2mm"']
afficheListeObjets
[/@fpParagraphe ]

[/#if ]

[/#macro]


[#macro badgeMaparAtelier typePersonne ]

[#assign avantBadge]

<fo:block margin-top="0.8cm" margin-left="0.5cm" margin-right="0.1cm" text-align="center" font-size="${css_liste_taille_font!}">
    [@fpParagraphe style = ' text-align="center" color="#B42578" font-size="16pt" font-weight="bold" space-before="5mm" space-after="5mm"']
    Vos ateliers
    [/@fpParagraphe ]
    [/#assign]
    [#assign apresBadge]
</fo:block>

[/#assign]

[#assign rechercheId = 990]
[#assign listeInscriptionPrises = listInscriptionsDestinaitaireByRecherche(rechercheId, typePersonne)]
[#-- tri des inscriptions par ordre chrono --]
[#assign inscriptions = sortArray(listeInscriptionPrises, "prestation.dateDebut", "asc")]
[@afficheListeObjets listeObjets=inscriptions motifTemplate = 5811 contenuAvant=avantBadge contenuApres=apresBadge contenuSiVide= "<fo:block></fo:block>"/]

[/#macro]

[#macro badgeMaparDiners typePersonne ]
[#assign css_bandeau ]
text-align="center" font-size="22pt" padding-top="0.2cm" padding-bottom="0.2cm" color="black" font-weight="bold"
[/#assign]
[#assign avantBadge]
<fo:block margin-top="1cm" margin-left="0.5cm" margin-right="0.1cm" text-align="center" font-size="22pt">
    [/#assign]
    [#assign apresBadge]
</fo:block>
[/#assign]

[#assign rechercheId = 1003]
[#assign listeInscriptionPrises = listInscriptionsDestinaitaireByRecherche(rechercheId, typePersonne)]
[#-- tri des inscriptions par ordre chrono --]
[#assign inscriptions = sortArray(listeInscriptionPrises, "prestation.dateDebut", "asc")]
[@afficheListeObjets listeObjets=inscriptions motifTemplate = 5811 contenuAvant=avantBadge contenuApres=apresBadge contenuSiVide= "<fo:block></fo:block>"/]

[/#macro]



[#macro badgeMaparRepas typePersonne ]
[#assign css_bandeau ]
text-align="center" font-size="22pt" padding-top="0.2cm" padding-bottom="0.2cm" color="black" font-weight="bold"
[/#assign]
[#assign avantBadge]
<fo:block-container left="0" width="100%" height="2cm" margin-left="0.1cm" margin-right="0.1cm">

    <fo:block margin-top="10cm" margin-left="0.5cm" margin-right="0.1cm" text-align="center" font-size="22pt">
        [@fpParagraphe style = ' text-align="center" color="#B42578" font-size="16pt" font-weight="bold" space-before="5mm" space-after="5mm"']
        Vos Déjeuners
        [/@fpParagraphe ]
        [/#assign]
        [#assign apresBadge]
    </fo:block>
</fo:block-container>
[/#assign]

[#assign rechercheId = 1002]
[#assign listeInscriptionPrises = listInscriptionsDestinaitaireByRecherche(rechercheId, typePersonne)]
[#-- tri des inscriptions par ordre chrono --]
[#assign inscriptions = sortArray(listeInscriptionPrises, "prestation.dateDebut", "asc")]
[@afficheListeObjets listeObjets=inscriptions motifTemplate = 7497 contenuAvant=avantBadge contenuApres=apresBadge contenuSiVide= "<fo:block></fo:block>"/]

[/#macro]


[#macro badgeMaparQrCode typePersonne ]

[#--
**** Gestion du badge ****
--]
[#assign bandeau_participation_titre = ""]
[#assign bandeau_participation_couleur = "darkblue"]
[#assign css_bandeau ]
text-align="center" font-size="22pt" padding-top="0.2cm" padding-bottom="0.2cm" color="white" font-weight="bold"
[/#assign]



[#assign badgeMaparStatut =""]

[#if typePersonne.typeParticipation??]
[#assign badgeMaparStatut ]
[#--
**** Gestion du type de badge ****
--]
[#assign bandeau_participation_titre =""]
[#assign okExposant = false]
[#if typePersonne.typeParticipation.label??]
[#assign bandeau_participation_titre = typePersonne.typeParticipation.label]
[#switch personne.typeParticipation.label]
[#case "CONFÉRENCIER"]
[#assign bandeau_participation_titre = "Conférencier"]
[#break]
[#case "CONFÉRENCIER ETP"]
[#assign bandeau_participation_titre = "Conférencier"]
[#break]
[#case "CONFÉRENCIER ETP-MODÉRATEUR"]
[#assign bandeau_participation_titre = "Conférencier"]
[#break]
[#case "CONFÉRENCIER SIMULATION"]
[#assign bandeau_participation_titre = "Conférencier"]
[#break]
[#case "CONFÉRENCIER THÉATRE"]
[#assign bandeau_participation_titre = "Conférencier"]
[#break]
[#case "CONFÉRENCIER-MODÉRATEUR"]
[#assign bandeau_participation_titre = "Conférencier"]
[#break]
[#case "DÉLÉGUÉ EXPOSANT"]
[#assign bandeau_participation_titre = "Délégué Exposant"]
[#break]
[#case "EXPOSANT"]
[#assign bandeau_participation_titre = "Délégué Exposant"]
[#break]
[#case "Exposant 2022"]
[#assign bandeau_participation_titre = "Délégué Exposant"]
[#break]
[#case "INSC ASSISTANT, CCA"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INSC IADE/IDE"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INSC INTERNE"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INSC MÉDECIN"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INSC MÉDECIN DPC"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INSC MÉDECIN HORS EUROPE"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INSC MÉDECIN HORS EUROPE"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INVITÉ AB"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INVITÉ EXTÉRIEUR"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INVITÉ KB"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INVITÉ KB AB PB"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "INVITÉ PB"]
[#assign bandeau_participation_titre = "Congressiste"]
[#break]
[#case "MODÉRATEUR"]
[#assign bandeau_participation_titre = "Modérateur"]
[#break]
[#case "MODÉRATEUR DPC"]
[#assign bandeau_participation_titre = "Modérateur dpc"]
[#break]
[#case "ORGANISATION"]
[#assign bandeau_participation_titre = "Organisation"]
[#break]
[#case "STAFF"]
[#assign bandeau_participation_titre = "Staff"]
[#break]
[#case "VIP"]
[#assign bandeau_participation_titre = "Vip"]
[#break]
[#default]
[#assign bandeau_participation_titre = "Cas non prévu"]
[/#switch]
[/#if]
${bandeau_participation_titre?upper_case}

[/#assign]
[/#if]

[#assign affiche_dpc = false]
[#assign ins_dpc = listInscriptionsDestinaitaireByRecherche(1001,typePersonne)]
[#if ins_dpc?size >0]
[#assign affiche_dpc = true]
[#assign url_dpc = 'http://gipco-adns.com/file/~1217447/Congres_mapar_2019/images_2019/Planche_de_badge_2019/mapar_capture_dpc.jpg']
[/#if]

[#assign dejeuner_vendredi = false]
[#assign ins_vendredi = listInscriptionsDestinaitaireByRecherche(768, typePersonne)]
[#if ins_vendredi?size >0]
[#assign dejeuner_vendredi = true]
[#assign url_vendredi = 'http://gipco-adns.com/file/~1217447/Congres_mapar_2019/images_2019/Planche_de_badge_2019/V.png']
[/#if]

[#assign dejeuner_samedi = false]
[#assign ins_samedi = listInscriptionsDestinaitaireByRecherche(769, typePersonne)]
[#if ins_samedi?size >0]
[#assign dejeuner_samedi = true]
[#assign url_samedi = 'http://gipco-adns.com/file/~1217447/Congres_mapar_2019/images_2019/Planche_de_badge_2019/S.png']
[/#if]


[#-- badge personnalisé et le QR --]

<fo:table border="none" margin-top="5.2cm">
    <fo:table-column column-width="100%" />

    <fo:table-body>

        <fo:table-row>
            <fo:table-cell text-align="left" padding="0.3cm 0.3cm 0.3cm 0.3cm" border-right="none">

                <fo:block margin-top="0.5cm" margin-left="0.5cm" margin-right="0.1cm" text-align="center" font-size="16pt">
                    ${typePersonne.genre!?cap_first} ${typePersonne.prenom!?cap_first} <fo:inline font-weight="bold">${typePersonne.nom!?upper_case}</fo:inline>
                </fo:block>

                <fo:block margin-top="0.2cm" margin-left="0.5cm" margin-right="0.1cm" text-align="center" font-size="16pt">
                    [#assign okExposant = false]
                    [#if !okExposant?? ]
                    [#assign okExposant = false]
                    [/#if]

                    [#if !okExposant ]
                    ${typePersonne.ville!?upper_case}
                    [#else]
                    [#if typePersonne.castParticipant.hasGroupe]${typePersonne.castParticipant.groupe.societe!}[/#if]
                    [/#if]
                </fo:block>
                <fo:block margin-top="0.2cm" margin-left="0.5cm" margin-right="0.1cm" text-align="center" font-size="16pt" font-weight="bold">

                    ${badgeMaparStatut!}

                </fo:block>
            </fo:table-cell>


        </fo:table-row>
        <fo:table-row>
            <fo:table-cell text-align="left" padding="0.25cm 0.25cm 0.25cm 0.25cm" border-right="none">
                <fo:block margin-top="0.2cm" margin-left="0.5cm" margin-right="0.5cm" text-align="center">
                    <fo:external-graphic border-style="none" border-width="0mm" width="3.cm" content-height="scale-to-fit" content-width="scale-to-fit" src="url('http://gipco-adns.com/gnetresa/wa/Graphics/qrCode?content=${typePersonne.id}')" />
                </fo:block>
                [#if affiche_dpc]

                [@fopImageBlock
                url = url_dpc
                style = ' width = "1.5cm" content-width="scale-to-fit" '
                styleBlock = ' margin="0.2cm" text-align="right" margin-left="7cm" margin-top="-4cm" position="relative"' /]
                [/#if ]

            </fo:table-cell>

        </fo:table-row>


        <fo:table-row>
            <fo:table-cell text-align="left" padding="0.1cm" border-right="none">
                <fo:block text-align="center">
                    [#if dejeuner_vendredi]
                    <fo:external-graphic border-color="black" border-style="none" border-width="0mm" width="1cm" content-height="scale-to-fit" content-width="scale-to-fit" src="url('${url_vendredi!}')" />
                    [/#if ]
                    [#if dejeuner_samedi]
                    <fo:external-graphic border-color="black" border-style="none" border-width="0mm" width="1cm" content-height="scale-to-fit" content-width="scale-to-fit" src="url('${url_samedi!}')" />
                    [/#if ]
                </fo:block>
            </fo:table-cell>
        </fo:table-row>

    </fo:table-body>
</fo:table>


[/#macro]



[#ftl output_format="XML"]
[#-- ****** Macro génériques --]
[#include "template(4398)"]
[#-- ****** Macro Badges --]
[#include "template(8258)"]
[#include "template(8258)"]
[#macro badgeMediationIns typePersonne ]
[#assign css_bandeau ]
text-align="center" font-size="22pt" padding-top="0.2cm" padding-bottom="0.2cm" color="black" font-weight="bold"
[/#assign]
[#assign avantBadge]
<fo:block-container left="0" width="100%" height="2cm" margin-left="0.1cm" margin-right="0.1cm">
    <fo:block margin-top="10cm" margin-left="0.5cm" margin-right="0.1cm" text-align="center" font-size="22pt">
        [@fpParagraphe style = ' text-align="center" color="#B42578" font-size="16pt" font-weight="bold" space-before="5mm" space-after="5mm"']
        Vos Inscriptions
        [/@fpParagraphe ]
        [/#assign]
        [#assign apresBadge]
    </fo:block>
</fo:block-container>
[/#assign]

[/#macro]
[#--
included -> pour appel du corps de badge inclu
page_margin -> ici 0
Pas de lignes vides -> sinon "The processing instruction target matching "[xX][mM][lL]" is not allowed."
code couleur -> https://accounts.ecrion.com/help/products/xfrenderingserver/xfultrascalehelp4/appendix_b.htm
--]
[#assign page_margin = 0]
[#assign included = true]
[#--
**** Début parametrage de la planche
--]
[#-- 1 - Image fond de fond de la planche de badge --]
[#assign url_fond_page = 'http://gipco-adns.com/file/~1217447/congres_mapar_2023/Documents_pdf/MAPAR23-Badge-fond-page-compress.jpg']
[#assign url_fond_page = '']
[#-- 2 - definition de la zone A5 ( en haut a droite qui intégre la zone badge )
--]
[#assign a6_bloc_haut_gauche]
[@fopImageBlock
url = 'https://static-cid.gipco-adns.com/~4365977/Espace_Angers/Mediation2025/images/Mediations_BANNIERE_WEB.jpg'
style = ' width = "10.5cm" content-width="scale-to-fit" '
styleBlock = 'left="0mm" top="0mm" margin-top="0cm" text-align="center" position="absolute"'
/]

<fo:block-container width="100%" height="auto" text-align="center" margin-top="2cm">
    <!-- Nom et prénom -->
    <fo:block font-size="18pt" font-weight="bold" color="black">
        ${participant.prenom?capitalize} <fo:inline font-size="20pt">${participant.nom?upper_case}</fo:inline>
    </fo:block>
    <!-- Société -->
    [#if participant.societe??]
    <fo:block font-size="12pt" font-weight="bold" color="black" margin-bottom="0.5cm">
        ${participant.societe!""?upper_case}
    </fo:block>
    [/#if]
    <!-- Pays -->
    [#if participant.pays??]
    <fo:block font-size="10pt" font-weight="bold" color="black" margin-bottom="1cm">
        ${participant.paysLocalized?upper_case}
    </fo:block>
    [/#if]
    <!-- QR Code ou Code-Barres (optionnel) -->
    <fo:block text-align="center" margin-bottom="1cm">
    </fo:block>

    <fo:block margin-top="0.2cm" margin-left="0.5cm" margin-right="0.5cm" text-align="center">
        <fo:external-graphic border-style="none" border-width="0mm" width="3.cm" content-height="scale-to-fit" content-width="scale-to-fit" src="url('http://gipco-adns.com/gnetresa/wa/Graphics/qrCode?content=${participant.id}')" />
    </fo:block>

</fo:block-container>

<fo:block-container absolute-position="absolute" bottom="0.5cm" left="0.5cm" right="0.5cm" height="2cm" background-color="#0173a7" display-align="center" text-align="center" color="white" margin-top="auto">
    <fo:block text-align=" center" font-size="16pt" font-weight="bold" line-height="2cm">
        [#if participant.typeParticipation??] ${participant.typeParticipation.label?upper_case}[#else] Pas de participation [/#if]
    </fo:block>
</fo:block-container>
[/#assign]
[#assign a6_bloc_haut_droit]
<fo:block-container absolute-position="absolute" top="0.5cm" left="0.5cm" right="0.5cm" height="2cm" background-color="#0173a7" display-align="center" text-align="center" color="white">
    <fo:block font-size="16pt" font-weight="bold">
        MA RESERVATION COMPREND
    </fo:block>
</fo:block-container>

<fo:block margin-top="3cm" margin-left="0.5cm" margin-right="0.5cm">
    [#assign rechercheId = 859]
    [#assign listeAutreInscription = listInscriptionsDestinaitaireByRecherche(rechercheId, participant)]
    [#assign inscriptions = sortArray(listeAutreInscription, "prestation.nom", "asc")]
    [@afficheListeObjets listeObjets=inscriptions motifTemplate = 8290 /]
</fo:block>

<fo:block margin-top="0.5cm" margin-left="0.5cm" margin-right="0.5cm">
    [#assign rechercheId = 1135]
    [#assign listeAutreInscription = listInscriptionsDestinaitaireByRecherche(rechercheId, participant)]
    [#assign inscriptions = sortArray(listeAutreInscription, "prestation.nom", "asc")]
    [@afficheListeObjets listeObjets=inscriptions motifTemplate = 8287 /]
</fo:block>

[/#assign]
[#assign a6_bloc_bas_droit]
[#-- ****************************************************************** Affiche Inscriptions ATELIERS (debut)--]
[@fopImageBlock
url = 'https://static-cid.gipco-adns.com/~4365977/Espace_Angers/Mediation2025/images/badge/programme_droite-nouveau.png'
style = ' width = "10.5cm" content-width="scale-to-fit" '
styleBlock = 'left="0mm" top="0mm" margin-top="0cm" text-align="center" position="absolute"'
/]

[#-- ****************************************************************** Affiche Inscriptions ATELIERS (Fin) --]
[/#assign]
[#assign a6_bloc_bas_gauche]
[@fopImageBlock
url = 'https://static-cid.gipco-adns.com/~4365977/Espace_Angers/Mediation2025/images/badge/programme_gauche-nouveau.png'
style = ' width = "10.5cm" content-width="scale-to-fit" '
styleBlock = 'left="0mm" top="0mm" margin-top="0cm" text-align="center" position="absolute"'
/]
[/#assign]
[#--
**** Fin parametrage de la planche
--]
[#include "template(3595)"] [#-- header Definition de la planche A4 --]
[#include "template(4164)"] [#-- PDF - Badge générique 4 Zones A6 --]
[#include "template(3596)"] [#-- footer (Obligatoire)--]