31require
'../main.inc.php';
40require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
41require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
42require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
43require_once DOL_DOCUMENT_ROOT.
'/hrm/class/evaluation.class.php';
44require_once DOL_DOCUMENT_ROOT.
'/hrm/class/job.class.php';
45require_once DOL_DOCUMENT_ROOT.
'/hrm/class/skill.class.php';
46require_once DOL_DOCUMENT_ROOT.
'/hrm/class/skillrank.class.php';
47require_once DOL_DOCUMENT_ROOT.
'/hrm/lib/hrm_evaluation.lib.php';
48require_once DOL_DOCUMENT_ROOT.
'/hrm/lib/hrm_skillrank.lib.php';
52$langs->loadLangs(array(
'hrm',
'other',
'products'));
57$action =
GETPOST(
'action',
'aZ09');
58$confirm =
GETPOST(
'confirm',
'alpha');
60$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'evaluationcard';
61$backtopage =
GETPOST(
'backtopage',
'alpha');
62$backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
68$diroutputmassaction =
$conf->hrm->dir_output.
'/temp/massgeneration/'.$user->id;
69$hookmanager->initHooks(array(
'evaluationcard',
'globalcard'));
72$extrafields->fetch_name_optionals_label(
$object->table_element);
74$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
77$search_all =
GETPOST(
"search_all",
'alpha');
79foreach (
$object->fields as $key => $val) {
80 if (
GETPOST(
'search_'.$key,
'alpha')) {
81 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
85if (empty($action) && empty($id) && empty($ref)) {
90include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
93$permissiontoread = $user->hasRight(
'hrm',
'evaluation',
'read');
94$permissiontoadd = $user->hasRight(
'hrm',
'evaluation',
'write');
95$permissiontovalidate = (
getDolGlobalString(
'MAIN_USE_ADVANCED_PERMS') && $user->hasRight(
'hrm',
'evaluation_advance',
'validate')) || (!
getDolGlobalString(
'MAIN_USE_ADVANCED_PERMS') && $permissiontoadd);
96$permissiontoclose = $user->hasRight(
'hrm',
'evaluation',
'write');
97$permissiontodelete = $user->hasRight(
'hrm',
'evaluation',
'delete');
98$permissiondellink = $user->hasRight(
'hrm',
'evaluation',
'write');
99$upload_dir =
$conf->hrm->multidir_output[isset(
$object->entity) ?
$object->entity : 1].
'/evaluation';
104$isdraft = (
$object->status == Evaluation::STATUS_DRAFT) ? 1 : 0;
109if (!$permissiontoread || ($action ===
'create' && !$permissiontoadd)) {
117$parameters = array();
118$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
123if (empty($reshook)) {
126 $backurlforlist =
dol_buildpath(
'/hrm/evaluation_list.php', 1);
128 if (empty($backtopage) || ($cancel && empty($id))) {
129 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
130 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
131 $backtopage = $backurlforlist;
133 $backtopage =
dol_buildpath(
'/hrm/evaluation_card.php', 1).
'?id='.(
$id > 0 ?
$id :
'__ID__');
138 if ($action ==
'saveSkill' && $permissiontoadd) {
139 $TNote =
GETPOST(
'TNote',
'array');
140 if (!empty($TNote)) {
141 foreach (
$object->lines as $line) {
142 $line->rankorder = ($TNote[$line->fk_skill] ==
"NA" ? -1 : $TNote[$line->fk_skill]);
143 $line->update($user);
148 $action =
'validate';
151 if ($action ==
"validate" && $permissiontoadd) {
152 $TNote =
GETPOST(
'TNote',
'array');
154 foreach (
$object->lines as $line) {
155 if (!in_array($TNote[$line->fk_skill], array(
"0",
""))) {
161 setEventMessage($langs->trans(
"WarningEvaluationEmptyValidate"),
'errors');
166 $triggermodname =
'HRM_EVALUATION_MODIFY';
169 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
172 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
175 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
181 if ($action ==
'set_thirdparty' && $permissiontoadd) {
182 $object->setValueFrom(
'fk_soc',
GETPOSTINT(
'fk_soc'),
'',
null,
'date',
'', $user, $triggermodname);
184 if ($action ==
'classin' && $permissiontoadd) {
189 $triggersendname =
'HRM_EVALUATION_SENTBYMAIL';
190 $autocopy =
'MAIN_MAIL_AUTOCOPY_EVALUATION_TO';
191 $trackid =
'evaluation'.$object->id;
192 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
194 if ($action ==
'close' && $permissiontoadd) {
197 $SkillrecordsForActiveUser = $sk->fetchAll(
'ASC',
'fk_skill', 0, 0,
"(fk_object:=:".((
int)
$object->fk_user).
") AND (objecttype:=:'".
$db->escape(SkillRank::SKILLRANK_TYPE_USER).
"')",
'AND');
198 '@phan-var-force SkillRank[] $SkillrecordsForActiveUser';
202 foreach (
$object->lines as $key => $line) {
204 if (count($SkillrecordsForActiveUser) == 0) {
206 $resCreate = $newSkill->cloneFromCurrentSkill($line,
$object->fk_user);
208 if ($resCreate <= 0) {
210 setEventMessage($langs->trans(
'ErrorCreateUserSkill', $line->fk_skill));
215 foreach ($SkillrecordsForActiveUser as $k => $sr) {
216 if ($sr->fk_skill == $line->fk_skill) {
223 $updSkill = $SkillrecordsForActiveUser[$keyFind];
225 $updSkill->rankorder = $line->rankorder;
226 $updSkill->update($user);
229 $resCreate = $newSkill->cloneFromCurrentSkill($line,
$object->fk_user);
233 if (empty($errors)) {
234 $object->setStatut(Evaluation::STATUS_CLOSED);
239 if ($action ==
'reopen' && $permissiontoadd) {
241 $object->setStatut(Evaluation::STATUS_VALIDATED);
245 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
248 if ($action ==
'remove_file_comfirm' && $permissiontoadd) {
250 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
252 $upload_dir =
$conf->hrm->dir_output;
253 $file = $upload_dir.
'/'.
GETPOST(
'file');
271$title = $langs->trans(
"Evaluation");
274$css[] =
'/hrm/css/style.css';
275llxHeader(
'', $title, $help_url,
'', 0, 0,
'', $css);
278 $(document).ready(
function() {
279 $(
"#btn_valid").click(
function() {
280 console.log(
"Click on btn_valid");
281 var form = $(
"#form_save_rank");
290if ($action ==
'create') {
293 print
'<form method="POST" action="'.dolBuildUrl($_SERVER[
"PHP_SELF"]).
'">';
294 print
'<input type="hidden" name="token" value="'.newToken().
'">';
295 print
'<input type="hidden" name="action" value="add">';
297 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
299 if ($backtopageforcancel) {
300 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
305 print
'<table class="border centpercent tableforfieldcreate">'.
"\n";
308 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
311 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
313 print
'</table>'.
"\n";
317 print $form->buttonsSaveCancel(
"Create",
"Cancel");
323if (($id || $ref) && $action ==
'edit') {
324 print
load_fiche_titre($langs->trans(
"Evaluation"),
'',
'object_'.$object->picto);
326 print
'<form method="POST" action="'.dolBuildUrl($_SERVER[
"PHP_SELF"]).
'">';
327 print
'<input type="hidden" name="token" value="'.newToken().
'">';
328 print
'<input type="hidden" name="action" value="update">';
329 print
'<input type="hidden" name="id" value="'.$object->id.
'">';
331 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
333 if ($backtopageforcancel) {
334 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
339 print
'<table class="border centpercent tableforfieldedit">'.
"\n";
342 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
345 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
351 print $form->buttonsSaveCancel();
357if (
$object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
358 $res =
$object->fetch_optionals();
365 if ($action ==
'validate' && $permissiontovalidate) {
370 $ref = substr(
$object->ref, 1, 4);
371 if ($ref ==
'PROV') {
372 $numref =
$object->getNextNumRef();
373 if (empty($numref)) {
381 $text = $langs->trans(
'ConfirmValidateEvaluation', $numref);
383 require_once DOL_DOCUMENT_ROOT.
'/core/class/notify.class.php';
386 $text .= $notify->confirmMessage(
'HRM_EVALUATION_VALIDATE', 0, $object);
390 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ValidateEvaluation'), $text,
'confirm_validate',
'', 0, 1);
395 if ($action ==
'delete') {
396 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'DeleteEvaluation'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
399 if ($action ==
'deleteline') {
400 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
403 if ($action ==
'clone') {
405 $formquestion = array();
406 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk',
$object->ref),
'confirm_clone', $formquestion,
'yes', 1);
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;
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 < 0 || $obj->required_rank < 0) {
584 $title = $langs->trans(
'NA');
586 } elseif ($obj->userRankForSkill > $obj->required_rank) {
587 $title = $langs->trans(
'MaxlevelGreaterThanShort');
588 $class .=
'veryhappy';
589 } elseif ($obj->userRankForSkill == $obj->required_rank) {
590 $title = $langs->trans(
'MaxLevelEqualToShort');
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>';
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'),
'email', $_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';
$id
Support class for third parties, contacts, members, users or resources.
if(! $sortfield) if(! $sortorder) $object
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
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.
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.
dolPrintHTML($s, $allowiframe=0, $moreallowedtags=array())
Return a string (that can be on several lines) ready to be output on a HTML page.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0, $morecssdiv='')
Show tabs of a record.
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.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1, $includequotes=0, $allowdash=0)
Clean a string to use it as a file name.
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_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
evaluationPrepareHead($object)
Prepare array of tabs for Evaluation.
print $langs trans("Show") . '< td style="' . $timeColor . '" align="center"> s</td > badge status0 badge status4 badge status3 Error badge status8< td align="center">< span class="badge ' . $badge . '"></span ></td >< td align="center">< a href="#" class="button button-small" onclick="openLogModal(this)" data-req="' . dol_escape_htmltag($reqSafe) . '" data-res="' . dol_escape_htmltag($resSafe) . '" data-err="' . dol_escape_htmltag($errSafe) . '">< span class="fa fa-search-plus"></span ></a ></td ></tr >< tr >< td colspan="' . $colspan . '" class="opacitymedium"></td ></tr ></table ></div ></form > logModal none logModal none s a JSON string
buildzip.php
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.