31require
'../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/skill.class.php';
36require_once DOL_DOCUMENT_ROOT .
'/hrm/lib/hrm_skill.lib.php';
40$langs->loadLangs(array(
'hrm',
'other',
'products'));
45$action =
GETPOST(
'action',
'aZ09');
46$confirm =
GETPOST(
'confirm',
'alpha');
47$cancel =
GETPOST(
'cancel',
'aZ09');
48$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'skillcard';
49$backtopage =
GETPOST(
'backtopage',
'alpha');
50$backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
57$hookmanager->initHooks(array(
'skillcard',
'globalcard'));
60$extrafields->fetch_name_optionals_label(
$object->table_element);
62$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
66$search_all =
GETPOST(
"search_all",
'alpha');
68foreach (
$object->fields as $key => $val) {
69 if (
GETPOST(
'search_' . $key,
'alpha')) {
70 $search[$key] =
GETPOST(
'search_' . $key,
'alpha');
74if (empty($action) && empty($id) && empty($ref)) {
79include DOL_DOCUMENT_ROOT .
'/core/actions_fetchobject.inc.php';
82$permissiontoread = $user->hasRight(
'hrm',
'all',
'read');
83$permissiontoadd = $user->hasRight(
'hrm',
'all',
'write');
84$permissiontodelete = $user->hasRight(
'hrm',
'all',
'delete');
85$upload_dir = $conf->hrm->multidir_output[isset(
$object->entity) ?
$object->entity : 1] .
'/skill';
92if (empty($conf->hrm->enabled)) {
95if (!$permissiontoread || ($action ===
'create' && !$permissiontoadd)) {
99$MaxNumberSkill =
getDolGlobalInt(
'HRM_MAXRANK', Skill::DEFAULT_MAX_RANK_PER_SKILL);
106$parameters = array();
107$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
112if (empty($reshook)) {
115 $backurlforlist = DOL_URL_ROOT.
'/hrm/skill_list.php';
117 if (empty($backtopage) || ($cancel && empty($id))) {
118 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
119 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
120 $backtopage = $backurlforlist;
122 $backtopage = DOL_URL_ROOT.
'/hrm/skill_card.php?id=' . ($id > 0 ? $id :
'__ID__');
127 $triggermodname =
'HRM_SKILL_MODIFY';
132 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
135 $skilldetArray =
GETPOST(
"descriptionline",
"array:alphanohtml");
138 if (is_array($skilldetArray) && count($skilldetArray) > 0) {
139 foreach ($skilldetArray as $key => $SkValueToUpdate) {
141 $res = $skilldetObj->fetch($key);
143 $skilldetObj->description = $SkValueToUpdate;
144 $resupd = $skilldetObj->update($user);
155 include DOL_DOCUMENT_ROOT .
'/core/actions_dellink.inc.php';
158 include DOL_DOCUMENT_ROOT .
'/core/actions_printing.inc.php';
164 include DOL_DOCUMENT_ROOT .
'/core/actions_builddoc.inc.php';
166 if ($action ==
'set_thirdparty' && $permissiontoadd) {
167 $object->setValueFrom(
'fk_soc',
GETPOSTINT(
'fk_soc'),
'',
'',
'date',
'', $user, $triggermodname);
169 if ($action ==
'classin' && $permissiontoadd) {
174 $triggersendname =
'HRM_SKILL_SENTBYMAIL';
175 $autocopy =
'MAIN_MAIL_AUTOCOPY_SKILL_TO';
176 $trackid =
'skill' .
$object->id;
177 include DOL_DOCUMENT_ROOT .
'/core/actions_sendmails.inc.php';
179 if ($action ==
'confirm_clone' && $confirm !=
'yes') {
183 if ($action ==
'confirm_clone' && $confirm ==
'yes' && $permissiontoadd) {
185 header(
"Location: ".$_SERVER[
"PHP_SELF"].
"?id=".$id);
195$form =
new Form($db);
199$title = $langs->trans(
"Skill");
205if ($action ==
'create') {
208 print
'<form method="POST" action="' . $_SERVER[
"PHP_SELF"] .
'">';
209 print
'<input type="hidden" name="token" value="' .
newToken() .
'">';
210 print
'<input type="hidden" name="action" value="add">';
211 $backtopage .= (strpos($backtopage,
'?') > 0 ?
'&' :
'?') .
"objecttype=job";
213 print
'<input type="hidden" name="backtopage" value="' . $backtopage .
'">';
215 if ($backtopageforcancel) {
216 print
'<input type="hidden" name="backtopageforcancel" value="' . $backtopageforcancel .
'">';
221 print
'<table class="border centpercent tableforfieldcreate">' .
"\n";
224 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_add.tpl.php';
227 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
234 print
'</table>' .
"\n";
238 print
'<div class="center">';
239 print
'<input type="submit" class="button" name="add" value="' .
dol_escape_htmltag($langs->trans(
"Create")) .
'">';
242 print
'<input type="' . ($backtopage ?
"submit" :
"button") .
'" class="button button-cancel" name="cancel" value="' .
dol_escape_htmltag($langs->trans(
"Cancel")) .
'"' . ($backtopage ?
'' :
' onclick="history.go(-1)"') .
'>';
252if (($id || $ref) && $action ==
'edit') {
255 print
'<form method="POST" action="' . $_SERVER[
"PHP_SELF"] .
'">';
256 print
'<input type="hidden" name="token" value="' .
newToken() .
'">';
257 print
'<input type="hidden" name="action" value="update">';
258 print
'<input type="hidden" name="id" value="' .
$object->id .
'">';
260 print
'<input type="hidden" name="backtopage" value="' . $backtopage .
'">';
262 if ($backtopageforcancel) {
263 print
'<input type="hidden" name="backtopageforcancel" value="' . $backtopageforcancel .
'">';
268 print
'<table class="border centpercent tableforfieldedit">' .
"\n";
271 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_edit.tpl.php';
274 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
281 $SkilldetRecords =
$object->fetchLines();
283 if (is_array($SkilldetRecords) && count($SkilldetRecords) == 0) {
287 if (is_array($SkilldetRecords) && count($SkilldetRecords) > 0) {
289 foreach ($SkilldetRecords as $sk) {
290 if ($sk->rankorder > $MaxNumberSkill) {
294 print
'<table class="border centpercent =">' .
"\n";
296 foreach ($sk->fields as $key => $val) {
297 if (abs($val[
'visible']) != 1 && abs($val[
'visible']) != 3 && abs($val[
'visible']) != 4) {
301 if (array_key_exists(
'enabled', $val) && isset($val[
'enabled']) && !
verifCond($val[
'enabled'])) {
305 print
'<tr class="field_' . $key .
'"><td';
306 print
' class="titlefieldcreate';
307 if (isset($val[
'notnull']) && $val[
'notnull'] > 0) {
308 print
' fieldrequired';
310 if (preg_match(
'/^(text|html)/', $val[
'type'])) {
317 print $langs->trans($val[
'label']).
' '.$langs->trans(
'rank').
' '.$sk->rankorder;
320 print
'<td class="valuefieldcreate">';
330 if (!empty($tmparray[1])) {
331 $check = $tmparray[1];
333 $check =
'restricthtml';
336 $skilldetArray =
GETPOST(
"descriptionline",
"array");
337 if (empty($skilldetArray)) {
338 $value = GETPOSTISSET($key) ?
GETPOST($key, $check) : $sk->$key;
340 $value=$skilldetArray[$sk->id];
349 if (!empty($val[
'noteditable'])) {
350 print $sk->showOutputField($val, $key, $value,
'',
'',
'', 0);
353 print $sk->showInputField($val, $key, $value,
"",
"line[" . $sk->id .
"]",
"",
"");
365 print
'<div class="center"><input type="submit" class="button button-save" name="save" value="' . $langs->trans(
"Save") .
'">';
366 print
' <input type="submit" class="button button-cancel" name="cancel" value="' . $langs->trans(
"Cancel") .
'">';
374if (
$object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
375 $res =
$object->fetch_optionals();
383 if ($action ==
'delete') {
384 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"] .
'?id=' .
$object->id, $langs->trans(
'DeleteSkill'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
387 if ($action ==
'deleteline') {
388 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"] .
'?id=' .
$object->id .
'&lineid=' . $lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
391 if ($action ===
'clone') {
392 $formquestion = array(
393 array(
'type' =>
'text',
'name' =>
'clone_label',
'label' => $langs->trans(
"Label"),
'value' => $langs->trans(
"CopyOf").
' '.
$object->label),
395 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk',
$object->label),
'confirm_clone', $formquestion,
'yes', 1, 280);
399 if ($action ==
'xxx') {
400 $formquestion = array();
411 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"] .
'?id=' .
$object->id, $langs->trans(
'XXX'), $text,
'confirm_xxx', $formquestion, 0, 1, 220);
415 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
416 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
417 if (empty($reshook)) {
418 $formconfirm .= $hookmanager->resPrint;
419 } elseif ($reshook > 0) {
420 $formconfirm = $hookmanager->resPrint;
429 $linkback =
'<a href="' . DOL_URL_ROOT.
'/hrm/skill_list.php?restore_lastsearch_values=1' . (!empty($socid) ?
'&socid=' . $socid :
'') .
'">' . $langs->trans(
"BackToList") .
'</a>';
432 $morehtmlref =
'<div class="refid">';
434 $morehtmlref .=
'</div>';
435 dol_banner_tab($object,
'id', $linkback, 1,
'rowid',
'rowid', $morehtmlref);
438 print
'<div class="fichecenter">';
439 print
'<div class="fichehalfleft">';
440 print
'<div class="underbanner clearboth"></div>';
441 print
'<table class="border centpercent tableforfield">' .
"\n";
443 $object->fields[
'label'][
'visible']=0;
444 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_view.tpl.php';
447 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
454 print
'<div class="clearboth"></div>';
463 if ($action !=
'presend' && $action !=
'editline') {
464 print
'<div class="tabsAction">' .
"\n";
465 $parameters = array();
466 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
471 if (empty($reshook)) {
473 if (
$object->status == $object::STATUS_VALIDATED) {
474 print
dolGetButtonAction($langs->trans(
'SetToDraft'),
'',
'default', $_SERVER[
"PHP_SELF"] .
'?id=' .
$object->id .
'&action=confirm_setdraft&confirm=yes&token=' .
newToken(),
'', $permissiontoadd);
477 print
dolGetButtonAction($langs->trans(
'Modify'),
'',
'default', $_SERVER[
"PHP_SELF"] .
'?id=' .
$object->id .
'&action=edit&token=' .
newToken(),
'', $permissiontoadd);
480 if ($permissiontoadd) {
484 print
dolGetButtonAction($langs->trans(
'Delete'),
'',
'delete', $_SERVER[
'PHP_SELF'] .
'?id=' .
$object->id .
'&action=delete&token=' .
newToken(),
'', $permissiontodelete);
486 print
'</div>' .
"\n";
493if ($action !=
"create" && $action !=
"edit") {
494 require_once DOL_DOCUMENT_ROOT .
'/core/class/html.formcompany.class.php';
495 require_once DOL_DOCUMENT_ROOT .
'/core/lib/date.lib.php';
496 require_once DOL_DOCUMENT_ROOT .
'/core/lib/company.lib.php';
499 require_once __DIR__ .
'/class/skilldet.class.php';
504 $action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
505 $massaction =
GETPOST(
'massaction',
'alpha');
507 $confirm =
GETPOST(
'confirm',
'alpha');
508 $cancel =
GETPOST(
'cancel',
'alpha');
509 $toselect =
GETPOST(
'toselect',
'array');
510 $contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'skilldetlist';
511 $backtopage =
GETPOST(
'backtopage',
'alpha');
512 $optioncss =
GETPOST(
'optioncss',
'aZ');
518 $sortfield =
GETPOST(
'sortfield',
'aZ09comma');
519 $sortorder =
GETPOST(
'sortorder',
'aZ09comma');
521 if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
525 $offset = $limit * $page;
526 $pageprev = $page - 1;
527 $pagenext = $page + 1;
536 reset($objectline->fields);
537 $sortfield =
"t." . key($objectline->fields);
544 $search_all =
GETPOST(
'search_all',
'alphanohtml') ?
GETPOST(
'search_all',
'alphanohtml') :
GETPOST(
'sall',
'alphanohtml');
546 foreach ($objectline->fields as $key => $val) {
547 if (
GETPOST(
'search_' . $key,
'alpha') !==
'') {
548 $search[$key] =
GETPOST(
'search_' . $key,
'alpha');
550 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
557 $fieldstosearchall = array();
558 foreach ($objectline->fields as $key => $val) {
559 if (!empty($val[
'searchall'])) {
560 $fieldstosearchall[
't.' . $key] = $val[
'label'];
565 $arrayfields = array();
566 foreach ($objectline->fields as $key => $val) {
568 if (!empty($val[
'visible'])) {
569 $visible = (int)
dol_eval($val[
'visible'], 1, 1,
'1');
570 $arrayfields[
't.' . $key] = array(
571 'label' => $val[
'label'],
572 'checked' => (($visible < 0) ? 0 : 1),
573 'enabled' => (abs($visible) != 3 && (bool)
dol_eval($val[
'enabled'], 1)),
574 'position' => $val[
'position'],
575 'help' => isset($val[
'help']) ? $val[
'help'] :
''
580 $objectline->fields =
dol_sort_array($objectline->fields,
'position');
588 $form =
new Form($db);
593 $title = $langs->transnoentitiesnoconv(
"Skilldets");
596 $nbtotalofrecords =
'';
601 $sql .= $objectline->getFieldList(
't');
602 $sql .=
" FROM " . MAIN_DB_PREFIX . $objectline->table_element .
" as t";
603 if ($objectline->ismultientitymanaged == 1) {
604 $sql .=
" WHERE t.entity IN (" .
getEntity($objectline->element) .
")";
606 $sql .=
" WHERE 1 = 1 ";
608 $sql .=
" AND fk_skill = ".((int) $id);
610 $resql = $db->query($sql);
611 $nbtotalofrecords = $db->num_rows($resql);
612 $num = $db->num_rows($resql);
614 print
'<form method="POST" id="searchFormList" action="' . $_SERVER[
"PHP_SELF"] .
'">' .
"\n";
615 if ($optioncss !=
'') {
616 print
'<input type="hidden" name="optioncss" value="' . $optioncss .
'">';
618 print
'<input type="hidden" name="token" value="' .
newToken() .
'">';
619 print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
620 print
'<input type="hidden" name="action" value="list">';
621 print
'<input type="hidden" name="sortfield" value="' . $sortfield .
'">';
622 print
'<input type="hidden" name="sortorder" value="' . $sortorder .
'">';
623 print
'<input type="hidden" name="page" value="' . $page .
'">';
624 print
'<input type="hidden" name="contextpage" value="' . $contextpage .
'">';
626 print
'<input type="hidden" name="id" value="' . $id .
'">';
629 $param_fk =
"&fk_skill=" . $id .
"&fk_user_creat=" . (!empty($user->rowid) ? $user->rowid : 0);
630 $backtopage =
dol_buildpath(
'/hrm/skill_card.php', 1) .
'?id=' . $id;
632 $massactionbutton =
"";
635 print_barre_liste($title, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'object_' .
$object->picto, 0,
"",
'',
'', 0, 0, 1);
638 $topicmail =
"SendSkilldetRef";
639 $modelmail =
"skilldet";
641 $trackid =
'xxxx' .
$object->id;
645 foreach ($fieldstosearchall as $key => $val) {
646 $fieldstosearchall[$key] = $langs->trans($val);
648 print
'<div class="divsearchfieldfilter">' . $langs->trans(
"FilterOnInto", $search_all) . implode(
', ', $fieldstosearchall) .
'</div>';
656 $parameters = array();
657 $reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $objectline);
658 if (empty($reshook)) {
659 $moreforfilter .= $hookmanager->resPrint;
661 $moreforfilter = $hookmanager->resPrint;
664 if (!empty($moreforfilter)) {
665 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
666 print $moreforfilter;
670 $varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
674 print
'<div class="div-table-responsive">';
675 print
'<table class="tagtable nobottomiftotal liste' . ($moreforfilter ?
" listwithfilterbefore" :
"") .
'">' .
"\n";
680 print
'<tr class="liste_titre">';
681 foreach ($objectline->fields as $key => $val) {
692 if (!empty($arrayfields[
't.' . $key][
'checked'])) {
693 print
getTitleFieldOfList($arrayfields[
't.' . $key][
'label'], 0, $_SERVER[
'PHP_SELF'],
't.' . $key,
'', $param, (!empty($cssforfield) ?
'class="' . $cssforfield .
'"' :
''), $sortfield, $sortorder, (!empty($cssforfield) ? $cssforfield .
' ' :
'')) .
"\n";
698 print
'</tr>' .
"\n";
705 $totalarray = array();
706 $totalarray[
'nbfield'] = 0;
707 while ($i < ($limit ? min($num, $limit) : $num)) {
708 $obj = $db->fetch_object($resql);
713 if ($obj->rankorder > $MaxNumberSkill) {
718 $objectline->setVarsFromFetchObj($obj);
721 print
'<tr class="oddeven">';
722 foreach ($objectline->fields as $key => $val) {
741 if (!empty($arrayfields[
't.' . $key][
'checked'])) {
742 print
'<td' . (empty($cssforfield) ?
'' :
' class="' . $cssforfield .
'"') .
'>';
743 if ($key ==
'status') {
744 print $objectline->getLibStatut(5);
745 } elseif ($key ==
'rowid') {
746 print $objectline->showOutputField($val, $key, $objectline->id,
'');
748 print
'<a class="timeline-btn" href="' . DOL_MAIN_URL_ROOT .
'/comm/action/skilldet_card.php?action=edit&id=' . $objectline->id .
'"><i class="fa fa-pencil" title="' . $langs->trans(
"Modify") .
'" ></i></a>';
750 print $objectline->showOutputField($val, $key, $objectline->$key,
'');
756 $totalarray[
'nbfield']++;
758 if (!empty($val[
'isameasure']) && $val[
'isameasure'] == 1) {
760 $totalarray[
'pos'][$totalarray[
'nbfield']] =
't.' . $key;
762 if (!isset($totalarray[
'val'])) {
763 $totalarray[
'val'] = array();
765 if (!isset($totalarray[
'val'][
't.' . $key])) {
766 $totalarray[
'val'][
't.' . $key] = 0;
768 $totalarray[
'val'][
't.' . $key] += $objectline->$key;
790 $parameters = array(
'arrayfields' => $arrayfields,
'object' => $objectline,
'obj' => $obj,
'i' => $i,
'totalarray' => &$totalarray);
791 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $objectline);
792 print $hookmanager->resPrint;
798 $totalarray[
'nbfield']++;
801 print
'</tr>' .
"\n";
811 foreach ($arrayfields as $key => $val) {
812 if (!empty($val[
'checked'])) {
816 print
'<tr><td colspan="' . $colspan .
'"><span class="opacitymedium">' . $langs->trans(
"NoRecordFound") .
'</span></td></tr>';
819 if (!empty($resql)) {
823 $parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
824 $reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $objectline);
825 print $hookmanager->resPrint;
827 print
'</table>' .
"\n";
828 print
'</div>' .
"\n";
830 print
'</form>' .
"\n";
852 print
'<div class="fichecenter"><div class="fichehalfleft">';
855 $linktoelem = $form->showLinkToObjectBlock($object,
null, array(
'skill'));
856 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
858 print
'</div><div class="fichehalfright">';
862 $morehtmlcenter =
dolGetButtonTitle($langs->trans(
'SeeAll'),
'',
'fa fa-bars imgforviewmode', DOL_URL_ROOT.
'/hrm/skill_agenda.php?id='.
$object->id);
865 include_once DOL_DOCUMENT_ROOT .
'/core/class/html.formactions.class.php';
867 $somethingshown = $formactions->showactions($object,
$object->element .
'@' .
$object->module, (is_object(
$object->thirdparty) ?
$object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlcenter);
869 print
'</div></div>';
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.
verifCond($strToEvaluate, $onlysimplestring='1')
Verify if condition in string is ok or not.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed information (by default a local PHP server timestamp) Rep...
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.
dol_eval($s, $returnvalue=1, $hideerrors=1, $onlysimplestring='1')
Replace eval function to add more security.
setEventMessage($mesgs, $style='mesgs', $noduplicate=0)
Set event message in dol_events session object.
dol_now($mode='auto')
Return date for now.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by the value of a given key, which produces ascending (default) or descending out...
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.
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='', $forcenowrapcolumntitle=0)
Get title line of an array.
print_barre_liste($title, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='generic', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $hideselectlimit=0, $hidenavigation=0, $pagenavastextinput=0, $morehtmlrightbeforearrow='')
Print a title with navigation controls for pagination.
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.
getEntity($element, $shared=1, $currentobject=null)
Get list of entity id to use.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
skillPrepareHead($object)
Prepare array of tabs for Skill.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.