33require
'../main.inc.php';
34require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
35require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
36require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
37require_once DOL_DOCUMENT_ROOT.
'/user/class/user.class.php';
38require_once DOL_DOCUMENT_ROOT.
'/hrm/class/job.class.php';
39require_once DOL_DOCUMENT_ROOT.
'/hrm/class/skill.class.php';
40require_once DOL_DOCUMENT_ROOT.
'/hrm/class/skillrank.class.php';
41require_once DOL_DOCUMENT_ROOT.
'/hrm/lib/hrm_skill.lib.php';
42require_once DOL_DOCUMENT_ROOT.
'/hrm/class/evaluation.class.php';
43require_once DOL_DOCUMENT_ROOT.
'/hrm/lib/hrm_evaluation.lib.php';
44require_once DOL_DOCUMENT_ROOT.
'/hrm/class/evaluationdet.class.php';
56$langs->loadLangs(array(
'hrm',
'companies',
'other'));
59$action =
GETPOST(
'action',
'aZ09');
60$confirm =
GETPOST(
'confirm',
'alpha');
62$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'skillcard';
63$backtopage =
GETPOST(
'backtopage',
'alpha');
64$backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
67$TSkillsToAdd =
GETPOST(
'fk_skill',
'array');
68$objecttype =
GETPOST(
'objecttype',
'alpha');
69$TNote =
GETPOST(
'TNote',
'array');
72if (empty($objecttype)) {
76$TAuthorizedObjects = array(
'job',
'user');
81if (in_array($objecttype, $TAuthorizedObjects)) {
82 if ($objecttype ==
'job') {
84 } elseif ($objecttype ==
'user') {
93$hookmanager->initHooks(array(
'skilltab',
'globalcard'));
96include DOL_DOCUMENT_ROOT .
'/core/actions_fetchobject.inc.php';
97if (method_exists($object,
'loadPersonalConf')) {
102$permissiontoread = $user->hasRight(
'hrm',
'all',
'read');
103$permissiontoadd = $user->hasRight(
'hrm',
'all',
'write');
106if ($user->socid > 0) {
112if (!$permissiontoread) {
121$parameters = array();
122$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
124 setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
127if (empty($reshook)) {
130 $backurlforlist = DOL_URL_ROOT.
'/hrm/skill_list.php';
132 if (empty($backtopage) || ($cancel && empty($id))) {
133 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
134 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
135 $backtopage = $backurlforlist;
137 $backtopage = DOL_URL_ROOT.
'/hrm/skill_list.php?id=' . (
$id > 0 ?
$id :
'__ID__');
143 if ($action ==
'setnational_registration_number' && $permissiontoadd) {
144 $object->national_registration_number = (string)
GETPOST(
'national_registration_number',
'alphanohtml');
145 $result =
$object->update($user);
151 if ($action ==
'addSkill' && $permissiontoadd) {
155 if (empty($TSkillsToAdd)) {
156 setEventMessage(
'ErrNoSkillSelected',
'errors');
161 foreach ($TSkillsToAdd as $k => $v) {
163 $skillAdded->fk_skill = (int) $v;
164 $skillAdded->fk_object =
$id;
165 $skillAdded->objecttype = $objecttype;
166 $ret = $skillAdded->create($user);
169 setEventMessages($skillAdded->error,
null,
'errors');
171 } elseif ($objecttype ==
'job') {
173 $sql_eval =
"SELECT e.rowid FROM ".MAIN_DB_PREFIX.
"hrm_evaluation as e";
174 $sql_eval .=
" WHERE e.status = 0 ";
176 $sql_eval .=
" AND e.fk_job = ".(int)
$object->id;
177 $result = $db->query($sql_eval);
178 $numEvals = $db->num_rows($result);
180 while ($i < $numEvals) {
181 $objEval = $db->fetch_object($result);
183 $line->fk_evaluation = $objEval->rowid;
184 $line->fk_skill = (int) $v;
185 $line->required_rank = 0;
188 $res = $line->create($user);
191 setEventMessages($line->error,
null,
'errors');
199 setEventMessages($langs->trans(
"SaveAddSkill"),
null);
205 } elseif ($action ==
'saveSkill' && $permissiontoadd) {
206 if (!empty($TNote)) {
209 $maxrank =
getDolGlobalInt(
'HRM_MAXRANK', Skill::DEFAULT_MAX_RANK_PER_SKILL);
210 foreach ($TNote as $skillId => $rank) {
211 $newrank = ($rank ==
"NA" ? -1 : (int) $rank);
212 if ($newrank < -1 || $newrank > $maxrank) {
214 $langs->load(
"errors");
215 setEventMessages($langs->trans(
"ErrorBadValueForParameter", $rank,
'TNote['.((int) $skillId).
']'),
null,
'errors');
220 $TSkills = $skill->fetchAll(
'ASC',
't.rowid', 0, 0,
'(fk_object:=:'.((
int)
$id).
") AND (objecttype:=:'".$db->escape($objecttype).
"') AND (fk_skill:=:".((int) $skillId).
')');
221 '@phan-var-force SkillRank[] $tSkills';
222 if (is_array($TSkills) && !empty($TSkills)) {
223 foreach ($TSkills as $tmpObj) {
224 $tmpObj->rankorder = $rank;
225 $ret = $tmpObj->update($user);
228 setEventMessages($tmpObj->error,
null,
'errors');
231 if (!$error && $objecttype ==
'job') {
233 $sql_eval =
"SELECT e.rowid FROM ".MAIN_DB_PREFIX.
"hrm_evaluation as e";
234 $sql_eval .=
" WHERE e.status = 0 ";
235 $sql_eval .=
" AND e.entity = ".getEntity(
$object->element);
236 $sql_eval .=
" AND e.fk_job = ".(int)
$object->id;
237 $result = $db->query($sql_eval);
238 $numEvals = $db->num_rows($result);
240 while ($i < $numEvals) {
241 $objEval = $db->fetch_object($result);
243 $lines = $line->fetchAll(
'',
'', 0, 0,
'((fk_skill:=:'.((
int) $tmpObj->fk_skill).
') AND (fk_evaluation:=:'.((
int) $objEval->rowid).
'))');
244 if (is_array($lines)) {
245 foreach ($lines as $key => $evalline) {
247 if (is_object($evalline) && $evalline instanceof
EvaluationLine) {
248 $evalline->required_rank = $rank;
249 $ret = $evalline->update($user);
252 setEventMessages($evalline->error,
null,
'errors');
259 setEventMessages($line->error,
null,
'errors');
268 setEventMessages($skill->error,
null,
'errors');
273 setEventMessages($langs->trans(
"SaveLevelSkill"),
null);
278 header(
"Location: " . DOL_URL_ROOT.
'/hrm/skill_tab.php?id=' .
$id.
'&objecttype='.urlencode($objecttype));
281 } elseif ($action ==
'confirm_deleteskill' && $confirm ==
'yes' && $permissiontoadd) {
285 $ret = $skillToDelete->fetch($lineid);
288 $sql_eval =
"SELECT e.rowid FROM ".MAIN_DB_PREFIX.
"hrm_evaluation as e";
289 $sql_eval .=
" WHERE e.status = 0 ";
290 $sql_eval .=
" AND e.entity = ".getEntity(
$object->element);
291 $sql_eval .=
" AND e.fk_job = ".(int)
$object->id;
292 $result = $db->query($sql_eval);
293 $numEvals = $db->num_rows($result);
295 while ($i < $numEvals) {
296 $objEval = $db->fetch_object($result);
298 $lines = $line->fetchAll(
'',
'', 0, 0,
'((fk_skill:=:'.((
int) $skillToDelete->fk_skill).
') AND (fk_evaluation:=:'.((
int) $objEval->rowid).
'))');
299 if (is_array($lines)) {
300 foreach ($lines as $key => $evalline) {
302 if (is_object($evalline) && $evalline instanceof
EvaluationLine) {
303 $ret = $evalline->delete($user);
306 setEventMessages($evalline->error,
null,
'errors');
313 setEventMessages($line->error,
null,
'errors');
320 setEventMessages($skillToDelete->error,
null,
'errors');
323 $ret = $skillToDelete->delete($user);
326 setEventMessages($skillToDelete->error,
null,
'errors');
330 setEventMessages($langs->trans(
"DeleteSkill"),
null);
343$form =
new Form($db);
347$title = $langs->trans(
"RequiredSkills");
353if (
$object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
354 $res =
$object->fetch_optionals();
357 if ($objecttype ==
'job') {
358 require_once DOL_DOCUMENT_ROOT .
'/hrm/lib/hrm_job.lib.php';
361 } elseif ($objecttype ==
"user") {
362 require_once DOL_DOCUMENT_ROOT .
"/core/lib/usergroups.lib.php";
375 if ($action ==
'ask_deleteskill') {
376 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"] .
'?id=' .
$object->id .
'&objecttype=' . $objecttype .
'&lineid=' . $lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteskill',
'', 0, 1);
386 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
387 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
388 if (empty($reshook)) {
389 $formconfirm .= $hookmanager->resPrint;
390 } elseif ($reshook > 0) {
391 $formconfirm = $hookmanager->resPrint;
400 if ($objecttype ==
'job') {
401 $linkback =
'<a href="' .
dol_buildpath(
'/hrm/job_list.php', 1) .
'?restore_lastsearch_values=1' . (!empty($socid) ?
'&socid=' . $socid :
'') .
'">' . $langs->trans(
"BackToList") .
'</a>';
403 $morehtmlref =
'<div class="refid">';
404 $morehtmlref .=
$object->label;
405 $morehtmlref .=
'</div>';
407 dol_banner_tab($object,
'id', $linkback, 1,
'rowid',
'rowid', $morehtmlref);
408 } elseif ($listLink !==
null) {
409 $linkback =
'<a href="' . $listLink .
'?restore_lastsearch_values=1' . (!empty($socid) ?
'&socid=' . $socid :
'') .
'">' . $langs->trans(
"BackToList") .
'</a>';
411 $morehtmlref =
'<a href="'.DOL_URL_ROOT.
'/user/vcard.php?id='.
$object->id.
'&output=file&file='.urlencode(
dol_sanitizeFileName(
$object->getFullName($langs).
'.vcf')).
'" class="refid" tabindex="-1" rel="noopener">';
412 $morehtmlref .= img_picto($langs->trans(
"Download").
' '.$langs->trans(
"VCard"),
'vcard',
'class="valignmiddle marginleftonly paddingrightonly"');
413 $morehtmlref .=
'</a>';
415 $urltovirtualcard =
'/user/virtualcard.php?id='.((int)
$object->id);
416 $morehtmlref .=
dolButtonToOpenUrlInDialogPopup(
'publicvirtualcard', $langs->trans(
"PublicVirtualCardUrl").
' - '.
$object->getFullName($langs), img_picto($langs->trans(
"PublicVirtualCardUrl"),
'card',
'class="valignmiddle marginleftonly paddingrightonly"'), $urltovirtualcard,
'',
'nohover');
418 dol_banner_tab($object,
'id', $linkback, 1,
'rowid',
'rowid', $morehtmlref,
'&objecttype='.$objecttype);
422 $static_skill =
new Skill($db);
423 $TAllSkills = $static_skill->fetchAll();
426 $TAllSkillsFormatted = array();
427 if (!empty($TAllSkills)) {
428 foreach ($TAllSkills as $k => $v) {
429 $TAllSkillsFormatted[$k] = $v->label;
435 $sql_skill =
"SELECT sr.fk_object, sr.rowid, s.label,s.skill_type, sr.rankorder, sr.fk_skill";
436 $sql_skill .=
" FROM ".MAIN_DB_PREFIX.
"hrm_skillrank AS sr";
437 $sql_skill .=
" JOIN ".MAIN_DB_PREFIX.
"hrm_skill AS s ON sr.fk_skill = s.rowid";
438 $sql_skill .=
" AND sr.fk_object = ".((int) $id);
439 $result = $db->query($sql_skill);
440 $numSkills = $db->num_rows($result);
441 $TSkillsJob = array();
442 for ($i = 0; $i < $numSkills; $i++) {
443 $objSkillRank = $db->fetch_object($result);
444 $TSkillsJob[] = $objSkillRank;
447 $TAlreadyUsedSkill = array();
448 if (is_array($TSkillsJob) && !empty($TSkillsJob)) {
449 foreach ($TSkillsJob as $skillElement) {
450 $TAlreadyUsedSkill[$skillElement->fk_skill] = $skillElement->fk_skill;
454 print
'<div class="fichecenter">';
455 print
'<div class="fichehalfleft">';
457 print
'<div class="underbanner clearboth"></div>';
458 print
'<table class="border centpercent tableforfield">'.
"\n";
460 if ($objecttype ==
'job') {
465 $object->fields[
'label'][
'visible'] = 0;
466 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_view.tpl.php';
469 include DOL_DOCUMENT_ROOT .
'/core/tpl/extrafields_view.tpl.php';
472 print
'<tr><td class="titlefieldmiddle">'.$langs->trans(
"Login").
'</td>';
474 print
'<td class="error">';
475 print $langs->trans(
"LoginAccountDisableInDolibarr");
480 if (property_exists($object,
'admin')) {
482 $addadmin .= img_picto($langs->trans(
"SuperAdministratorDesc"),
"superadmin",
'class="paddingleft valignmiddle"');
483 } elseif (!empty(
$object->admin)) {
484 $addadmin .= img_picto($langs->trans(
"AdministratorDesc"),
"admin",
'class="paddingleft valignmiddle"');
492 $object->fields[
'label'][
'visible'] = 0;
493 $object->fields[
'firstname'][
'visible'] = 0;
494 $object->fields[
'lastname'][
'visible'] = 0;
498 print
'<tr><td class="titlefield">'.$langs->trans(
"RefEmployee").
'</td>';
499 print
'<td class="error">';
505 print
'<tr><td class="titlefield">'.$langs->trans(
"NationalRegistrationNumber").
' <a class="editfielda" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&objecttype=user&action=editnational_registration_number&token='.
newToken().
'">'.img_picto($langs->trans(
"Edit"),
'edit').
'</a></td>';
507 if ($action ==
'editnational_registration_number') {
508 $ret =
'<form method="post" action="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&objecttype=user">';
509 $ret .=
'<input type="hidden" name="action" value="setnational_registration_number">';
510 $ret .=
'<input type="hidden" name="token" value="'.newToken().
'">';
511 $ret .=
'<input type="hidden" name="id" value="'.$object->id.
'">';
512 $ret .=
'<input type="text" name="national_registration_number" value="'.$object->national_registration_number.
'">';
513 $ret .=
'<input type="submit" class="button smallpaddingimp" name="modify" value="'.$langs->trans(
"Modify").
'"> ';
514 $ret .=
'<input type="submit" class="button smallpaddingimp button-cancel" name="cancel" value="'.$langs->trans(
"Cancel").
'">';
530 print
'<div class="clearboth"></div><br>';
532 if ($objecttype !=
'user' && $permissiontoadd) {
535 print
'<form name="addSkill" method="post" action="' . $_SERVER[
'PHP_SELF'] .
'">';
536 print
'<input type="hidden" name="objecttype" value="' . $objecttype .
'">';
537 print
'<input type="hidden" name="id" value="' .
$id .
'">';
538 print
'<input type="hidden" name="action" value="addSkill">';
539 print
'<input type="hidden" name="token" value="'.newToken().
'">';
540 print
'<div class="div-table-responsive-no-min">';
541 print
'<table id="tablelines" class="noborder noshadow" width="100%">';
542 print
'<tr><td style="width:90%">' . $langs->trans(
'AddSkill') .
'</td><td style="width:10%"></td></tr>';
545 print img_picto(
'',
'shapes',
'class="pictofixedwidth"');
546 print $form->multiselectarray(
'fk_skill', array_diff_key($TAllSkillsFormatted, $TAlreadyUsedSkill), array(), 0, 0,
'widthcentpercentminusx') .
'</td>';
547 print
'<td><input class="button reposition" type="submit" value="' . $langs->trans(
'Add') .
'"></td>';
555 print
'<div class="clearboth"></div>';
557 if ($objecttype !=
'user' && $permissiontoadd) {
558 print
'<form name="saveSkill" method="post" action="' . $_SERVER[
'PHP_SELF'] .
'">';
559 print
'<input type="hidden" name="objecttype" value="' . $objecttype .
'">';
560 print
'<input type="hidden" name="id" value="' .
$id .
'">';
561 print
'<input type="hidden" name="token" value="'.newToken().
'">';
562 print
'<input type="hidden" name="action" value="saveSkill">';
564 if ($objecttype !=
'user') {
565 print
'<div class="div-table-responsive-no-min">';
566 print
'<table id="tablelines" class="noborder centpercent" width="100%">';
567 print
'<tr class="liste_titre">';
568 print
'<th>'.$langs->trans(
'SkillType').
'</th>';
569 print
'<th>'.$langs->trans(
'Label').
'</th>';
570 print
'<th>'.$langs->trans(
'Description').
'</th>';
571 print
'<th>'.$langs->trans($objecttype ===
'job' ?
'RequiredRank' :
'EmployeeRank').
'</th>';
572 if ($objecttype ===
'job') {
573 print
'<th class="linecoledit"></th>';
574 print
'<th class="linecoldelete"></th>';
577 if (!is_array($TSkillsJob) || empty($TSkillsJob)) {
578 print
'<tr><td><span class="opacitymedium">' . $langs->trans(
"NoRecordFound") .
'</span></td></tr>';
580 $sk =
new Skill($db);
581 foreach ($TSkillsJob as $skillElement) {
582 $sk->fetch((
int) $skillElement->fk_skill);
586 print
'</td><td class="linecolfk_skill">';
587 print $sk->getNomUrl(1);
590 print $sk->description;
591 print
'</td><td class="linecolrank">';
592 print
displayRankInfos($skillElement->rankorder, $skillElement->fk_skill,
'TNote', $objecttype ==
'job' && $permissiontoadd ?
'edit' :
'view');
594 if ($objecttype !=
'user' && $permissiontoadd) {
595 print
'<td class="linecoledit"></td>';
596 print
'<td class="linecoldelete">';
597 print
'<a class="reposition" href="' . $_SERVER[
"PHP_SELF"] .
'?id=' . $skillElement->fk_object .
'&objecttype=' . $objecttype .
'&action=ask_deleteskill&lineid=' . $skillElement->rowid .
'&token='.newToken().
'">';
607 if ($objecttype !=
'user' && $permissiontoadd) {
608 print
'<td><input class="button pull-right" type="submit" value="' . $langs->trans(
'SaveRank') .
'"></td>';
611 if ($objecttype !=
'user' && $permissiontoadd) {
618 if ($objecttype ==
'user' && $permissiontoadd) {
621 $sql =
"select e.rowid,e.ref,e.fk_user,e.fk_job,e.date_eval,ed.rankorder,ed.required_rank,ed.fk_skill,s.label";
622 $sql .=
" FROM ".MAIN_DB_PREFIX.
"hrm_evaluation as e";
623 $sql .=
", ".MAIN_DB_PREFIX.
"hrm_evaluationdet as ed";
624 $sql .=
", ".MAIN_DB_PREFIX.
"hrm_skill as s";
625 $sql .=
" WHERE e.rowid = ed.fk_evaluation";
626 $sql .=
" AND s.rowid = ed.fk_skill";
627 $sql .=
" AND e.fk_user = ".((int) $id);
629 $resql = $db->query($sql);
630 $num = $db->num_rows($resql);
633 $sqlEval =
"SELECT COUNT(rowid) as nb FROM ".MAIN_DB_PREFIX.
"hrm_evaluation as e";
634 $sqlEval .=
" WHERE e.fk_user = ".((int) $id);
635 $rslt = $db->query($sqlEval);
636 $tmpobj = $db->fetch_object($rslt);
639 $numEval = $tmpobj->nb;
643 print_barre_liste($langs->trans(
"Evaluations"), $page, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $numEval, $numEval, $evaltmp->picto, 0);
645 print
'<div class="div-table-responsive-no-min">';
646 print
'<table id="tablelines" class="noborder centpercent">';
647 print
'<tr class="liste_titre">';
648 print
'<th>'.$langs->trans(
'Label').
'</th>';
649 print
'<th>'.$langs->trans(
'Description').
'</th>';
650 print
'<th>'.$langs->trans(
'DateEval').
'</th>';
651 print
'<th>'.$langs->trans(
'Status').
'</th>';
652 print
'<th>'.$langs->trans(
"Result").
' ' .$form->textwithpicto(
'',
GetLegendSkills(), 1) .
'</th>';
655 print
'<tr><td><span class="opacitymedium">' . $langs->trans(
"NoRecordFound") .
'</span></td></tr>';
662 $obj = $db->fetch_object($resql);
670 foreach ($resultArray as $object) {
671 if (is_array($object)) {
672 $evaltmp->fetch($object[0]->rowid);
673 $evaltmp->id =
$object[0]->rowid;
674 $evaltmp->ref =
$object[0]->ref;
675 $job->fetch($object[0]->fk_job);
678 $evaltmp->fetch(
$object->rowid);
684 print
'<td class="nowraponall">';
685 print $evaltmp->getNomUrl(1);
686 print
'</td><td class="linecolfk_skill">';
687 print $job->getNomUrl(1);
692 print $evaltmp->getLibStatut(2);
694 print
'<td class="linecolrank tdoverflowmax300">';
695 if ($job->status == $job::STATUS_VALIDATED) {
696 if (!is_array($object)) {
699 foreach ($object as $skill) {
700 print $skill->result;
$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 for EvaluationLine.
static typeCodeToLabel($code)
Class to manage Dolibarr users.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1, $includequotes=0, $allowdash=0)
Clean a string to use it as a file name.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0, $nodefault=0)
Return value of a param into GET or POST supervariable.
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false, $decorate=0)
Output date in a string format according to outputlangs (or langs if not defined).
isModEnabled($module)
Is Dolibarr module enabled.
getEntity($element, $shared=1, $currentobject=null)
Get list of entity id to use.
getRankOrderResults($obj)
getGroupedEval($objects)
Grouped rows with same ref in array.
jobPrepareHead($object)
Prepare array of tabs for Job.
displayRankInfos($selected_rank, $fk_skill, $inputname='TNote', $mode='view')
Used to print ranks of a skill into several case, view or edit pour js necessary to select a rank.
showValueWithClipboardCPButton($valuetocopy, $showonlyonhover=1, $texttoshow='')
Create a button to copy $valuetocopy in the clipboard (for copy and paste feature).
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.
dolButtonToOpenUrlInDialogPopup($name, $label, $buttonstring, $url, $disabled='', $morecss='classlink button bordertransp', $jsonopen='', $jsonclose='', $accesskey='')
Return HTML code to output a button to open a dialog popup box.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.
user_prepare_head(User $object)
Prepare array with list of tabs.