Changeset 44111 in spip-zone


Ignore:
Timestamp:
Feb 3, 2011, 4:09:41 PM (9 years ago)
Author:
apachot@…
Message:

un montant libre saisi est prioritaire sur la selection d'un montant parmi une liste de montants proposés

Location:
_plugins_/transaction/traiter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/transaction/traiter/paiement_cmcic.php

    r44110 r44111  
    4242        }
    4343   
     44    if ($_REQUEST['montant_selection_1']) $_SESSION['total'] = $_REQUEST['montant_selection_1'];
    4445    if ($_REQUEST['montant_1']) $_SESSION['total'] = $_REQUEST['montant_1'];
    45     if ($_REQUEST['montant_selection_1']) $_SESSION['total'] = $_REQUEST['montant_selection_1'];
    4646   
    4747    // ID unique de la transaction
  • _plugins_/transaction/traiter/paiement_paypal.php

    r44110 r44111  
    2222   
    2323   
     24    if ($_REQUEST['montant_selection_1']) $_SESSION['total'] = $_REQUEST['montant_selection_1'];
    2425    if ($_REQUEST['montant_1']) $_SESSION['total'] = $_REQUEST['montant_1'];
    25     if ($_REQUEST['montant_selection_1']) $_SESSION['total'] = $_REQUEST['montant_selection_1'];
    2626   
    2727    // ID unique de la transaction
     
    3636        // Le formulaire a été validé, on le masque
    3737        $retours['editable'] = false;
    38         $retours['message_ok'] .=  "<div class='transaction_ok paypal'>"._T('transaction:traiter_message_paypal').'<p><a href="'.find_in_path("paiement/paypal/paiement.php").'"  class="valider"><span>'._T('transaction:valider_paiement').'</span></a></p></div>';
     38        $retours['message_ok'] .=  "<div class='transaction_ok paypal' style='background: url(".find_in_path('paiement/paypal/logo.png').") no-repeat top left'>"._T('transaction:traiter_message_paypal').'<p><a href="'.find_in_path("paiement/paypal/paiement.php").'"  class="valider"><span>'._T('transaction:valider_paiement').'</span></a></p></div>';
    3939
    4040        //enregistrement des résultats
Note: See TracChangeset for help on using the changeset viewer.