28 if (!defined(
'NOLOGIN')) define(
"NOLOGIN", 1);
29 if (!defined(
'NOCSRFCHECK')) define(
"NOCSRFCHECK", 1);
30 if (!defined(
'NOIPCHECK')) define(
'NOIPCHECK',
'1');
31 if (!defined(
'NOBROWSERNOTIF')) define(
'NOBROWSERNOTIF',
'1');
36 $entity = (!empty($_GET[
'entity']) ? (int) $_GET[
'entity'] : (!empty($_POST[
'entity']) ? (int) $_POST[
'entity'] : 1));
37 if (is_numeric($entity)) define(
"DOLENTITY", $entity);
39 require
'../../main.inc.php';
40 require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent.class.php';
41 require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent_type.class.php';
42 require_once DOL_DOCUMENT_ROOT.
'/core/class/extrafields.class.php';
48 $langs->loadLangs(array(
"main",
"members",
"companies",
"other"));
69 if (!empty($conf->global->MEMBER_PUBLIC_CSS)) $morehead =
'<link rel="stylesheet" type="text/css" href="'.$conf->global->MEMBER_PUBLIC_CSS.
'">';
70 else $morehead =
'<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.
'/theme/eldy/style.css.php">';
75 $extrafields->fetch_name_optionals_label($object->table_element);
79 $res = $object->fetch($id);
81 $res = $object->fetch_optionals();
85 if (empty($object->public))
87 print $langs->trans(
"ErrorThisMemberIsNotPublic");
89 print '<table class="public_border" cellspacing="0" width="100%" cellpadding="3">';
91 print '<tr><td width="15%">'.$langs->trans(
"Type").
'</td><td class="valeur">'.$object->type.
"</td></tr>\n";
92 print '<tr><td>'.$langs->trans(
"Person").
'</td><td class="valeur">'.$object->morphy.
'</td></tr>';
93 print '<tr><td>'.$langs->trans(
"Firstname").
'</td><td class="valeur" width="35%">'.$object->firstname.
' </td></tr>';
94 print '<tr><td>'.$langs->trans(
"Lastname").
'</td><td class="valeur">'.$object->lastname.
' </td></tr>';
95 print '<tr><td>'.$langs->trans(
"Gender").
'</td><td class="valeur">'.$object->gender.
' </td></tr>';
96 print '<tr><td>'.$langs->trans(
"Company").
'</td><td class="valeur">'.$object->company.
' </td></tr>';
97 print '<tr><td>'.$langs->trans(
"Address").
'</td><td class="valeur">'.nl2br($object->address).
' </td></tr>';
98 print '<tr><td>'.$langs->trans(
"Zip").
' / '.$langs->trans(
"Town").
'</td><td class="valeur">'.$object->zip.
' '.$object->town.
' </td></tr>';
99 print '<tr><td>'.$langs->trans(
"Country").
'</td><td class="valeur">'.$object->country.
' </td></tr>';
100 print '<tr><td>'.$langs->trans(
"EMail").
'</td><td class="valeur">'.$object->email.
' </td></tr>';
101 print '<tr><td>'.$langs->trans(
"Birthday").
'</td><td class="valeur">'.
dol_print_date($object->birth,
'day').
'</td></tr>';
103 if (isset($object->photo) && $object->photo !=
'')
105 $form =
new Form($db);
106 print '<tr><td>URL Photo</td><td class="valeur">';
107 print $form->showphoto(
'memberphoto', $object, 64);
108 print '</td></tr>'.
"\n";
114 print '<tr><td class="tdtop">'.$langs->trans(
"Comments").
'</td><td>'.nl2br($object->note_public).
'</td></tr>';
136 global $user, $conf, $langs;
138 header(
"Content-type: text/html; charset=".$conf->file->character_set_client);
141 print "<title>".$title.
"</title>\n";
142 if ($head)
print $head.
"\n";
144 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.
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 ...
llxHeaderVierge()
Header function.
print
Draft customers invoices.
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...