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');
52$cancel =
GETPOST(
'cancel',
'aZ09');
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);
104$parameters = array();
105$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
110if (empty($reshook)) {
113 $backurlforlist =
dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1);
115 if (empty($backtopage) || ($cancel && empty($id))) {
116 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
117 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
118 $backtopage = $backurlforlist;
120 $backtopage = DOL_URL_ROOT.
'/recruitment/recruitmentcandidature_card.php?id='.(
$id > 0 ?
$id :
'__ID__');
124 $triggermodname =
'RECRUITMENTCANDIDATURE_MODIFY';
127 $object->email_fields_no_propagate_in_actioncomm = 1;
128 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
129 $object->email_fields_no_propagate_in_actioncomm = 0;
132 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
135 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
141 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
143 if ($action ==
'classin' && $permissiontoadd) {
146 if ($action ==
'confirm_decline' && $confirm ==
'yes' && $permissiontoadd) {
147 $result =
$object->setStatut($object::STATUS_REFUSED,
null,
'', $triggermodname);
153 if ($action ==
'confirm_makeofferordecline' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
155 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")),
null,
'errors');
156 $action =
'makeofferordecline';
159 if (
$object->status == $object::STATUS_VALIDATED) {
162 if (
GETPOSTINT(
'status') == $object::STATUS_REFUSED) {
163 $result =
$object->setStatut($object::STATUS_REFUSED,
null,
'', $triggermodname);
168 $result =
$object->setStatut($object::STATUS_CONTRACT_PROPOSED,
null,
'', $triggermodname);
183 if ($action ==
'confirm_closeas' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
185 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")),
null,
'errors');
186 $action =
'makeofferordecline';
189 if (
$object->status == $object::STATUS_CONTRACT_PROPOSED) {
192 if (
GETPOSTINT(
'status') == $object::STATUS_CONTRACT_REFUSED) {
193 $result =
$object->setStatut($object::STATUS_CONTRACT_REFUSED,
null,
'', $triggermodname);
198 $result =
$object->setStatut($object::STATUS_CONTRACT_SIGNED,
null,
'', $triggermodname);
214 if ($action ==
'confirm_create_user' && $confirm ==
'yes' && $user->hasRight(
'user',
'user',
'creer')) {
216 $jobposition->fetch(
$object->fk_recruitmentjobposition);
221 $nuser =
new User($db);
222 $nuser->login =
GETPOST(
'login',
'alphanohtml');
224 $nuser->employee = 1;
225 $nuser->firstname =
$object->firstname;
226 $nuser->lastname =
$object->lastname;
228 $nuser->personal_email =
$object->email;
229 $nuser->personal_mobile =
$object->phone;
230 $nuser->birth =
$object->date_birth;
231 $nuser->salary =
$object->remuneration_proposed;
232 $nuser->fk_user = $jobposition->fk_user_supervisor;
233 $nuser->email =
$object->email;
235 $result = $nuser->create($user);
239 $langs->load(
"errors");
241 $action =
'create_user';
251 setEventMessages($langs->trans(
"NewUserCreated", $nuser->login),
null,
'mesgs');
259 $triggersendname =
'RECRUITMENTCANDIDATURE_SENTBYMAIL';
260 $autocopy =
'MAIN_MAIL_AUTOCOPY_RECRUITMENTCANDIDATURE_TO';
261 $trackid =
'recruitmentcandidature'.$object->id;
262 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
274$form =
new Form($db);
278if ($action ==
'create') {
279 $title = $langs->trans(
'NewCandidature');
282 $title =
$object->ref.
" - ".$langs->trans(
'Card');
289if ($action ==
'create') {
292 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
293 print
'<input type="hidden" name="token" value="'.newToken().
'">';
294 print
'<input type="hidden" name="action" value="add">';
296 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
298 if ($backtopageforcancel) {
299 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
304 print
'<table class="border centpercent tableforfieldcreate">'.
"\n";
307 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
310 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
312 print
'</table>'.
"\n";
316 print $form->buttonsSaveCancel(
"Create");
324if (($id || $ref) && $action ==
'edit') {
325 print
load_fiche_titre($langs->trans(
"RecruitmentCandidature"),
'',
'object_'.$object->picto);
327 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
328 print
'<input type="hidden" name="token" value="'.newToken().
'">';
329 print
'<input type="hidden" name="action" value="update">';
330 print
'<input type="hidden" name="id" value="'.$object->id.
'">';
332 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
334 if ($backtopageforcancel) {
335 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
340 print
'<table class="border centpercent tableforfieldedit">'.
"\n";
343 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
346 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
352 print $form->buttonsSaveCancel();
358if (
$object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
359 $res =
$object->fetch_optionals();
367 if ($action ==
'delete') {
368 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'DeleteRecruitmentCandidature'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
371 if ($action ==
'deleteline') {
372 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
375 if ($action ==
'clone') {
377 $formquestion = array();
378 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk',
$object->ref),
'confirm_clone', $formquestion,
'yes', 1);
381 if ($action ==
'makeofferordecline') {
382 $langs->load(
"propal");
385 $formquestion = array(
386 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))),
387 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
392 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_makeofferordecline', $formquestion,
'', 1, 250);
395 if ($action ==
'closeas') {
396 $langs->load(
"propal");
399 $formquestion = array(
400 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))),
401 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
406 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_closeas', $formquestion,
'', 1, 250);
409 if ($action ==
'close') {
410 $langs->load(
"propal");
413 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ConfirmClose'), $langs->trans(
'ConfirmCloseAsk'),
'confirm_close', $formquestion,
'', 1, 250);
417 if ($action ==
'create_user') {
418 $login = (GETPOSTISSET(
'login') ?
GETPOST(
'login',
'alphanohtml') :
$object->login);
421 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
425 $login = strtolower(substr(
$object->firstname, 0, 4)).strtolower(substr(
$object->lastname, 0, 4));
429 $formquestion = array(
430 array(
'label' => $langs->trans(
"LoginToCreate"),
'type' =>
'text',
'name' =>
'login',
'value' => $login)
432 $text .= $langs->trans(
"ConfirmCreateLogin");
433 print $form->formconfirm($_SERVER[
"PHP_SELF"].
"?id=".
$object->id, $langs->trans(
"CreateDolibarrLogin"), $text,
"confirm_create_user", $formquestion,
'yes');
437 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
438 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
439 if (empty($reshook)) {
440 $formconfirm .= $hookmanager->resPrint;
441 } elseif ($reshook > 0) {
442 $formconfirm = $hookmanager->resPrint;
451 $linkback =
'<a href="'.dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
453 $morehtmlref =
'<div class="refidno">';
454 $morehtmlref .=
$object->getFullName(
null, 1);
492 if (!empty(
$object->email_msgid)) {
493 $morehtmlref .=
'<br>'.$langs->trans(
"CreatedBy").
' ';
495 if (
$object->fk_user_creat > 0) {
496 $fuser =
new User($db);
497 $fuser->fetch(
$object->fk_user_creat);
498 $morehtmlref .= $fuser->getNomUrl(-1);
500 $morehtmlref .=
' <small class="hideonsmartphone opacitymedium">('.$form->textwithpicto($langs->trans(
"CreatedByEmailCollector"), $langs->trans(
"EmailMsgID").
': '.
$object->email_msgid).
')</small>';
506 $morehtmlref .=
'</div>';
509 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
512 print
'<div class="fichecenter">';
513 print
'<div class="fichehalfleft">';
514 print
'<div class="underbanner clearboth"></div>';
515 print
'<table class="border centpercent tableforfield">'.
"\n";
518 $keyforbreak =
'description';
519 unset(
$object->fields[
'email']);
521 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_view.tpl.php';
524 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
530 print
'<div class="clearboth"></div>';
536 if ($action !=
'presend' && $action !=
'editline') {
537 print
'<div class="tabsAction">'.
"\n";
538 $parameters = array();
539 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
544 if (empty($reshook)) {
546 if (empty($user->socid)) {
547 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";
551 if (
$object->status == $object::STATUS_VALIDATED) {
552 if ($permissiontoadd) {
553 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=confirm_setdraft&token='.
newToken().
'&confirm=yes">'.$langs->trans(
"SetToDraft").
'</a>';
558 if ($permissiontoadd) {
559 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=edit&token='.
newToken().
'">'.$langs->trans(
"Modify").
'</a>'.
"\n";
561 print
'<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
'Modify').
'</a>'.
"\n";
565 if (
$object->status == $object::STATUS_DRAFT) {
566 if ($permissiontoadd) {
568 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=confirm_validate&token='.
newToken().
'&confirm=yes">'.$langs->trans(
"Validate").
'</a>';
570 $langs->load(
"errors");
571 print
'<a class="butActionRefused" href="" title="'.$langs->trans(
"ErrorAddAtLeastOneLineFirst").
'">'.$langs->trans(
"Validate").
'</a>';
577 if (
$object->status >= $object::STATUS_VALIDATED &&
$object->status < $object::STATUS_CONTRACT_PROPOSED) {
578 if ($permissiontoadd) {
579 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=makeofferordecline&token='.
newToken().
'">'.$langs->trans(
"MakeOffer").
' / '.$langs->trans(
"Decline").
'</a>';
584 if (
$object->status == $object::STATUS_CONTRACT_PROPOSED) {
585 if ($permissiontoadd) {
586 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=closeas&token='.
newToken().
'">'.$langs->trans(
"Accept").
' / '.$langs->trans(
"Decline").
'</a>';
591 if ($permissiontoadd) {
592 print
dolGetButtonAction($langs->trans(
"ToClone"),
'',
'default', $_SERVER[
'PHP_SELF'].
'?id='.
$object->id.(!empty(
$object->socid) ?
'&socid='.$object->socid :
'').
'&action=clone&object=recruitmentcandidature',
'clone', $permissiontoadd);
596 if (
$object->status == $object::STATUS_CONTRACT_SIGNED) {
597 if ($user->hasRight(
'user',
'user',
'creer')) {
598 $useralreadyexists =
$object->fk_user;
599 if (empty($useralreadyexists)) {
600 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>';
602 print
'<div class="inline-block divButAction"><a class="butActionRefused" href="#">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
605 print
'<div class="inline-block divButAction"><span class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
"CreateDolibarrLogin").
"</span></div>";
610 if ($permissiontoadd) {
611 if (
$object->status == $object::STATUS_VALIDATED) {
612 print
'<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=close&token='.
newToken().
'">'.$langs->trans(
"Cancel").
'</a>'.
"\n";
613 } elseif (
$object->status == $object::STATUS_REFUSED ||
$object->status == $object::STATUS_CANCELED ||
$object->status == $object::STATUS_CONTRACT_REFUSED) {
614 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=confirm_reopen&confirm=yes&token='.
newToken().
'">'.$langs->trans(
"Re-Open").
'</a>'.
"\n";
619 print
dolGetButtonAction($langs->trans(
"Delete"),
'',
'delete', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=delete&token='.
newToken(),
'delete', $permissiontodelete);
626 if (
GETPOST(
'modelselected')) {
630 if ($action !=
'presend') {
631 print
'<div class="fichecenter"><div class="fichehalfleft">';
632 print
'<a name="builddoc"></a>';
634 $includedocgeneration = 1;
637 if ($includedocgeneration) {
639 $relativepath = $objref.
'/'.$objref.
'.pdf';
640 $filedir =
$conf->recruitment->dir_output.
'/'.
$object->element.
'/'.$objref;
641 $urlsource = $_SERVER[
"PHP_SELF"].
"?id=".
$object->id;
642 $genallowed = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'read');
643 $delallowed = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
644 print $formfile->showdocuments(
'recruitment:RecruitmentCandidature',
$object->element.
'/'.$objref, $filedir, $urlsource, $genallowed, $delallowed,
$object->model_pdf, 1, 0, 0, 28, 0,
'',
'',
'', $langs->defaultlang);
648 $tmparray = $form->showLinkToObjectBlock($object, array(), array(
'recruitmentcanidature'), 1);
649 $linktoelem = $tmparray[
'linktoelem'];
650 $htmltoenteralink = $tmparray[
'htmltoenteralink'];
651 print $htmltoenteralink;
653 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
656 print
'</div><div class="fichehalfright">';
660 $morehtmlcenter =
dolGetButtonTitle($langs->trans(
'SeeAll'),
'',
'fa fa-bars imgforviewmode', DOL_URL_ROOT.
'/recruitment/recruitmentcandidature_agenda.php?id='.
$object->id);
663 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formactions.class.php';
665 $somethingshown = $formactions->showactions($object,
$object->element.
'@recruitment', (is_object(
$object->thirdparty) ?
$object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlcenter);
667 print
'</div></div>';
671 if (
GETPOST(
'modelselected')) {
676 $modelmail =
'recruitmentcandidature_send';
677 $defaulttopic =
'InformationMessage';
678 $diroutput =
$conf->recruitment->dir_output;
679 $trackid =
'recruitmentcandidature'.$object->id;
680 $inreplyto =
$object->email_msgid;
683 $job->fetch(
$object->fk_recruitmentjobposition);
685 require_once DOL_DOCUMENT_ROOT.
'/user/class/user.class.php';
686 $recruiter =
new User($db);
687 $recruiter->fetch($job->fk_user_recruiter);
689 $recruitername = $recruiter->getFullName(
'');
690 $recruitermail = (!empty($job->email_recruiter) ? $job->email_recruiter : $recruiter->email);
692 include DOL_DOCUMENT_ROOT.
'/core/tpl/card_presend.tpl.php';
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($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.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
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)
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.
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.
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.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1)
Clean a string to use it as a file name.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
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.