25require_once
'../main.inc.php';
26require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
30require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentjobposition.class.php';
31require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentcandidature.class.php';
32require_once DOL_DOCUMENT_ROOT.
'/recruitment/lib/recruitment_recruitmentcandidature.lib.php';
35$langs->loadLangs(array(
"recruitment",
"other",
"users"));
40$action =
GETPOST(
'action',
'aZ09');
41$confirm =
GETPOST(
'confirm',
'alpha');
42$cancel =
GETPOST(
'cancel',
'aZ09');
43$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'recruitmentcandidaturecard';
44$backtopage =
GETPOST(
'backtopage',
'alpha');
45$backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
46$lineid =
GETPOST(
'lineid',
'int');
51$diroutputmassaction = $conf->recruitment->dir_output.
'/temp/massgeneration/'.$user->id;
52$hookmanager->initHooks(array(
'recruitmentcandidaturecard',
'globalcard'));
55$extrafields->fetch_name_optionals_label($object->table_element);
57$search_array_options = $extrafields->getOptionalsFromPost($object->table_element,
'',
'search_');
60$search_all =
GETPOST(
"search_all",
'alpha');
62foreach ($object->fields as $key => $val) {
63 if (
GETPOST(
'search_'.$key,
'alpha')) {
64 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
68if (empty($action) && empty($id) && empty($ref)) {
73include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
76$permissiontoread = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'read');
77$permissiontoadd = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
78$permissiontodelete = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'delete') || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
79$permissionnote = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
80$permissiondellink = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
81$upload_dir = $conf->recruitment->multidir_output[isset($object->entity) ? $object->entity : 1];
86$isdraft = (($object->status == $object::STATUS_DRAFT) ? 1 : 0);
87$result =
restrictedArea($user,
'recruitment', $object->id,
'recruitment_recruitmentcandidature',
'recruitmentjobposition',
'',
'rowid', $isdraft);
95$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
100if (empty($reshook)) {
103 $backurlforlist =
dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1);
105 if (empty($backtopage) || ($cancel && empty($id))) {
106 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
107 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
108 $backtopage = $backurlforlist;
110 $backtopage =
dol_buildpath(
'/recruitment/recruitmentcandidature_card.php', 1).
'?id='.($id > 0 ? $id :
'__ID__');
114 $triggermodname =
'RECRUITMENTCANDIDATURE_MODIFY';
117 $object->email_fields_no_propagate_in_actioncomm = 1;
118 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
119 $object->email_fields_no_propagate_in_actioncomm = 0;
122 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
125 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
131 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
133 if ($action ==
'classin' && $permissiontoadd) {
134 $object->setProject(
GETPOST(
'projectid',
'int'));
136 if ($action ==
'confirm_decline' && $confirm ==
'yes' && $permissiontoadd) {
137 $result = $object->setStatut($object::STATUS_REFUSED,
null,
'', $triggermodname);
143 if ($action ==
'confirm_makeofferordecline' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
144 if (!(
GETPOST(
'status',
'int') > 0)) {
145 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")),
null,
'errors');
146 $action =
'makeofferordecline';
149 if ($object->status == $object::STATUS_VALIDATED) {
152 if (
GETPOST(
'status',
'int') == $object::STATUS_REFUSED) {
153 $result = $object->setStatut($object::STATUS_REFUSED,
null,
'', $triggermodname);
158 $result = $object->setStatut($object::STATUS_CONTRACT_PROPOSED,
null,
'', $triggermodname);
173 if ($action ==
'confirm_closeas' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
174 if (!(
GETPOST(
'status',
'int') > 0)) {
175 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")),
null,
'errors');
176 $action =
'makeofferordecline';
179 if ($object->status == $object::STATUS_CONTRACT_PROPOSED) {
182 if (
GETPOST(
'status',
'int') == $object::STATUS_CONTRACT_REFUSED) {
183 $result = $object->setStatut($object::STATUS_CONTRACT_REFUSED,
null,
'', $triggermodname);
188 $result = $object->setStatut($object::STATUS_CONTRACT_SIGNED,
null,
'', $triggermodname);
204 if ($action ==
'confirm_create_user' && $confirm ==
'yes' && $user->hasRight(
'user',
'user',
'creer')) {
206 $jobposition->fetch($object->fk_recruitmentjobposition);
211 $nuser =
new User($db);
212 $nuser->login =
GETPOST(
'login',
'alphanohtml');
214 $nuser->employee = 1;
215 $nuser->firstname = $object->firstname;
216 $nuser->lastname = $object->lastname;
218 $nuser->personal_email = $object->email;
219 $nuser->personal_mobile = $object->phone;
220 $nuser->birth = $object->date_birth;
221 $nuser->salary = $object->remuneration_proposed;
222 $nuser->fk_user = $jobposition->fk_user_supervisor;
223 $nuser->email = $object->email;
225 $result = $nuser->create($user);
229 $langs->load(
"errors");
231 $action =
'create_user';
233 $object->fk_user = $result;
235 $object->update($user);
241 setEventMessages($langs->trans(
"NewUserCreated", $nuser->login),
null,
'mesgs');
249 $triggersendname =
'RECRUITMENTCANDIDATURE_SENTBYMAIL';
250 $autocopy =
'MAIN_MAIL_AUTOCOPY_RECRUITMENTCANDIDATURE_TO';
251 $trackid =
'recruitmentcandidature'.$object->id;
252 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
264$form =
new Form($db);
268if ($action ==
'create') {
269 $title = $langs->trans(
'NewCandidature');
272 $title = $object->ref.
" - ".$langs->trans(
'Card');
279if ($action ==
'create') {
280 print
load_fiche_titre($langs->trans(
"NewObject", $langs->transnoentitiesnoconv(
"RecruitmentCandidature")),
'',
'object_'.$object->picto);
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");
314if (($id || $ref) && $action ==
'edit') {
315 print
load_fiche_titre($langs->trans(
"RecruitmentCandidature"),
'',
'object_'.$object->picto);
317 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
318 print
'<input type="hidden" name="token" value="'.newToken().
'">';
319 print
'<input type="hidden" name="action" value="update">';
320 print
'<input type="hidden" name="id" value="'.$object->id.
'">';
322 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
324 if ($backtopageforcancel) {
325 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
330 print
'<table class="border centpercent tableforfieldedit">'.
"\n";
333 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
336 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
342 print $form->buttonsSaveCancel();
348if ($object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
349 $res = $object->fetch_optionals();
351 $head = recruitmentcandidaturePrepareHead($object);
352 print
dol_get_fiche_head($head,
'card', $langs->trans(
"RecruitmentCandidature"), -1, $object->picto);
357 if ($action ==
'delete') {
358 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'DeleteRecruitmentCandidature'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
361 if ($action ==
'deleteline') {
362 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
365 if ($action ==
'clone') {
367 $formquestion = array();
368 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk', $object->ref),
'confirm_clone', $formquestion,
'yes', 1);
371 if ($action ==
'makeofferordecline') {
372 $langs->load(
"propal");
375 $formquestion = array(
376 array(
'type' =>
'select',
'name' =>
'status',
'label' =>
'<span class="fieldrequired">'.$langs->trans(
"CloseAs").
'</span>',
'values' => array($object::STATUS_CONTRACT_PROPOSED => $object->LibStatut($object::STATUS_CONTRACT_PROPOSED), $object::STATUS_REFUSED => $object->LibStatut($object::STATUS_REFUSED))),
377 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
382 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_makeofferordecline', $formquestion,
'', 1, 250);
385 if ($action ==
'closeas') {
386 $langs->load(
"propal");
389 $formquestion = array(
390 array(
'type' =>
'select',
'name' =>
'status',
'label' =>
'<span class="fieldrequired">'.$langs->trans(
"CloseAs").
'</span>',
'values' => array($object::STATUS_CONTRACT_SIGNED => $object->LibStatut($object::STATUS_CONTRACT_SIGNED), $object::STATUS_CONTRACT_REFUSED => $object->LibStatut($object::STATUS_CONTRACT_REFUSED))),
391 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
396 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_closeas', $formquestion,
'', 1, 250);
400 if ($action ==
'create_user') {
401 $login = (GETPOSTISSET(
'login') ?
GETPOST(
'login',
'alphanohtml') : $object->login);
404 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
408 $login = strtolower(substr($object->firstname, 0, 4)).strtolower(substr($object->lastname, 0, 4));
412 $formquestion = array(
413 array(
'label' => $langs->trans(
"LoginToCreate"),
'type' =>
'text',
'name' =>
'login',
'value' => $login)
415 $text .= $langs->trans(
"ConfirmCreateLogin");
416 print $form->formconfirm($_SERVER[
"PHP_SELF"].
"?id=".$object->id, $langs->trans(
"CreateDolibarrLogin"), $text,
"confirm_create_user", $formquestion,
'yes');
420 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
421 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
422 if (empty($reshook)) {
423 $formconfirm .= $hookmanager->resPrint;
424 } elseif ($reshook > 0) {
425 $formconfirm = $hookmanager->resPrint;
434 $linkback =
'<a href="'.dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
436 $morehtmlref =
'<div class="refidno">';
437 $morehtmlref.= $object->getFullName(
'', 1);
475 if (!empty($object->email_msgid)) {
476 $morehtmlref .=
'<br>'.$langs->trans(
"CreatedBy").
' ';
478 if ($object->fk_user_creat > 0) {
479 $fuser =
new User($db);
480 $fuser->fetch($object->fk_user_creat);
481 $morehtmlref .= $fuser->getNomUrl(-1);
483 if (!empty($object->email_msgid)) {
484 $morehtmlref .=
' <small class="hideonsmartphone opacitymedium">('.$form->textwithpicto($langs->trans(
"CreatedByEmailCollector"), $langs->trans(
"EmailMsgID").
': '.$object->email_msgid).
')</small>';
491 $morehtmlref .=
'</div>';
494 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
497 print
'<div class="fichecenter">';
498 print
'<div class="fichehalfleft">';
499 print
'<div class="underbanner clearboth"></div>';
500 print
'<table class="border centpercent tableforfield">'.
"\n";
503 $keyforbreak =
'description';
504 unset($object->fields[
'email']);
506 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_view.tpl.php';
509 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
515 print
'<div class="clearboth"></div>';
521 if ($action !=
'presend' && $action !=
'editline') {
522 print
'<div class="tabsAction">'.
"\n";
523 $parameters = array();
524 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
529 if (empty($reshook)) {
531 if (empty($user->socid)) {
532 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=presend&mode=init&sendto='.urlencode($object->email).
'#formmailbeforetitle">'.$langs->trans(
'SendMail').
'</a>'.
"\n";
536 if ($object->status == $object::STATUS_VALIDATED) {
537 if ($permissiontoadd) {
538 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=confirm_setdraft&token='.newToken().
'&confirm=yes">'.$langs->trans(
"SetToDraft").
'</a>';
543 if ($permissiontoadd) {
544 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=edit&token='.newToken().
'">'.$langs->trans(
"Modify").
'</a>'.
"\n";
546 print
'<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
'Modify').
'</a>'.
"\n";
550 if ($object->status == $object::STATUS_DRAFT) {
551 if ($permissiontoadd) {
552 if (empty($object->table_element_line) || (is_array($object->lines) && count($object->lines) > 0)) {
553 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=confirm_validate&token='.newToken().
'&confirm=yes">'.$langs->trans(
"Validate").
'</a>';
555 $langs->load(
"errors");
556 print
'<a class="butActionRefused" href="" title="'.$langs->trans(
"ErrorAddAtLeastOneLineFirst").
'">'.$langs->trans(
"Validate").
'</a>';
562 if ($object->status >= $object::STATUS_VALIDATED && $object->status < $object::STATUS_CONTRACT_PROPOSED) {
563 if ($permissiontoadd) {
564 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=makeofferordecline&token='.newToken().
'">'.$langs->trans(
"MakeOffer").
' / '.$langs->trans(
"Decline").
'</a>';
569 if ($object->status == $object::STATUS_CONTRACT_PROPOSED) {
570 if ($permissiontoadd) {
571 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=closeas&token='.newToken().
'">'.$langs->trans(
"Accept").
' / '.$langs->trans(
"Decline").
'</a>';
576 if ($permissiontoadd) {
577 print
dolGetButtonAction($langs->trans(
"ToClone"),
'',
'default', $_SERVER[
'PHP_SELF'].
'?id='.$object->id.(!empty($object->socid) ?
'&socid='.$object->socid :
'').
'&action=clone&object=recruitmentcandidature',
'clone', $permissiontoadd);
581 if ($object->status == $object::STATUS_CONTRACT_SIGNED) {
582 if ($user->hasRight(
'user',
'user',
'creer')) {
583 $useralreadyexists = $object->fk_user;
584 if (empty($useralreadyexists)) {
585 print
'<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=create_user">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
587 print
'<div class="inline-block divButAction"><a class="butActionRefused" href="#">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
590 print
'<div class="inline-block divButAction"><span class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
"CreateDolibarrLogin").
"</span></div>";
595 if ($permissiontoadd) {
596 if ($object->status == $object::STATUS_VALIDATED) {
597 print
'<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=close&token='.newToken().
'">'.$langs->trans(
"Cancel").
'</a>'.
"\n";
598 } elseif ($object->status == $object::STATUS_REFUSED || $object->status == $object::STATUS_CANCELED || $object->status == $object::STATUS_CONTRACT_REFUSED) {
599 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=confirm_reopen&confirm=yes&token='.newToken().
'">'.$langs->trans(
"Re-Open").
'</a>'.
"\n";
604 print
dolGetButtonAction($langs->trans(
"Delete"),
'',
'delete', $_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=delete&token='.newToken(),
'delete', $permissiontodelete);
611 if (
GETPOST(
'modelselected')) {
615 if ($action !=
'presend') {
616 print
'<div class="fichecenter"><div class="fichehalfleft">';
617 print
'<a name="builddoc"></a>';
619 $includedocgeneration = 1;
622 if ($includedocgeneration) {
624 $relativepath = $objref.
'/'.$objref.
'.pdf';
625 $filedir = $conf->recruitment->dir_output.
'/'.$object->element.
'/'.$objref;
626 $urlsource = $_SERVER[
"PHP_SELF"].
"?id=".$object->id;
627 $genallowed = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'read');
628 $delallowed = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
629 print $formfile->showdocuments(
'recruitment:RecruitmentCandidature', $object->element.
'/'.$objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0,
'',
'',
'', $langs->defaultlang);
633 $linktoelem = $form->showLinkToObjectBlock($object,
null, array(
'recruitmentcandidature'));
634 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
637 print
'</div><div class="fichehalfright">';
641 $morehtmlcenter =
dolGetButtonTitle($langs->trans(
'SeeAll'),
'',
'fa fa-bars imgforviewmode', DOL_URL_ROOT.
'/recruitment/recruitmentcandidature_agenda.php?id='.$object->id);
644 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formactions.class.php';
646 $somethingshown =
$formactions->showactions($object, $object->element.
'@recruitment', (is_object($object->thirdparty) ? $object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlcenter);
648 print
'</div></div>';
652 if (
GETPOST(
'modelselected')) {
657 $modelmail =
'recruitmentcandidature_send';
658 $defaulttopic =
'InformationMessage';
659 $diroutput = $conf->recruitment->dir_output;
660 $trackid =
'recruitmentcandidature'.$object->id;
661 $inreplyto = $object->email_msgid;
664 $job->fetch($object->fk_recruitmentjobposition);
666 require_once DOL_DOCUMENT_ROOT.
'/user/class/user.class.php';
667 $recruiter =
new User($db);
668 $recruiter->fetch($job->fk_user_recruiter);
670 $recruitername = $recruiter->getFullName(
'');
671 $recruitermail = (!empty($job->email_recruiter) ? $job->email_recruiter : $recruiter->email);
673 include DOL_DOCUMENT_ROOT.
'/core/tpl/card_presend.tpl.php';
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.
Class for RecruitmentCandidature.
Class for RecruitmentJobPosition.
Class to manage Dolibarr users.
dol_buildlogin($lastname, $firstname)
Build a login from lastname, firstname.
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.
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.
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.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.