[#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] |