From ebdad1b0169e1bedfceab8067ed831255e339e67 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 2 Apr 2005 20:36:17 +0000 Subject: [PATCH] =?UTF-8?q?Trad:=20Traduction=20du=20module=20adh=E9rent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/adherents/cotisations.php | 36 +++++++++++++++++--------------- htdocs/adherents/fiche.php | 6 +++--- htdocs/langs/en_US/members.lang | 4 +++- htdocs/langs/fr_FR/members.lang | 2 ++ 4 files changed, 27 insertions(+), 21 deletions(-) diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php index 57a0855e03e..bda6e28401f 100644 --- a/htdocs/adherents/cotisations.php +++ b/htdocs/adherents/cotisations.php @@ -22,7 +22,8 @@ * */ -/** \file htdocs/adherents/cotisations.php +/** + \file htdocs/adherents/cotisations.php \ingroup adherent \brief Page de consultation et insertion d'une cotisation \version $Revision$ @@ -149,14 +150,14 @@ $sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $of $result = $db->query($sql); if ($result) { - $num = $db->num_rows(); + $num = $db->num_rows($result); $i = 0; - print_barre_liste("Liste des cotisations", $page, "cotisations.php", "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield"); + print_barre_liste($langs->trans("ListOfSubscriptions"), $page, "cotisations.php", "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield"); print "\n"; print ''; - print ""; + print ''; print ''; print ''; print ''; @@ -168,12 +169,14 @@ if ($result) } print "
Annee'.$langs->trans("Year").''.$langs->trans("Amount").''.$langs->trans("Number").''.$langs->trans("Average").'

\n"; - print ""; + + // Liste des cotisations + print '
'; print ''; - print_liste_field_titre("Date","cotisations.php","c.dateadh","&page=$page&statut=$statut"); - print_liste_field_titre("Montant","cotisations.php","c.cotisation","&page=$page&statut=$statut"); - print_liste_field_titre("Prenom Nom","cotisations.php","d.nom","&page=$page&statut=$statut"); + print_liste_field_titre($langs->trans("Name"),"cotisations.php","d.nom","&page=$page&statut=$statut"); + print_liste_field_titre($langs->trans("Date"),"cotisations.php","c.dateadh","&page=$page&statut=$statut"); + print_liste_field_titre($langs->trans("Amount"),"cotisations.php","c.cotisation","&page=$page&statut=$statut","","align=\"right\""); if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE !=0){ print '\n"; - $var=True; + $var=true; $total=0; while ($i < $num) { - $objp = $db->fetch_object(); + $objp = $db->fetch_object($result); + $total+=price($objp->cotisation); + $var=!$var; print ""; - print "\n"; - print ''; - $total+=price($objp->cotisation); print "\n"; + print "\n"; + print ''; if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE !=0){ if ($objp->bank !='' ){ print ""; @@ -222,14 +226,12 @@ if ($result) print ""; $i++; } + $var=!$var; print ""; print "\n"; + print "\n"; print "\n"; - print "\n"; - print "\n"; print "
'; @@ -183,17 +186,18 @@ if ($result) } print "
rowid&action=edit\">".strftime("%d %B %Y",$objp->dateadh)."'.price($objp->cotisation).'rowid&action=edit\">".stripslashes($objp->prenom)." ".stripslashes($objp->nom)."".strftime("%d %B %Y",$objp->dateadh)."'.price($objp->cotisation).'Deposé
".$langs->trans("Total")." ".price($total).""; - print_fleche_navigation($page,"cotisations.php","&statut=$statut&sortorder=$sortorder&sortfield=$sortfield",1); - print "
"; print "
\n"; diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 357d02802d7..d085aaf6496 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -587,16 +587,16 @@ if ($rowid) // Valider if ($adh->statut < 1) { - print "Valider l'adhésion\n"; + print "".$langs->trans("Validate")."\n"; } // Envoi fiche par mail - print "id&action=sendinfo\">Envoyer sa fiche a l'adhérent\n"; + print "id&action=sendinfo\">".$langs->trans("SendCardByMail")."\n"; // Résilier if ($adh->statut == 1) { - print "Résilier l'adhésion\n"; + print "".$langs->trans("Resiliate")."\n"; } // Supprimer diff --git a/htdocs/langs/en_US/members.lang b/htdocs/langs/en_US/members.lang index 9789c5e4b85..8b96af53950 100644 --- a/htdocs/langs/en_US/members.lang +++ b/htdocs/langs/en_US/members.lang @@ -32,4 +32,6 @@ AttributeCode=Attribute code OptionalFieldsSetup=Optional fields setup MembersTypeSetup=Members type setup Subscription=Subscription -Subscriptions=Subscriptions \ No newline at end of file +Subscriptions=Subscriptions +ListOfSubscriptions=List of subscriptions +SendCardByMail=Send card \ No newline at end of file diff --git a/htdocs/langs/fr_FR/members.lang b/htdocs/langs/fr_FR/members.lang index c086c2eeccb..09fc8b70819 100644 --- a/htdocs/langs/fr_FR/members.lang +++ b/htdocs/langs/fr_FR/members.lang @@ -33,3 +33,5 @@ OptionalFieldsSetup=Configuration des champs optionnels MembersTypeSetup=Configuration des types d'adhérents Subscription=Cotisation Subscriptions=Cotisations +ListOfSubscriptions=Liste des cotisations +SendCardByMail=Envoyer fiche