/* * Actions */ include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* * View */ $form = new Form($db); $help_url = 'EN:Module_Agenda_En|FR:Module_Agenda|ES:M&omodulodulo_Agenda'; llxHeader('', $langs->trans("Agenda"), $help_url); if ($object->id > 0) { $author = new User($db); $author->fetch($object->author->id); $object->author = $author; if ($object->contact->id) { $object->fetch_contact($object->contact->id); } $head = actions_prepare_head($object); dol_fiche_head($head, 'documents', $langs->trans("Action"), 0, 'action'); // Affichage fiche action en mode visu print '<table class="border" width="100%">'; $linkback = '<a href="' . DOL_URL_ROOT . '/comm/action/index.php">' . $langs->trans("BackToList") . '</a>'; // Ref print '<tr><td width="30%">' . $langs->trans("Ref") . '</td><td colspan="3">'; print $form->showrefnav($object, 'id', $linkback, $user->societe_id ? 0 : 1, 'id', 'ref', ''); print '</td></tr>'; // Type if (!empty($conf->global->AGENDA_USE_EVENT_TYPE)) { print '<tr><td>' . $langs->trans("Type") . '</td><td colspan="3">' . $object->type . '</td></tr>'; } // Title
$upload_dir = $conf->agenda->dir_output . '/' . dol_sanitizeFileName($object->ref); $modulepart = 'contract'; /* * Actions */ include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* * View */ $form = new Form($db); $help_url = 'EN:Module_Agenda_En|FR:Module_Agenda|ES:M&omodulodulo_Agenda'; llxHeader('', $langs->trans("Agenda"), $help_url); if ($object->id > 0) { $result1 = $object->fetch($id); $result2 = $object->fetch_thirdparty(); $result3 = $object->fetch_contact(); $result4 = $object->fetch_userassigned(); $result5 = $object->fetch_optionals($id, $extralabels); if ($result1 < 0 || $result2 < 0 || $result3 < 0 || $result4 < 0 || $result5 < 0) { dol_print_error($db, $object->error); exit; } if ($object->authorid > 0) { $tmpuser = new User($db); $res = $tmpuser->fetch($object->authorid); $object->author = $tmpuser; } if ($object->usermodid > 0) { $tmpuser = new User($db); $res = $tmpuser->fetch($object->usermodid); $object->usermod = $tmpuser;
*/ $form = new Form($db); $help_url = 'EN:Module_Agenda_En|FR:Module_Agenda|ES:M&omodulodulo_Agenda'; llxHeader('', $langs->trans("Agenda"), $help_url); if ($objectid > 0) { $act = new ActionComm($db); if ($act->fetch($objectid)) { $upload_dir = $conf->agenda->dir_output . '/' . dol_sanitizeFileName($objectid); $company = new Societe($db); $company->fetch($act->societe->id); $act->societe = $company; $author = new User($db); $author->fetch($act->author->id); $act->author = $author; if ($act->contact->id) { $act->fetch_contact($act->contact->id); } $head = actions_prepare_head($act); dol_fiche_head($head, 'documents', $langs->trans("Action"), 0, 'action'); // Affichage fiche action en mode visu print '<table class="border" width="100%"'; // Ref print '<tr><td width="30%">' . $langs->trans("Ref") . '</td><td colspan="3">'; print $form->showrefnav($act, 'id', '', $user->societe_id ? 0 : 1, 'id', 'ref', ''); print '</td></tr>'; // Type print '<tr><td>' . $langs->trans("Type") . '</td><td colspan="3">' . $act->type . '</td></tr>'; // Title print '<tr><td>' . $langs->trans("Title") . '</td><td colspan="3">' . $act->label . '</td></tr>'; // Full day event print '<tr><td>' . $langs->trans("EventOnFullDay") . '</td><td colspan="3">' . yn($act->fulldayevent) . '</td></tr>';