26 require
'../main.inc.php';
27 require_once DOL_DOCUMENT_ROOT.
'/core/lib/member.lib.php';
28 require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent.class.php';
29 require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent_type.class.php';
32 $langs->loadLangs(array(
"companies",
"members",
"bills"));
34 $action =
GETPOST(
'action',
'aZ09');
41 $result = $object->fetch($id);
44 $result = $adht->fetch($object->typeid);
47 $permissionnote = $user->rights->adherent->creer;
53 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
60 $title = $langs->trans(
"Member").
" - ".$langs->trans(
"Note");
61 $helpurl =
"EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros";
64 $form =
new Form($db);
71 print "<form method=\"post\" action=\"".$_SERVER[
'PHP_SELF'].
"\">";
72 print '<input type="hidden" name="token" value="'.newToken().
'">';
74 $linkback =
'<a href="'.DOL_URL_ROOT.
'/adherents/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
78 print '<div class="fichecenter">';
80 print '<div class="underbanner clearboth"></div>';
81 print '<table class="border centpercent tableforfield">';
84 if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) {
85 print '<tr><td class="titlefield">'.$langs->trans(
"Login").
' / '.$langs->trans(
"Id").
'</td><td class="valeur">'.$object->login.
' </td></tr>';
89 print '<tr><td>'.$langs->trans(
"Type").
'</td><td class="valeur">'.$adht->getNomUrl(1).
"</td></tr>\n";
92 print '<tr><td class="titlefield">'.$langs->trans(
"MemberNature").
'</td><td class="valeur" >'.$object->getmorphylib().
'</td>';
99 print '<tr><td>'.$langs->trans(
"Company").
'</td><td class="valeur">'.$object->company.
'</td></tr>';
102 print '<tr><td>'.$langs->trans(
"UserTitle").
'</td><td class="valeur">'.$object->getCivilityLabel().
' </td>';
110 $cssclass =
'titlefield';
111 $permission = $user->rights->adherent->creer;
112 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
member_prepare_head(Adherent $object)
Return array head with list of tabs to view object informations.
Class to manage members of a foundation.
restrictedArea($user, $features, $objectid=0, $tableandshare= '', $feature2= '', $dbt_keyfield= 'fk_soc', $dbt_select= 'rowid', $isdraft=0)
Check permissions of a user to show a page and an object.
Class to manage members type.
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_banner_tab($object, $paramid, $morehtml= '', $shownav=1, $fieldid= 'rowid', $fieldref= 'ref', $morehtmlref= '', $moreparam= '', $nodbprefix=0, $morehtmlleft= '', $morehtmlstatus= '', $onlybanner=0, $morehtmlright= '')
Show tab footer of a card.