35 global $db, $langs, $conf, $user;
40 $head[$h][0] = DOL_URL_ROOT.
'/adherents/card.php?rowid='.$object->id;
41 $head[$h][1] = $langs->trans(
"Member");
42 $head[$h][2] =
'general';
45 if ((!empty($conf->ldap->enabled) && !empty($conf->global->LDAP_MEMBER_ACTIVE))
46 && (empty($conf->global->MAIN_DISABLE_LDAP_TAB) || !empty($user->admin))) {
49 $head[$h][0] = DOL_URL_ROOT.
'/adherents/ldap.php?id='.$object->id;
50 $head[$h][1] = $langs->trans(
"LDAPCard");
51 $head[$h][2] =
'ldap';
55 if (!empty($user->rights->adherent->cotisation->lire)) {
56 $nbSubscription = is_array($object->subscriptions) ?count($object->subscriptions) : 0;
57 $head[$h][0] = DOL_URL_ROOT.
'/adherents/subscription.php?rowid='.$object->id;
58 $head[$h][1] = $langs->trans(
"Subscriptions");
59 $head[$h][2] =
'subscription';
60 if ($nbSubscription > 0) {
61 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbSubscription.
'</span>';
67 if (!empty($user->rights->partnership->read)) {
68 $nbPartnership = is_array($object->partnerships) ? count($object->partnerships) : 0;
69 $head[$h][0] = DOL_URL_ROOT.
'/adherents/partnership.php?rowid='.$object->id;
70 $head[$h][1] = $langs->trans(
"Partnership");
71 $head[$h][2] =
'partnership';
72 if ($nbPartnership > 0) {
73 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbPartnership.
'</span>';
86 if (!empty($object->note_private)) {
89 if (!empty($object->note_public)) {
92 $head[$h][0] = DOL_URL_ROOT.
'/adherents/note.php?id='.$object->id;
93 $head[$h][1] = $langs->trans(
"Note");
94 $head[$h][2] =
'note';
96 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbNote.
'</span>';
101 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
102 require_once DOL_DOCUMENT_ROOT.
'/core/class/link.class.php';
103 $upload_dir = $conf->adherent->multidir_output[$object->entity].
'/'.
get_exdir(0, 0, 0, 1, $object,
'member');
104 $nbFiles = count(
dol_dir_list($upload_dir,
'files', 0,
'',
'(\.meta|_preview.*\.png)$'));
105 $nbLinks =
Link::count($db, $object->element, $object->id);
106 $head[$h][0] = DOL_URL_ROOT.
'/adherents/document.php?id='.$object->id;
107 $head[$h][1] = $langs->trans(
'Documents');
108 if (($nbFiles + $nbLinks) > 0) {
109 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.($nbFiles + $nbLinks).
'</span>';
111 $head[$h][2] =
'document';
116 $head[$h][0] = DOL_URL_ROOT.
"/adherents/agenda.php?id=".$object->id;
117 $head[$h][1] = $langs->trans(
"Events");
118 if (
isModEnabled(
'agenda') && (!empty($user->rights->agenda->myactions->read) || !empty($user->rights->agenda->allactions->read))) {
120 $head[$h][1] .= $langs->trans(
"Agenda");
122 $head[$h][2] =
'agenda';
139 global $langs, $conf, $user;
144 $head[$h][0] = DOL_URL_ROOT.
'/adherents/type.php?rowid='.$object->id;
145 $head[$h][1] = $langs->trans(
"MemberType");
146 $head[$h][2] =
'card';
150 if (!empty($conf->global->MAIN_MULTILANGS)) {
151 $head[$h][0] = DOL_URL_ROOT.
"/adherents/type_translation.php?rowid=".$object->id;
152 $head[$h][1] = $langs->trans(
"Translation");
153 $head[$h][2] =
'translation';
157 if ((!empty($conf->ldap->enabled) && !empty($conf->global->LDAP_MEMBER_TYPE_ACTIVE))
158 && (empty($conf->global->MAIN_DISABLE_LDAP_TAB) || !empty($user->admin))) {
159 $langs->load(
"ldap");
161 $head[$h][0] = DOL_URL_ROOT.
'/adherents/type_ldap.php?rowid='.$object->id;
162 $head[$h][1] = $langs->trans(
"LDAPCard");
163 $head[$h][2] =
'ldap';
185 global $langs, $conf, $user;
190 $head[$h][0] = DOL_URL_ROOT.
'/adherents/admin/member.php';
191 $head[$h][1] = $langs->trans(
"Miscellaneous");
192 $head[$h][2] =
'general';
195 $head[$h][0] = DOL_URL_ROOT.
'/adherents/admin/member_emails.php';
196 $head[$h][1] = $langs->trans(
"EMails");
197 $head[$h][2] =
'emails';
206 $head[$h][0] = DOL_URL_ROOT.
'/adherents/admin/member_extrafields.php';
207 $head[$h][1] = $langs->trans(
"ExtraFieldsMember");
208 $head[$h][2] =
'attributes';
211 $head[$h][0] = DOL_URL_ROOT.
'/adherents/admin/member_type_extrafields.php';
212 $head[$h][1] = $langs->trans(
"ExtraFieldsMemberType");
213 $head[$h][2] =
'attributes_type';
216 $head[$h][0] = DOL_URL_ROOT.
'/adherents/admin/website.php';
217 $head[$h][1] = $langs->trans(
"BlankSubscriptionForm");
218 $head[$h][2] =
'website';
235 global $langs, $conf, $user;
240 $head[$h][0] = DOL_URL_ROOT.
'/adherents/stats/index.php';
241 $head[$h][1] = $langs->trans(
"Subscriptions");
242 $head[$h][2] =
'statssubscription';
245 $head[$h][0] = DOL_URL_ROOT.
'/adherents/stats/geo.php?mode=memberbycountry';
246 $head[$h][1] = $langs->trans(
"Country");
247 $head[$h][2] =
'statscountry';
250 $head[$h][0] = DOL_URL_ROOT.
'/adherents/stats/geo.php?mode=memberbyregion';
251 $head[$h][1] = $langs->trans(
"Region");
252 $head[$h][2] =
'statsregion';
255 $head[$h][0] = DOL_URL_ROOT.
'/adherents/stats/geo.php?mode=memberbystate';
256 $head[$h][1] = $langs->trans(
"State");
257 $head[$h][2] =
'statsstate';
260 $head[$h][0] = DOL_URL_ROOT.
'/adherents/stats/geo.php?mode=memberbytown';
261 $head[$h][1] = $langs->trans(
'Town');
262 $head[$h][2] =
'statstown';
265 $head[$h][0] = DOL_URL_ROOT.
'/adherents/stats/byproperties.php';
266 $head[$h][1] = $langs->trans(
'ByProperties');
267 $head[$h][2] =
'statsbyproperties';
289 global $db, $langs, $conf, $user;
294 $head[$h][0] = DOL_URL_ROOT.
'/adherents/subscription/card.php?rowid='.$object->id;
295 $head[$h][1] = $langs->trans(
"Subscription");
296 $head[$h][2] =
'general';
299 $head[$h][0] = DOL_URL_ROOT.
'/adherents/subscription/info.php?rowid='.$object->id;
300 $head[$h][1] = $langs->trans(
"Info");
301 $head[$h][2] =
'info';