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'),
'',
'',
'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];
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');
177 foreach (
$object->lines as $key => $line) {
179 if (count($SkillrecordsForActiveUser) == 0) {
181 $resCreate = $newSkill->cloneFromCurrentSkill($line,
$object->fk_user);
183 if ($resCreate <= 0) {
185 setEventMessage($langs->trans(
'ErrorCreateUserSkill'), $line->fk_skill);
191 foreach ($SkillrecordsForActiveUser as $k => $sr) {
192 if ($sr->fk_skill == $line->fk_skill) {
200 $updSkill = $SkillrecordsForActiveUser[$k];
202 $updSkill->rankorder = $line->rankorder;
203 $updSkill->update($user);
206 $resCreate = $newSkill->cloneFromCurrentSkill($line,
$object->fk_user);
210 if (empty($errors)) {
211 $object->setStatut(Evaluation::STATUS_CLOSED);
216 if ($action ==
'reopen' && $permissiontoadd) {
218 $object->setStatut(Evaluation::STATUS_VALIDATED);
222 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
225 if ($action ==
'remove_file_comfirm' && $permissiontoadd) {
227 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
229 $upload_dir = $conf->hrm->dir_output;
230 $file = $upload_dir.
'/'.
GETPOST(
'file');
249$form =
new Form($db);
253$title = $langs->trans(
"Evaluation");
256$css[] =
'/hrm/css/style.css';
257llxHeader(
'', $title, $help_url,
'', 0, 0,
'', $css);
259print
'<script type="text/javascript" language="javascript">
260 $(document).ready(function() {
261 $("#btn_valid").click(function(){
262 var form = $("#form_save_rank");
267 url: form.attr("action"),
268 data: form.serialize(),
270 }).always(function() {
271 window.location.href = "'.dol_buildpath(
'/hrm/evaluation_card.php', 1).
'?id='.
$id.
'&action=validate&token='.
newToken().
'";
280if ($action ==
'create') {
283 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
284 print
'<input type="hidden" name="token" value="'.newToken().
'">';
285 print
'<input type="hidden" name="action" value="add">';
287 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
289 if ($backtopageforcancel) {
290 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
295 print
'<table class="border centpercent tableforfieldcreate">'.
"\n";
298 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
301 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
303 print
'</table>'.
"\n";
307 print $form->buttonsSaveCancel(
"Create",
"Cancel");
313if (($id || $ref) && $action ==
'edit') {
314 print
load_fiche_titre($langs->trans(
"Evaluation"),
'',
'object_'.$object->picto);
316 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
317 print
'<input type="hidden" name="token" value="'.newToken().
'">';
318 print
'<input type="hidden" name="action" value="update">';
319 print
'<input type="hidden" name="id" value="'.$object->id.
'">';
321 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
323 if ($backtopageforcancel) {
324 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
329 print
'<table class="border centpercent tableforfieldedit">'.
"\n";
332 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
335 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
341 print $form->buttonsSaveCancel();
347if (
$object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
348 $res =
$object->fetch_optionals();
355 if ($action ==
'validate' && $permissiontovalidate) {
360 $ref = substr(
$object->ref, 1, 4);
361 if ($ref ==
'PROV') {
362 $numref =
$object->getNextNumRef();
363 if (empty($numref)) {
371 $text = $langs->trans(
'ConfirmValidateEvaluation', $numref);
372 if (isModEnabled(
'notification')) {
373 require_once DOL_DOCUMENT_ROOT.
'/core/class/notify.class.php';
374 $notify =
new Notify($db);
376 $text .= $notify->confirmMessage(
'HRM_EVALUATION_VALIDATE', 0, $object);
380 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ValidateEvaluation'), $text,
'confirm_validate',
'', 0, 1);
385 if ($action ==
'delete') {
386 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'DeleteEvaluation'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
389 if ($action ==
'deleteline') {
390 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
393 if ($action ==
'clone') {
395 $formquestion = array();
396 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk',
$object->ref),
'confirm_clone', $formquestion,
'yes', 1);
400 if ($action ==
'xxx') {
401 $text = $langs->trans(
'ConfirmActionMyObject',
$object->ref);
403 $formquestion = array();
405 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'XXX'), $text,
'confirm_xxx', $formquestion, 0, 1, 220);
409 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
410 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
411 if (empty($reshook)) {
412 $formconfirm .= $hookmanager->resPrint;
413 } elseif ($reshook > 0) {
414 $formconfirm = $hookmanager->resPrint;
423 $linkback =
'<a href="'.dol_buildpath(
'/hrm/evaluation_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
425 $morehtmlref =
'<div class="refidno">';
426 $morehtmlref .= $langs->trans(
'Label').
' : '.
$object->label;
427 $u_position =
new User(($db));
428 $u_position->fetch(
$object->fk_user);
429 $morehtmlref .=
'<br>'.$u_position->getNomUrl(1);
432 $morehtmlref .=
'<br>'.$langs->trans(
'JobProfile').
' : '.$job->getNomUrl(1);
433 $morehtmlref .=
'</div>';
437 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
440 print
'<div class="fichecenter">';
441 print
'<div class="fichehalfleft">';
442 print
'<div class="underbanner clearboth"></div>';
443 print
'<table class="border centpercent tableforfield">'.
"\n";
445 $object->fields[
'label'][
'visible'] = 0;
446 $object->fields[
'fk_user'][
'visible'] = 0;
447 $object->fields[
'fk_job'][
'visible'] = 0;
448 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_view.tpl.php';
451 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
457 print
'<div class="clearboth"></div>';
464 if (!empty(
$object->table_element_line) &&
$object->status == Evaluation::STATUS_DRAFT) {
466 $result =
$object->getLinesArray();
473 print
' <form name="form_save_rank" id="form_save_rank" action="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.(($action !=
'editline') ?
'' :
'#line_'.
GETPOSTINT(
'lineid')).
'" method="POST">
474 <input type="hidden" name="token" value="' .
newToken().
'">
475 <input type="hidden" name="action" value="saveSkill">
476 <input type="hidden" name="mode" value="">
477 <input type="hidden" name="page_y" value="">
478 <input type="hidden" name="id" value="' .
$object->id.
'">
481 if (!empty($conf->use_javascript_ajax) &&
$object->status == 0) {
482 include DOL_DOCUMENT_ROOT.
'/core/tpl/ajaxrow.tpl.php';
485 $conf->modules_parts[
'tpl'][
'hrm'] =
'/hrm/core/tpl/';
487 print
'<div class="div-table-responsive-no-min">';
488 if (!empty(
$object->lines) || (
$object->status == $object::STATUS_DRAFT && $permissiontoadd && $action !=
'selectlines' && $action !=
'editline')) {
489 print
'<table id="tablelines" class="noborder noshadow centpercent">';
497 print
'<tr><td colspan="4"><span class="opacitymedium">'.img_warning().
' '.$langs->trans(
"TheJobProfileHasNoSkillsDefinedFixBefore").
'</td></tr>';
515 if (!empty(
$object->lines) || (
$object->status == $object::STATUS_DRAFT && $permissiontoadd && $action !=
'selectlines' && $action !=
'editline')) {
527 if (
$object->status != Evaluation::STATUS_DRAFT) {
532 $sql .=
' e.date_creation,';
533 $sql .=
' e.fk_job,';
534 $sql .=
' j.label as "refjob",';
535 $sql .=
' ed.fk_skill,';
537 $sql .=
' sk.label as "skilllabel",';
538 $sql .=
' sk.skill_type,';
539 $sql .=
' sk.description,';
540 $sql .=
' ed.rankorder,';
541 $sql .=
' ed.required_rank,';
542 $sql .=
' ed.rankorder as "userRankForSkill",';
543 $sql .=
' skdet_user.description as "userRankForSkillDesc",';
544 $sql .=
' skdet_required.description as "required_rank_desc"';
546 $sql .=
' FROM ' . MAIN_DB_PREFIX .
'hrm_evaluation as e';
547 $sql .=
' LEFT JOIN ' . MAIN_DB_PREFIX .
'hrm_evaluationdet as ed ON e.rowid = ed.fk_evaluation';
548 $sql .=
' LEFT JOIN ' . MAIN_DB_PREFIX .
'hrm_job as j ON e.fk_job = j.rowid';
549 $sql .=
' LEFT JOIN ' . MAIN_DB_PREFIX .
'hrm_skill as sk ON ed.fk_skill = sk.rowid';
550 $sql .=
' INNER JOIN ' . MAIN_DB_PREFIX .
'hrm_skilldet as skdet_user ON (skdet_user.fk_skill = sk.rowid AND skdet_user.rankorder = ed.rankorder)';
552 $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)';
553 $sql .=
" WHERE e.rowid =" . ((int)
$object->id);
557 $resql = $db->query($sql);
562 while ($obj = $db->fetch_object($resql)) {
565 $Tab[$num]->skill_type = $obj->skill_type;
566 $Tab[$num]->skill_id = $obj->fk_skill;
567 $Tab[$num]->skilllabel = $obj->skilllabel;
568 $Tab[$num]->description = $obj->description;
569 $Tab[$num]->userRankForSkill =
'<span title="'.$obj->userRankForSkillDesc.
'" class="radio_js_bloc_number TNote_1">' . $obj->userRankForSkill .
'</span>';
570 $Tab[$num]->required_rank =
'<span title="'.$obj->required_rank_desc.
'" class="radio_js_bloc_number TNote_1">' . $obj->required_rank .
'</span>';
572 if ($obj->userRankForSkill > $obj->required_rank) {
573 $title = $langs->trans(
'MaxlevelGreaterThanShort');
574 $class .=
'veryhappy diffnote';
575 } elseif ($obj->userRankForSkill == $obj->required_rank) {
576 $title = $langs->trans(
'MaxLevelEqualToShort');
577 $class .=
'happy diffnote';
578 } elseif ($obj->userRankForSkill < $obj->required_rank) {
579 $title = $langs->trans(
'MaxLevelLowerThanShort');
583 $Tab[$num]->result =
'<span title="'.$title.
'" class="classfortooltip ' . $class .
' note"> </span>';
590 print
'<div class="div-table-responsive-no-min">';
591 print
'<table id="tablelines" class="noborder noshadow centpercent">';
593 print
'<tr class="liste_titre">';
594 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"TypeSkill") .
' </th>';
595 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"Label") .
'</th>';
596 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"Description") .
'</th>';
597 print
'<th style="width:auto;text-align:center" class="liste_titre">' . $langs->trans(
"EmployeeRank") .
'</th>';
598 print
'<th style="width:auto;text-align:center" class="liste_titre">' . $langs->trans(
"RequiredRank") .
'</th>';
599 print
'<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans(
"Result") .
' ' .$form->textwithpicto(
'',
GetLegendSkills(), 1) .
'</th>';
602 $sk =
new Skill($db);
603 foreach ($Tab as $t) {
604 $sk->fetch($t->skill_id);
608 print
' <td>' . $sk->getNomUrl(1) .
'</td>';
609 print
' <td>' . $t->description .
'</td>';
610 print
' <td align="center">' . $t->userRankForSkill .
'</td>';
611 print
' <td align="center">' . $t->required_rank .
'</td>';
612 print
' <td>' . $t->result .
'</td>';
621 $(document).ready(
function() {
622 $(
".radio_js_bloc_number").tooltip();
632 if ($action !=
'presend' && $action !=
'editline') {
633 print
'<div class="tabsAction">'.
"\n";
634 $parameters = array();
635 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
640 if (empty($reshook)) {
642 if (empty($user->socid)) {
643 print
dolGetButtonAction(
'', $langs->trans(
'SendMail'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=presend&mode=init&token='.
newToken().
'#formmailbeforetitle');
647 if (
$object->status == $object::STATUS_VALIDATED) {
648 print
dolGetButtonAction(
'', $langs->trans(
'SetToDraft'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=confirm_setdraft&confirm=yes&token='.
newToken(),
'', $permissiontoadd);
649 print
dolGetButtonAction(
'', $langs->trans(
'Close'),
'close', $_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=close&token='.
newToken(),
'', $permissiontodelete || (
$object->status == $object::STATUS_CLOSED && $permissiontoclose));
650 } elseif (
$object->status != $object::STATUS_CLOSED) {
651 print
dolGetButtonAction(
'', $langs->trans(
'Modify'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=edit&token='.
newToken(),
'', $permissiontoadd);
654 if (
$object->status == $object::STATUS_CLOSED) {
655 print
dolGetButtonAction($langs->trans(
'ReOpen'),
'',
'default', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=reopen&token='.
newToken(),
'', $permissiontoadd);
660 if (
$object->status == $object::STATUS_DRAFT) {
662 print
dolGetButtonAction($langs->trans(
'Save').
' '.$langs->trans(
'and').
' '.$langs->trans(
'Valid'),
'',
'default',
'#',
'btn_valid', $permissiontovalidate);
664 $langs->load(
"errors");
665 print
dolGetButtonAction($langs->trans(
"ErrorAddAtLeastOneLineFirst"), $langs->trans(
"Validate"),
'default',
'#',
'', 0);
671 print
dolGetButtonAction($langs->trans(
'Delete'),
'',
'delete', $_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=delete&token='.
newToken(),
'', $permissiontodelete);
679 if (
GETPOST(
'modelselected')) {
683 if ($action !=
'presend') {
684 print
'<div class="fichecenter"><div class="fichehalfleft">';
685 print
'<a name="builddoc"></a>';
687 $includedocgeneration = 1;
690 if ($user->hasRight(
'hrm',
'evaluation',
'read')) {
692 $relativepath = $objref.
'/'.$objref.
'.pdf';
693 $filedir = $conf->hrm->dir_output.
'/'.
$object->element.
'/'.$objref;
694 $urlsource = $_SERVER[
"PHP_SELF"].
"?id=".
$object->id;
695 $genallowed = $user->hasRight(
'hrm',
'evaluation',
'read');
696 $delallowed = $user->hasRight(
'hrm',
'evaluation',
'write');
697 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');
701 $linktoelem = $form->showLinkToObjectBlock($object,
null, array(
'evaluation'));
702 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
705 print
'</div><div class="fichehalfright">';
709 $morehtmlcenter =
dolGetButtonTitle($langs->trans(
'SeeAll'),
'',
'fa fa-bars imgforviewmode', DOL_URL_ROOT.
'/hrm/evaluation_agenda.php?id='.
$object->id);
712 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formactions.class.php';
714 $somethingshown = $formactions->showactions($object,
$object->element.
'@'.
$object->module, (is_object(
$object->thirdparty) ?
$object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlcenter);
716 print
'</div></div>';
725 $modelmail =
'evaluation';
726 $defaulttopic =
'InformationMessage';
727 $diroutput = $conf->hrm->dir_output;
728 $trackid =
'evaluation'.$object->id;
730 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.
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.