29require
'../main.inc.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
32require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
34require_once DOL_DOCUMENT_ROOT.
'/hrm/class/evaluation.class.php';
35require_once DOL_DOCUMENT_ROOT.
'/hrm/class/job.class.php';
36require_once DOL_DOCUMENT_ROOT.
'/hrm/class/skill.class.php';
37require_once DOL_DOCUMENT_ROOT.
'/hrm/class/skillrank.class.php';
38require_once DOL_DOCUMENT_ROOT.
'/hrm/lib/hrm_evaluation.lib.php';
39require_once DOL_DOCUMENT_ROOT.
'/hrm/lib/hrm_skillrank.lib.php';
43$langs->loadLangs(array(
'hrm',
'other',
'products'));
48$action =
GETPOST(
'action',
'aZ09');
49$confirm =
GETPOST(
'confirm',
'alpha');
50$cancel =
GETPOST(
'cancel',
'aZ09');
51$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'evaluationcard';
52$backtopage =
GETPOST(
'backtopage',
'alpha');
53$backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
59$diroutputmassaction = $conf->hrm->dir_output.
'/temp/massgeneration/'.$user->id;
60$hookmanager->initHooks(array(
'evaluationcard',
'globalcard'));
63$extrafields->fetch_name_optionals_label(
$object->table_element);
65$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
68$search_all =
GETPOST(
"search_all",
'alpha');
70foreach (
$object->fields as $key => $val) {
71 if (
GETPOST(
'search_'.$key,
'alpha')) {
72 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
76if (empty($action) && empty($id) && empty($ref)) {
81include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
84$permissiontoread = $user->hasRight(
'hrm',
'evaluation',
'read');
85$permissiontoadd = $user->hasRight(
'hrm',
'evaluation',
'write');
86$permissiontovalidate = (
getDolGlobalString(
'MAIN_USE_ADVANCED_PERMS') && $user->hasRight(
'hrm',
'evaluation_advance',
'validate')) || (!
getDolGlobalString(
'MAIN_USE_ADVANCED_PERMS') && $permissiontoadd);
87$permissiontoClose = $user->hasRight(
'hrm',
'evaluation',
'write');
88$permissiontodelete = $user->hasRight(
'hrm',
'evaluation',
'delete');
89$permissiondellink = $user->hasRight(
'hrm',
'evaluation',
'write');
90$upload_dir = $conf->hrm->multidir_output[isset(
$object->entity) ?
$object->entity : 1].
'/evaluation';
97if (!isModEnabled(
"hrm")) {
100if (!$permissiontoread || ($action ===
'create' && !$permissiontoadd)) {
109$parameters = array();
110$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
115if (empty($reshook)) {
118 $backurlforlist =
dol_buildpath(
'/hrm/evaluation_list.php', 1);
120 if (empty($backtopage) || ($cancel && empty($id))) {
121 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
122 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
123 $backtopage = $backurlforlist;
125 $backtopage =
dol_buildpath(
'/hrm/evaluation_card.php', 1).
'?id='.($id > 0 ? $id :
'__ID__');
130 $triggermodname =
'HRM_EVALUATION_MODIFY';
133 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
136 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
139 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
145 if ($action ==
'set_thirdparty' && $permissiontoadd) {
146 $object->setValueFrom(
'fk_soc',
GETPOSTINT(
'fk_soc'),
'',
'',
'date',
'', $user, $triggermodname);
148 if ($action ==
'classin' && $permissiontoadd) {
153 $triggersendname =
'HRM_EVALUATION_SENTBYMAIL';
154 $autocopy =
'MAIN_MAIL_AUTOCOPY_EVALUATION_TO';
155 $trackid =
'evaluation'.$object->id;
156 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
158 if ($action ==
'saveSkill') {
159 $TNote =
GETPOST(
'TNote',
'array');
160 if (!empty($TNote)) {
161 foreach (
$object->lines as $line) {
162 $line->rankorder = $TNote[$line->fk_skill];
163 $line->update($user);
169 if ($action ==
'close') {
172 $SkillrecordsForActiveUser = $sk->fetchAll(
'ASC',
'fk_skill', 0, 0,
"(fk_object:=:".((
int)
$object->fk_user).
") AND (objecttype:=:'".$db->escape(SkillRank::SKILLRANK_TYPE_USER).
"')",
'AND');
176 foreach (
$object->lines as $key => $line) {
178 if (count($SkillrecordsForActiveUser) == 0) {
180 $resCreate = $newSkill->cloneFromCurrentSkill($line,
$object->fk_user);
182 if ($resCreate <= 0) {
184 setEventMessage($langs->trans(
'ErrorCreateUserSkill'), $line->fk_skill);
190 foreach ($SkillrecordsForActiveUser as $k => $sr) {
191 if ($sr->fk_skill == $line->fk_skill) {
199 $updSkill = $SkillrecordsForActiveUser[$k];
201 $updSkill->rankorder = $line->rankorder;
202 $updSkill->update($user);
205 $resCreate = $newSkill->cloneFromCurrentSkill($line,
$object->fk_user);
209 if (empty($errors)) {
210 $object->setStatut(Evaluation::STATUS_CLOSED);
215 if ($action ==
'reopen') {
217 $object->setStatut(Evaluation::STATUS_VALIDATED);
221 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
224 if ($action ==
'remove_file_comfirm') {
226 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
228 $upload_dir = $conf->hrm->dir_output;
229 $file = $upload_dir.
'/'.
GETPOST(
'file');
248$form =
new Form($db);
252$title = $langs->trans(
"Evaluation");
255$css[] =
'/hrm/css/style.css';
256llxHeader(
'', $title, $help_url,
'', 0, 0,
'', $css);
258print
'<script type="text/javascript" language="javascript">
259 $(document).ready(function() {
260 $("#btn_valid").click(function(){
261 var form = $("#form_save_rank");
266 url: form.attr("action"),
267 data: form.serialize(),
269 }).always(function() {
270 window.location.href = "'.dol_buildpath(
'/hrm/evaluation_card.php', 1).
'?id='.$id.
'&action=validate&token='.
newToken().
'";
279if ($action ==
'create') {
282 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
283 print
'<input type="hidden" name="token" value="'.newToken().
'">';
284 print
'<input type="hidden" name="action" value="add">';
286 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
288 if ($backtopageforcancel) {
289 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
294 print
'<table class="border centpercent tableforfieldcreate">'.
"\n";
297 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
300 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
302 print
'</table>'.
"\n";
306 print $form->buttonsSaveCancel(
"Create",
"Cancel");
312if (($id || $ref) && $action ==
'edit') {
313 print
load_fiche_titre($langs->trans(
"Evaluation"),
'',
'object_'.$object->picto);
315 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
316 print
'<input type="hidden" name="token" value="'.newToken().
'">';
317 print
'<input type="hidden" name="action" value="update">';
318 print
'<input type="hidden" name="id" value="'.$object->id.
'">';
320 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
322 if ($backtopageforcancel) {
323 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
328 print
'<table class="border centpercent tableforfieldedit">'.
"\n";
331 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
334 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
340 print $form->buttonsSaveCancel();
346if (
$object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
347 $res =
$object->fetch_optionals();
354 if ($action ==
'validate' && $permissiontovalidate) {
359 $ref = substr(
$object->ref, 1, 4);
360 if ($ref ==
'PROV') {
361 $numref =
$object->getNextNumRef();
362 if (empty($numref)) {
370 $text = $langs->trans(
'ConfirmValidateEvaluation', $numref);
371 if (isModEnabled(
'notification')) {
372 require_once DOL_DOCUMENT_ROOT.
'/core/class/notify.class.php';
373 $notify =
new Notify($db);
375 $text .= $notify->confirmMessage(
'HRM_EVALUATION_VALIDATE', 0, $object);
379 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ValidateEvaluation'), $text,
'confirm_validate',
'', 0, 1);
384 if ($action ==
'delete') {
385 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'DeleteEvaluation'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
388 if ($action ==
'deleteline') {
389 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
392 if ($action ==
'clone') {
394 $formquestion = array();
395 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk',
$object->ref),
'confirm_clone', $formquestion,
'yes', 1);
399 if ($action ==
'xxx') {
400 $text = $langs->trans(
'ConfirmActionMyObject',
$object->ref);
402 $formquestion = array();
404 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'XXX'), $text,
'confirm_xxx', $formquestion, 0, 1, 220);
408 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
409 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
410 if (empty($reshook)) {
411 $formconfirm .= $hookmanager->resPrint;
412 } elseif ($reshook > 0) {
413 $formconfirm = $hookmanager->resPrint;
422 $linkback =
'<a href="'.dol_buildpath(
'/hrm/evaluation_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
424 $morehtmlref =
'<div class="refidno">';
425 $morehtmlref .= $langs->trans(
'Label').
' : '.
$object->label;
426 $u_position =
new User(($db));
427 $u_position->fetch(
$object->fk_user);
428 $morehtmlref .=
'<br>'.$u_position->getNomUrl(1);
431 $morehtmlref .=
'<br>'.$langs->trans(
'JobProfile').
' : '.$job->getNomUrl(1);
432 $morehtmlref .=
'</div>';
436 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
439 print
'<div class="fichecenter">';
440 print
'<div class="fichehalfleft">';
441 print
'<div class="underbanner clearboth"></div>';
442 print
'<table class="border centpercent tableforfield">'.
"\n";
444 $object->fields[
'label'][
'visible']=0;
445 $object->fields[
'fk_user'][
'visible']=0;
446 $object->fields[
'fk_job'][
'visible']=0;
447 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_view.tpl.php';
450 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
456 print
'<div class="clearboth"></div>';
463 if (!empty(
$object->table_element_line) &&
$object->status == Evaluation::STATUS_DRAFT) {
465 $result =
$object->getLinesArray();
472 print
' <form name="form_save_rank" id="form_save_rank" action="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.(($action !=
'editline') ?
'' :
'#line_'.
GETPOSTINT(
'lineid')).
'" method="POST">
473 <input type="hidden" name="token" value="' .
newToken().
'">
474 <input type="hidden" name="action" value="saveSkill">
475 <input type="hidden" name="mode" value="">
476 <input type="hidden" name="page_y" value="">
477 <input type="hidden" name="id" value="' .
$object->id.
'">
480 if (!empty($conf->use_javascript_ajax) &&
$object->status == 0) {
481 include DOL_DOCUMENT_ROOT.
'/core/tpl/ajaxrow.tpl.php';
484 $conf->modules_parts[
'tpl'][
'hrm']=
'/hrm/core/tpl/';
486 print
'<div class="div-table-responsive-no-min">';
487 if (!empty(
$object->lines) || (
$object->status == $object::STATUS_DRAFT && $permissiontoadd && $action !=
'selectlines' && $action !=
'editline')) {
488 print
'<table id="tablelines" class="noborder noshadow centpercent">';
496 print
'<tr><td colspan="4"><span class="opacitymedium">'.img_warning().
' '.$langs->trans(
"TheJobProfileHasNoSkillsDefinedFixBefore").
'</td></tr>';
514 if (!empty(
$object->lines) || (
$object->status == $object::STATUS_DRAFT && $permissiontoadd && $action !=
'selectlines' && $action !=
'editline')) {
526 if (
$object->status != Evaluation::STATUS_DRAFT) {
531 $sql .=
' e.date_creation,';
532 $sql .=
' e.fk_job,';
533 $sql .=
' j.label as "refjob",';
534 $sql .=
' ed.fk_skill,';
536 $sql .=
' sk.label as "skilllabel",';
537 $sql .=
' sk.skill_type,';
538 $sql .=
' sk.description,';
539 $sql .=
' ed.rankorder,';
540 $sql .=
' ed.required_rank,';
541 $sql .=
' ed.rankorder as "userRankForSkill",';
542 $sql .=
' skdet_user.description as "userRankForSkillDesc",';
543 $sql .=
' skdet_required.description as "required_rank_desc"';
545 $sql .=
' FROM ' . MAIN_DB_PREFIX .
'hrm_evaluation as e';
546 $sql .=
' LEFT JOIN ' . MAIN_DB_PREFIX .
'hrm_evaluationdet as ed ON e.rowid = ed.fk_evaluation';
547 $sql .=
' LEFT JOIN ' . MAIN_DB_PREFIX .
'hrm_job as j ON e.fk_job = j.rowid';
548 $sql .=
' LEFT JOIN ' . MAIN_DB_PREFIX .
'hrm_skill as sk ON ed.fk_skill = sk.rowid';
549 $sql .=
' INNER JOIN ' . MAIN_DB_PREFIX .
'hrm_skilldet as skdet_user ON (skdet_user.fk_skill = sk.rowid AND skdet_user.rankorder = ed.rankorder)';
551 $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)';
552 $sql .=
" WHERE e.rowid =" . ((int)
$object->id);
556 $resql = $db->query($sql);
561 while ($obj = $db->fetch_object($resql)) {
564 $Tab[$num]->skill_type = $obj->skill_type;
565 $Tab[$num]->skill_id = $obj->fk_skill;
566 $Tab[$num]->skilllabel = $obj->skilllabel;
567 $Tab[$num]->description = $obj->description;
568 $Tab[$num]->userRankForSkill =
'<span title="'.$obj->userRankForSkillDesc.
'" class="radio_js_bloc_number TNote_1">' . $obj->userRankForSkill .
'</span>';
569 $Tab[$num]->required_rank =
'<span title="'.$obj->required_rank_desc.
'" class="radio_js_bloc_number TNote_1">' . $obj->required_rank .
'</span>';
571 if ($obj->userRankForSkill > $obj->required_rank) {
572 $title=$langs->trans(
'MaxlevelGreaterThanShort');
573 $class .=
'veryhappy diffnote';
574 } elseif ($obj->userRankForSkill == $obj->required_rank) {
575 $title=$langs->trans(
'MaxLevelEqualToShort');
576 $class .=
'happy diffnote';
577 } elseif ($obj->userRankForSkill < $obj->required_rank) {
578 $title=$langs->trans(
'MaxLevelLowerThanShort');
582 $Tab[$num]->result =
'<span title="'.$title.
'" class="classfortooltip ' . $class .
' note"> </span>';
589 print
'<div class="div-table-responsive-no-min">';
590 print
'<table id="tablelines" class="noborder noshadow centpercent">';
592 print
'<tr class="liste_titre">';
593 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"TypeSkill") .
' </th>';
594 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"Label") .
'</th>';
595 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"Description") .
'</th>';
596 print
'<th style="width:auto;text-align:center" class="liste_titre">' . $langs->trans(
"EmployeeRank") .
'</th>';
597 print
'<th style="width:auto;text-align:center" class="liste_titre">' . $langs->trans(
"RequiredRank") .
'</th>';
598 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"Result") .
' ' .$form->textwithpicto(
'',
GetLegendSkills(), 1) .
'</th>';
601 $sk =
new Skill($db);
602 foreach ($Tab as $t) {
603 $sk->fetch($t->skill_id);
607 print
' <td>' . $sk->getNomUrl(1) .
'</td>';
608 print
' <td>' . $t->description .
'</td>';
609 print
' <td align="center">' . $t->userRankForSkill .
'</td>';
610 print
' <td align="center">' . $t->required_rank .
'</td>';
611 print
' <td>' . $t->result .
'</td>';
620 $(document).ready(
function() {
621 $(
".radio_js_bloc_number").tooltip();
631 if ($action !=
'presend' && $action !=
'editline') {
632 print
'<div class="tabsAction">'.
"\n";
633 $parameters = array();
634 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
639 if (empty($reshook)) {
641 if (empty($user->socid)) {
642 print
dolGetButtonAction(
'', $langs->trans(
'SendMail'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=presend&mode=init&token='.
newToken().
'#formmailbeforetitle');
646 if (
$object->status == $object::STATUS_VALIDATED) {
647 print
dolGetButtonAction(
'', $langs->trans(
'SetToDraft'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=confirm_setdraft&confirm=yes&token='.
newToken(),
'', $permissiontoadd);
648 print
dolGetButtonAction(
'', $langs->trans(
'Close'),
'close', $_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=close&token='.
newToken(),
'', $permissiontodelete || (
$object->status == $object::STATUS_CLOSED && $permissiontoclose));
649 } elseif (
$object->status != $object::STATUS_CLOSED) {
650 print
dolGetButtonAction(
'', $langs->trans(
'Modify'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=edit&token='.
newToken(),
'', $permissiontoadd);
653 if (
$object->status == $object::STATUS_CLOSED) {
654 print
dolGetButtonAction($langs->trans(
'ReOpen'),
'',
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=reopen&token='.
newToken(),
'', $permissiontoadd);
659 if (
$object->status == $object::STATUS_DRAFT) {
661 print
dolGetButtonAction($langs->trans(
'Save').
' '.$langs->trans(
'and').
' '.$langs->trans(
'Valid'),
'',
'default',
'#',
'btn_valid', $permissiontovalidate);
663 $langs->load(
"errors");
664 print
dolGetButtonAction($langs->trans(
"ErrorAddAtLeastOneLineFirst"), $langs->trans(
"Validate"),
'default',
'#',
'', 0);
670 print
dolGetButtonAction($langs->trans(
'Delete'),
'',
'delete', $_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=delete&token='.
newToken(),
'', $permissiontodelete);
678 if (
GETPOST(
'modelselected')) {
682 if ($action !=
'presend') {
683 print
'<div class="fichecenter"><div class="fichehalfleft">';
684 print
'<a name="builddoc"></a>';
686 $includedocgeneration = 1;
689 if ($user->hasRight(
'hrm',
'evaluation',
'read')) {
691 $relativepath = $objref.
'/'.$objref.
'.pdf';
692 $filedir = $conf->hrm->dir_output.
'/'.
$object->element.
'/'.$objref;
693 $urlsource = $_SERVER[
"PHP_SELF"].
"?id=".
$object->id;
694 $genallowed = $user->hasRight(
'hrm',
'evaluation',
'read');
695 $delallowed = $user->hasRight(
'hrm',
'evaluation',
'write');
696 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');
700 $linktoelem = $form->showLinkToObjectBlock($object,
null, array(
'evaluation'));
701 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
704 print
'</div><div class="fichehalfright">';
708 $morehtmlcenter =
dolGetButtonTitle($langs->trans(
'SeeAll'),
'',
'fa fa-bars imgforviewmode', DOL_URL_ROOT.
'/hrm/evaluation_agenda.php?id='.
$object->id);
711 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formactions.class.php';
713 $somethingshown = $formactions->showactions($object,
$object->element.
'@'.
$object->module, (is_object(
$object->thirdparty) ?
$object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlcenter);
715 print
'</div></div>';
724 $modelmail =
'evaluation';
725 $defaulttopic =
'InformationMessage';
726 $diroutput = $conf->hrm->dir_output;
727 $trackid =
'evaluation'.$object->id;
729 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()
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.
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.
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)
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.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
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 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.