28 if (!defined(
'NOLOGIN')) {
31 if (!defined(
'NOCSRFCHECK')) {
32 define(
"NOCSRFCHECK", 1);
34 if (!defined(
'NOIPCHECK')) {
35 define(
'NOIPCHECK',
'1');
37 if (!defined(
'NOBROWSERNOTIF')) {
38 define(
'NOBROWSERNOTIF',
'1');
44 $entity = (!empty($_GET[
'entity']) ? (int) $_GET[
'entity'] : (!empty($_POST[
'entity']) ? (int) $_POST[
'entity'] : 1));
45 if (is_numeric($entity)) {
46 define(
"DOLENTITY", $entity);
49 require
'../../main.inc.php';
50 require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent.class.php';
51 require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent_type.class.php';
52 require_once DOL_DOCUMENT_ROOT.
'/core/class/extrafields.class.php';
55 if (empty($conf->adherent->enabled)) {
60 $langs->loadLangs(array(
"main",
"members",
"companies",
"other"));
81 if (!empty($conf->global->MEMBER_PUBLIC_CSS)) {
82 $morehead =
'<link rel="stylesheet" type="text/css" href="'.$conf->global->MEMBER_PUBLIC_CSS.
'">';
84 $morehead =
'<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.
'/theme/eldy/style.css.php">';
90 $extrafields->fetch_name_optionals_label($object->table_element);
93 $res = $object->fetch($id);
97 $res = $object->fetch_optionals();
101 if (empty($object->public)) {
102 print $langs->trans(
"ErrorThisMemberIsNotPublic");
104 print
'<table class="public_border" width="100%" cellpadding="3">';
106 print
'<tr><td width="15%">'.$langs->trans(
"Type").
'</td><td class="valeur">'.$object->type.
"</td></tr>\n";
107 print
'<tr><td>'.$langs->trans(
"Person").
'</td><td class="valeur">'.$object->morphy.
'</td></tr>';
108 print
'<tr><td>'.$langs->trans(
"Firstname").
'</td><td class="valeur" width="35%">'.$object->firstname.
' </td></tr>';
109 print
'<tr><td>'.$langs->trans(
"Lastname").
'</td><td class="valeur">'.$object->lastname.
' </td></tr>';
110 print
'<tr><td>'.$langs->trans(
"Gender").
'</td><td class="valeur">'.$object->gender.
' </td></tr>';
111 print
'<tr><td>'.$langs->trans(
"Company").
'</td><td class="valeur">'.$object->company.
' </td></tr>';
112 print
'<tr><td>'.$langs->trans(
"Address").
'</td><td class="valeur">'.nl2br($object->address).
' </td></tr>';
113 print
'<tr><td>'.$langs->trans(
"Zip").
' / '.$langs->trans(
"Town").
'</td><td class="valeur">'.$object->zip.
' '.$object->town.
' </td></tr>';
114 print
'<tr><td>'.$langs->trans(
"Country").
'</td><td class="valeur">'.$object->country.
' </td></tr>';
115 print
'<tr><td>'.$langs->trans(
"EMail").
'</td><td class="valeur">'.$object->email.
' </td></tr>';
116 print
'<tr><td>'.$langs->trans(
"Birthday").
'</td><td class="valeur">'.
dol_print_date($object->birth,
'day').
'</td></tr>';
118 if (isset($object->photo) && $object->photo !=
'') {
120 print
'<tr><td>URL Photo</td><td class="valeur">';
121 print
$form->showphoto(
'memberphoto', $object, 64);
122 print
'</td></tr>'.
"\n";
128 print
'<tr><td class="tdtop">'.$langs->trans(
"Comments").
'</td><td>'.nl2br($object->note_public).
'</td></tr>';
152 print
'<body class="public_body">'.
"\n";
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
if($cancel &&!$id) if($action== 'add'&&!$cancel) if($action== 'delete') if($id) $form
Actions.
printCommonFooter($zone= 'private')
Print common footer : conf->global->MAIN_HTML_FOOTER js for switch of menu hider js for conf->global-...
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
Class to manage members of a foundation.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) if(!defined('NOLOGIN')) if(!defined('NOCSRFCHECK')) if(!defined('NOIPCHECK')) llxHeaderVierge()
Header function.
dol_print_date($time, $format= '', $tzoutput= 'auto', $outputlangs= '', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
llxFooterVierge()
Footer function.
dol_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
top_htmlhead($head, $title= '', $disablejs=0, $disablehead=0, $arrayofjs= '', $arrayofcss= '', $disableforlogin=0, $disablenofollow=0, $disablenoindex=0)
Ouput html header of a page.