Wiki source code of Gestion d'une balise formulaire non Adélia
Last modified by Julien EYMERY on 2015/06/29 09:47
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | ((( | ||
| 2 | == Problème == | ||
| 3 | ))) | ||
| 4 | |||
| 5 | Comment insérer une balise formulaire qui ne soit pas un objet formulaire Adélia Web ? | ||
| 6 | ((( | ||
| 7 | == Solution 1 == | ||
| 8 | ))) | ||
| 9 | |||
| 10 | Côté maquette HTML, définissez 2 pseudo-variables DEBUT_FORM et FIN_FORM comme ceci : | ||
| 11 | |||
| 12 | |||
| 13 | {{code language="xml" language="xml"}} | ||
| 14 | <body> | ||
| 15 | ::DEBUT_FORM(500) | ||
| 16 | <input type="hidden" name="vads_action_mode" value="::valeur_action_mode" /> | ||
| 17 | <input type="hidden" name="vads_amount" value="::valeur_amount" /> | ||
| 18 | <input type="hidden" name="vads_capture_delay" value="::valeur_capture_delay" /> | ||
| 19 | <input type="hidden" name="vads_ctx_mode" value="::valeur_ctx_mode" /> | ||
| 20 | <input type="hidden" name="vads_currency" value="::valeur_currency" /> | ||
| 21 | <input type="hidden" name="vads_cust_country" value="::valeur_cust_country" /> | ||
| 22 | <input type="hidden" name="vads_cust_email" value="::valeur_cust_email" /> | ||
| 23 | <input type="hidden" name="vads_page_action" value="::valeur_page_action" /> | ||
| 24 | <input type="hidden" name="vads_payment_config" value="::valeur_payment_config" /> | ||
| 25 | <input type="hidden" name="vads_site_id" value="::valeur_site_id" /> | ||
| 26 | <input type="hidden" name="vads_trans_date" value="::valeur_trans_date" /> | ||
| 27 | <input type="hidden" name="vads_trans_id" value="::valeur_trans_id" /> | ||
| 28 | <input type="hidden" name="vads_version" value="::valeur_version" /> | ||
| 29 | <input type="hidden" name="signature" value="::valeur_signature"/> | ||
| 30 | <input type="submit" name="payer" value="Payer"/> | ||
| 31 | ::FIN_FORM | ||
| 32 | </body> | ||
| 33 | </html> | ||
| 34 | {{/code}} | ||
| 35 | |||
| 36 | |||
| 37 | et coté L4G dans le pavé INITIALISATION de la page : | ||
| 38 | |||
| 39 | |||
| 40 | {{code language="none"}} | ||
| 41 | DEBUT_FORM = '<form action="https://mon/url/" method="POST" name="MON_FORMULAIRE_NON_ADELIA" id="MON_FORMULAIRE_NON_ADELIA">' | ||
| 42 | FIN_FORM = '</form>' | ||
| 43 | {{/code}} | ||
| 44 | |||
| 45 | ((( | ||
| 46 | == | ||
| 47 | Solution 2 == | ||
| 48 | ))) | ||
| 49 | |||
| 50 | Coté maquette HTML, insérez les balises debut et fin de FORM sous la forme de scriptlet : | ||
| 51 | |||
| 52 | |||
| 53 | {{code language="xml" language="xml"}} | ||
| 54 | <jsp:expression> | ||
| 55 | "\u003Cform action=\"https://mon/url/\" method=\"POST\" name=\"MON_FORMULAIRE_NON_ADELIA\" id=\"MON_FORMULAIRE_NON_ADELIA\">" | ||
| 56 | </jsp:expression> | ||
| 57 | <input type="hidden" name="vads_action_mode" value="::valeur_action_mode" /> | ||
| 58 | <input type="hidden" name="vads_amount" value="::valeur_amount" /> | ||
| 59 | <input type="hidden" name="vads_capture_delay" value="::valeur_capture_delay" /> | ||
| 60 | <input type="hidden" name="vads_ctx_mode" value="::valeur_ctx_mode" /> | ||
| 61 | <input type="hidden" name="vads_currency" value="::valeur_currency" /> | ||
| 62 | <input type="hidden" name="vads_cust_country" value="::valeur_cust_country" /> | ||
| 63 | <input type="hidden" name="vads_cust_email" value="::valeur_cust_email" /> | ||
| 64 | <input type="hidden" name="vads_page_action" value="::valeur_page_action" /> | ||
| 65 | <input type="hidden" name="vads_payment_config" value="::valeur_payment_config" /> | ||
| 66 | <input type="hidden" name="vads_site_id" value="::valeur_site_id" /> | ||
| 67 | <input type="hidden" name="vads_trans_date" value="::valeur_trans_date" /> | ||
| 68 | <input type="hidden" name="vads_trans_id" value="::valeur_trans_id" /> | ||
| 69 | <input type="hidden" name="vads_version" value="::valeur_version" /> | ||
| 70 | <input type="hidden" name="signature" value="::valeur_signature"/> | ||
| 71 | <input type="submit" name="payer" value="Payer"/> | ||
| 72 | <jsp:expression> | ||
| 73 | "\u003C/form>" | ||
| 74 | </jsp:expression> | ||
| 75 | {{/code}} | ||
| 76 | |||
| 77 | ((( | ||
| 78 | == Articles connexes == | ||
| 79 | ))) | ||
| 80 | |||
| 81 | Les articles connexes apparaissent ici en fonction des étiquettes que vous avez sélectionnées. Cliquez pour modifier la macro et ajouter ou modifier des étiquettes. | ||
| 82 | |||
| 83 | {{liveData sort="doc.date:desc" source="liveTable" properties="doc.title,doc.date,doc.author" description="Recently updated" limit="5" filters="tag=web formulaire" sourceParameters="translationPrefix=platform.index."}}{{/liveData}} | ||
| 84 |