Changeset 111157 in spip-zone
- Timestamp:
- Jul 17, 2018, 3:57:16 PM (3 years ago)
- Location:
- _plugins_/reservations_credits/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/reservations_credits/trunk/paquet.xml
r107322 r111157 2 2 prefix="reservations_credits" 3 3 categorie="date" 4 version="1.1. 7"5 etat=" test"4 version="1.1.8" 5 etat="stable" 6 6 compatibilite="[3.0.20;3.2.*]" 7 7 logo="prive/themes/spip/images/reservations_credits-64.png" 8 documentation=" "8 documentation="https://contrib.spip.net/Reservations-credits-5020" 9 9 schema="1.1.1"> 10 10 -
_plugins_/reservations_credits/trunk/presta/credit/payer/acte.html
r111123 r111157 23 23 })] 24 24 })] 25 26 25 </BOUCLE_reservations_detail> 27 26 #SET{credit,#CREDIT|credit_client{'',#GET{devise}}} -
_plugins_/reservations_credits/trunk/reservations_credits_fonctions.php
r111123 r111157 9 9 * @package SPIP\Reservations_credits\Fonctions 10 10 */ 11 12 if (!defined('_ECRIRE_INC_VERSION')) return; 13 11 if (! defined ( '_ECRIRE_INC_VERSION' )) 12 return; 14 13 15 14 /** 16 15 * Calcule les crédits du client 17 16 * 18 * @param string $email L'email du client. 17 * @param array $credit 18 * un table devis => credit 19 * @param string $email 20 * L'email du client. 21 * @param string $devise 22 * Le code de la devise. 19 23 * 20 24 * @return mixed La valeur du champ ou un tableau avec tous les champs. 21 25 */ 22 function credit_client($credit='',$email='', $devise = '') { 26 function credit_client($credit = '', $email = '', $devise = '') { 27 23 28 if ($credit) { 24 $credit = unserialize ($credit);29 $credit = unserialize ($credit); 25 30 } 26 elseif ($email) {27 $credit = unserialize (sql_getfetsel('credit', 'spip_reservation_credits', 'email LIKE "%' . $email . '%"'));31 elseif ($email) { 32 $credit = unserialize (sql_getfetsel ('credit', 'spip_reservation_credits', 'email LIKE "%' . $email . '%"')); 28 33 } 29 34 else { 30 35 return; 31 36 } 32 if ($devise AND is_array($devise) AND isset($credit[$devise])) { 33 $credit = $credit[$devise]; 37 38 if ($devise AND is_array($credit) AND isset($credit[$devise])) { 39 $credit = $credit [$devise]; 34 40 } 35 41
Note: See TracChangeset
for help on using the changeset viewer.