30require
'../main.inc.php';
32require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
34require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
35require_once DOL_DOCUMENT_ROOT.
'/hrm/class/evaluation.class.php';
36require_once DOL_DOCUMENT_ROOT.
'/hrm/class/job.class.php';
37require_once DOL_DOCUMENT_ROOT.
'/hrm/class/skill.class.php';
38require_once DOL_DOCUMENT_ROOT.
'/hrm/class/skillrank.class.php';
39require_once DOL_DOCUMENT_ROOT.
'/hrm/lib/hrm_evaluation.lib.php';
40require_once DOL_DOCUMENT_ROOT.
'/hrm/lib/hrm_skillrank.lib.php';
44$langs->loadLangs(array(
'hrm',
'other',
'products'));
49$action =
GETPOST(
'action',
'aZ09');
50$confirm =
GETPOST(
'confirm',
'alpha');
51$cancel =
GETPOST(
'cancel',
'aZ09');
52$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'evaluationcard';
53$backtopage =
GETPOST(
'backtopage',
'alpha');
54$backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
60$diroutputmassaction = $conf->hrm->dir_output.
'/temp/massgeneration/'.$user->id;
61$hookmanager->initHooks(array(
'evaluationcard',
'globalcard'));
64$extrafields->fetch_name_optionals_label(
$object->table_element);
66$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
69$search_all =
GETPOST(
"search_all",
'alpha');
71foreach (
$object->fields as $key => $val) {
72 if (
GETPOST(
'search_'.$key,
'alpha')) {
73 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
77if (empty($action) && empty($id) && empty($ref)) {
82include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
85$permissiontoread = $user->hasRight(
'hrm',
'evaluation',
'read');
86$permissiontoadd = $user->hasRight(
'hrm',
'evaluation',
'write');
87$permissiontovalidate = (
getDolGlobalString(
'MAIN_USE_ADVANCED_PERMS') && $user->hasRight(
'hrm',
'evaluation_advance',
'validate')) || (!
getDolGlobalString(
'MAIN_USE_ADVANCED_PERMS') && $permissiontoadd);
88$permissiontoclose = $user->hasRight(
'hrm',
'evaluation',
'write');
89$permissiontodelete = $user->hasRight(
'hrm',
'evaluation',
'delete');
90$permissiondellink = $user->hasRight(
'hrm',
'evaluation',
'write');
91$upload_dir = $conf->hrm->multidir_output[isset(
$object->entity) ?
$object->entity : 1].
'/evaluation';
98if (!isModEnabled(
"hrm")) {
101if (!$permissiontoread || ($action ===
'create' && !$permissiontoadd)) {
110$parameters = array();
111$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
116if (empty($reshook)) {
119 $backurlforlist =
dol_buildpath(
'/hrm/evaluation_list.php', 1);
121 if (empty($backtopage) || ($cancel && empty($id))) {
122 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
123 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
124 $backtopage = $backurlforlist;
126 $backtopage =
dol_buildpath(
'/hrm/evaluation_card.php', 1).
'?id='.(
$id > 0 ?
$id :
'__ID__');
131 $triggermodname =
'HRM_EVALUATION_MODIFY';
134 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
137 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
140 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
146 if ($action ==
'set_thirdparty' && $permissiontoadd) {
147 $object->setValueFrom(
'fk_soc',
GETPOSTINT(
'fk_soc'),
'',
null,
'date',
'', $user, $triggermodname);
149 if ($action ==
'classin' && $permissiontoadd) {
154 $triggersendname =
'HRM_EVALUATION_SENTBYMAIL';
155 $autocopy =
'MAIN_MAIL_AUTOCOPY_EVALUATION_TO';
156 $trackid =
'evaluation'.$object->id;
157 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
159 if ($action ==
'saveSkill') {
160 $TNote =
GETPOST(
'TNote',
'array');
161 if (!empty($TNote)) {
162 foreach (
$object->lines as $line) {
163 $line->rankorder = ($TNote[$line->fk_skill] ==
"NA" ? -1 : $TNote[$line->fk_skill]);
164 $line->update($user);
170 if ($action ==
'close' && $permissiontoadd) {
173 $SkillrecordsForActiveUser = $sk->fetchAll(
'ASC',
'fk_skill', 0, 0,
"(fk_object:=:".((
int)
$object->fk_user).
") AND (objecttype:=:'".$db->escape(SkillRank::SKILLRANK_TYPE_USER).
"')",
'AND');
174 '@phan-var-force SkillRank[] $SkillrecordsForActiveUser';
178 foreach (
$object->lines as $key => $line) {
180 if (count($SkillrecordsForActiveUser) == 0) {
182 $resCreate = $newSkill->cloneFromCurrentSkill($line,
$object->fk_user);
184 if ($resCreate <= 0) {
186 setEventMessage($langs->trans(
'ErrorCreateUserSkill', $line->fk_skill));
192 foreach ($SkillrecordsForActiveUser as $k => $sr) {
193 if ($sr->fk_skill == $line->fk_skill) {
201 $updSkill = $SkillrecordsForActiveUser[$k];
203 $updSkill->rankorder = $line->rankorder;
204 $updSkill->update($user);
207 $resCreate = $newSkill->cloneFromCurrentSkill($line,
$object->fk_user);
211 if (empty($errors)) {
212 $object->setStatut(Evaluation::STATUS_CLOSED);
217 if ($action ==
'reopen' && $permissiontoadd) {
219 $object->setStatut(Evaluation::STATUS_VALIDATED);
223 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
226 if ($action ==
'remove_file_comfirm' && $permissiontoadd) {
228 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
230 $upload_dir = $conf->hrm->dir_output;
231 $file = $upload_dir.
'/'.
GETPOST(
'file');
250$form =
new Form($db);
254$title = $langs->trans(
"Evaluation");
257$css[] =
'/hrm/css/style.css';
258llxHeader(
'', $title, $help_url,
'', 0, 0,
'', $css);
260print
'<script type="text/javascript" language="javascript">
261 $(document).ready(function() {
262 $("#btn_valid").click(function(){
263 var form = $("#form_save_rank");
268 url: form.attr("action"),
269 data: form.serialize(),
271 }).always(function() {
272 window.location.href = "'.dol_buildpath(
'/hrm/evaluation_card.php', 1).
'?id='.
$id.
'&action=validate&token='.
newToken().
'";
281if ($action ==
'create') {
284 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
285 print
'<input type="hidden" name="token" value="'.newToken().
'">';
286 print
'<input type="hidden" name="action" value="add">';
288 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
290 if ($backtopageforcancel) {
291 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
296 print
'<table class="border centpercent tableforfieldcreate">'.
"\n";
299 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
302 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
304 print
'</table>'.
"\n";
308 print $form->buttonsSaveCancel(
"Create",
"Cancel");
314if (($id || $ref) && $action ==
'edit') {
315 print
load_fiche_titre($langs->trans(
"Evaluation"),
'',
'object_'.$object->picto);
317 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
318 print
'<input type="hidden" name="token" value="'.newToken().
'">';
319 print
'<input type="hidden" name="action" value="update">';
320 print
'<input type="hidden" name="id" value="'.$object->id.
'">';
322 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
324 if ($backtopageforcancel) {
325 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
330 print
'<table class="border centpercent tableforfieldedit">'.
"\n";
333 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
336 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
342 print $form->buttonsSaveCancel();
348if (
$object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
349 $res =
$object->fetch_optionals();
356 if ($action ==
'validate' && $permissiontovalidate) {
361 $ref = substr(
$object->ref, 1, 4);
362 if ($ref ==
'PROV') {
363 $numref =
$object->getNextNumRef();
364 if (empty($numref)) {
372 $text = $langs->trans(
'ConfirmValidateEvaluation', $numref);
373 if (isModEnabled(
'notification')) {
374 require_once DOL_DOCUMENT_ROOT.
'/core/class/notify.class.php';
375 $notify =
new Notify($db);
377 $text .= $notify->confirmMessage(
'HRM_EVALUATION_VALIDATE', 0, $object);
381 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ValidateEvaluation'), $text,
'confirm_validate',
'', 0, 1);
386 if ($action ==
'delete') {
387 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'DeleteEvaluation'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
390 if ($action ==
'deleteline') {
391 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
394 if ($action ==
'clone') {
396 $formquestion = array();
397 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk',
$object->ref),
'confirm_clone', $formquestion,
'yes', 1);
401 if ($action ==
'xxx') {
402 $text = $langs->trans(
'ConfirmActionMyObject',
$object->ref);
404 $formquestion = array();
406 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'XXX'), $text,
'confirm_xxx', $formquestion, 0, 1, 220);
410 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
411 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
412 if (empty($reshook)) {
413 $formconfirm .= $hookmanager->resPrint;
414 } elseif ($reshook > 0) {
415 $formconfirm = $hookmanager->resPrint;
424 $linkback =
'<a href="'.dol_buildpath(
'/hrm/evaluation_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
426 $morehtmlref =
'<div class="refidno">';
427 $morehtmlref .= $langs->trans(
'Label').
' : '.
$object->label;
428 $u_position =
new User(($db));
429 $u_position->fetch(
$object->fk_user);
430 $morehtmlref .=
'<br>'.$u_position->getNomUrl(1);
433 $morehtmlref .=
'<br>'.$langs->trans(
'JobProfile').
' : '.$job->getNomUrl(1);
434 $morehtmlref .=
'</div>';
438 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
441 print
'<div class="fichecenter">';
442 print
'<div class="fichehalfleft">';
443 print
'<div class="underbanner clearboth"></div>';
444 print
'<table class="border centpercent tableforfield">'.
"\n";
446 $object->fields[
'label'][
'visible'] = 0;
447 $object->fields[
'fk_user'][
'visible'] = 0;
448 $object->fields[
'fk_job'][
'visible'] = 0;
449 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_view.tpl.php';
452 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
458 print
'<div class="clearboth"></div>';
465 if (!empty(
$object->table_element_line) &&
$object->status == Evaluation::STATUS_DRAFT) {
467 $result =
$object->getLinesArray();
474 print
' <form name="form_save_rank" id="form_save_rank" action="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.(($action !=
'editline') ?
'' :
'#line_'.
GETPOSTINT(
'lineid')).
'" method="POST">
475 <input type="hidden" name="token" value="' .
newToken().
'">
476 <input type="hidden" name="action" value="saveSkill">
477 <input type="hidden" name="mode" value="">
478 <input type="hidden" name="page_y" value="">
479 <input type="hidden" name="id" value="' .
$object->id.
'">
482 if (!empty($conf->use_javascript_ajax) &&
$object->status == 0) {
483 include DOL_DOCUMENT_ROOT.
'/core/tpl/ajaxrow.tpl.php';
486 $conf->modules_parts[
'tpl'][
'hrm'] =
'/hrm/core/tpl/';
488 print
'<div class="div-table-responsive-no-min">';
489 if (!empty(
$object->lines) || (
$object->status == $object::STATUS_DRAFT && $permissiontoadd && $action !=
'selectlines' && $action !=
'editline')) {
490 print
'<table id="tablelines" class="noborder noshadow centpercent">';
498 print
'<tr><td colspan="4"><span class="opacitymedium">'.img_warning().
' '.$langs->trans(
"TheJobProfileHasNoSkillsDefinedFixBefore").
'</td></tr>';
516 if (!empty(
$object->lines) || (
$object->status == $object::STATUS_DRAFT && $permissiontoadd && $action !=
'selectlines' && $action !=
'editline')) {
528 if (
$object->status != Evaluation::STATUS_DRAFT) {
533 $sql .=
' e.date_creation,';
534 $sql .=
' e.fk_job,';
535 $sql .=
' j.label as "refjob",';
536 $sql .=
' ed.fk_skill,';
538 $sql .=
' sk.label as "skilllabel",';
539 $sql .=
' sk.skill_type,';
540 $sql .=
' sk.description,';
541 $sql .=
' ed.rankorder,';
542 $sql .=
' ed.required_rank,';
543 $sql .=
' ed.rankorder as "userRankForSkill",';
544 $sql .=
' skdet_user.description as "userRankForSkillDesc",';
545 $sql .=
' skdet_required.description as "required_rank_desc"';
547 $sql .=
' FROM ' . MAIN_DB_PREFIX .
'hrm_evaluation as e';
548 $sql .=
' LEFT JOIN ' . MAIN_DB_PREFIX .
'hrm_evaluationdet as ed ON e.rowid = ed.fk_evaluation';
549 $sql .=
' LEFT JOIN ' . MAIN_DB_PREFIX .
'hrm_job as j ON e.fk_job = j.rowid';
550 $sql .=
' LEFT JOIN ' . MAIN_DB_PREFIX .
'hrm_skill as sk ON ed.fk_skill = sk.rowid';
551 $sql .=
' INNER JOIN ' . MAIN_DB_PREFIX .
'hrm_skilldet as skdet_user ON (skdet_user.fk_skill = sk.rowid AND skdet_user.rankorder = ed.rankorder)';
553 $sql .=
' LEFT JOIN ' . MAIN_DB_PREFIX .
'hrm_skilldet as skdet_required ON (skdet_required.fk_skill = sk.rowid AND skdet_required.rankorder = ed.required_rank)';
554 $sql .=
" WHERE e.rowid =" . ((int)
$object->id);
558 $resql = $db->query($sql);
563 while ($obj = $db->fetch_object($resql)) {
566 $Tab[$num]->skill_type = $obj->skill_type;
567 $Tab[$num]->skill_id = $obj->fk_skill;
568 $Tab[$num]->skilllabel = $obj->skilllabel;
569 $Tab[$num]->description = $obj->description;
570 $Tab[$num]->userRankForSkill =
'<span title="'.$obj->userRankForSkillDesc.
'" class="radio_js_bloc_number TNote_1">' . $obj->userRankForSkill .
'</span>';
572 $required_rank = $obj->required_rank;
573 $required_rank_desc = $obj->required_rank_desc;
574 if ($required_rank ==
"-1") {
575 $required_rank = $langs->trans(
"NA");
576 $required_rank_desc = $langs->trans(
"NA");
577 } elseif ($required_rank ==
"0") {
578 $required_rank_desc = $langs->trans(
'SkillNotRequired');
581 $Tab[$num]->required_rank =
'<span title="'.$required_rank_desc.
'" class="radio_js_bloc_number TNote_1">' . $required_rank .
'</span>';
583 if ($obj->userRankForSkill == -1) {
584 $title = $langs->trans(
'NA');
585 $class .=
'veryhappy diffnote';
586 } elseif ($obj->userRankForSkill > $obj->required_rank) {
587 $title = $langs->trans(
'MaxlevelGreaterThanShort');
588 $class .=
'veryhappy diffnote';
589 } elseif ($obj->userRankForSkill == $obj->required_rank) {
590 $title = $langs->trans(
'MaxLevelEqualToShort');
591 $class .=
'happy diffnote';
592 } elseif ($obj->userRankForSkill < $obj->required_rank) {
593 $title = $langs->trans(
'MaxLevelLowerThanShort');
597 $Tab[$num]->result =
'<span title="'.$title.
'" class="classfortooltip ' . $class .
' note"> </span>';
604 print
'<div class="div-table-responsive-no-min">';
605 print
'<table id="tablelines" class="noborder noshadow centpercent">';
607 print
'<tr class="liste_titre">';
608 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"TypeSkill") .
' </th>';
609 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"Label") .
'</th>';
610 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"Description") .
'</th>';
611 print
'<th style="width:auto;text-align:center" class="liste_titre">' . $langs->trans(
"EmployeeRank") .
'</th>';
612 print
'<th style="width:auto;text-align:center" class="liste_titre">' . $langs->trans(
"RequiredRank") .
'</th>';
613 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"Result") .
' ' .$form->textwithpicto(
'',
GetLegendSkills(), 1) .
'</th>';
616 $sk =
new Skill($db);
617 foreach ($Tab as $t) {
618 $sk->fetch($t->skill_id);
622 print
' <td class="tdoverflowmax200">' . $sk->getNomUrl(1) .
'</td>';
623 print
' <td class="tdoverflowmax200" title="'.dolPrintHTMLForAttribute($t->description).
'">' .
dolPrintHTML($t->description) .
'</td>';
624 print
' <td class="center">' . $t->userRankForSkill .
'</td>';
625 print
' <td class="center">' . $t->required_rank .
'</td>';
626 print
' <td>' . $t->result .
'</td>';
635 $(document).ready(
function() {
636 $(
".radio_js_bloc_number").tooltip();
646 if ($action !=
'presend' && $action !=
'editline') {
647 print
'<div class="tabsAction">'.
"\n";
648 $parameters = array();
649 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
654 if (empty($reshook)) {
656 if (empty($user->socid)) {
657 print
dolGetButtonAction(
'', $langs->trans(
'SendMail'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=presend&mode=init&token='.
newToken().
'#formmailbeforetitle');
661 if (
$object->status == $object::STATUS_VALIDATED) {
662 print
dolGetButtonAction(
'', $langs->trans(
'SetToDraft'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=confirm_setdraft&confirm=yes&token='.
newToken(),
'', $permissiontoadd);
663 print
dolGetButtonAction(
'', $langs->trans(
'Close'),
'close', $_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=close&token='.
newToken(),
'', $permissiontodelete || (
$object->status == $object::STATUS_CLOSED && $permissiontoclose));
664 } elseif (
$object->status != $object::STATUS_CLOSED) {
665 print
dolGetButtonAction(
'', $langs->trans(
'Modify'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=edit&token='.
newToken(),
'', $permissiontoadd);
668 if (
$object->status == $object::STATUS_CLOSED) {
669 print
dolGetButtonAction($langs->trans(
'ReOpen'),
'',
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=reopen&token='.
newToken(),
'', $permissiontoadd);
674 if (
$object->status == $object::STATUS_DRAFT) {
676 print
dolGetButtonAction($langs->trans(
'Save').
' '.$langs->trans(
'and').
' '.$langs->trans(
'Valid'),
'',
'default',
'#',
'btn_valid', $permissiontovalidate);
678 $langs->load(
"errors");
679 print
dolGetButtonAction($langs->trans(
"ErrorAddAtLeastOneLineFirst"), $langs->trans(
"Validate"),
'default',
'#',
'', 0);
685 print
dolGetButtonAction($langs->trans(
'Delete'),
'',
'delete', $_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=delete&token='.
newToken(),
'', $permissiontodelete);
693 if (
GETPOST(
'modelselected')) {
697 if ($action !=
'presend') {
698 print
'<div class="fichecenter"><div class="fichehalfleft">';
699 print
'<a name="builddoc"></a>';
701 $includedocgeneration = 1;
704 if ($user->hasRight(
'hrm',
'evaluation',
'read')) {
706 $relativepath = $objref.
'/'.$objref.
'.pdf';
707 $filedir = $conf->hrm->dir_output.
'/'.
$object->element.
'/'.$objref;
708 $urlsource = $_SERVER[
"PHP_SELF"].
"?id=".
$object->id;
709 $genallowed = $user->hasRight(
'hrm',
'evaluation',
'read');
710 $delallowed = $user->hasRight(
'hrm',
'evaluation',
'write');
711 print $formfile->showdocuments(
'hrm:Evaluation',
$object->element.
'/'.$objref, $filedir, $urlsource, $genallowed, $delallowed,
$object->model_pdf, 1, 0, 0, 28, 0,
'',
'',
'', $langs->defaultlang,
'', $object, 0,
'remove_file_comfirm');
715 $tmparray = $form->showLinkToObjectBlock($object, array(), array(
'evaluation'), 1);
716 $linktoelem = $tmparray[
'linktoelem'];
717 $htmltoenteralink = $tmparray[
'htmltoenteralink'];
718 print $htmltoenteralink;
720 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
723 print
'</div><div class="fichehalfright">';
727 $morehtmlcenter =
dolGetButtonTitle($langs->trans(
'SeeAll'),
'',
'fa fa-bars imgforviewmode', DOL_URL_ROOT.
'/hrm/evaluation_agenda.php?id='.
$object->id);
730 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formactions.class.php';
732 $somethingshown = $formactions->showactions($object,
$object->element.
'@'.
$object->module, (is_object(
$object->thirdparty) ?
$object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlcenter);
734 print
'</div></div>';
743 $modelmail =
'evaluation';
744 $defaulttopic =
'InformationMessage';
745 $diroutput = $conf->hrm->dir_output;
746 $trackid =
'evaluation'.$object->id;
748 include DOL_DOCUMENT_ROOT.
'/core/tpl/card_presend.tpl.php';
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class to manage the table of subscription to notifications.
static typeCodeToLabel($code)
Class to manage Dolibarr users.
dol_delete_file($file, $disableglob=0, $nophperrors=0, $nohook=0, $object=null, $allowdotdot=false, $indexdatabase=1, $nolog=0)
Remove a file or several files with a mask.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
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.
dolPrintHTML($s, $allowiframe=0)
Return a string (that can be on several lines) ready to be output on a HTML page.
dolGetButtonTitle($label, $helpText='', $iconClass='fa fa-file', $url='', $id='', $status=1, $params=array())
Function dolGetButtonTitle : this kind of buttons are used in title in list.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
setEventMessage($mesgs, $style='mesgs', $noduplicate=0, $attop=0)
Set event message in dol_events session object.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
dolGetButtonAction($label, $text='', $actionType='default', $url='', $id='', $userRight=1, $params=array())
Function dolGetButtonAction.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1)
Clean a string to use it as a file name.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
evaluationPrepareHead($object)
Prepare array of tabs for Evaluation.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.