[ Index ]
 

Code source de Dolibarr 2.0.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/htdocs/public/adherents/ -> priv_fiche.php (source)

   1  <?php
   2  /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
   3   * Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
   4   *
   5   * This program is free software; you can redistribute it and/or modify
   6   * it under the terms of the GNU General Public License as published by
   7   * the Free Software Foundation; either version 2 of the License, or
   8   * (at your option) any later version.
   9   *
  10   * This program is distributed in the hope that it will be useful,
  11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13   * GNU General Public License for more details.
  14   *
  15   * You should have received a copy of the GNU General Public License
  16   * along with this program; if not, write to the Free Software
  17   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18   *
  19   * $Id: priv_fiche.php,v 1.6 2004/10/20 20:06:50 opensides Exp $
  20   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/public/adherents/priv_fiche.php,v $
  21   *
  22   */
  23  require ("./pre.inc.php");
  24  require (DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
  25  require(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
  26  require(DOL_DOCUMENT_ROOT."/adherents/cotisation.class.php");
  27  require(DOL_DOCUMENT_ROOT."/paiement.class.php");
  28  require(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php");
  29  
  30  $adho = new AdherentOptions($db);
  31  
  32  llxHeader();
  33  
  34  /* ************************************************************************** */
  35  /*                                                                            */
  36  /* Edition de la fiche                                                        */
  37  /*                                                                            */
  38  /*************************************************************************** */
  39  // fetch optionals attributes and labels
  40  $adho->fetch_optionals();
  41  if ($rowid > 0)
  42  {
  43  
  44    $adh = new Adherent($db);
  45    $adh->id = $rowid;
  46    $adh->fetch($rowid);
  47    $adh->fetch_optionals($rowid);
  48  
  49    print_titre("Fiche adhérent de $adh->prenom $adh->nom");
  50  
  51    print '<table class="border" cellspacing="0" width="100%" cellpadding="3">';
  52  
  53    print '<tr><td>'.$langs->trans("Type").'</td><td class="valeur">'.$adh->type."</td>\n";
  54    print '<td valign="top" width="50%">'.$langs->trans("Comments").'</tr>';
  55  
  56    print '<tr><td>Personne</td><td class="valeur">'.$adh->morphy.'&nbsp;</td>';
  57  
  58    print '<td rowspan="13" valign="top" width="50%">';
  59    print nl2br($adh->commentaire).'&nbsp;</td></tr>';
  60  
  61    print '<tr><td width="15%">Prénom</td><td class="valeur" width="35%">'.$adh->prenom.'&nbsp;</td></tr>';
  62  
  63    print '<tr><td>Nom</td><td class="valeur">'.$adh->nom.'&nbsp;</td></tr>';
  64    
  65  
  66    print '<tr><td>Société</td><td class="valeur">'.$adh->societe.'&nbsp;</td></tr>';
  67    print '<tr><td>Adresse</td><td class="valeur">'.nl2br($adh->adresse).'&nbsp;</td></tr>';
  68    print '<tr><td>CP Ville</td><td class="valeur">'.$adh->cp.' '.$adh->ville.'&nbsp;</td></tr>';
  69    print '<tr><td>Pays</td><td class="valeur">'.$adh->pays.'&nbsp;</td></tr>';
  70    print '<tr><td>Email</td><td class="valeur">'.$adh->email.'&nbsp;</td></tr>';
  71    print '<tr><td>Date de Naissance</td><td class="valeur">'.$adh->naiss.'&nbsp;</td></tr>';
  72    if (isset($adh->photo) && $adh->photo !=''){
  73      print '<tr><td>URL Photo</td><td class="valeur">'."<A HREF=\"$adh->photo\"><IMG SRC=\"$adh->photo\"></A>".'&nbsp;</td></tr>';
  74    }
  75    //  foreach($adho->attribute_label as $key=>$value){
  76    //    print "<tr><td>$value</td><td>".$adh->array_options["options_$key"]."&nbsp;</td></tr>\n";
  77    //  }
  78    print '</table>';
  79  
  80  
  81  }
  82  
  83  $db->close();
  84  
  85  llxFooter("<em>Derni&egrave;re modification $Date: 2004/10/20 20:06:50 $ r&eacute;vision $Revision: 1.6 $</em>");
  86  ?>


Généré le : Mon Nov 26 12:29:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics