Changeset 95799 in spip-zone


Ignore:
Timestamp:
Mar 6, 2016, 10:09:54 AM (4 years ago)
Author:
abelass@…
Message:

passer la variable total dans l'inclure

Location:
_plugins_/reservation_evenement/trunk/prive/objets/contenu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/reservation_evenement/trunk/prive/objets/contenu/inc-reservation_montant.html

    r95536 r95799  
    1 <BOUCLE_reservation(RESERVATIONS){id_reservation}{tout}>
    2         [(#REM) Si on trouve une reservation on prend ça comme base ]
    3         #SET{details, #ARRAY}
    4         #SET{total,0}
    5         <BOUCLE_reservation_details(RESERVATIONS_DETAILS){id_reservation}{id_reservations_detail ?}{tout}>
    6                 #SET{details,
    7                 #GET{details}|push{
    8                 #ARRAY{
    9                 prix, #PRIX*,
    10                 }
    11                 }}
    12                 [(#SET{total,[(#GET{total}|plus{#PRIX*})]})]
    13         </BOUCLE_reservation_details>
    14         #SET{reservation, #ARRAY{details, #GET{details}}}
    15 </BOUCLE_reservation>
    16 
    17 [(#GET{total}|>{0}|oui)
     1[(#ENV{total}|>{0}|oui)
    182        <div class="champ contenu_montant">
    193                <label><:reservation:montant:> : </label>
    20                 <span>[(#GET{total}|appliquer_filtre{prix_formater,#GET{total}|})]</span>
     4                <span>[(#ENV{total}|appliquer_filtre{prix_formater,#GET{total}|})]</span>
    215        </div>
    226]
  • _plugins_/reservation_evenement/trunk/prive/objets/contenu/reservation.html

    r95451 r95799  
    6363        </div>
    6464        ]
    65         <INCLURE{fond=prive/objets/contenu/inc-reservation_montant,id_reservation}/>
     65        #SET{details, #ARRAY}
     66        #SET{total,0}
     67        <BOUCLE_reservation_details(RESERVATIONS_DETAILS){id_reservation}{id_reservations_detail ?}{tout}>
     68                [(#SET{total,[(#GET{total}|plus{#PRIX*})]})]
     69        </BOUCLE_reservation_details>
     70
     71        <INCLURE{fond=prive/objets/contenu/inc-reservation_montant,id_reservation,total=#GET{total}}/>
    6672</BOUCLE_reservation>
Note: See TracChangeset for help on using the changeset viewer.