#SET{tabldep, #ARRAY{0,choix1,1,choix2,2,choix3,3,choix4,4,choix5,5,choix6,6,choix7}}
#SET{nbcriteres,0}
#SET{compteur,0}
[(#ENV{rechenf}|!={''}|?{#SET{nbcriteres,#EVAL{#GET{nbcriteres}+1}},''})]
[(#ENV{rechado}|!={''}|?{#SET{nbcriteres,#EVAL{#GET{nbcriteres}+1}},''})]
[(#ENV{ages}|!={''}|?{#SET{nbcriteres,#EVAL{#GET{nbcriteres}+1}},''})]
[(#ENV{departement}|!={''}|?{#SET{nbcriteres,#EVAL{#GET{nbcriteres}+1}},''})]
[(#ENV{debut}|!={''}|?{#SET{fdebut,#ENV{debut}|affdate{'Y-m-d H:i:s'}},#SET{fdebut,
#DATE|affdate{'Y'}|concat{'-01-01 12:00:00'}}})]
[(#ENV{fin}|!={''}|?{#SET{ffin,#ENV{fin}|affdate{'Y-m-d H:i:s'}},#SET{ffin,
#DATE|affdate{'Y'}|plus{1}|concat{'-12-31 12:00:00'}}})]
[(#REM) premier passage pour les séjours avec places restantes]
=#GET{fdebut}}{date_debut<=#GET{ffin}}>
#SET{show,0}
[(#ENV{rechenf}|!={''}|?{
#AGEMAX|<={13}|?{#SET{show,#EVAL{#GET{show}+1}},''},''})]
[(#ENV{rechado}|!={''}|?{
#AGEMIN|>={11}|?{#SET{show,#EVAL{#GET{show}+1}},''},''})]
[(#ENV{ages}|!={''}|?{
#ENV{ages}|>={#AGEMIN}|?{#ENV{ages}|<={#AGEMAX}|?{#SET{show,#EVAL{#GET{show}+1}},''},''},''})]
[(#ENV{departement}|!={''}|?{
#GET{tabldep/#ENV{departement}}|=={#DEPARTEMENT}|?{#SET{show,#EVAL{#GET{show}+1}}, ''},''})]
[(#GET{show}|=={#GET{nbcriteres}}|oui)
[(#PLACES|moins{#NB_INSCRITS}|>{0}|oui)
[(#GET{compteur}|modulo{3}|=={0}|oui)
[(#GET{compteur}|<{1}|?{'',''})]
[(#REM) second passage pour les séjours complets]
#SET{compteur,0}
=#GET{fdebut}}{date_debut<=#GET{ffin}}>
#SET{show,0}
[(#ENV{rechenf}|!={''}|?{
#AGEMAX|<={13}|?{#SET{show,#EVAL{#GET{show}+1}},''},''})]
[(#ENV{rechado}|!={''}|?{
#AGEMIN|>={11}|?{#SET{show,#EVAL{#GET{show}+1}},''},''})]
[(#ENV{ages}|!={''}|?{
#ENV{ages}|>={#AGEMIN}|?{#ENV{ages}|<={#AGEMAX}|?{#SET{show,#EVAL{#GET{show}+1}},''},''},''})]
[(#ENV{departement}|!={''}|?{
#GET{tabldep/#ENV{departement}}|=={#DEPARTEMENT}|?{#SET{show,#EVAL{#GET{show}+1}}, ''},''})]
[(#GET{show}|=={#GET{nbcriteres}}|oui)
[(#PLACES|moins{#NB_INSCRITS}|<{1}|oui)
[(#GET{compteur}|modulo{3}|=={0}|oui)
]
#SET{compteur,#GET{compteur}|plus{1}}
]
]
Pas de places disponibles.
Autre choix de critères de filtrage ... ?
]
#SET{compteur,#GET{compteur}|plus{1}}
]
]