27require_once
'../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
32require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentjobposition.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentcandidature.class.php';
34require_once DOL_DOCUMENT_ROOT.
'/recruitment/lib/recruitment_recruitmentcandidature.lib.php';
45$langs->loadLangs(array(
"recruitment",
"other",
"users"));
50$action =
GETPOST(
'action',
'aZ09');
51$confirm =
GETPOST(
'confirm',
'alpha');
53$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'recruitmentcandidaturecard';
54$backtopage =
GETPOST(
'backtopage',
'alpha');
55$backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
61$diroutputmassaction =
$conf->recruitment->dir_output.
'/temp/massgeneration/'.$user->id;
62$hookmanager->initHooks(array(
'recruitmentcandidaturecard',
'globalcard'));
65$extrafields->fetch_name_optionals_label(
$object->table_element);
67$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
70$search_all =
GETPOST(
"search_all",
'alpha');
72foreach (
$object->fields as $key => $val) {
73 if (
GETPOST(
'search_'.$key,
'alpha')) {
74 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
78if (empty($action) && empty($id) && empty($ref)) {
83include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
86$permissiontoread = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'read');
87$permissiontoadd = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
88$permissiontodelete = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'delete') || ($permissiontoadd && isset(
$object->status) &&
$object->status == $object::STATUS_DRAFT);
89$permissionnote = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
90$permissiondellink = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
91$upload_dir =
$conf->recruitment->multidir_output[isset(
$object->entity) ?
$object->entity : 1];
96$isdraft = ((
$object->status == $object::STATUS_DRAFT) ? 1 : 0);
97$result =
restrictedArea($user,
'recruitment',
$object->id,
'recruitment_recruitmentcandidature',
'recruitmentjobposition',
'',
'rowid', $isdraft);
100if (
GETPOST(
"action",
"aZ09") ==
'create') {
102 preg_match(
'/^(integer|link):(.*):(.*):(.*):(.*)/i',
$object->fields[
'fk_recruitmentjobposition'][
'type'], $reg);
104 $object->fields[
'fk_recruitmentjobposition'][
'type'] .=
" AND (t.status:=:1)";
106 $object->fields[
'fk_recruitmentjobposition'][
'type'] .=
":(t.status:=:1)";
115$parameters = array();
116$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
121if (empty($reshook)) {
124 $backurlforlist =
dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1);
126 if (empty($backtopage) || ($cancel && empty($id))) {
127 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
128 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
129 $backtopage = $backurlforlist;
131 $backtopage = DOL_URL_ROOT.
'/recruitment/recruitmentcandidature_card.php?id='.(
$id > 0 ?
$id :
'__ID__');
135 $triggermodname =
'RECRUITMENTCANDIDATURE_MODIFY';
138 $object->email_fields_no_propagate_in_actioncomm = 1;
139 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
140 $object->email_fields_no_propagate_in_actioncomm = 0;
143 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
146 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
152 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
154 if ($action ==
'classin' && $permissiontoadd) {
157 if ($action ==
'confirm_decline' && $confirm ==
'yes' && $permissiontoadd) {
158 $result =
$object->setStatut($object::STATUS_REFUSED,
null,
'', $triggermodname);
164 if ($action ==
'confirm_makeofferordecline' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
166 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")),
null,
'errors');
167 $action =
'makeofferordecline';
170 if (
$object->status == $object::STATUS_VALIDATED) {
173 if (
GETPOSTINT(
'status') == $object::STATUS_REFUSED) {
174 $result =
$object->setStatut($object::STATUS_REFUSED,
null,
'', $triggermodname);
179 $result =
$object->setStatut($object::STATUS_CONTRACT_PROPOSED,
null,
'', $triggermodname);
194 if ($action ==
'confirm_closeas' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
196 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")),
null,
'errors');
197 $action =
'makeofferordecline';
200 if (
$object->status == $object::STATUS_CONTRACT_PROPOSED) {
203 if (
GETPOSTINT(
'status') == $object::STATUS_CONTRACT_REFUSED) {
204 $result =
$object->setStatut($object::STATUS_CONTRACT_REFUSED,
null,
'', $triggermodname);
209 $result =
$object->setStatut($object::STATUS_CONTRACT_SIGNED,
null,
'', $triggermodname);
225 if ($action ==
'confirm_create_user' && $confirm ==
'yes' && $user->hasRight(
'user',
'user',
'creer')) {
227 $jobposition->fetch(
$object->fk_recruitmentjobposition);
233 $nuser->login =
GETPOST(
'login',
'alphanohtml');
235 $nuser->employee = 1;
236 $nuser->firstname =
$object->firstname;
237 $nuser->lastname =
$object->lastname;
239 $nuser->personal_email =
$object->email;
240 $nuser->personal_mobile =
$object->phone;
241 $nuser->birth =
$object->date_birth;
242 $nuser->salary =
$object->remuneration_proposed;
243 $nuser->fk_user = $jobposition->fk_user_supervisor;
244 $nuser->email =
$object->email;
246 $result = $nuser->create($user);
250 $langs->load(
"errors");
252 $action =
'create_user';
262 setEventMessages($langs->trans(
"NewUserCreated", $nuser->login),
null,
'mesgs');
270 $triggersendname =
'RECRUITMENTCANDIDATURE_SENTBYMAIL';
271 $autocopy =
'MAIN_MAIL_AUTOCOPY_RECRUITMENTCANDIDATURE_TO';
272 $trackid =
'recruitmentcandidature'.$object->id;
273 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
290if ($action ==
'create') {
291 $title = $langs->trans(
'NewCandidature');
294 $title =
$object->ref.
" - ".$langs->trans(
'Card');
301if ($action ==
'create') {
304 print
'<form method="POST" action="'.dolBuildUrl($_SERVER[
"PHP_SELF"]).
'">';
305 print
'<input type="hidden" name="token" value="'.newToken().
'">';
306 print
'<input type="hidden" name="action" value="add">';
308 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
310 if ($backtopageforcancel) {
311 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
316 print
'<table class="border centpercent tableforfieldcreate">'.
"\n";
319 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
322 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
324 print
'</table>'.
"\n";
328 print $form->buttonsSaveCancel(
"Create");
336if (($id || $ref) && $action ==
'edit') {
337 print
load_fiche_titre($langs->trans(
"RecruitmentCandidature"),
'',
'object_'.$object->picto);
339 print
'<form method="POST" action="'.dolBuildUrl($_SERVER[
"PHP_SELF"]).
'">';
340 print
'<input type="hidden" name="token" value="'.newToken().
'">';
341 print
'<input type="hidden" name="action" value="update">';
342 print
'<input type="hidden" name="id" value="'.$object->id.
'">';
344 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
346 if ($backtopageforcancel) {
347 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
352 print
'<table class="border centpercent tableforfieldedit">'.
"\n";
355 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
358 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
364 print $form->buttonsSaveCancel();
370if (
$object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
371 $res =
$object->fetch_optionals();
374 print
dol_get_fiche_head($head,
'card', $langs->trans(
"RecruitmentCandidature"), -1,
$object->picto, 0,
'',
'', 0,
'', 1);
379 if ($action ==
'delete') {
380 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'DeleteRecruitmentCandidature'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
383 if ($action ==
'deleteline') {
384 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
387 if ($action ==
'clone') {
389 $formquestion = array();
390 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk',
$object->ref),
'confirm_clone', $formquestion,
'yes', 1);
393 if ($action ==
'makeofferordecline') {
394 $langs->load(
"propal");
397 $formquestion = array(
398 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))),
399 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
404 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_makeofferordecline', $formquestion,
'', 1, 250);
407 if ($action ==
'closeas') {
408 $langs->load(
"propal");
411 $formquestion = array(
412 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))),
413 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
418 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_closeas', $formquestion,
'', 1, 250);
421 if ($action ==
'close') {
422 $langs->load(
"propal");
423 $formquestion = array();
425 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ConfirmClose'), $langs->trans(
'ConfirmCloseAsk'),
'confirm_close', $formquestion,
'', 1, 250);
429 if ($action ==
'create_user') {
430 $login = (GETPOSTISSET(
'login') ?
GETPOST(
'login',
'alphanohtml') :
$object->login);
433 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
437 $login = strtolower(substr(
$object->firstname, 0, 4)).strtolower(substr(
$object->lastname, 0, 4));
441 $formquestion = array(
442 array(
'label' => $langs->trans(
"LoginToCreate"),
'type' =>
'text',
'name' =>
'login',
'value' => $login)
444 $text .= $langs->trans(
"ConfirmCreateLogin");
445 print $form->formconfirm($_SERVER[
"PHP_SELF"].
"?id=".
$object->id, $langs->trans(
"CreateDolibarrLogin"), $text,
"confirm_create_user", $formquestion,
'yes');
449 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
450 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
451 if (empty($reshook)) {
452 $formconfirm .= $hookmanager->resPrint;
453 } elseif ($reshook > 0) {
454 $formconfirm = $hookmanager->resPrint;
463 $linkback =
'<a href="'.dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
465 $morehtmlref =
'<div class="refidno">';
466 $morehtmlref .=
$object->getFullName(
null, 1);
504 if (!empty(
$object->email_msgid)) {
505 $morehtmlref .=
'<br>'.$langs->trans(
"CreatedBy").
' ';
507 if (
$object->fk_user_creat > 0) {
509 $fuser->fetch(
$object->fk_user_creat);
510 $morehtmlref .= $fuser->getNomUrl(-1);
512 $morehtmlref .=
' <small class="hideonsmartphone opacitymedium">('.$form->textwithpicto($langs->trans(
"CreatedByEmailCollector"), $langs->trans(
"EmailMsgID").
': '.
$object->email_msgid).
')</small>';
518 $morehtmlref .=
'</div>';
521 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
524 print
'<div class="fichecenter">';
525 print
'<div class="fichehalfleft">';
526 print
'<div class="underbanner clearboth"></div>';
527 print
'<table class="border centpercent tableforfield">'.
"\n";
530 $keyforbreak =
'description';
531 unset(
$object->fields[
'email']);
533 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_view.tpl.php';
536 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
542 print
'<div class="clearboth"></div>';
548 if ($action !=
'presend' && $action !=
'editline') {
549 print
'<div class="tabsAction">'.
"\n";
550 $parameters = array();
551 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
556 if (empty($reshook)) {
558 if (empty($user->socid)) {
559 print dolGetButtonAction(
'', $langs->trans(
'SendMail'),
'email',
dolBuildUrl($_SERVER[
"PHP_SELF"], [
'id' =>
$object->id,
'action' =>
'presend',
'mode' =>
'init'],
true).
'#formmailbeforetitle',
'');
563 if (
$object->status == $object::STATUS_VALIDATED) {
564 if ($permissiontoadd) {
565 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=confirm_setdraft&token='.newToken().
'&confirm=yes">'.$langs->trans(
"SetToDraft").
'</a>';
570 if ($permissiontoadd) {
571 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=edit&token='.newToken().
'">'.$langs->trans(
"Modify").
'</a>'.
"\n";
573 print
'<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
'Modify').
'</a>'.
"\n";
577 if (
$object->status == $object::STATUS_DRAFT) {
578 if ($permissiontoadd) {
580 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=confirm_validate&token='.newToken().
'&confirm=yes">'.$langs->trans(
"Validate").
'</a>';
582 $langs->load(
"errors");
583 print
'<a class="butActionRefused" href="" title="'.$langs->trans(
"ErrorAddAtLeastOneLineFirst").
'">'.$langs->trans(
"Validate").
'</a>';
589 if (
$object->status >= $object::STATUS_VALIDATED &&
$object->status < $object::STATUS_CONTRACT_PROPOSED) {
590 if ($permissiontoadd) {
591 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=makeofferordecline&token='.newToken().
'">'.$langs->trans(
"MakeOffer").
' / '.$langs->trans(
"Decline").
'</a>';
596 if (
$object->status == $object::STATUS_CONTRACT_PROPOSED) {
597 if ($permissiontoadd) {
598 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=closeas&token='.newToken().
'">'.$langs->trans(
"Accept").
' / '.$langs->trans(
"Decline").
'</a>';
603 if ($permissiontoadd) {
604 print dolGetButtonAction($langs->trans(
"ToClone"),
'',
'clone', $_SERVER[
'PHP_SELF'].
'?id='.
$object->id.(!empty(
$object->socid) ?
'&socid='.$object->socid :
'').
'&action=clone&object=recruitmentcandidature',
'clone', $permissiontoadd);
608 if (
$object->status == $object::STATUS_CONTRACT_SIGNED) {
609 if ($user->hasRight(
'user',
'user',
'creer')) {
610 $useralreadyexists =
$object->fk_user;
611 if (empty($useralreadyexists)) {
612 print
'<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=create_user&token='.newToken().
'">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
614 print
'<div class="inline-block divButAction"><a class="butActionRefused" href="#">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
617 print
'<div class="inline-block divButAction"><span class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
"CreateDolibarrLogin").
"</span></div>";
622 if ($permissiontoadd) {
623 if (
$object->status == $object::STATUS_VALIDATED) {
624 print
'<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=close&token='.newToken().
'">'.$langs->trans(
"Cancel").
'</a>'.
"\n";
625 } elseif (
$object->status == $object::STATUS_REFUSED ||
$object->status == $object::STATUS_CANCELED ||
$object->status == $object::STATUS_CONTRACT_REFUSED) {
626 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=confirm_reopen&confirm=yes&token='.newToken().
'">'.$langs->trans(
"Re-Open").
'</a>'.
"\n";
631 print dolGetButtonAction($langs->trans(
"Delete"),
'',
'delete', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=delete&token='.newToken(),
'delete', $permissiontodelete);
638 if (
GETPOST(
'modelselected')) {
642 if ($action !=
'presend') {
643 print
'<div class="fichecenter"><div class="fichehalfleft">';
644 print
'<a name="builddoc"></a>';
646 $includedocgeneration = 1;
649 if ($includedocgeneration) {
651 $relativepath = $objref.
'/'.$objref.
'.pdf';
652 $filedir =
$conf->recruitment->dir_output.
'/'.
$object->element.
'/'.$objref;
653 $urlsource = $_SERVER[
"PHP_SELF"].
"?id=".
$object->id;
654 $genallowed = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'read');
655 $delallowed = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
656 print $formfile->showdocuments(
'recruitment:RecruitmentCandidature',
$object->element.
'/'.$objref, $filedir, $urlsource, $genallowed, $delallowed,
$object->model_pdf, 1, 0, 0, 28, 0,
'',
'',
'', $langs->defaultlang);
660 $tmparray = $form->showLinkToObjectBlock($object, array(), array(
'recruitmentcanidature'), 1);
661 $linktoelem = $tmparray[
'linktoelem'];
662 $htmltoenteralink = $tmparray[
'htmltoenteralink'];
663 print $htmltoenteralink;
665 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
668 print
'</div><div class="fichehalfright">';
672 $morehtmlcenter = dolGetButtonTitle($langs->trans(
'SeeAll'),
'',
'fa fa-bars imgforviewmode', DOL_URL_ROOT.
'/recruitment/recruitmentcandidature_agenda.php?id='.
$object->id);
675 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formactions.class.php';
677 $somethingshown = $formactions->showactions($object,
$object->element.
'@recruitment', (is_object(
$object->thirdparty) ?
$object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlcenter);
679 print
'</div></div>';
683 if (
GETPOST(
'modelselected')) {
688 $modelmail =
'recruitmentcandidature_send';
689 $defaulttopic =
'InformationMessage';
690 $diroutput =
$conf->recruitment->dir_output;
691 $trackid =
'recruitmentcandidature'.$object->id;
692 $inreplyto =
$object->email_msgid;
695 $job->fetch(
$object->fk_recruitmentjobposition);
697 require_once DOL_DOCUMENT_ROOT.
'/user/class/user.class.php';
699 $recruiter->fetch($job->fk_user_recruiter);
701 $recruitername = $recruiter->getFullName($langs);
702 $recruitermail = (!empty($job->email_recruiter) ? $job->email_recruiter : $recruiter->email);
704 include DOL_DOCUMENT_ROOT.
'/core/tpl/card_presend.tpl.php';
$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 RecruitmentCandidature.
Class for RecruitmentJobPosition.
Class to manage Dolibarr users.
dol_buildlogin($lastname, $firstname)
Build a login from lastname, firstname.
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, $morecssdiv='')
Show tabs of a record.
dolBuildUrl($url, $params=[], $addtoken=false, $anchor='')
Return path of url.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1, $includequotes=0, $allowdash=0)
Clean a string to use it as a file name.
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.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
recruitmentCandidaturePrepareHead($object)
Prepare array of tabs for RecruitmentCandidature.
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.