30if (!defined(
'NOLOGIN')) {
33if (!defined(
'NOCSRFCHECK')) {
34 define(
"NOCSRFCHECK", 1);
36if (!defined(
'NOIPCHECK')) {
37 define(
'NOIPCHECK',
'1');
39if (!defined(
'NOBROWSERNOTIF')) {
40 define(
'NOBROWSERNOTIF',
'1');
46$entity = (!empty($_GET[
'entity']) ? (int) $_GET[
'entity'] : (!empty($_POST[
'entity']) ? (int) $_POST[
'entity'] : 1));
48define(
"DOLENTITY", $entity);
52require
'../../main.inc.php';
53require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent.class.php';
54require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent_type.class.php';
55require_once DOL_DOCUMENT_ROOT.
'/core/class/extrafields.class.php';
67$langs->loadLangs(array(
"main",
"members",
"companies",
"other"));
89 $morehead =
'<link rel="stylesheet" type="text/css" href="' .
getDolGlobalString(
'MEMBER_PUBLIC_CSS').
'">';
91 $morehead =
'<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.
'/theme/eldy/style.css.php">';
97$extrafields->fetch_name_optionals_label(
$object->table_element);
105 $res =
$object->fetch_optionals();
110 print $langs->trans(
"ErrorThisMemberIsNotPublic");
112 print
'<table class="public_border" width="100%" cellpadding="3">';
114 print
'<tr><td width="15%">'.$langs->trans(
"Type").
'</td><td class="valeur">'.
$object->type.
"</td></tr>\n";
115 print
'<tr><td>'.$langs->trans(
"Person").
'</td><td class="valeur">'.
$object->morphy.
'</td></tr>';
116 print
'<tr><td>'.$langs->trans(
"Firstname").
'</td><td class="valeur" width="35%">'.
$object->firstname.
' </td></tr>';
117 print
'<tr><td>'.$langs->trans(
"Lastname").
'</td><td class="valeur">'.
$object->lastname.
' </td></tr>';
118 print
'<tr><td>'.$langs->trans(
"Gender").
'</td><td class="valeur">'.
$object->gender.
' </td></tr>';
119 print
'<tr><td>'.$langs->trans(
"Company").
'</td><td class="valeur">'.
$object->company.
' </td></tr>';
120 print
'<tr><td>'.$langs->trans(
"Address").
'</td><td class="valeur">'.nl2br(
$object->address).
' </td></tr>';
121 print
'<tr><td>'.$langs->trans(
"Zip").
' / '.$langs->trans(
"Town").
'</td><td class="valeur">'.
$object->zip.
' '.
$object->town.
' </td></tr>';
122 print
'<tr><td>'.$langs->trans(
"Country").
'</td><td class="valeur">'.
$object->country.
' </td></tr>';
123 print
'<tr><td>'.$langs->trans(
"EMail").
'</td><td class="valeur">'.
$object->email.
' </td></tr>';
124 print
'<tr><td>'.$langs->trans(
"Birthday").
'</td><td class="valeur">'.
dol_print_date(
$object->birth,
'day').
'</td></tr>';
127 $form =
new Form($db);
128 print
'<tr><td>URL Photo</td><td class="valeur">';
129 print $form->showphoto(
'memberphoto', $object, 64);
130 print
'</td></tr>'.
"\n";
162function llxHeaderVierge($title, $head =
"", $disablejs = 0, $disablehead = 0, $arrayofjs = [], $arrayofcss = [])
166 print
'<body class="public_body">'.
"\n";
$id
Support class for third parties, contacts, members, users or resources.
if(! $sortfield) if(! $sortorder) $object
Class to manage members of a foundation.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
printCommonFooter($zone='private')
Print common footer : conf->global->MAIN_HTML_FOOTER js for switch of menu hider js for conf->global-...
dol_htmlcleanlastbr($stringtodecode)
This function remove all ending and br at end.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false, $decorate=0)
Output date in a string format according to outputlangs (or langs if not defined).
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
dol_string_onlythesehtmltags($stringtoclean, $cleanalsosomestyles=1, $removeclassattribute=1, $cleanalsojavascript=0, $allowiframe=0, $allowed_tags=array(), $allowlink=0, $allowscript=0, $allowstyle=0, $allowphp=0)
Clean a string to keep only desirable HTML tags.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs=array(), $arrayofcss=array(), $disableforlogin=0, $disablenofollow=0, $disablenoindex=0)
Output html header of a page.
llxHeaderVierge($title, $head="", $disablejs=0, $disablehead=0, $arrayofjs=[], $arrayofcss=[])
Show header for card member.
llxFooterVierge()
Show footer for card member.
httponly_accessforbidden($message='1', $http_response_code=403, $stringalreadysanitized=0)
Show a message to say access is forbidden and stop program.