28require
'../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/lib/member.lib.php';
30require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent.class.php';
31require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent_type.class.php';
35$langs->loadLangs(array(
"companies",
"members",
"bills"));
39$action =
GETPOST(
'action',
'aZ09');
41$ref =
GETPOST(
'ref',
'alphanohtml');
47$result = $object->fetch($id);
50 $result = $adht->fetch($object->typeid);
54$permissionnote = $user->hasRight(
'adherent',
'creer');
57if ($id > 0 || !empty($ref)) {
59 $result = $object->fetch($id, $ref);
62 $canadduser = ($user->admin || $user->hasRight(
'user',
'user',
'creer'));
64 if ($object->user_id) {
66 $caneditfielduser = ((($user->id == $object->user_id) && $user->hasRight(
'user',
'self',
'creer'))
67 || (($user->id != $object->user_id) && $user->hasRight(
'user',
'user',
'creer')));
68 $caneditpassworduser = ((($user->id == $object->user_id) && $user->hasRight(
'user',
'self',
'password'))
69 || (($user->id != $object->user_id) && $user->hasRight(
'user',
'user',
'password')));
74$canaddmember = $user->hasRight(
'adherent',
'creer');
77 $caneditfieldmember = $user->hasRight(
'adherent',
'creer');
80$hookmanager->initHooks(array(
'membernote'));
83$result =
restrictedArea($user,
'adherent', $object->id,
'',
'',
'socid',
'rowid', 0);
89$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
94 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
102$title = $langs->trans(
"Member").
" - ".$langs->trans(
"Note");
104$help_url =
"EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros|DE:Modul_Mitglieder";
108$form =
new Form($db);
115 print
'<form method="POST" action="'.$_SERVER[
'PHP_SELF'].
'">';
116 print
'<input type="hidden" name="token" value="'.newToken().
'">';
118 $linkback =
'<a href="'.DOL_URL_ROOT.
'/adherents/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
120 $morehtmlref =
'<a href="'.DOL_URL_ROOT.
'/adherents/vcard.php?id='.$object->id.
'" class="refid">';
121 $morehtmlref .=
img_picto($langs->trans(
"Download").
' '.$langs->trans(
"VCard"),
'vcard.png',
'class="valignmiddle marginleftonly paddingrightonly"');
122 $morehtmlref .=
'</a>';
124 dol_banner_tab($object,
'id', $linkback, 1,
'rowid',
'ref', $morehtmlref);
126 print
'<div class="fichecenter">';
128 print
'<div class="underbanner clearboth"></div>';
129 print
'<table class="border centpercent tableforfield">';
133 print
'<tr><td class="titlefield">'.$langs->trans(
"Login").
' / '.$langs->trans(
"Id").
'</td><td class="valeur">'.
dol_escape_htmltag($object->login).
'</td></tr>';
137 print
'<tr><td>'.$langs->trans(
"Type").
'</td>';
138 print
'<td class="valeur">'.$adht->getNomUrl(1).
"</td></tr>\n";
141 print
'<tr><td class="titlefield">'.$langs->trans(
"MemberNature").
'</td>';
142 print
'<td class="valeur" >'.$object->getmorphylib(
'', 1).
'</td>';
146 print
'<tr><td>'.$langs->trans(
"Company").
'</td><td class="valeur">'.
dol_escape_htmltag($object->company).
'</td></tr>';
149 print
'<tr><td>'.$langs->trans(
"UserTitle").
'</td><td class="valeur">'.$object->getCivilityLabel().
'</td>';
157 $cssclass =
'titlefield';
158 $permission = $user->hasRight(
'adherent',
'creer');
159 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
Class to manage members of a foundation.
Class to manage members type.
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.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
member_prepare_head(Adherent $object)
Return array head with list of tabs to view object informations.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.