mailRe: [Galette-discussion] Gestion des groupes : Exports PDF


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by f . lassave on February 04, 2017 - 14:57:


diff --git a/galette/groups_list.php b/galette/groups_list.php
index 4c022fc..d6192ed 100644
--- a/galette/groups_list.php
+++ b/galette/groups_list.php
@@ -172,7 +172,7 @@ foreach ( $groups_list as $group ) {

     foreach ( $members as $m ) {
         $pdf->Cell(80, 7, $m->sname, 1, 0, 'L');
-        $pdf->Cell(50, 7, $m->email, 1, 0, 'L');
+        $pdf->Cell(50, 7, $m->getEmail(), 1, 0, 'L');
         $pdf->Cell(30, 7, $m->phone, 1, 0, 'L');
         $pdf->Cell(30, 7, $m->gsm, 1, 1, 'L');
     }


Et ça marche !!! :D
Merci beaucoup, Johan ! ;)

J'ai aussi ajouté, dans \galette\lib\Galette\Entity\Adherent.php :
"
     /**
     * Get member phone
     * If member does not have a phone, but is attached to another member, 
we'll take informations from its parent.
     *
     * @return string
     */
    public function getPhone()
    {
        $phone = $this->_phone;
        if (empty($phone)) {
            $this->_loadParent();
            $phone = $this->parent->phone;
        }

        return $phone;
    }
"

Dont je me sers dans /galette/groups_list.php b/galette/groups_list.php :
"
      foreach ( $members as $m ) {
          $pdf->Cell(80, 7, $m->sname, 1, 0, 'L');
          $pdf->Cell(50, 7, $m->getEmail(), 1, 0, 'L');
 -        $pdf->Cell(30, 7, $m->phone, 1, 0, 'L');
 +        $pdf->Cell(30, 7, $m->getPhone(), 1, 0, 'L');
          $pdf->Cell(30, 7, $m->gsm, 1, 1, 'L');
      }
"
Encore merci à tous pour votre aide !!! ;)

Je cherche maintenant à enlever la colonne du GSM ...
Je pense qu'il faut que je modifie la mise en forme du PDF ... Si vous avez, 
encore, un peu de temps à m'accorder, je vous en serai gré !... :D

@++
Fred



Related Messages


Powered by MHonArc, Updated Sun Feb 05 01:00:06 2017