25if (!defined(
'NOLOGIN')) {
28if (!defined(
'NOCSRFCHECK')) {
29 define(
"NOCSRFCHECK", 1);
31if (!defined(
'NOIPCHECK')) {
32 define(
'NOIPCHECK',
'1');
34if (!defined(
'NOBROWSERNOTIF')) {
35 define(
'NOBROWSERNOTIF',
'1');
39require
'../../main.inc.php';
40require_once DOL_DOCUMENT_ROOT.
'/recruitment/class/recruitmentjobposition.class.php';
41require_once DOL_DOCUMENT_ROOT.
'/core/class/CMailFile.class.php';
42require_once DOL_DOCUMENT_ROOT.
'/core/lib/security.lib.php';
43require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
44require_once DOL_DOCUMENT_ROOT.
'/core/lib/payments.lib.php';
47$langs->loadLangs(array(
"companies",
"other",
"recruitment"));
50$action =
GETPOST(
'action',
'aZ09');
51$cancel =
GETPOST(
'cancel',
'alpha');
52$SECUREKEY =
GETPOST(
"securekey");
59$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
60$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
62if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
65$offset = $limit * $page;
70 unset($_SESSION[
'email_customer']);
72if (isset($_SESSION[
'email_customer'])) {
73 $email = $_SESSION[
'email_customer'];
81$urlwithroot = DOL_MAIN_URL_ROOT;
84if (empty($conf->recruitment->enabled)) {
102 $head =
'<link rel="stylesheet" type="text/css" href="' .
getDolGlobalString(
'MAIN_RECRUITMENT_CSS_URL').
'?lang='.$langs->defaultlang.
'">'.
"\n";
105$conf->dol_hide_topmenu = 1;
106$conf->dol_hide_leftmenu = 1;
109 $langs->load(
"errors");
110 print
'<div class="error">'.$langs->trans(
'ErrorPublicInterfaceNotEnabled').
'</div>';
116$arrayofcss = array();
118$replacemainarea = (empty($conf->dol_hide_leftmenu) ?
'<div>' :
'').
'<div>';
119llxHeader($head, $langs->trans(
"PositionToBeFilled"),
'',
'', 0, 0,
'',
'',
'',
'onlinepaymentbody', $replacemainarea, 1, 1);
122print
'<span id="dolpaymentspan"></span>'.
"\n";
123print
'<div class="center">'.
"\n";
124print
'<form id="dolpaymentform" class="center" name="paymentform" action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">'.
"\n";
125print
'<input type="hidden" name="token" value="'.newToken().
'">'.
"\n";
126print
'<input type="hidden" name="action" value="dosign">'.
"\n";
127print
'<input type="hidden" name="tag" value="'.GETPOST(
"tag",
'alpha').
'">'.
"\n";
128print
'<input type="hidden" name="suffix" value="'.GETPOST(
"suffix",
'alpha').
'">'.
"\n";
129print
'<input type="hidden" name="securekey" value="'.$SECUREKEY.
'">'.
"\n";
130print
'<input type="hidden" name="entity" value="'.$entity.
'" />';
132print
'<!-- Form to view jobs -->'.
"\n";
136$logosmall = $mysoc->logo_small;
138$paramlogo =
'ONLINE_RECRUITMENT_LOGO_'.$suffix;
139if (!empty($conf->global->$paramlogo)) {
148if (!empty($logosmall) && is_readable($conf->mycompany->dir_output.
'/logos/thumbs/'.$logosmall)) {
149 $urllogo = DOL_URL_ROOT.
'/viewimage.php?modulepart=mycompany&entity='.$conf->entity.
'&file='.urlencode(
'logos/thumbs/'.$logosmall);
150 $urllogofull = $dolibarr_main_url_root.
'/viewimage.php?modulepart=mycompany&entity='.$conf->entity.
'&file='.urlencode(
'logos/thumbs/'.$logosmall);
151} elseif (!empty($logo) && is_readable($conf->mycompany->dir_output.
'/logos/'.$logo)) {
152 $urllogo = DOL_URL_ROOT.
'/viewimage.php?modulepart=mycompany&entity='.$conf->entity.
'&file='.urlencode(
'logos/'.$logo);
153 $urllogofull = $dolibarr_main_url_root.
'/viewimage.php?modulepart=mycompany&entity='.$conf->entity.
'&file='.urlencode(
'logos/'.$logo);
157 print
'<div class="backgreypublicpayment">';
158 print
'<div class="logopublicpayment">';
159 print
'<img id="dolpaymentlogo" src="'.$urllogo.
'">';
162 print
'<div class="poweredbypublicpayment opacitymedium right"><a class="poweredbyhref" href="https://www.dolibarr.org?utm_medium=website&utm_source=poweredby" target="dolibarr" rel="noopener">'.$langs->trans(
"PoweredBy").
'<br><img class="poweredbyimg" src="'.DOL_URL_ROOT.
'/theme/dolibarr_logo.svg" width="80px"></a></div>';
168 print
'<div class="backimagepublicrecruitment">';
169 print
'<img id="idPROJECT_IMAGE_PUBLIC_SUGGEST_BOOTH" src="' .
getDolGlobalString(
'RECRUITMENT_IMAGE_PUBLIC_INTERFACE').
'">';
174$results =
$object->fetchAll($sortorder, $sortfield, 0, 0,
'(status:=:1)');
177if (is_array($results)) {
178 if (empty($results)) {
180 print $langs->trans(
"NoPositionOpen");
182 print
'<br><br><br>';
183 print
'<span class="opacitymedium">'.$langs->trans(
"WeAreRecruiting").
'</span>';
184 print
'<br><br><br>';
185 print
'<br class="hideonsmartphone">';
187 foreach ($results as $job) {
190 print
'<table id="dolpaymenttable" summary="Job position offer" class="center">'.
"\n";
196 if (preg_match(
'/^\((.*)\)$/', $conf->global->RECRUITMENT_NEWFORM_TEXT, $reg)) {
197 $text .= $langs->trans($reg[1]).
"<br>\n";
201 $text =
'<tr><td align="center"><br>'.$text.
'<br></td></tr>'.
"\n";
204 $text .=
'<tr><td class="textpublicpayment"><br>'.$langs->trans(
"JobOfferToBeFilled", $mysoc->name);
205 $text .=
' - <strong>'.$mysoc->name.
'</strong>';
206 $text .=
' - <span class="nowraponall"><span class="fa fa-calendar secondary"></span> '.dol_print_date(
$object->date_creation).
'</span>';
207 $text .=
'</td></tr>'.
"\n";
208 $text .=
'<tr><td class="textpublicpayment"><h1 class="paddingleft paddingright">'.$object->label.
'</h1></td></tr>'.
"\n";
213 print
'<tr><td class="left">';
215 print
'<div class="centpercent" id="tablepublicpayment">';
216 print
'<div class="opacitymedium">'.$langs->trans(
"ThisIsInformationOnJobPosition").
' :</div>'.
"\n";
224 print $langs->trans(
"Label").
' : ';
225 print
'<b>'.dol_escape_htmltag(
$object->label).
'</b><br>';
228 print $langs->trans(
"DateExpected").
' : ';
230 if (
$object->date_planned > $now) {
233 print $langs->trans(
"ASAP");
238 print $langs->trans(
"Remuneration").
' : ';
244 $tmpuser =
new User($db);
245 $tmpuser->fetch(
$object->fk_user_recruiter);
247 print $langs->trans(
"ContactForRecruitment").
' : ';
248 $emailforcontact =
$object->email_recruiter;
249 if (empty($emailforcontact)) {
250 $emailforcontact = $tmpuser->email;
251 if (empty($emailforcontact)) {
252 $emailforcontact = $mysoc->email;
255 print
'<b class="wordbreak">';
256 print $tmpuser->getFullName($langs);
257 print
' '.dol_print_email($emailforcontact, 0, 0, 1, 0, 0,
'envelope');
262 print
info_admin($langs->trans(
"JobClosedTextCandidateFound"), 0, 0, 0,
'warning');
265 print
info_admin($langs->trans(
"JobClosedTextCanceled"), 0, 0, 0,
'warning');
274 print
'<input type="hidden" name="ref" value="'.$object->ref.
'">';
280 if ($action !=
'dosubmit') {
281 if ($found && !$error) {
290 print
'</td></tr>'.
"\n";
292 print
'</table>'.
"\n";
294 print
'<br><br class="hideonsmartphone"><br class="hideonsmartphone"><br class="hideonsmartphone">'.
"\n";
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()
Empty header.
Class for RecruitmentJobPosition.
const STATUS_RECRUITED
Recruited.
const STATUS_CANCELED
Canceled.
Class to manage Dolibarr users.
htmlPrintOnlineFooter($fromcompany, $langs, $addformmessage=0, $suffix='', $object=null)
Show footer of company in HTML pages.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_now($mode='auto')
Return date for now.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_print_error_email($prefixcode, $errormessage='', $errormessages=array(), $morecss='error', $email='')
Show a public email and error code to contact if technical error.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
info_admin($text, $infoonimgalt=0, $nodiv=0, $admin='1', $morecss='hideonsmartphone', $textfordropdown='', $picto='')
Show information in HTML for admin users or standard users.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
httponly_accessforbidden($message='1', $http_response_code=403, $stringalreadysanitized=0)
Show a message to say access is forbidden and stop program.