mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-26 19:31:31 +01:00
87 lines
3.5 KiB
PHP
87 lines
3.5 KiB
PHP
<?php
|
|
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
* Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
|
*
|
|
* 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
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*
|
|
* $Id$
|
|
* $Source$
|
|
*
|
|
*/
|
|
require("./pre.inc.php");
|
|
require(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
|
require(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
|
|
require(DOL_DOCUMENT_ROOT."/adherents/cotisation.class.php");
|
|
require(DOL_DOCUMENT_ROOT."/paiement.class.php");
|
|
require(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php");
|
|
|
|
$adho = new AdherentOptions($db);
|
|
|
|
llxHeader();
|
|
|
|
/* ************************************************************************** */
|
|
/* */
|
|
/* Edition de la fiche */
|
|
/* */
|
|
/*************************************************************************** */
|
|
// fetch optionals attributes and labels
|
|
$adho->fetch_optionals();
|
|
if ($rowid > 0)
|
|
{
|
|
|
|
$adh = new Adherent($db);
|
|
$adh->id = $rowid;
|
|
$adh->fetch($rowid);
|
|
$adh->fetch_optionals($rowid);
|
|
|
|
print_titre("Fiche adhérent de $adh->prenom $adh->nom");
|
|
|
|
print '<table class="border" cellspacing="0" width="100%" cellpadding="3">';
|
|
|
|
print '<tr><td>'.$langs->trans("Type").'</td><td class="valeur">'.$adh->type."</td>\n";
|
|
print '<td valign="top" width="50%">'.$langs->trans("Comments").'</tr>';
|
|
|
|
print '<tr><td>Personne</td><td class="valeur">'.$adh->morphy.' </td>';
|
|
|
|
print '<td rowspan="13" valign="top" width="50%">';
|
|
print nl2br($adh->commentaire).' </td></tr>';
|
|
|
|
print '<tr><td width="15%">Prénom</td><td class="valeur" width="35%">'.$adh->prenom.' </td></tr>';
|
|
|
|
print '<tr><td>Nom</td><td class="valeur">'.$adh->nom.' </td></tr>';
|
|
|
|
|
|
print '<tr><td>Société</td><td class="valeur">'.$adh->societe.' </td></tr>';
|
|
print '<tr><td>Adresse</td><td class="valeur">'.nl2br($adh->adresse).' </td></tr>';
|
|
print '<tr><td>CP Ville</td><td class="valeur">'.$adh->cp.' '.$adh->ville.' </td></tr>';
|
|
print '<tr><td>Pays</td><td class="valeur">'.$adh->pays.' </td></tr>';
|
|
print '<tr><td>Email</td><td class="valeur">'.$adh->email.' </td></tr>';
|
|
print '<tr><td>Date de Naissance</td><td class="valeur">'.$adh->naiss.' </td></tr>';
|
|
if (isset($adh->photo) && $adh->photo !=''){
|
|
print '<tr><td>URL Photo</td><td class="valeur">'."<A HREF=\"$adh->photo\"><IMG SRC=\"$adh->photo\"></A>".' </td></tr>';
|
|
}
|
|
// foreach($adho->attribute_label as $key=>$value){
|
|
// print "<tr><td>$value</td><td>".$adh->array_options["options_$key"]." </td></tr>\n";
|
|
// }
|
|
print '</table>';
|
|
|
|
|
|
}
|
|
|
|
$db->close();
|
|
|
|
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
|
?>
|