33 global $user, $langs,
$conf;
38 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/card.php?id=".
$object->id;
39 $head[$h][1] = $langs->trans(
"MailCard");
40 $head[$h][2] =
'card';
44 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/cibles.php?id=".
$object->id;
45 $head[$h][1] = $langs->trans(
"MailRecipients");
47 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$object->nbemail.
'</span>';
49 $head[$h][2] =
'targets';
54 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/advtargetemailing.php?id=".
$object->id;
55 $head[$h][1] = $langs->trans(
"MailAdvTargetRecipients");
56 $head[$h][2] =
'advtargets';
60 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/info.php?id=".
$object->id;
61 $head[$h][1] = $langs->trans(
"Info");
62 $head[$h][2] =
'info';
65 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/note.php?id=".
$object->id;
66 $head[$h][1] = $langs->trans(
"Note");
67 $head[$h][2] =
'note';
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Class to manage emailings module.
emailing_prepare_head(Mailing $object)
Prepare array with list of tabs.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...