From 74bc482b9c31b093cd3e1c5712e39c1c7d4b4561 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Tue, 9 Feb 2021 15:41:06 +0100 Subject: [PATCH] =?utf8?q?[SKEL]=20+surcharge=20des=20notifications=20du?= =?utf8?q?=20plugin=20reservation.=20Possibilit=C3=A9=20d'ajouter=20un=20l?= =?utf8?q?ien=20de=20visio-conf=C3=A9rence=20quand=20on=20accepte=20une=20?= =?utf8?q?inscription?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- www/plugins/skel_lhc/inclure/reservation.html | 94 +++++++++++++++++++ www/plugins/skel_lhc/lang/skel_lhc_fr.php | 2 + www/plugins/skel_lhc/paquet.xml | 3 +- 3 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 www/plugins/skel_lhc/inclure/reservation.html diff --git a/www/plugins/skel_lhc/inclure/reservation.html b/www/plugins/skel_lhc/inclure/reservation.html new file mode 100644 index 00000000..ee6a6424 --- /dev/null +++ b/www/plugins/skel_lhc/inclure/reservation.html @@ -0,0 +1,94 @@ +[(#REM) On peut donner soit un id_reservation, soit un tableau contenant la reservation] + + [(#REM) Si on trouve une reservation on prend ça comme base ] + #SET{details, #ARRAY} #SET{total,0} + + + #SET{urlvisio,#URLVISIO} + + #SET{details, #GET{details}|push{ + #ARRAY{ + descriptif,#QUANTITE|>{1}|?{#QUANTITE×}|concat{#DESCRIPTIF*|extraire_multi|supprimer_numero}, + quantite, #QUANTITE, + prix_ht, #PRIX_HT, + statut,#STATUT, + urlvisio,#GET{urlvisio} + } + } + } + + [(#SET{total_ht,[(#GET{total_ht}|plus{#PRIX_HT*})]})] + [(#SET{total,[(#GET{total}|plus{#PRIX*})]})] + + #SET{reservation,#ARRAY{ + details, #GET**{details} + } + } + +#SET{reservation,#ENV{reservation}} + + +[ (#REM) Affichage du detail dans une table si format html demande ] + + [(#REM) Version texte ] + + [[ + - (#VALEUR|table_valeur{descriptif}|trim|supprimer_tags)] : + [(#VALEUR|table_valeur{prix}|appliquer_filtre{prix_formater,[(#VALEUR|table_valeur{prix})]})] + + + [<:prix:label_total_ttc:> : #GET{total}|appliquer_filtre{prix_formater})] + + + + + + [(#GET{total}|floatval|>{0.00}|oui) + ] + + + + + + + + [(#GET{total}|floatval|>{0.00}|oui) + + ] + + + + + + + + [(#GET{total}|floatval|>{0.00}|oui) + + [(#GET{total}|!={#GET{total_ht}}|oui) + + + + + + + #SET{taxe, #GET{total}|moins{#GET{total_ht}}} + + + + ] + + + + + + + ] +
<:reservation:designation:><:reservation:montant:><:reservation:label_statut:>
[(#VALEUR{descriptif})]#VALEUR{prix_ht} + [(#VAL{reservation}|re_statut_titre{#VALEUR{statut}})] +
+ + [<:skel_lhc:lien_visioconf:>] + +
[(#PLUGIN{prix}|?{<:prix:label_total_ht:>,<:reservation:total: <:reservations_detail:label_prix_ht:>})][(#GET{total_ht}|appliquer_filtre{prix_formater,#GET{total_ht}})]
<:reservations_detail:label_taxes:>[(#GET{taxe}|appliquer_filtre{prix_formater,#GET{taxe}})]
[(#PLUGIN{prix}|?{<:prix:label_total_ttc:>,<:reservation:total:>})][(#GET{total}|appliquer_filtre{prix_formater,#GET{total}})]
+ + diff --git a/www/plugins/skel_lhc/lang/skel_lhc_fr.php b/www/plugins/skel_lhc/lang/skel_lhc_fr.php index d0a086e9..bd5e1345 100644 --- a/www/plugins/skel_lhc/lang/skel_lhc_fr.php +++ b/www/plugins/skel_lhc/lang/skel_lhc_fr.php @@ -6,6 +6,8 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( // A 'actualites_ateliers' => 'Actualités des ateliers', + // L + 'lien_visioconf' => 'Lien de visioconférence', ); ?> diff --git a/www/plugins/skel_lhc/paquet.xml b/www/plugins/skel_lhc/paquet.xml index 3966ee87..d9586bf8 100755 --- a/www/plugins/skel_lhc/paquet.xml +++ b/www/plugins/skel_lhc/paquet.xml @@ -1,7 +1,7 @@ 2011-2021 + -- 2.20.1