Changeset 79348 in spip-zone
- Timestamp:
- Dec 13, 2013, 7:00:43 PM (7 years ago)
- Location:
- _plugins_/commandes/trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/commandes/trunk/inclure/commande.html
r57684 r79348 6 6 <BOUCLE_commande_details(COMMANDES_DETAILS){id_commande}{par id_commandes_detail}> 7 7 [(#SET_PUSH{details, [(#ARRAY{ 8 objet,#OBJET, 9 id_objet,#ID_OBJET, 8 10 descriptif, [[(#QUANTITE|>{1}|oui)<strong>#QUANTITE ×</strong> ](#DESCRIPTIF*|supprimer_numero)], 9 11 quantite, #QUANTITE, … … 15 17 #SET{commande,#ENV{commande}} 16 18 <//B_commande>[ 17 (#REM) Affichage du detail dans une table si f romat html demande19 (#REM) Affichage du detail dans une table si format html demande 18 20 19 21 ]<BOUCLE_test(CONDITION){si #GET{commande}|et{#GET{commande}|is_array}}>[ … … 23 25 (#SET{total,0}) 24 26 ]<BOUCLE_details_texte(POUR){tableau #GET{commande}|table_valeur{details}}>[ 25 - (#VALEUR |table_valeur{descriptif}|trim|supprimer_tags)] : [(#VALEUR|table_valeur{prix}|prix_formater)][26 (#SET{total,[(#GET{total}|plus{[(#VALEUR |table_valeur{prix})]})]})27 - (#VALEUR{descriptif}|trim|supprimer_tags)] : [(#VALEUR{prix}|prix_formater)][ 28 (#SET{total,[(#GET{total}|plus{[(#VALEUR{prix})]})]}) 27 29 ]</BOUCLE_details_texte> 28 30 … … 39 41 #SET{total,0} 40 42 <BOUCLE_details(POUR){tableau #GET{commande}|table_valeur{details}}> 41 <tr class="detail [(#VALEUR |table_valeur{quantite}|>{0}|?{avec_quantite,sans_quantite})]">42 <td class="description"> [(#VALEUR|table_valeur{descriptif})]</td>43 <td class="montant">[(#VALEUR |table_valeur{prix}|prix_formater)]</td>43 <tr class="detail [(#VALEUR{quantite}|>{0}|?{avec_quantite,sans_quantite})]"> 44 <td class="description"><a href="[(#VALEUR{id_objet}|generer_url_entite{#VALEUR{objet}})]">[(#VALEUR{descriptif})]</a></td> 45 <td class="montant">[(#VALEUR{prix}|prix_formater)]</td> 44 46 </tr> 45 [(#SET{total,[(#GET{total}|plus{[(#VALEUR |table_valeur{prix})]})]})]47 [(#SET{total,[(#GET{total}|plus{[(#VALEUR{prix})]})]})] 46 48 </BOUCLE_details> 47 49 </tbody> -
_plugins_/commandes/trunk/inclure/facture-a.html
r72216 r79348 38 38 <p class='telephone'> 39 39 <BOUCLE_telephones(NUMEROS){id_auteur}{'<br />'}> 40 #NUMERO40 <strong>Tel</strong> #NUMERO 41 41 </BOUCLE_telephones> 42 42 </p> -
_plugins_/commandes/trunk/lang/commandes_fr.php
r79155 r79348 29 29 'commande_statut' => 'Statut', 30 30 'commandes_titre' => 'Commandes', 31 'configurer_titre' => 'Configurer le plugin Commande', 31 'configurer_titre' => 'Configurer le plugin Commandes', 32 'configurer_notifications_commandes' => 'Configurer les notifications', 32 33 'confirmer_supprimer_commande' => 'Confirmez-vous la suppression de la commande ?', 33 34 'contact_label' => 'Contact :', -
_plugins_/commandes/trunk/prive/objets/contenu/commande.html
r79122 r79348 41 41 </span> 42 42 </div> 43 #INCLURE{fond=inclure/commande-jolie, id_commande=#ID_COMMANDE} 43 44 #INCLURE{fond=inclure/facture-a, id_commande=#ID_COMMANDE} 44 45 </BOUCLE_afficher_contenu> -
_plugins_/commandes/trunk/prive/objets/liste/commandes_details.html
r78999 r79348 1 <div class='cadre cadre-r ajax'> 2 [(#REM) On peut donner soit un id_commande, soit un tableau contenant la commande ] 1 [(#REM) todo > récupérer la configuration du plugin commande] 2 <h4>Notification lors du changement des statuts:</h4> 3 3 4 <BOUCLE_commande(COMMANDES){tous}{id_commande=#ENV{id_objet}}{statut?}> 5 [(#REM) Si on trouve une commande on prend ça comme base ] 6 #SET{details, #ARRAY} 7 <BOUCLE_commande_details(COMMANDES_DETAILS){id_commande}{par id_commandes_detail}> 8 [(#SET_PUSH{details, [(#ARRAY{ 9 descriptif, [[(#QUANTITE|>{1}|oui)<strong>#QUANTITE ×</strong> ](#DESCRIPTIF*|supprimer_numero)], 10 quantite, #QUANTITE, 11 prix, #PRIX*, 12 })]})] 13 </BOUCLE_commande_details> 14 #SET{commande, #ARRAY{details, #GET{details}}} 15 </BOUCLE_commande> 16 #SET{commande,#ENV{commande}} 17 <//B_commande> 4 5 <B_data> 6 <ul> 7 <BOUCLE_data(DATA){source table,#CONFIG{commandes/quand,#LISTE}}> 8 <li>[(#VAL{commandes:statut_}|concat{#VALEUR}|_T)] </li> 9 </BOUCLE_data> 10 </ul> 11 <//B_data> 18 12 19 <BOUCLE_test(CONDITION){si #GET{commande}|et{#GET{commande}|is_array}}>20 <table class="commande" cellspacing="0">21 <thead>22 <tr>23 <th class="description"><:commandes:designation:></th>24 <th class="montant"><:commandes:montant:></th>25 </tr>26 </thead>27 <tbody>28 #SET{total,0}29 <BOUCLE_details(POUR){tableau #GET{commande}|table_valeur{details}}>30 <tr class="detail [(#VALEUR|table_valeur{quantite}|>{0}|?{avec_quantite,sans_quantite})]">31 <td class="description">[(#VALEUR|table_valeur{descriptif})]</td>32 <td class="montant">[(#VALEUR|table_valeur{prix}|prix_formater)]</td>33 </tr>34 [(#SET{total,[(#GET{total}|plus{[(#VALEUR|table_valeur{prix})]})]})]35 </BOUCLE_details>36 </tbody>37 <tfoot>38 <tr class="total_ttc">39 <td class="descriptif"><:prix:label_total_ttc:></td>40 <td class="montant">[(#GET{total}|prix_formater)]</td>41 </tr>42 </tfoot>43 </table>44 </BOUCLE_test>45 </div>46 13 14 [(#AUTORISER{configurer,commandes}|oui) 15 #BOITE_OUVRIR{'','raccourcis'} 16 [(#URL_ECRIRE{configurer_commandes}|icone_horizontale{<:commandes:configurer_notifications_commandes:>,commandes-24})] 17 #BOITE_FERMER 18 ] 19
Note: See TracChangeset
for help on using the changeset viewer.