diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php index 2f2d3b0d816..52478bd9193 100644 --- a/htdocs/adherents/cotisations.php +++ b/htdocs/adherents/cotisations.php @@ -1,7 +1,7 @@ * Copyright (C) 2003 Jean-Louis Bergamo - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -102,7 +102,9 @@ if ($_POST["action"] == '2bank' && $_POST["rowid"] !='') } - +/* + * Affichage liste + */ llxHeader(); @@ -137,7 +139,7 @@ if ($result) print_liste_field_titre($langs->trans("Date"),"cotisations.php","c.dateadh",$param,"","",$sortfield); print_liste_field_titre($langs->trans("Name"),"cotisations.php","d.nom",$param,"","",$sortfield); print_liste_field_titre($langs->trans("Amount"),"cotisations.php","c.cotisation",$param,"","align=\"right\"",$sortfield); - if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE !=0) + if ($conf->global->ADHERENT_BANK_USE) { print_liste_field_titre($langs->trans("Bank"),"cotisations.php","b.fk_account",$pram,"","",$sortfield); } @@ -155,7 +157,7 @@ if ($result) print "".dolibarr_print_date($objp->dateadh)."\n"; print "rowid&action=edit\">".img_object($langs->trans("ShowMember"),"user").' '.stripslashes($objp->prenom)." ".stripslashes($objp->nom)."\n"; print ''.price($objp->cotisation).''; - if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE !=0) + if ($conf->global->ADHERENT_BANK_USE) { if ($objp->fk_account) { @@ -189,7 +191,10 @@ if ($result) print "".$langs->trans("Total")."\n"; print " \n"; print "".price($total)."\n"; - print ' '; + if ($conf->global->ADHERENT_BANK_USE) + { + print ' '; + } print "\n"; print ""; print "
\n";