45 require_once
'../main.inc.php';
46 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
47 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
48 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
49 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
50 require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentjobposition.class.php';
51 require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentcandidature.class.php';
52 require_once DOL_DOCUMENT_ROOT.
'/recruitment/lib/recruitment_recruitmentcandidature.lib.php';
55 $langs->loadLangs(array(
"recruitment",
"other",
"users"));
60 $action =
GETPOST(
'action',
'aZ09');
61 $confirm =
GETPOST(
'confirm',
'alpha');
62 $cancel =
GETPOST(
'cancel',
'aZ09');
63 $contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'recruitmentcandidaturecard';
64 $backtopage =
GETPOST(
'backtopage',
'alpha');
65 $backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
71 $diroutputmassaction = $conf->recruitment->dir_output.
'/temp/massgeneration/'.$user->id;
72 $hookmanager->initHooks(array(
'recruitmentcandidaturecard',
'globalcard'));
75 $extrafields->fetch_name_optionals_label($object->table_element);
77 $search_array_options = $extrafields->getOptionalsFromPost($object->table_element,
'',
'search_');
80 $search_all =
GETPOST(
"search_all",
'alpha');
82 foreach ($object->fields as $key => $val) {
83 if (
GETPOST(
'search_'.$key,
'alpha')) {
84 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
88 if (empty($action) && empty($id) && empty($ref)) {
93 include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
96 $permissiontoread = $user->rights->recruitment->recruitmentjobposition->read;
97 $permissiontoadd = $user->rights->recruitment->recruitmentjobposition->write;
98 $permissiontodelete = $user->rights->recruitment->recruitmentjobposition->delete || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
99 $permissionnote = $user->rights->recruitment->recruitmentjobposition->write;
100 $permissiondellink = $user->rights->recruitment->recruitmentjobposition->write;
101 $upload_dir = $conf->recruitment->multidir_output[isset($object->entity) ? $object->entity : 1];
106 $isdraft = (($object->status == $object::STATUS_DRAFT) ? 1 : 0);
107 $result =
restrictedArea($user,
'recruitment', $object->id,
'recruitment_recruitmentcandidature',
'recruitmentjobposition',
'',
'rowid', $isdraft);
114 $parameters = array();
115 $reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
120 if (empty($reshook)) {
123 $backurlforlist =
dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1);
125 if (empty($backtopage) || ($cancel && empty($id))) {
126 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
127 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
128 $backtopage = $backurlforlist;
130 $backtopage =
dol_buildpath(
'/recruitment/recruitmentcandidature_card.php', 1).
'?id='.($id > 0 ? $id :
'__ID__');
134 $triggermodname =
'RECRUITMENTCANDIDATURE_MODIFY';
137 $object->email_fields_no_propagate_in_actioncomm = 1;
138 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
139 $object->email_fields_no_propagate_in_actioncomm = 0;
142 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
145 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
151 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
153 if ($action ==
'classin' && $permissiontoadd) {
154 $object->setProject(
GETPOST(
'projectid',
'int'));
156 if ($action ==
'confirm_decline' && $confirm ==
'yes' && $permissiontoadd) {
157 $result = $object->setStatut($object::STATUS_REFUSED, null,
'', $triggermodname);
163 if ($action ==
'confirm_makeofferordecline' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
164 if (!(
GETPOST(
'status',
'int') > 0)) {
165 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")), null,
'errors');
166 $action =
'makeofferordecline';
169 if ($object->status == $object::STATUS_VALIDATED) {
172 if (
GETPOST(
'status',
'int') == $object::STATUS_REFUSED) {
173 $result = $object->setStatut($object::STATUS_REFUSED, null,
'', $triggermodname);
178 $result = $object->setStatut($object::STATUS_CONTRACT_PROPOSED, null,
'', $triggermodname);
193 if ($action ==
'confirm_closeas' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
194 if (!(
GETPOST(
'status',
'int') > 0)) {
195 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")), null,
'errors');
196 $action =
'makeofferordecline';
199 if ($object->status == $object::STATUS_CONTRACT_PROPOSED) {
202 if (
GETPOST(
'status',
'int') == $object::STATUS_CONTRACT_REFUSED) {
203 $result = $object->setStatut($object::STATUS_CONTRACT_REFUSED, null,
'', $triggermodname);
208 $result = $object->setStatut($object::STATUS_CONTRACT_SIGNED, null,
'', $triggermodname);
224 if ($action ==
'confirm_create_user' && $confirm ==
'yes' && $user->rights->user->user->creer) {
227 $jobposition->fetch($object->fk_recruitmentjobposition);
230 $nuser =
new User($db);
231 $nuser->login =
GETPOST(
'login',
'alphanohtml');
233 $nuser->employee = 1;
234 $nuser->firstname = $object->firstname;
235 $nuser->lastname = $object->lastname;
237 $nuser->personal_email = $object->email;
238 $nuser->personal_mobile = $object->phone;
239 $nuser->birth = $object->date_birth;
240 $nuser->salary = $object->remuneration_proposed;
241 $nuser->fk_user = $jobposition->fk_user_supervisor;
242 $nuser->email = $object->email;
244 $result = $nuser->create($user);
247 $langs->load(
"errors");
249 $action =
'create_user';
251 setEventMessages($langs->trans(
"NewUserCreated", $nuser->login), null,
'mesgs');
256 $action =
'create_user';
261 $triggersendname =
'RECRUITMENTCANDIDATURE_SENTBYMAIL';
262 $autocopy =
'MAIN_MAIL_AUTOCOPY_RECRUITMENTCANDIDATURE_TO';
263 $trackid =
'recruitmentcandidature'.$object->id;
264 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
280 $title = $langs->trans(
"RecruitmentCandidature");
286 if ($action ==
'create') {
287 print
load_fiche_titre($langs->trans(
"NewObject", $langs->transnoentitiesnoconv(
"RecruitmentCandidature")),
'',
'object_'.$object->picto);
289 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
290 print
'<input type="hidden" name="token" value="'.newToken().
'">';
291 print
'<input type="hidden" name="action" value="add">';
293 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
295 if ($backtopageforcancel) {
296 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
301 print
'<table class="border centpercent tableforfieldcreate">'.
"\n";
304 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
307 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
309 print
'</table>'.
"\n";
313 print
$form->buttonsSaveCancel(
"Create");
321 if (($id || $ref) && $action ==
'edit') {
322 print
load_fiche_titre($langs->trans(
"RecruitmentCandidature"),
'',
'object_'.$object->picto);
324 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
325 print
'<input type="hidden" name="token" value="'.newToken().
'">';
326 print
'<input type="hidden" name="action" value="update">';
327 print
'<input type="hidden" name="id" value="'.$object->id.
'">';
329 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
331 if ($backtopageforcancel) {
332 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
337 print
'<table class="border centpercent tableforfieldedit">'.
"\n";
340 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
343 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
349 print
$form->buttonsSaveCancel();
355 if ($object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
356 $res = $object->fetch_optionals();
358 $head = recruitmentcandidaturePrepareHead($object);
359 print
dol_get_fiche_head($head,
'card', $langs->trans(
"RecruitmentCandidature"), -1, $object->picto);
364 if ($action ==
'delete') {
365 $formconfirm =
$form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'DeleteRecruitmentCandidature'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
368 if ($action ==
'deleteline') {
369 $formconfirm =
$form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
372 if ($action ==
'clone') {
374 $formquestion = array();
375 $formconfirm =
$form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk', $object->ref),
'confirm_clone', $formquestion,
'yes', 1);
378 if ($action ==
'makeofferordecline') {
379 $langs->load(
"propal");
382 $formquestion = array(
383 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))),
384 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
389 $formconfirm =
$form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_makeofferordecline', $formquestion,
'', 1, 250);
392 if ($action ==
'closeas') {
393 $langs->load(
"propal");
396 $formquestion = array(
397 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))),
398 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
403 $formconfirm =
$form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_closeas', $formquestion,
'', 1, 250);
407 if ($action ==
'create_user') {
411 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
415 $login = strtolower(substr($object->firstname, 0, 4)).strtolower(substr($object->lastname, 0, 4));
419 $formquestion = array(
420 array(
'label' => $langs->trans(
"LoginToCreate"),
'type' =>
'text',
'name' =>
'login',
'value' => $login)
422 $text .= $langs->trans(
"ConfirmCreateLogin");
423 print
$form->formconfirm($_SERVER[
"PHP_SELF"].
"?id=".$object->id, $langs->trans(
"CreateDolibarrLogin"), $text,
"confirm_create_user", $formquestion,
'yes');
427 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
428 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
429 if (empty($reshook)) {
430 $formconfirm .= $hookmanager->resPrint;
431 } elseif ($reshook > 0) {
432 $formconfirm = $hookmanager->resPrint;
441 $linkback =
'<a href="'.dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
443 $morehtmlref =
'<div class="refidno">';
481 if (!empty($object->email_msgid)) {
482 $morehtmlref .= $langs->trans(
"CreatedBy").
' : ';
484 if ($object->fk_user_creat > 0) {
485 $fuser =
new User($db);
486 $fuser->fetch($object->fk_user_creat);
487 $morehtmlref .= $fuser->getNomUrl(-1);
489 if (!empty($object->email_msgid)) {
490 $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&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) {
558 if (empty($object->table_element_line) || (is_array($object->lines) && count($object->lines) > 0)) {
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">'.$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
'<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&socid='.$object->socid.
'&action=clone&object=recruitmentcandidature">'.$langs->trans(
"ToClone").
'</a>'.
"\n";
587 if ($object->status == $object::STATUS_CONTRACT_SIGNED) {
588 if ($user->rights->user->user->creer) {
590 $useralreadyexists = 0;
591 if (empty($useralreadyexists)) {
592 print
'<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=create_user">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
594 print
'<div class="inline-block divButAction"><a class="butActionRefused" href="#">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
597 print
'<div class="inline-block divButAction"><span class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
"CreateDolibarrLogin").
"</span></div>";
602 if ($permissiontoadd) {
603 if ($object->status == $object::STATUS_VALIDATED) {
604 print
'<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=close&token='.
newToken().
'">'.$langs->trans(
"Cancel").
'</a>'.
"\n";
605 } elseif ($object->status == $object::STATUS_REFUSED || $object->status == $object::STATUS_CANCELED || $object->status == $object::STATUS_CONTRACT_REFUSED) {
606 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=confirm_reopen&confirm=yes&token='.
newToken().
'">'.$langs->trans(
"Re-Open").
'</a>'.
"\n";
611 if ($permissiontodelete || ($object->status == $object::STATUS_DRAFT && $permissiontoadd)) {
612 print
'<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=delete&token='.
newToken().
'">'.$langs->trans(
'Delete').
'</a>'.
"\n";
614 print
'<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
'Delete').
'</a>'.
"\n";
622 if (
GETPOST(
'modelselected')) {
626 if ($action !=
'presend') {
627 print
'<div class="fichecenter"><div class="fichehalfleft">';
628 print
'<a name="builddoc"></a>';
630 $includedocgeneration = 1;
633 if ($includedocgeneration) {
635 $relativepath = $objref.
'/'.$objref.
'.pdf';
636 $filedir = $conf->recruitment->dir_output.
'/'.$object->element.
'/'.$objref;
637 $urlsource = $_SERVER[
"PHP_SELF"].
"?id=".$object->id;
638 $genallowed = $user->rights->recruitment->recruitmentjobposition->read;
639 $delallowed = $user->rights->recruitment->recruitmentjobposition->write;
640 print $formfile->showdocuments(
'recruitment:RecruitmentCandidature', $object->element.
'/'.$objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0,
'',
'',
'', $langs->defaultlang);
644 $linktoelem =
$form->showLinkToObjectBlock($object, null, array(
'recruitmentcandidature'));
645 $somethingshown =
$form->showLinkedObjectBlock($object, $linktoelem);
648 print
'</div><div class="fichehalfright">';
652 $morehtmlcenter =
dolGetButtonTitle($langs->trans(
'SeeAll'),
'',
'fa fa-bars imgforviewmode', DOL_URL_ROOT.
'/recruitment/recruitmentcandidature_agenda.php?id='.$object->id);
655 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formactions.class.php';
657 $somethingshown =
$formactions->showactions($object, $object->element.
'@recruitment', (is_object($object->thirdparty) ? $object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlcenter);
659 print
'</div></div>';
663 if (
GETPOST(
'modelselected')) {
668 $modelmail =
'recruitmentcandidature_send';
669 $defaulttopic =
'InformationMessage';
670 $diroutput = $conf->recruitment->dir_output;
671 $trackid =
'recruitmentcandidature'.$object->id;
673 include DOL_DOCUMENT_ROOT.
'/core/tpl/card_presend.tpl.php';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
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($cancel &&!$id) if($action== 'add'&&!$cancel) if($action== 'delete') if($id) $form
Actions.
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.
Class to manage Dolibarr users.
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
dol_buildlogin($lastname, $firstname)
Build a login from lastname, firstname.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
if(GETPOST('button_removefilter_x', 'alpha')||GETPOST('button_removefilter.x', 'alpha')||GETPOST('button_removefilter', 'alpha')) if(GETPOST('button_search_x', 'alpha')||GETPOST('button_search.x', 'alpha')||GETPOST('button_search', 'alpha')) if($action=="save"&&empty($cancel)) $help_url
View.
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form...
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
dol_sanitizeFileName($str, $newstr= '_', $unaccent=1)
Clean a string to use it as a file name.
Class for RecruitmentJobPosition.
restrictedArea($user, $features, $objectid=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.
Class for RecruitmentCandidature.
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
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.
$formconfirm
if ($action == 'delbookkeepingyear') {