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.
'/projet/class/project.class.php';
64 dol_include_once(
'/recruitment/lib/recruitment_recruitmentjobposition.lib.php');
67 $langs->loadLangs(array(
"recruitment",
"other"));
72 $action =
GETPOST(
'action',
'aZ09');
73 $confirm =
GETPOST(
'confirm',
'alpha');
74 $cancel =
GETPOST(
'cancel',
'aZ09');
75 $contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'recruitmentjobpositioncard';
76 $backtopage =
GETPOST(
'backtopage',
'alpha');
77 $backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
83 $diroutputmassaction = $conf->recruitment->dir_output.
'/temp/massgeneration/'.$user->id;
84 $hookmanager->initHooks(array(
'recruitmentjobpositioncard',
'globalcard'));
87 $extrafields->fetch_name_optionals_label($object->table_element);
89 $search_array_options = $extrafields->getOptionalsFromPost($object->table_element,
'',
'search_');
92 $search_all =
GETPOST(
"search_all",
'alpha');
94 foreach ($object->fields as $key => $val)
96 if (
GETPOST(
'search_'.$key,
'alpha')) $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
99 if (empty($action) && empty($id) && empty($ref)) $action =
'view';
102 include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
105 $permissiontoread = $user->rights->recruitment->recruitmentjobposition->read;
106 $permissiontoadd = $user->rights->recruitment->recruitmentjobposition->write;
107 $permissiontodelete = $user->rights->recruitment->recruitmentjobposition->delete || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
108 $permissionnote = $user->rights->recruitment->recruitmentjobposition->write;
109 $permissiondellink = $user->rights->recruitment->recruitmentjobposition->write;
110 $upload_dir = $conf->recruitment->multidir_output[isset($object->entity) ? $object->entity : 1];
112 $usercanclose = $permissiontoadd;
127 $parameters = array();
128 $reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
129 if ($reshook < 0)
setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
135 $backurlforlist =
dol_buildpath(
'/recruitment/recruitmentjobposition_list.php', 1);
137 if (empty($backtopage) || ($cancel && empty($id))) {
138 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
139 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) $backtopage = $backurlforlist;
140 else $backtopage =
dol_buildpath(
'/recruitment/recruitmentjobposition_card.php', 1).
'?id='.($id > 0 ? $id :
'__ID__');
143 $triggermodname =
'RECRUITMENT_RECRUITMENTJOBPOSITION_MODIFY';
146 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
149 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
152 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
158 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
160 if ($action ==
'set_thirdparty' && $permissiontoadd)
162 $object->setValueFrom(
'fk_soc',
GETPOST(
'fk_soc',
'int'),
'',
'',
'date',
'', $user,
'RECRUITMENTJOBPOSITION_MODIFY');
164 if ($action ==
'classin' && $permissiontoadd)
166 $object->setProject(
GETPOST(
'projectid',
'int'));
168 if ($action ==
'confirm_closeas' && $usercanclose && !
GETPOST(
'cancel',
'alpha')) {
169 if (!(
GETPOST(
'status',
'int') > 0)) {
170 setEventMessages($langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"CloseAs")), null,
'errors');
174 if ($object->status == $object::STATUS_VALIDATED)
178 $result = $object->cloture($user,
GETPOST(
'status',
'int'),
GETPOST(
'note_private',
'restricthtml'));
196 $triggersendname =
'RECRUITMENTJOBPOSITION_SENTBYMAIL';
197 $autocopy =
'MAIN_MAIL_AUTOCOPY_RECRUITMENTJOBPOSITION_TO';
198 $trackid =
'recruitmentjobposition'.$object->id;
199 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
211 $form =
new Form($db);
215 $title = $langs->trans(
"PositionToBeFilled");
220 if ($action ==
'create')
224 print '<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
225 print '<input type="hidden" name="token" value="'.newToken().
'">';
226 print '<input type="hidden" name="action" value="add">';
227 if ($backtopage)
print '<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
228 if ($backtopageforcancel)
print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
231 if (!
GETPOSTISSET(
'fk_user_recruiter')) $_POST[
'fk_user_recruiter'] = $user->id;
235 print '<table class="border centpercent tableforfieldcreate">'.
"\n";
238 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
241 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
243 print '</table>'.
"\n";
247 print '<div class="center">';
248 print '<input type="submit" class="button" name="add" value="'.dol_escape_htmltag($langs->trans(
"Create")).
'">';
250 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)"').
'>';
259 if (($id || $ref) && $action ==
'edit')
263 print '<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
264 print '<input type="hidden" name="token" value="'.newToken().
'">';
265 print '<input type="hidden" name="action" value="update">';
266 print '<input type="hidden" name="id" value="'.$object->id.
'">';
267 if ($backtopage)
print '<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
268 if ($backtopageforcancel)
print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
272 print '<table class="border centpercent tableforfieldedit">'.
"\n";
275 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
278 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
284 print '<div class="center"><input type="submit" class="button button-save" name="save" value="'.$langs->trans(
"Save").
'">';
285 print ' <input type="submit" class="button button-cancel" name="cancel" value="'.$langs->trans(
"Cancel").
'">';
292 if ($object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create')))
294 $res = $object->fetch_optionals();
302 if ($action ==
'delete')
304 $formconfirm = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'DeleteRecruitmentJobPosition'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
307 if ($action ==
'deleteline')
309 $formconfirm = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
312 if ($action ==
'clone') {
314 $formquestion = array();
315 $formconfirm = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk', $object->ref),
'confirm_clone', $formquestion,
'yes', 1);
317 if ($action ==
'closeas')
320 $formquestion = array(
321 array(
'type' =>
'select',
'name' =>
'status',
'label' =>
'<span class="fieldrequired">'.$langs->trans(
"CloseAs").
'</span>',
'values' => array(3=>$object->LibStatut($object::STATUS_RECRUITED), 9=>$object->LibStatut($object::STATUS_CANCELED))),
322 array(
'type' =>
'text',
'name' =>
'note_private',
'label' => $langs->trans(
"Note"),
'value' =>
'')
334 $formconfirm = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'Close'), $text,
'confirm_closeas', $formquestion,
'', 1, 250);
338 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
339 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
340 if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
341 elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
349 $linkback = '<a href="'.
dol_buildpath('/recruitment/recruitmentjobposition_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
351 $morehtmlref = '<div class="refidno">';
360 if (!empty($conf->projet->enabled))
362 $langs->load(
"projects");
363 $morehtmlref .= $langs->trans(
'Project').
' ';
364 if ($permissiontoadd)
366 if ($action !=
'classify') $morehtmlref .=
'<a class="editfielda" href="'.$_SERVER[
'PHP_SELF'].
'?action=classify&id='.$object->id.
'">'.
img_edit($langs->transnoentitiesnoconv(
'SetProject')).
'</a>';
367 $morehtmlref .=
' : ';
368 if ($action ==
'classify') {
370 $morehtmlref .=
'<form method="post" action="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'">';
371 $morehtmlref .=
'<input type="hidden" name="action" value="classin">';
372 $morehtmlref .=
'<input type="hidden" name="token" value="'.newToken().
'">';
373 $morehtmlref .= $formproject->select_projects($object->socid, $object->fk_project,
'projectid', $maxlength, 0, 1, 0, 1, 0, 0,
'', 1);
374 $morehtmlref .=
'<input type="submit" class="button valignmiddle" value="'.$langs->trans(
"Modify").
'">';
375 $morehtmlref .=
'</form>';
377 $morehtmlref .= $form->form_project(
$_SERVER[
'PHP_SELF'].
'?id='.$object->id, $object->socid, $object->fk_project,
'none', 0, 0, 0, 1);
380 if (!empty($object->fk_project)) {
382 $proj->fetch($object->fk_project);
383 $morehtmlref .=
': '.$proj->getNomUrl();
389 $morehtmlref .=
'</div>';
392 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
395 print '<div class="fichecenter">';
396 print '<div class="fichehalfleft">';
397 print '<div class="underbanner clearboth"></div>';
398 print '<table class="border centpercent tableforfield">'.
"\n";
401 $keyforbreak =
'description';
402 unset($object->fields[
'fk_project']);
404 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_view.tpl.php';
407 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
413 print '<div class="clearboth"></div>';
422 if (!empty($object->table_element_line))
425 $result = $object->getLinesArray();
427 print ' <form name="addproduct" id="addproduct" action="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.(($action !=
'editline') ?
'#addline' :
'#line_'.
GETPOST(
'lineid',
'int')).
'" method="POST">
428 <input type="hidden" name="token" value="' .
newToken().
'">
429 <input type="hidden" name="action" value="' . (($action !=
'editline') ?
'addline' :
'updateline').
'">
430 <input type="hidden" name="mode" value="">
431 <input type="hidden" name="id" value="' . $object->id.
'">
434 if (!empty($conf->use_javascript_ajax) && $object->status == 0) {
435 include DOL_DOCUMENT_ROOT.
'/core/tpl/ajaxrow.tpl.php';
438 print '<div class="div-table-responsive-no-min">';
439 if (!empty($object->lines) || ($object->status == $object::STATUS_DRAFT && $permissiontoadd && $action !=
'selectlines' && $action !=
'editline'))
441 print '<table id="tablelines" class="noborder noshadow" width="100%">';
444 if (!empty($object->lines))
446 $object->printObjectLines($action, $mysoc, null,
GETPOST(
'lineid',
'int'), 1);
450 if ($object->status == 0 && $permissiontoadd && $action !=
'selectlines')
452 if ($action !=
'editline')
455 $object->formAddObjectLine(1, $mysoc, $soc);
457 $parameters = array();
458 $reshook = $hookmanager->executeHooks(
'formAddObjectLine', $parameters, $object, $action);
462 if (!empty($object->lines) || ($object->status == $object::STATUS_DRAFT && $permissiontoadd && $action !=
'selectlines' && $action !=
'editline'))
474 if ($action !=
'presend' && $action !=
'editline') {
475 print '<div class="tabsAction">'.
"\n";
476 $parameters = array();
477 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
478 if ($reshook < 0)
setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
483 if (empty($user->socid)) {
484 print '<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=presend&mode=init#formmailbeforetitle">'.$langs->trans(
'SendMail').
'</a>'.
"\n";
488 if ($object->status == $object::STATUS_VALIDATED) {
489 if ($permissiontoadd)
491 print '<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=confirm_setdraft&confirm=yes">'.$langs->trans(
"SetToDraft").
'</a>';
496 if ($permissiontoadd) {
497 print '<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=edit">'.$langs->trans(
"Modify").
'</a>'.
"\n";
499 print '<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
'Modify').
'</a>'.
"\n";
503 if ($object->status == $object::STATUS_DRAFT) {
504 if ($permissiontoadd) {
505 if (empty($object->table_element_line) || (is_array($object->lines) && count($object->lines) > 0))
507 print '<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=confirm_validate&confirm=yes">'.$langs->trans(
"Validate").
'</a>';
509 $langs->load(
"errors");
510 print '<a class="butActionRefused" href="" title="'.$langs->trans(
"ErrorAddAtLeastOneLineFirst").
'">'.$langs->trans(
"Validate").
'</a>';
516 if ($object->status == $object::STATUS_VALIDATED) {
518 print '<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=closeas'.(empty($conf->global->MAIN_JUMP_TAG) ?
'' :
'#close').
'"';
519 print '>'.$langs->trans(
'Close').
'</a>';
521 print '<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
'Close').
'</a>';
526 if ($permissiontoadd) {
527 print '<a class="butAction" href="'.$_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&socid='.$object->socid.
'&action=clone&object=recruitmentjobposition">'.$langs->trans(
"ToClone").
'</a>'.
"\n";
538 if ($permissiontoadd)
540 if ($object->status == $object::STATUS_CANCELED) {
541 print '<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=confirm_reopen&confirm=yes">'.$langs->trans(
"Re-Open").
'</a>'.
"\n";
546 if ($permissiontodelete || ($object->status == $object::STATUS_DRAFT && $permissiontoadd)) {
547 print '<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=delete&token='.
newToken().
'">'.$langs->trans(
'Delete').
'</a>'.
"\n";
549 print '<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans(
"NotEnoughPermissions")).
'">'.$langs->trans(
'Delete').
'</a>'.
"\n";
557 if (
GETPOST(
'modelselected')) {
561 if ($action !=
'presend')
563 print '<div class="fichecenter"><div class="fichehalfleft">';
564 print '<a name="builddoc"></a>';
566 $includedocgeneration = 1;
569 if ($includedocgeneration) {
571 $relativepath = $objref.
'/'.$objref.
'.pdf';
572 $filedir = $conf->recruitment->dir_output.
'/'.$object->element.
'/'.$objref;
573 $urlsource =
$_SERVER[
"PHP_SELF"].
"?id=".$object->id;
574 $genallowed = $user->rights->recruitment->recruitmentjobposition->read;
575 $delallowed = $user->rights->recruitment->recruitmentjobposition->write;
576 print $formfile->showdocuments(
'recruitment:RecruitmentJobPosition', $object->element.
'/'.$objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0,
'',
'',
'', $langs->defaultlang);
580 $linktoelem = $form->showLinkToObjectBlock($object, null, array(
'recruitmentjobposition'));
581 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
584 if ($object->status != RecruitmentJobPosition::STATUS_DRAFT)
586 print '<br><!-- Link to go on public job page -->'.
"\n";
588 $langs->loadLangs(array(
'recruitment'));
590 $out =
img_picto(
'',
'globe').
' '.$langs->trans(
"PublicUrl").
'<br>';
593 $out .=
'<input type="text" id="recruitmentjobpositionurl" class="quatrevingtpercent" value="'.$url.
'">';
594 $out .=
'<a href="'.$url.
'" target="_blank">'.
img_picto(
'',
'globe').
'</a>';
600 print '</div><div class="fichehalfright"><div class="ficheaddleft">';
604 $morehtmlright =
'<a href="'.dol_buildpath(
'/recruitment/recruitmentjobposition_agenda.php', 1).
'?id='.$object->id.
'">';
605 $morehtmlright .= $langs->trans(
"SeeAll");
606 $morehtmlright .=
'</a>';
609 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formactions.class.php';
611 $somethingshown =
$formactions->showactions($object, $object->element.
'@recruitment', (is_object($object->thirdparty) ? $object->thirdparty->id : 0), 1,
'', $MAXEVENT,
'', $morehtmlright);
613 print '</div></div></div>';
617 if (
GETPOST(
'modelselected')) $action =
'presend';
620 $modelmail =
'recruitmentjobposition';
621 $defaulttopic =
'InformationMessage';
622 $diroutput = $conf->recruitment->dir_output;
623 $trackid =
'recruitmentjobposition'.$object->id;
625 include DOL_DOCUMENT_ROOT.
'/core/tpl/card_presend.tpl.php';
if(!function_exists('dol_getprefix')) dol_include_once($relpath, $classname= '')
Make an include_once using default root and alternate root if it fails.
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
img_edit($titlealt= 'default', $float=0, $other= '')
Show logo editer/modifier fiche.
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.
recruitmentjobpositionPrepareHead($object)
Prepare array of tabs for RecruitmentJobPosition.
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.
Class to manage projects.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
img_picto($titlealt, $picto, $moreatt= '', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt= '', $morecss= '', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
dol_sanitizeFileName($str, $newstr= '_', $unaccent=1)
Clean a string to use it as a file name.
Class for RecruitmentJobPosition.
ajax_autoselect($htmlname, $addlink= '')
Make content of an input box selected when we click into input field.
print $_SERVER["PHP_SELF"]
Edit parameters.
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.
getPublicJobPositionUrl($mode, $ref= '', $localorexternal=0)
Return string with full Url.
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...