source: spip-zone/_plugins_/reservation_evenement/trunk/inclure/compteur_reservations.html @ 96183

Last change on this file since 96183 was 96183, checked in by abelass@…, 3 years ago

tabs au lieu d'espaces

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#SET{reservations,#ARRAY} [(#ENV{multiple}|oui)#SET{totale,#ARRAY}]
2
3#SET{objets,#VAL|lister_tables_objets_sql} #SET{id_evenement,#ARRAY}
4<BOUCLE_art(EVENEMENTS){id_article?}{id_evenement?}{id_rubrique?}{tout}>
5        #SET{id_evenement,#GET{id_evenement}|push{#ID_EVENEMENT}}
6</BOUCLE_art>
7
8<BOUCLE_status (DATA){sourcetableau,#GET{objets}|table_valeur{spip_reservations}|table_valeur{statut_textes_instituer}}{si #ENV{multiple}|oui}>
9        #SET{#CLE,#ARRAY}
10</BOUCLE_status>
11
12<BOUCLE_reservations (RESERVATIONS_DETAILS){id_evenement IN #GET{id_evenement}}{statut ?IN #ENV{statut}}>
13        [(#ENV{multiple}|non) #SET{reservations,#GET{reservations}|push{#QUANTITE}}]
14        [(#ENV{multiple}|oui)
15                [(#SET{#STATUT,#GET{#STATUT}|push{#QUANTITE}})]
16                #SET{totale,#GET{totale}|push{#QUANTITE}}
17                [(#SET{reservations, #GET{reservations}|array_merge{#ARRAY{#STATUT, #GET{#STATUT}|array_sum}}})]
18        ]
19</BOUCLE_reservations>
20[(#ENV{multiple}|non)
21        [(#GET{reservations}|array_sum)]
22]
23[(#ENV{multiple}|oui)
24        [(#GET{reservations}|array_merge{#ARRAY{totale,#GET{totale}|array_sum}}|array_reverse|serialize)]
25]
Note: See TracBrowser for help on using the repository browser.