26require_once
'../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
31require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentjobposition.class.php';
32require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentcandidature.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/recruitment/lib/recruitment_recruitmentcandidature.lib.php';
36$langs->loadLangs(array(
"recruitment",
"other",
"users"));
41$action =
GETPOST(
'action',
'aZ09');
42$confirm =
GETPOST(
'confirm',
'alpha');
43$cancel =
GETPOST(
'cancel',
'aZ09');
44$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'recruitmentcandidaturecard';
45$backtopage =
GETPOST(
'backtopage',
'alpha');
46$backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
52$diroutputmassaction = $conf->recruitment->dir_output.
'/temp/massgeneration/'.$user->id;
53$hookmanager->initHooks(array(
'recruitmentcandidaturecard',
'globalcard'));
56$extrafields->fetch_name_optionals_label(
$object->table_element);
58$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
61$search_all =
GETPOST(
"search_all",
'alpha');
63foreach (
$object->fields as $key => $val) {
64 if (
GETPOST(
'search_'.$key,
'alpha')) {
65 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
69if (empty($action) && empty($id) && empty($ref)) {
74include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
77$permissiontoread = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'read');
78$permissiontoadd = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
79$permissiontodelete = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'delete') || ($permissiontoadd && isset(
$object->status) &&
$object->status == $object::STATUS_DRAFT);
80$permissionnote = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
81$permissiondellink = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
82$upload_dir = $conf->recruitment->multidir_output[isset(
$object->entity) ?
$object->entity : 1];
87$isdraft = ((
$object->status == $object::STATUS_DRAFT) ? 1 : 0);
88$result =
restrictedArea($user,
'recruitment',
$object->id,
'recruitment_recruitmentcandidature',
'recruitmentjobposition',
'',
'rowid', $isdraft);
96$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
101if (empty($reshook)) {
104 $backurlforlist =
dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1);
106 if (empty($backtopage) || ($cancel && empty($id))) {
107 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
108 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
109 $backtopage = $backurlforlist;
111 $backtopage =
dol_buildpath(
'/recruitment/recruitmentcandidature_card.php', 1).
'?id='.(
$id > 0 ?
$id :
'__ID__');
115 $triggermodname =
'RECRUITMENTCANDIDATURE_MODIFY';
118 $object->email_fields_no_propagate_in_actioncomm = 1;
119 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
120 $object->email_fields_no_propagate_in_actioncomm = 0;
123 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
126 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
132 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
134 if ($action ==
'classin' && $permissiontoadd) {
137 if ($action ==
'confirm_decline' && $confirm ==
'yes' && $permissiontoadd) {
138 $result =
$object->setStatut($object::STATUS_REFUSED,
null,
'', $triggermodname);
144 if ($action ==
'confirm_makeofferordecline' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
146 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")),
null,
'errors');
147 $action =
'makeofferordecline';
150 if (
$object->status == $object::STATUS_VALIDATED) {
153 if (
GETPOSTINT(
'status') == $object::STATUS_REFUSED) {
154 $result =
$object->setStatut($object::STATUS_REFUSED,
null,
'', $triggermodname);
159 $result =
$object->setStatut($object::STATUS_CONTRACT_PROPOSED,
null,
'', $triggermodname);
174 if ($action ==
'confirm_closeas' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
176 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")),
null,
'errors');
177 $action =
'makeofferordecline';
180 if (
$object->status == $object::STATUS_CONTRACT_PROPOSED) {
183 if (
GETPOSTINT(
'status') == $object::STATUS_CONTRACT_REFUSED) {
184 $result =
$object->setStatut($object::STATUS_CONTRACT_REFUSED,
null,
'', $triggermodname);
189 $result =
$object->setStatut($object::STATUS_CONTRACT_SIGNED,
null,
'', $triggermodname);
205 if ($action ==
'confirm_create_user' && $confirm ==
'yes' && $user->hasRight(
'user',
'user',
'creer')) {
207 $jobposition->fetch(
$object->fk_recruitmentjobposition);
212 $nuser =
new User($db);
213 $nuser->login =
GETPOST(
'login',
'alphanohtml');
215 $nuser->employee = 1;
216 $nuser->firstname =
$object->firstname;
217 $nuser->lastname =
$object->lastname;
219 $nuser->personal_email =
$object->email;
220 $nuser->personal_mobile =
$object->phone;
221 $nuser->birth =
$object->date_birth;
222 $nuser->salary =
$object->remuneration_proposed;
223 $nuser->fk_user = $jobposition->fk_user_supervisor;
224 $nuser->email =
$object->email;
226 $result = $nuser->create($user);
230 $langs->load(
"errors");
232 $action =
'create_user';
242 setEventMessages($langs->trans(
"NewUserCreated", $nuser->login),
null,
'mesgs');
250 $triggersendname =
'RECRUITMENTCANDIDATURE_SENTBYMAIL';
251 $autocopy =
'MAIN_MAIL_AUTOCOPY_RECRUITMENTCANDIDATURE_TO';
252 $trackid =
'recruitmentcandidature'.$object->id;
253 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
265$form =
new Form($db);
269if ($action ==
'create') {
270 $title = $langs->trans(
'NewCandidature');
273 $title =
$object->ref.
" - ".$langs->trans(
'Card');
280if ($action ==
'create') {
281 print
load_fiche_titre($langs->trans(
"NewObject", $langs->transnoentitiesnoconv(
"RecruitmentCandidature")),
'',
'object_'.$object->picto);
283 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
284 print
'<input type="hidden" name="token" value="'.newToken().
'">';
285 print
'<input type="hidden" name="action" value="add">';
287 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
289 if ($backtopageforcancel) {
290 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
295 print
'<table class="border centpercent tableforfieldcreate">'.
"\n";
298 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
301 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
303 print
'</table>'.
"\n";
307 print $form->buttonsSaveCancel(
"Create");
315if (($id || $ref) && $action ==
'edit') {
316 print
load_fiche_titre($langs->trans(
"RecruitmentCandidature"),
'',
'object_'.$object->picto);
318 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
319 print
'<input type="hidden" name="token" value="'.newToken().
'">';
320 print
'<input type="hidden" name="action" value="update">';
321 print
'<input type="hidden" name="id" value="'.$object->id.
'">';
323 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
325 if ($backtopageforcancel) {
326 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
331 print
'<table class="border centpercent tableforfieldedit">'.
"\n";
334 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
337 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
343 print $form->buttonsSaveCancel();
349if (
$object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
350 $res =
$object->fetch_optionals();
358 if ($action ==
'delete') {
359 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'DeleteRecruitmentCandidature'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
362 if ($action ==
'deleteline') {
363 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
366 if ($action ==
'clone') {
368 $formquestion = array();
369 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk',
$object->ref),
'confirm_clone', $formquestion,
'yes', 1);
372 if ($action ==
'makeofferordecline') {
373 $langs->load(
"propal");
376 $formquestion = array(
377 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))),
378 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
383 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_makeofferordecline', $formquestion,
'', 1, 250);
386 if ($action ==
'closeas') {
387 $langs->load(
"propal");
390 $formquestion = array(
391 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))),
392 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
397 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_closeas', $formquestion,
'', 1, 250);
400 if ($action ==
'close') {
401 $langs->load(
"propal");
404 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.
$object->id, $langs->trans(
'ConfirmClose'), $langs->trans(
'ConfirmCloseAsk'),
'confirm_close', $formquestion,
'', 1, 250);
408 if ($action ==
'create_user') {
409 $login = (GETPOSTISSET(
'login') ?
GETPOST(
'login',
'alphanohtml') :
$object->login);
412 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
416 $login = strtolower(substr(
$object->firstname, 0, 4)).strtolower(substr(
$object->lastname, 0, 4));
420 $formquestion = array(
421 array(
'label' => $langs->trans(
"LoginToCreate"),
'type' =>
'text',
'name' =>
'login',
'value' => $login)
423 $text .= $langs->trans(
"ConfirmCreateLogin");
424 print $form->formconfirm($_SERVER[
"PHP_SELF"].
"?id=".
$object->id, $langs->trans(
"CreateDolibarrLogin"), $text,
"confirm_create_user", $formquestion,
'yes');
428 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
429 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
430 if (empty($reshook)) {
431 $formconfirm .= $hookmanager->resPrint;
432 } elseif ($reshook > 0) {
433 $formconfirm = $hookmanager->resPrint;
442 $linkback =
'<a href="'.dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
444 $morehtmlref =
'<div class="refidno">';
445 $morehtmlref .=
$object->getFullName(
null, 1);
483 if (!empty(
$object->email_msgid)) {
484 $morehtmlref .=
'<br>'.$langs->trans(
"CreatedBy").
' ';
486 if (
$object->fk_user_creat > 0) {
487 $fuser =
new User($db);
488 $fuser->fetch(
$object->fk_user_creat);
489 $morehtmlref .= $fuser->getNomUrl(-1);
491 $morehtmlref .=
' <small class="hideonsmartphone opacitymedium">('.$form->textwithpicto($langs->trans(
"CreatedByEmailCollector"), $langs->trans(
"EmailMsgID").
': '.
$object->email_msgid).
')</small>';
497 $morehtmlref .=
'</div>';
500 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
503 print
'<div class="fichecenter">';
504 print
'<div class="fichehalfleft">';
505 print
'<div class="underbanner clearboth"></div>';
506 print
'<table class="border centpercent tableforfield">'.
"\n";
509 $keyforbreak =
'description';
510 unset(
$object->fields[
'email']);
512 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_view.tpl.php';
515 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
521 print
'<div class="clearboth"></div>';
527 if ($action !=
'presend' && $action !=
'editline') {
528 print
'<div class="tabsAction">'.
"\n";
529 $parameters = array();
530 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
535 if (empty($reshook)) {
537 if (empty($user->socid)) {
538 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";
542 if (
$object->status == $object::STATUS_VALIDATED) {
543 if ($permissiontoadd) {
544 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=confirm_setdraft&token='.
newToken().
'&confirm=yes">'.$langs->trans(
"SetToDraft").
'</a>';
549 if ($permissiontoadd) {
550 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=edit&token='.
newToken().
'">'.$langs->trans(
"Modify").
'</a>'.
"\n";
552 print
'<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
'Modify').
'</a>'.
"\n";
556 if (
$object->status == $object::STATUS_DRAFT) {
557 if ($permissiontoadd) {
559 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=confirm_validate&token='.
newToken().
'&confirm=yes">'.$langs->trans(
"Validate").
'</a>';
561 $langs->load(
"errors");
562 print
'<a class="butActionRefused" href="" title="'.$langs->trans(
"ErrorAddAtLeastOneLineFirst").
'">'.$langs->trans(
"Validate").
'</a>';
568 if (
$object->status >= $object::STATUS_VALIDATED &&
$object->status < $object::STATUS_CONTRACT_PROPOSED) {
569 if ($permissiontoadd) {
570 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=makeofferordecline&token='.
newToken().
'">'.$langs->trans(
"MakeOffer").
' / '.$langs->trans(
"Decline").
'</a>';
575 if (
$object->status == $object::STATUS_CONTRACT_PROPOSED) {
576 if ($permissiontoadd) {
577 print
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.
$object->id.
'&action=closeas&token='.
newToken().
'">'.$langs->trans(
"Accept").
' / '.$langs->trans(
"Decline").
'</a>';
582 if ($permissiontoadd) {
583 print
dolGetButtonAction($langs->trans(
"ToClone"),
'',
'default', $_SERVER[
'PHP_SELF'].
'?id='.
$object->id.(!empty(
$object->socid) ?
'&socid='.$object->socid :
'').
'&action=clone&object=recruitmentcandidature',
'clone', $permissiontoadd);
587 if (
$object->status == $object::STATUS_CONTRACT_SIGNED) {
588 if ($user->hasRight(
'user',
'user',
'creer')) {
589 $useralreadyexists =
$object->fk_user;
590 if (empty($useralreadyexists)) {
591 print
'<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=create_user">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
593 print
'<div class="inline-block divButAction"><a class="butActionRefused" href="#">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
596 print
'<div class="inline-block divButAction"><span class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
"CreateDolibarrLogin").
"</span></div>";
601 if ($permissiontoadd) {
602 if (
$object->status == $object::STATUS_VALIDATED) {
603 print
'<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=close&token='.
newToken().
'">'.$langs->trans(
"Cancel").
'</a>'.
"\n";
604 } elseif (
$object->status == $object::STATUS_REFUSED ||
$object->status == $object::STATUS_CANCELED ||
$object->status == $object::STATUS_CONTRACT_REFUSED) {
605 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=confirm_reopen&confirm=yes&token='.
newToken().
'">'.$langs->trans(
"Re-Open").
'</a>'.
"\n";
610 print
dolGetButtonAction($langs->trans(
"Delete"),
'',
'delete', $_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'&action=delete&token='.
newToken(),
'delete', $permissiontodelete);
617 if (
GETPOST(
'modelselected')) {
621 if ($action !=
'presend') {
622 print
'<div class="fichecenter"><div class="fichehalfleft">';
623 print
'<a name="builddoc"></a>';
625 $includedocgeneration = 1;
628 if ($includedocgeneration) {
630 $relativepath = $objref.
'/'.$objref.
'.pdf';
631 $filedir = $conf->recruitment->dir_output.
'/'.
$object->element.
'/'.$objref;
632 $urlsource = $_SERVER[
"PHP_SELF"].
"?id=".
$object->id;
633 $genallowed = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'read');
634 $delallowed = $user->hasRight(
'recruitment',
'recruitmentjobposition',
'write');
635 print $formfile->showdocuments(
'recruitment:RecruitmentCandidature',
$object->element.
'/'.$objref, $filedir, $urlsource, $genallowed, $delallowed,
$object->model_pdf, 1, 0, 0, 28, 0,
'',
'',
'', $langs->defaultlang);
639 $tmparray = $form->showLinkToObjectBlock($object, array(), array(
'recruitmentcanidature'), 1);
640 $linktoelem = $tmparray[
'linktoelem'];
641 $htmltoenteralink = $tmparray[
'htmltoenteralink'];
642 print $htmltoenteralink;
644 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
647 print
'</div><div class="fichehalfright">';
651 $morehtmlcenter =
dolGetButtonTitle($langs->trans(
'SeeAll'),
'',
'fa fa-bars imgforviewmode', DOL_URL_ROOT.
'/recruitment/recruitmentcandidature_agenda.php?id='.
$object->id);
654 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formactions.class.php';
656 $somethingshown = $formactions->showactions($object,
$object->element.
'@recruitment', (is_object(
$object->thirdparty) ?
$object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlcenter);
658 print
'</div></div>';
662 if (
GETPOST(
'modelselected')) {
667 $modelmail =
'recruitmentcandidature_send';
668 $defaulttopic =
'InformationMessage';
669 $diroutput = $conf->recruitment->dir_output;
670 $trackid =
'recruitmentcandidature'.$object->id;
671 $inreplyto =
$object->email_msgid;
674 $job->fetch(
$object->fk_recruitmentjobposition);
676 require_once DOL_DOCUMENT_ROOT.
'/user/class/user.class.php';
677 $recruiter =
new User($db);
678 $recruiter->fetch($job->fk_user_recruiter);
680 $recruitername = $recruiter->getFullName(
'');
681 $recruitermail = (!empty($job->email_recruiter) ? $job->email_recruiter : $recruiter->email);
683 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.
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.