47 if (!$res && !empty(
$_SERVER[
"CONTEXT_DOCUMENT_ROOT"])) $res = @include
$_SERVER[
"CONTEXT_DOCUMENT_ROOT"].
"/main.inc.php";
49 $tmp = empty(
$_SERVER[
'SCRIPT_FILENAME']) ?
'' :
$_SERVER[
'SCRIPT_FILENAME']; $tmp2 = realpath(__FILE__); $i = strlen($tmp) - 1; $j = strlen($tmp2) - 1;
50 while ($i > 0 && $j > 0 && isset($tmp[$i]) && isset($tmp2[$j]) && $tmp[$i] == $tmp2[$j]) { $i--; $j--; }
51 if (!$res && $i > 0 && file_exists(substr($tmp, 0, ($i + 1)).
"/main.inc.php")) $res = @include substr($tmp, 0, ($i + 1)).
"/main.inc.php";
52 if (!$res && $i > 0 && file_exists(dirname(substr($tmp, 0, ($i + 1))).
"/main.inc.php")) $res = @include dirname(substr($tmp, 0, ($i + 1))).
"/main.inc.php";
54 if (!$res && file_exists(
"../main.inc.php")) $res = @include
"../main.inc.php";
55 if (!$res && file_exists(
"../../main.inc.php")) $res = @include
"../../main.inc.php";
56 if (!$res && file_exists(
"../../../main.inc.php")) $res = @include
"../../../main.inc.php";
57 if (!$res) die(
"Include of main fails");
59 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
60 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
61 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
62 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
63 require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentjobposition.class.php';
64 require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentcandidature.class.php';
65 require_once DOL_DOCUMENT_ROOT.
'/recruitment/lib/recruitment_recruitmentcandidature.lib.php';
68 $langs->loadLangs(array(
"recruitment",
"other",
"users"));
73 $action =
GETPOST(
'action',
'aZ09');
74 $confirm =
GETPOST(
'confirm',
'alpha');
75 $cancel =
GETPOST(
'cancel',
'aZ09');
76 $contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'recruitmentcandidaturecard';
77 $backtopage =
GETPOST(
'backtopage',
'alpha');
78 $backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
84 $diroutputmassaction = $conf->recruitment->dir_output.
'/temp/massgeneration/'.$user->id;
85 $hookmanager->initHooks(array(
'recruitmentcandidaturecard',
'globalcard'));
88 $extrafields->fetch_name_optionals_label($object->table_element);
90 $search_array_options = $extrafields->getOptionalsFromPost($object->table_element,
'',
'search_');
93 $search_all =
GETPOST(
"search_all",
'alpha');
95 foreach ($object->fields as $key => $val)
97 if (
GETPOST(
'search_'.$key,
'alpha')) $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
100 if (empty($action) && empty($id) && empty($ref)) $action =
'view';
103 include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
106 $permissiontoread = $user->rights->recruitment->recruitmentjobposition->read;
107 $permissiontoadd = $user->rights->recruitment->recruitmentjobposition->write;
108 $permissiontodelete = $user->rights->recruitment->recruitmentjobposition->delete || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
109 $permissionnote = $user->rights->recruitment->recruitmentjobposition->write;
110 $permissiondellink = $user->rights->recruitment->recruitmentjobposition->write;
111 $upload_dir = $conf->recruitment->multidir_output[isset($object->entity) ? $object->entity : 1];
126 $parameters = array();
127 $reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
128 if ($reshook < 0)
setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
134 $backurlforlist =
dol_buildpath(
'/recruitment/recruitmentcandidature_list.php', 1);
136 if (empty($backtopage) || ($cancel && empty($id))) {
137 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
138 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) $backtopage = $backurlforlist;
139 else $backtopage =
dol_buildpath(
'/recruitment/recruitmentcandidature_card.php', 1).
'?id='.($id > 0 ? $id :
'__ID__');
142 $triggermodname =
'RECRUITMENTCANDIDATURE_MODIFY';
145 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
148 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
151 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
157 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
159 if ($action ==
'classin' && $permissiontoadd)
161 $object->setProject(
GETPOST(
'projectid',
'int'));
163 if ($action ==
'confirm_decline' && $confirm ==
'yes' && $permissiontoadd) {
164 $result = $object->setStatut($object::STATUS_REFUSED, null,
'', $triggermodname);
170 if ($action ==
'confirm_makeofferordecline' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
171 if (!(
GETPOST(
'status',
'int') > 0)) {
172 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")), null,
'errors');
173 $action =
'makeofferordecline';
176 if ($object->status == $object::STATUS_VALIDATED)
180 if (
GETPOST(
'status',
'int') == $object::STATUS_REFUSED) {
181 $result = $object->setStatut($object::STATUS_REFUSED, null,
'', $triggermodname);
186 $result = $object->setStatut($object::STATUS_CONTRACT_PROPOSED, null,
'', $triggermodname);
202 if ($action ==
'confirm_closeas' && $permissiontoadd && !
GETPOST(
'cancel',
'alpha')) {
203 if (!(
GETPOST(
'status',
'int') > 0)) {
204 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")), null,
'errors');
205 $action =
'makeofferordecline';
208 if ($object->status == $object::STATUS_CONTRACT_PROPOSED)
212 if (
GETPOST(
'status',
'int') == $object::STATUS_CONTRACT_REFUSED) {
213 $result = $object->setStatut($object::STATUS_CONTRACT_REFUSED, null,
'', $triggermodname);
218 $result = $object->setStatut($object::STATUS_CONTRACT_SIGNED, null,
'', $triggermodname);
235 if ($action ==
'confirm_create_user' && $confirm ==
'yes' && $user->rights->user->user->creer) {
238 $jobposition->fetch($object->fk_recruitmentjobposition);
241 $nuser =
new User($db);
242 $nuser->login =
GETPOST(
'login',
'alphanohtml');
244 $nuser->employee = 1;
245 $nuser->firstname = $object->firstname;
246 $nuser->lastname = $object->lastname;
247 $nuser->personal_mobile = $object->phone;
248 $nuser->birth = $object->date_birth;
249 $nuser->salary = $object->remuneration_proposed;
250 $nuser->fk_user = $jobposition->fk_user_supervisor;
252 $result = $nuser->create($user);
255 $langs->load(
"errors");
257 $action =
'create_user';
259 setEventMessages($langs->trans(
"NewUserCreated", $nuser->login), null,
'mesgs');
264 $action =
'create_user';
269 $triggersendname =
'RECRUITMENTCANDIDATURE_SENTBYMAIL';
270 $autocopy =
'MAIN_MAIL_AUTOCOPY_RECRUITMENTCANDIDATURE_TO';
271 $trackid =
'recruitmentcandidature'.$object->id;
272 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
284 $form =
new Form($db);
288 $title = $langs->trans(
"RecruitmentCandidature");
293 print '<script type="text/javascript" language="javascript">
294 jQuery(document).ready(function() {
295 function init_myfunc()
297 jQuery("#myid").removeAttr(\'disabled\');
298 jQuery("#myid").attr(\'disabled\',\'disabled\');
301 jQuery("#mybutton").click(function() {
309 if ($action ==
'create')
311 print load_fiche_titre($langs->trans(
"NewObject", $langs->transnoentitiesnoconv(
"RecruitmentCandidature")),
'',
'object_'.$object->picto);
313 print '<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
314 print '<input type="hidden" name="token" value="'.newToken().
'">';
315 print '<input type="hidden" name="action" value="add">';
316 if ($backtopage)
print '<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
317 if ($backtopageforcancel)
print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
324 print '<table class="border centpercent tableforfieldcreate">'.
"\n";
327 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
330 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
332 print '</table>'.
"\n";
336 print '<div class="center">';
337 print '<input type="submit" class="button" name="add" value="'.dol_escape_htmltag($langs->trans(
"Create")).
'">';
339 print '<input type="'.($backtopage ?
"submit" :
"button").
'" class="button button-cancel" name="cancel" value="'.
dol_escape_htmltag($langs->trans(
"Cancel")).
'"'.($backtopage ?
'' :
' onclick="javascript:history.go(-1)"').
'>';
348 if (($id || $ref) && $action ==
'edit')
352 print '<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
353 print '<input type="hidden" name="token" value="'.newToken().
'">';
354 print '<input type="hidden" name="action" value="update">';
355 print '<input type="hidden" name="id" value="'.$object->id.
'">';
356 if ($backtopage)
print '<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
357 if ($backtopageforcancel)
print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
361 print '<table class="border centpercent tableforfieldedit">'.
"\n";
364 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
367 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
373 print '<div class="center"><input type="submit" class="button button-save" name="save" value="'.$langs->trans(
"Save").
'">';
374 print ' <input type="submit" class="button button-cancel" name="cancel" value="'.$langs->trans(
"Cancel").
'">';
381 if ($object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create')))
383 $res = $object->fetch_optionals();
385 $head = recruitmentcandidaturePrepareHead($object);
391 if ($action ==
'delete') {
392 $formconfirm = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'DeleteRecruitmentCandidature'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
395 if ($action ==
'deleteline') {
396 $formconfirm = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
399 if ($action ==
'clone') {
401 $formquestion = array();
402 $formconfirm = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk', $object->ref),
'confirm_clone', $formquestion,
'yes', 1);
405 if ($action ==
'makeofferordecline')
407 $langs->load(
"propal");
410 $formquestion = array(
411 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))),
412 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
417 $formconfirm = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_makeofferordecline', $formquestion,
'', 1, 250);
420 if ($action ==
'closeas')
422 $langs->load(
"propal");
425 $formquestion = array(
426 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))),
427 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
432 $formconfirm = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'SetAcceptedRefused'), $text,
'confirm_closeas', $formquestion,
'', 1, 250);
436 if ($action ==
'create_user') {
440 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
443 if (empty($login)) $login = strtolower(substr($object->firstname, 0, 4)).strtolower(substr($object->lastname, 0, 4));
446 $formquestion = array(
447 array(
'label' => $langs->trans(
"LoginToCreate"),
'type' =>
'text',
'name' =>
'login',
'value' => $login)
449 $text .= $langs->trans(
"ConfirmCreateLogin");
450 print $form->formconfirm(
$_SERVER[
"PHP_SELF"].
"?id=".$object->id, $langs->trans(
"CreateDolibarrLogin"), $text,
"confirm_create_user", $formquestion,
'yes');
454 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
455 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
456 if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
457 elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
465 $linkback = '<a href="'.
dol_buildpath('/recruitment/recruitmentcandidature_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
467 $morehtmlref = '<div class="refidno">';
504 $morehtmlref .= '</div>';
507 dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
510 print '<div class="fichecenter">';
511 print '<div class="fichehalfleft">';
512 print '<div class="underbanner clearboth"></div>';
513 print '<table class="border centpercent tableforfield">'."\
n";
517 unset($object->
fields['email']);
519 include DOL_DOCUMENT_ROOT.'/core/tpl/commonfields_view.tpl.php';
522 include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
528 print '<div class="clearboth"></div>';
537 if (!empty($object->table_element_line))
540 $result = $object->getLinesArray();
542 print ' <form name="addproduct" id="addproduct" action="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.(($action !=
'editline') ?
'#addline' :
'#line_'.
GETPOST(
'lineid',
'int')).
'" method="POST">
543 <input type="hidden" name="token" value="' .
newToken().
'">
544 <input type="hidden" name="action" value="' . (($action !=
'editline') ?
'addline' :
'updateline').
'">
545 <input type="hidden" name="mode" value="">
546 <input type="hidden" name="id" value="' . $object->id.
'">
549 if (!empty($conf->use_javascript_ajax) && $object->status == 0) {
550 include DOL_DOCUMENT_ROOT.
'/core/tpl/ajaxrow.tpl.php';
553 print '<div class="div-table-responsive-no-min">';
554 if (!empty($object->lines) || ($object->status == $object::STATUS_DRAFT && $permissiontoadd && $action !=
'selectlines' && $action !=
'editline'))
556 print '<table id="tablelines" class="noborder noshadow" width="100%">';
559 if (!empty($object->lines))
561 $object->printObjectLines($action, $mysoc, null,
GETPOST(
'lineid',
'int'), 1);
565 if ($object->status == 0 && $permissiontoadd && $action !=
'selectlines')
567 if ($action !=
'editline')
570 $object->formAddObjectLine(1, $mysoc, $soc);
572 $parameters = array();
573 $reshook = $hookmanager->executeHooks(
'formAddObjectLine', $parameters, $object, $action);
577 if (!empty($object->lines) || ($object->status == $object::STATUS_DRAFT && $permissiontoadd && $action !=
'selectlines' && $action !=
'editline'))
589 if ($action !=
'presend' && $action !=
'editline') {
590 print '<div class="tabsAction">'.
"\n";
591 $parameters = array();
592 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
593 if ($reshook < 0)
setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
598 if (empty($user->socid)) {
599 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";
603 if ($object->status == $object::STATUS_VALIDATED)
605 if ($permissiontoadd)
607 print '<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=confirm_setdraft&confirm=yes">'.$langs->trans(
"SetToDraft").
'</a>';
612 if ($permissiontoadd)
614 print '<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=edit">'.$langs->trans(
"Modify").
'</a>'.
"\n";
616 print '<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
'Modify').
'</a>'.
"\n";
620 if ($object->status == $object::STATUS_DRAFT)
622 if ($permissiontoadd)
624 if (empty($object->table_element_line) || (is_array($object->lines) && count($object->lines) > 0))
626 print '<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=confirm_validate&confirm=yes">'.$langs->trans(
"Validate").
'</a>';
628 $langs->load(
"errors");
629 print '<a class="butActionRefused" href="" title="'.$langs->trans(
"ErrorAddAtLeastOneLineFirst").
'">'.$langs->trans(
"Validate").
'</a>';
635 if ($object->status >= $object::STATUS_VALIDATED && $object->status < $object::STATUS_CONTRACT_PROPOSED)
637 if ($permissiontoadd)
639 print '<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=makeofferordecline">'.$langs->trans(
"MakeOffer").
' / '.$langs->trans(
"Decline").
'</a>';
644 if ($object->status == $object::STATUS_CONTRACT_PROPOSED)
646 if ($permissiontoadd)
648 print '<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=closeas">'.$langs->trans(
"Accept").
' / '.$langs->trans(
"Decline").
'</a>';
653 if ($permissiontoadd)
655 print '<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&socid='.$object->socid.
'&action=clone&object=recruitmentcandidature">'.$langs->trans(
"ToClone").
'</a>'.
"\n";
659 if ($object->status == $object::STATUS_CONTRACT_SIGNED)
661 if ($user->rights->user->user->creer) {
663 $useralreadyexists = 0;
664 if (empty($useralreadyexists)) {
665 print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=create_user">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
667 print '<div class="inline-block divButAction"><a class="butActionRefused" href="#">'.$langs->trans(
"CreateDolibarrLogin").
'</a></div>';
670 print '<div class="inline-block divButAction"><font class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
"CreateDolibarrLogin").
"</font></div>";
675 if ($permissiontoadd)
677 if ($object->status == $object::STATUS_VALIDATED)
679 print '<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=close">'.$langs->trans(
"Cancel").
'</a>'.
"\n";
681 elseif ($object->status == $object::STATUS_REFUSED || $object->status == $object::STATUS_CANCELED || $object->status == $object::STATUS_CONTRACT_REFUSED)
683 print '<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=confirm_reopen&confirm=yes&token='.
newToken().
'">'.$langs->trans(
"Re-Open").
'</a>'.
"\n";
688 if ($permissiontodelete || ($object->status == $object::STATUS_DRAFT && $permissiontoadd))
690 print '<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=delete&token='.
newToken().
'">'.$langs->trans(
'Delete').
'</a>'.
"\n";
692 print '<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
'Delete').
'</a>'.
"\n";
700 if (
GETPOST(
'modelselected')) {
704 if ($action !=
'presend')
706 print '<div class="fichecenter"><div class="fichehalfleft">';
707 print '<a name="builddoc"></a>';
709 $includedocgeneration = 1;
712 if ($includedocgeneration) {
714 $relativepath = $objref.
'/'.$objref.
'.pdf';
715 $filedir = $conf->recruitment->dir_output.
'/'.$object->element.
'/'.$objref;
716 $urlsource =
$_SERVER[
"PHP_SELF"].
"?id=".$object->id;
717 $genallowed = $user->rights->recruitment->recruitmentjobposition->read;
718 $delallowed = $user->rights->recruitment->recruitmentjobposition->write;
719 print $formfile->showdocuments(
'recruitment:RecruitmentCandidature', $object->element.
'/'.$objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0,
'',
'',
'', $langs->defaultlang);
723 $linktoelem = $form->showLinkToObjectBlock($object, null, array(
'recruitmentcandidature'));
724 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
727 print '</div><div class="fichehalfright"><div class="ficheaddleft">';
731 $morehtmlright =
'<a href="'.dol_buildpath(
'/recruitment/recruitmentcandidature_agenda.php', 1).
'?id='.$object->id.
'">';
732 $morehtmlright .= $langs->trans(
"SeeAll");
733 $morehtmlright .=
'</a>';
736 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formactions.class.php';
738 $somethingshown =
$formactions->showactions($object, $object->element.
'@recruitment', (is_object($object->thirdparty) ? $object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlright);
740 print '</div></div></div>';
744 if (
GETPOST(
'modelselected')) $action =
'presend';
747 $modelmail =
'recruitmentcandidature_send';
748 $defaulttopic =
'InformationMessage';
749 $diroutput = $conf->recruitment->dir_output;
750 $trackid =
'recruitmentcandidature'.$object->id;
752 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.
</td > param sortfield sortorder printFieldListOption< tdclass="liste_titremaxwidthsearchright"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration center DesiredStock p desiredstock right StockLimitShort p seuil_stock_alerte right stock_physique right stock_real_warehouse right Ordered right StockToBuy right SupplierRef right param sortfield sortorder printFieldListTitle warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow StockTooLow help help help< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"> stock</td >< td >< inputtype="hidden"name="desc'.$i.'"value="'.dol_escape_htmltag($objp-> description
Only used if Module[ID]Desc translation string is not found.
foreach($object->fields as $key=> $val) if(is_array($extrafields->attributes[$object->table_element]['label'])&&count($extrafields->attributes[$object->table_element]['label']) > 0) $object fields
Class to manage Dolibarr users.
dol_buildlogin($lastname, $firstname)
Build a login from lastname, firstname.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
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.
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.
print $_SERVER["PHP_SELF"]
Edit parameters.
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.
print
Draft customers invoices.
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.
print $_SERVER["PHP_SELF"] n
Edit parameters.
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.
if(!defined('CSRFCHECK_WITH_TOKEN')) define('CSRFCHECK_WITH_TOKEN'
Draft customers invoices.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $keepmoretags= '', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields...