* Copyright (C) 2002-2003 Jean-Louis Bergamo * Copyright (C) 2007-2009 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 * 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. */ /** * \file htdocs/public/members/priv_fiche.php * \ingroup adherent * \brief Fichier de gestion de la popup de selection de date eldy * \version $Id$ */ define("NOLOGIN",1); // This means this output page does not require to be logged. define("NOCSRFCHECK",1); // We accept to go on this page from external web site. require("../../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php"); // Security check if (empty($conf->adherent->enabled)) accessforbidden('',1,1,1); $langs->load("main"); $langs->load("members"); $langs->load("companies"); $rowid=$_GET["id"]; $adho = new AdherentOptions($db); /* * View */ llxHeaderVierge($langs->trans("MemberCard")); // fetch optionals attributes and labels $adho->fetch_name_optionals_label(); if ($rowid > 0) { $adh = new Adherent($db); $adh->id = $rowid; $adh->fetch($rowid); $adh->fetch_optionals($rowid); print_titre($langs->trans("MemberCard")); if (empty($adh->public)) { print $langs->trans("ErrorThisMemberIsNotPublic"); } else { print ''; print '\n"; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; if (isset($adh->photo) && $adh->photo !=''){ print ''; } // foreach($adho->attribute_label as $key=>$value){ // print "\n"; // } print ''; print '
'.$langs->trans("Type").''.$adh->type."
'.$langs->trans("Person").''.$adh->morphy.'
'.$langs->trans("Surname").''.$adh->prenom.' 
'.$langs->trans("Name").''.$adh->nom.' 
'.$langs->trans("Company").''.$adh->societe.' 
'.$langs->trans("Address").''.nl2br($adh->adresse).' 
'.$langs->trans("Zip").' '.$langs->trans("Town").''.$adh->cp.' '.$adh->ville.' 
'.$langs->trans("Country").''.$adh->pays.' 
'.$langs->trans("EMail").''.$adh->email.' 
'.$langs->trans("Birthday").''.$adh->naiss.' 
URL Photo'."photo\">photo\">".' 
$value".$adh->array_options["options_$key"]." 
'.$langs->trans("Comments").''.nl2br($adh->note).'
'; } } $db->close(); llxFooterVierge('$Date$ - $Revision$'); /* Functions header and footer */ function llxHeaderVierge($title, $head = "") { global $user, $conf, $langs; header("Content-type: text/html; charset=".$conf->file->character_set_client); print "\n"; print "\n"; print "".$title."\n"; if ($head) print $head."\n"; print "\n"; print "\n"; } function llxFooterVierge() { print "\n"; print "\n"; } ?>