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');
51$lineid =
GETPOST(
'lineid',
'int');
54$object =
new Skill($db);
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->rights->hrm->all->read;
83$permissiontoadd = $user->rights->hrm->all->write;
84$permissiontodelete = $user->rights->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) {
140 $skilldetObj =
new Skilldet($object->db);
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',
GETPOST(
'fk_soc',
'int'),
'',
'',
'date',
'', $user, $triggermodname);
169 if ($action ==
'classin' && $permissiontoadd) {
170 $object->setProject(
GETPOST(
'projectid',
'int'));
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';
185$form =
new Form($db);
189$title = $langs->trans(
"Skill");
195if ($action ==
'create') {
196 print
load_fiche_titre($langs->trans(
"NewSkill"),
'',
'object_' . $object->picto);
198 print
'<form method="POST" action="' . $_SERVER[
"PHP_SELF"] .
'">';
199 print
'<input type="hidden" name="token" value="' . newToken() .
'">';
200 print
'<input type="hidden" name="action" value="add">';
201 $backtopage .= (strpos($backtopage,
'?') > 0 ?
'&' :
'?' ) .
"objecttype=job";
203 print
'<input type="hidden" name="backtopage" value="' . $backtopage .
'">';
205 if ($backtopageforcancel) {
206 print
'<input type="hidden" name="backtopageforcancel" value="' . $backtopageforcancel .
'">';
211 print
'<table class="border centpercent tableforfieldcreate">' .
"\n";
214 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_add.tpl.php';
217 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
224 print
'</table>' .
"\n";
228 print
'<div class="center">';
229 print
'<input type="submit" class="button" name="add" value="' .
dol_escape_htmltag($langs->trans(
"Create")) .
'">';
232 print
'<input type="' . ($backtopage ?
"submit" :
"button") .
'" class="button button-cancel" name="cancel" value="' .
dol_escape_htmltag($langs->trans(
"Cancel")) .
'"' . ($backtopage ?
'' :
' onclick="history.go(-1)"') .
'>';
242if (($id || $ref) && $action ==
'edit') {
243 print
load_fiche_titre($langs->trans(
"Skill"),
'',
'object_' . $object->picto);
245 print
'<form method="POST" action="' . $_SERVER[
"PHP_SELF"] .
'">';
246 print
'<input type="hidden" name="token" value="' . newToken() .
'">';
247 print
'<input type="hidden" name="action" value="update">';
248 print
'<input type="hidden" name="id" value="' . $object->id .
'">';
250 print
'<input type="hidden" name="backtopage" value="' . $backtopage .
'">';
252 if ($backtopageforcancel) {
253 print
'<input type="hidden" name="backtopageforcancel" value="' . $backtopageforcancel .
'">';
258 print
'<table class="border centpercent tableforfieldedit">' .
"\n";
261 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_edit.tpl.php';
264 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
271 $SkilldetRecords = $object->fetchLines();
273 if (is_array($SkilldetRecords) && count($SkilldetRecords) == 0) {
274 $object->createSkills(1);
277 if (is_array($SkilldetRecords) && count($SkilldetRecords) > 0) {
279 foreach ($SkilldetRecords as $sk) {
280 if ($sk->rankorder > $MaxNumberSkill) {
284 print
'<table class="border centpercent =">' .
"\n";
286 foreach ($sk->fields as $key => $val) {
287 if (abs($val[
'visible']) != 1 && abs($val[
'visible']) != 3 && abs($val[
'visible']) != 4) {
291 if (array_key_exists(
'enabled', $val) && isset($val[
'enabled']) && !
verifCond($val[
'enabled'])) {
295 print
'<tr class="field_' . $key .
'"><td';
296 print
' class="titlefieldcreate';
297 if (isset($val[
'notnull']) && $val[
'notnull'] > 0) {
298 print
' fieldrequired';
300 if (preg_match(
'/^(text|html)/', $val[
'type'])) {
307 print $langs->trans($val[
'label']).
' '.$langs->trans(
'rank').
' '.$sk->rankorder;
310 print
'<td class="valuefieldcreate">';
320 if (!empty($tmparray[1])) {
321 $check = $tmparray[1];
323 $check =
'restricthtml';
326 $skilldetArray =
GETPOST(
"descriptionline",
"array");
327 if (empty($skilldetArray)) {
328 $value = GETPOSTISSET($key) ?
GETPOST($key, $check) : $sk->$key;
330 $value=$skilldetArray[$sk->id];
339 if (!empty($val[
'noteditable'])) {
340 print $sk->showOutputField($val, $key, $value,
'',
'',
'', 0);
343 print $sk->showInputField($val, $key, $value,
"",
"line[" . $sk->id .
"]",
"",
"");
355 print
'<div class="center"><input type="submit" class="button button-save" name="save" value="' . $langs->trans(
"Save") .
'">';
356 print
' <input type="submit" class="button button-cancel" name="cancel" value="' . $langs->trans(
"Cancel") .
'">';
364if ($object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
365 $res = $object->fetch_optionals();
368 print
dol_get_fiche_head($head,
'card', $langs->trans(
"Workstation"), -1, $object->picto);
373 if ($action ==
'delete') {
374 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"] .
'?id=' . $object->id, $langs->trans(
'DeleteSkill'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
377 if ($action ==
'deleteline') {
378 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"] .
'?id=' . $object->id .
'&lineid=' . $lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
381 if ($action ==
'clone') {
383 $formquestion = array();
384 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"] .
'?id=' . $object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk', $object->ref),
'confirm_clone', $formquestion,
'yes', 1);
388 if ($action ==
'xxx') {
389 $formquestion = array();
400 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"] .
'?id=' . $object->id, $langs->trans(
'XXX'), $text,
'confirm_xxx', $formquestion, 0, 1, 220);
404 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
405 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
406 if (empty($reshook)) {
407 $formconfirm .= $hookmanager->resPrint;
408 } elseif ($reshook > 0) {
409 $formconfirm = $hookmanager->resPrint;
418 $linkback =
'<a href="' . DOL_URL_ROOT.
'/hrm/skill_list.php?restore_lastsearch_values=1' . (!empty($socid) ?
'&socid=' . $socid :
'') .
'">' . $langs->trans(
"BackToList") .
'</a>';
421 $morehtmlref =
'<div class="refid">';
422 $morehtmlref.= $object->label;
423 $morehtmlref .=
'</div>';
424 dol_banner_tab($object,
'id', $linkback, 1,
'rowid',
'rowid', $morehtmlref);
427 print
'<div class="fichecenter">';
428 print
'<div class="fichehalfleft">';
429 print
'<div class="underbanner clearboth"></div>';
430 print
'<table class="border centpercent tableforfield">' .
"\n";
432 $object->fields[
'label'][
'visible']=0;
433 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_view.tpl.php';
436 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
443 print
'<div class="clearboth"></div>';
452 if ($action !=
'presend' && $action !=
'editline') {
453 print
'<div class="tabsAction">' .
"\n";
454 $parameters = array();
455 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
460 if (empty($reshook)) {
462 if ($object->status == $object::STATUS_VALIDATED) {
463 print
dolGetButtonAction($langs->trans(
'SetToDraft'),
'',
'default', $_SERVER[
"PHP_SELF"] .
'?id=' . $object->id .
'&action=confirm_setdraft&confirm=yes&token=' . newToken(),
'', $permissiontoadd);
466 print
dolGetButtonAction($langs->trans(
'Modify'),
'',
'default', $_SERVER[
"PHP_SELF"] .
'?id=' . $object->id .
'&action=edit&token=' . newToken(),
'', $permissiontoadd);
469 print
dolGetButtonAction($langs->trans(
'Delete'),
'',
'delete', $_SERVER[
'PHP_SELF'] .
'?id=' . $object->id .
'&action=delete&token=' . newToken(),
'', $permissiontodelete);
471 print
'</div>' .
"\n";
478if ($action !=
"create" && $action !=
"edit") {
479 require_once DOL_DOCUMENT_ROOT .
'/core/class/html.formcompany.class.php';
480 require_once DOL_DOCUMENT_ROOT .
'/core/lib/date.lib.php';
481 require_once DOL_DOCUMENT_ROOT .
'/core/lib/company.lib.php';
484 require_once __DIR__ .
'/class/skilldet.class.php';
489 $action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
490 $massaction =
GETPOST(
'massaction',
'alpha');
491 $show_files =
GETPOST(
'show_files',
'int');
492 $confirm =
GETPOST(
'confirm',
'alpha');
493 $cancel =
GETPOST(
'cancel',
'alpha');
494 $toselect =
GETPOST(
'toselect',
'array');
495 $contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'skilldetlist';
496 $backtopage =
GETPOST(
'backtopage',
'alpha');
497 $optioncss =
GETPOST(
'optioncss',
'aZ');
503 $sortfield =
GETPOST(
'sortfield',
'aZ09comma');
504 $sortorder =
GETPOST(
'sortorder',
'aZ09comma');
505 $page = GETPOSTISSET(
'pageplusone') ? (
GETPOST(
'pageplusone') - 1) :
GETPOST(
"page",
'int');
506 if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
510 $offset = $limit * $page;
511 $pageprev = $page - 1;
512 $pagenext = $page + 1;
521 reset($objectline->fields);
522 $sortfield =
"t." . key($objectline->fields);
529 $search_all =
GETPOST(
'search_all',
'alphanohtml') ?
GETPOST(
'search_all',
'alphanohtml') :
GETPOST(
'sall',
'alphanohtml');
531 foreach ($objectline->fields as $key => $val) {
532 if (
GETPOST(
'search_' . $key,
'alpha') !==
'') {
533 $search[$key] =
GETPOST(
'search_' . $key,
'alpha');
535 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
536 $search[$key .
'_dtstart'] =
dol_mktime(0, 0, 0,
GETPOST(
'search_' . $key .
'_dtstartmonth',
'int'),
GETPOST(
'search_' . $key .
'_dtstartday',
'int'),
GETPOST(
'search_' . $key .
'_dtstartyear',
'int'));
537 $search[$key .
'_dtend'] =
dol_mktime(23, 59, 59,
GETPOST(
'search_' . $key .
'_dtendmonth',
'int'),
GETPOST(
'search_' . $key .
'_dtendday',
'int'),
GETPOST(
'search_' . $key .
'_dtendyear',
'int'));
542 $fieldstosearchall = array();
543 foreach ($objectline->fields as $key => $val) {
544 if (!empty($val[
'searchall'])) {
545 $fieldstosearchall[
't.' . $key] = $val[
'label'];
550 $arrayfields = array();
551 foreach ($objectline->fields as $key => $val) {
553 if (!empty($val[
'visible'])) {
554 $visible = (int)
dol_eval($val[
'visible'], 1, 1,
'1');
555 $arrayfields[
't.' . $key] = array(
556 'label' => $val[
'label'],
557 'checked' => (($visible < 0) ? 0 : 1),
558 'enabled' => ($visible != 3 &&
dol_eval($val[
'enabled'], 1, 1,
'1')),
559 'position' => $val[
'position'],
560 'help' => isset($val[
'help']) ? $val[
'help'] :
''
565 $objectline->fields =
dol_sort_array($objectline->fields,
'position');
573 $form =
new Form($db);
578 $title = $langs->transnoentitiesnoconv(
"Skilldets");
581 $nbtotalofrecords =
'';
586 $sql .= $objectline->getFieldList(
't');
587 $sql .=
" FROM " . MAIN_DB_PREFIX . $objectline->table_element .
" as t";
588 if ($objectline->ismultientitymanaged == 1) {
589 $sql .=
" WHERE t.entity IN (" .
getEntity($objectline->element) .
")";
591 $sql .=
" WHERE 1 = 1 ";
593 $sql .=
" AND fk_skill = ".((int) $id);
595 $resql = $db->query($sql);
596 $nbtotalofrecords = $db->num_rows($resql);
597 $num = $db->num_rows($resql);
599 print
'<form method="POST" id="searchFormList" action="' . $_SERVER[
"PHP_SELF"] .
'">' .
"\n";
600 if ($optioncss !=
'') {
601 print
'<input type="hidden" name="optioncss" value="' . $optioncss .
'">';
603 print
'<input type="hidden" name="token" value="' . newToken() .
'">';
604 print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
605 print
'<input type="hidden" name="action" value="list">';
606 print
'<input type="hidden" name="sortfield" value="' . $sortfield .
'">';
607 print
'<input type="hidden" name="sortorder" value="' . $sortorder .
'">';
608 print
'<input type="hidden" name="page" value="' . $page .
'">';
609 print
'<input type="hidden" name="contextpage" value="' . $contextpage .
'">';
611 print
'<input type="hidden" name="id" value="' . $id .
'">';
614 $param_fk =
"&fk_skill=" . $id .
"&fk_user_creat=" . (!empty($user->rowid) ? $user->rowid :0);
615 $backtopage =
dol_buildpath(
'/hrm/skill_card.php', 1) .
'?id=' . $id;
617 $massactionbutton =
"";
620 print_barre_liste($title, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'object_' . $object->picto, 0,
"",
'',
'', 0, 0, 1);
623 $topicmail =
"SendSkilldetRef";
624 $modelmail =
"skilldet";
626 $trackid =
'xxxx' . $object->id;
630 foreach ($fieldstosearchall as $key => $val) {
631 $fieldstosearchall[$key] = $langs->trans($val);
633 print
'<div class="divsearchfieldfilter">' . $langs->trans(
"FilterOnInto", $search_all) . join(
', ', $fieldstosearchall) .
'</div>';
641 $parameters = array();
642 $reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $objectline);
643 if (empty($reshook)) {
644 $moreforfilter .= $hookmanager->resPrint;
646 $moreforfilter = $hookmanager->resPrint;
649 if (!empty($moreforfilter)) {
650 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
651 print $moreforfilter;
655 $varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
659 print
'<div class="div-table-responsive">';
660 print
'<table class="tagtable nobottomiftotal liste' . ($moreforfilter ?
" listwithfilterbefore" :
"") .
'">' .
"\n";
665 print
'<tr class="liste_titre">';
666 foreach ($objectline->fields as $key => $val) {
677 if (!empty($arrayfields[
't.' . $key][
'checked'])) {
678 print
getTitleFieldOfList($arrayfields[
't.' . $key][
'label'], 0, $_SERVER[
'PHP_SELF'],
't.' . $key,
'', $param, (!empty($cssforfield) ?
'class="' . $cssforfield .
'"' :
''), $sortfield, $sortorder, (!empty($cssforfield) ? $cssforfield .
' ' :
'')) .
"\n";
683 print
'</tr>' .
"\n";
690 $totalarray = array();
691 $totalarray[
'nbfield'] = 0;
692 while ($i < ($limit ? min($num, $limit) : $num)) {
693 $obj = $db->fetch_object($resql);
698 if ($obj->rankorder > $MaxNumberSkill) {
703 $objectline->setVarsFromFetchObj($obj);
706 print
'<tr class="oddeven">';
707 foreach ($objectline->fields as $key => $val) {
726 if (!empty($arrayfields[
't.' . $key][
'checked'])) {
727 print
'<td' . ($cssforfield ?
' class="' . $cssforfield .
'"' :
'') .
'>';
728 if ($key ==
'status') {
729 print $objectline->getLibStatut(5);
730 } elseif ($key ==
'rowid') {
731 print $objectline->showOutputField($val, $key, $objectline->id,
'');
733 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>';
735 print $objectline->showOutputField($val, $key, $objectline->$key,
'');
741 $totalarray[
'nbfield']++;
743 if (!empty($val[
'isameasure']) && $val[
'isameasure'] == 1) {
745 $totalarray[
'pos'][$totalarray[
'nbfield']] =
't.' . $key;
747 if (!isset($totalarray[
'val'])) {
748 $totalarray[
'val'] = array();
750 if (!isset($totalarray[
'val'][
't.' . $key])) {
751 $totalarray[
'val'][
't.' . $key] = 0;
753 $totalarray[
'val'][
't.' . $key] += $objectline->$key;
775 $parameters = array(
'arrayfields' => $arrayfields,
'object' => $objectline,
'obj' => $obj,
'i' => $i,
'totalarray' => &$totalarray);
776 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $objectline);
777 print $hookmanager->resPrint;
783 $totalarray[
'nbfield']++;
786 print
'</tr>' .
"\n";
796 foreach ($arrayfields as $key => $val) {
797 if (!empty($val[
'checked'])) {
801 print
'<tr><td colspan="' . $colspan .
'"><span class="opacitymedium">' . $langs->trans(
"NoRecordFound") .
'</span></td></tr>';
804 if (!empty($resql)) $db->free($resql);
806 $parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
807 $reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $objectline);
808 print $hookmanager->resPrint;
810 print
'</table>' .
"\n";
811 print
'</div>' .
"\n";
813 print
'</form>' .
"\n";
835 print
'<div class="fichecenter"><div class="fichehalfleft">';
838 $linktoelem = $form->showLinkToObjectBlock($object,
null, array(
'skill'));
839 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
841 print
'</div><div class="fichehalfright">';
845 $morehtmlcenter =
dolGetButtonTitle($langs->trans(
'SeeAll'),
'',
'fa fa-bars imgforviewmode', DOL_URL_ROOT.
'/hrm/skill_agenda.php?id='.$object->id);
848 include_once DOL_DOCUMENT_ROOT .
'/core/class/html.formactions.class.php';
850 $somethingshown =
$formactions->showactions($object, $object->element .
'@' . $object->module, (is_object($object->thirdparty) ? $object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlcenter);
852 print
'</div></div>';
if(preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) if(preg_match('/del_([a-z0-9_\-]+)/i', $action, $reg)) if($action=='set') elseif( $action=='specimen') elseif($action=='setmodel') elseif( $action=='del') elseif($action=='setdoc') $formactions
View.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $onlybanner=0, $morehtmlright='')
Show tab footer of a card.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed informations (by default a local PHP server timestamp) Re...
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
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.
dol_now($mode='auto')
Return date for now.
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.
dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by second index function, which produces ascending (default) or descending output...
dol_eval($s, $returnvalue=0, $hideerrors=1, $onlysimplestring='1')
Replace eval function to add more security.
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.
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.
print_barre_liste($titre, $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.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
verifCond($strToEvaluate)
Verify if condition in string is ok or not.
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.