info.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /* Copyright (C) 2005-2009 Laurent Destailleur <eldy@users.sourceforge.net>
  3. * Copyright (C) 2005-2006 Regis Houssin <regis@dolibarr.fr>
  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, see <http://www.gnu.org/licenses/>.
  17. */
  18. /**
  19. * \file htdocs/adherents/info.php
  20. * \ingroup member
  21. * \brief Page des informations d'un adherent
  22. */
  23. require("../main.inc.php");
  24. require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
  25. require_once(DOL_DOCUMENT_ROOT."/adherents/class/adherent.class.php");
  26. require_once(DOL_DOCUMENT_ROOT."/lib/member.lib.php");
  27. $langs->load("companies");
  28. $langs->load("bills");
  29. $langs->load("members");
  30. $langs->load("users");
  31. if (!$user->rights->adherent->lire)
  32. accessforbidden();
  33. /*
  34. * View
  35. */
  36. llxHeader('',$langs->trans("Member"),'EN:Module_Foundations|FR:Module_Adh&eacute;rents|ES:M&oacute;dulo_Miembros');
  37. $adh = new Adherent($db);
  38. $adh->id=$_GET["id"];
  39. $adh->fetch($_GET["id"]);
  40. $adh->info($_GET["id"]);
  41. $head = member_prepare_head($adh);
  42. dol_fiche_head($head, 'info', $langs->trans("Member"), 0, 'user');
  43. print '<table width="100%"><tr><td>';
  44. dol_print_object_info($adh);
  45. print '</td></tr></table>';
  46. print '</div>';
  47. $db->close();
  48. llxFooter();
  49. ?>