';
+ $morehtmlref .= $object->subject;
+ // Author
+ if ($object->fk_user_create > 0) {
+ $morehtmlref .= '
';
+ //$morehtmlref .= '
'.$langs->trans("CreatedBy").' ';
+
+ $fuser = new User($db);
+ $fuser->fetch($object->fk_user_create);
+ $morehtmlref .= $fuser->getNomUrl(-1);
+ } elseif (!empty($object->email_msgid)) {
+ $morehtmlref .= '
';
+ //$morehtmlref .= '
'.$langs->trans("CreatedBy").' ';
+ $morehtmlref .= img_picto('', 'email', 'class="paddingrightonly"');
+ $morehtmlref .= dol_escape_htmltag($object->origin_email).'
('.$form->textwithpicto($langs->trans("CreatedByEmailCollector"), $langs->trans("EmailMsgID").': '.$object->email_msgid).')';
+ } elseif (!empty($object->origin_email)) {
+ $morehtmlref .= '
';
+ //$morehtmlref .= '
'.$langs->trans("CreatedBy").' ';
+ $morehtmlref .= img_picto('', 'email', 'class="paddingrightonly"');
+ $morehtmlref .= dol_escape_htmltag($object->origin_email).'
('.$langs->trans("CreatedByPublicPortal").')';
+ }
+
+ // Thirdparty
+ if (isModEnabled("societe")) {
+ $morehtmlref .= '
';
+ $morehtmlref .= img_picto($langs->trans("ThirdParty"), 'company', 'class="pictofixedwidth"');
+ if ($action != 'editcustomer' && $permissiontoadd) {
+ $morehtmlref .= '
'.img_edit($langs->transnoentitiesnoconv('SetThirdParty'), 0).' ';
+ }
+ $morehtmlref .= $form->form_thirdparty($url_page_current.'?track_id='.$object->track_id, (string) $object->socid, $action == 'editcustomer' ? 'editcustomer' : 'none', '', 1, 0, 0, array(), 1);
+ }
+
+ // Project
+ if (isModEnabled('project')) {
+ $langs->load("projects");
+ if (0) { // @phpstan-ignore-line
+ $morehtmlref .= '
';
+ $morehtmlref .= img_picto($langs->trans("Project"), 'project', 'class="pictofixedwidth"');
+ if ($action != 'classify') {
+ $morehtmlref .= '
'.img_edit($langs->transnoentitiesnoconv('SetProject')).' ';
+ }
+ $morehtmlref .= $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, (string) $object->fk_project, ($action == 'classify' ? 'projectid' : 'none'), 0, 0, 0, 1, '', 'maxwidth300');
+ } else {
+ if (!empty($object->fk_project)) {
+ $morehtmlref .= '
';
+ $proj = new Project($db);
+ $proj->fetch($object->fk_project);
+ $morehtmlref .= $proj->getNomUrl(1);
+ if ($proj->title) {
+ $morehtmlref .= '
- '.dol_escape_htmltag($proj->title).'';
+ }
+ }
+ }
+ }
+ $morehtmlref .= '
';
+
+ dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
+
+ print '