$file = "/jobs/files_job/df7f1fdf5570f98d7cd3c92d5561ab02.jpg";
CEvent::Send("FORM_FILLING_FORM_JOB_VACANCY", $SITE_ID, $arMailFields_clear, "N", "", $file);
$SITE_ID = 's1';
$EVENT_TYPE = 'form_job_vacancy';
$arMailFields = array(
'NAME' => $_POST["form_user_name"],
'EMAIL' => $_POST["form_user_email"],
'NAME_JOB' => $_POST["form_user_name_job"],
);
$file = "/jobs/files_job/df7f1fdf5570f98d7cd3c92d5561ab02.jpg";
$arMailFields_clear=array();
foreach ($arMailFields as $key => $value)
{
$input_text = strip_tags($value);
$input_text = htmlspecialchars($input_text);
//$input_text = mysql_escape_string($input_text);
$arMailFields_clear[$key]=$input_text;
}
CEvent::Send("FORM_FILLING_FORM_JOB_VACANCY", $SITE_ID, $arMailFields_clear, "N", "", $file);
//формирование массива для вывода конкретных врачей в разделе услуги
foreach ($arResult["ITEMS"] as $arItem) {
foreach ($arItem["PROPERTIES"]["LIST_SERVICES_RU"]["VALUE"] as $arServiceId) {
$arResult["AR_LIST_SERVICES_FILTER"][] = $arServiceId;
}
}
e.preventDefault(), s.inner.submitCallback = function () {
var e = new FormData(s.form.parent[0]);
$.ajax({
url: s.form.parent.attr("action"),
method: "post",
data: e,
cache: !1,
contentType: !1,
processData: !1,
success: function (e) {
console.log(e);
var t = $.parseJSON(e), i = '<div class="is-popup is-style">';
i += '<div class="is-popup__inner">', i += '<h4 class="is-popup__title">' + (t.title ? t.title : "") + "</h4>", i += '<p class="is-popup__text">' + t.msg + "</p>", i += "</div>", i += "</div>", s.form.parent[0].reset(), $.fancybox.close(), $.fancybox.open(i), s.form.moduleParent.removeClass(s.form.progressFormClass), $("." + s.form.submitLinkClass).removeClass(s.form.progressButtonClass), t.status && (t.callback ? (gtag("event", "event_name", {
event_category: "Contact_us",
event_action: "send"
}), ym(53110486, "reachGoal", "Contact_us")) : (gtag("event", "event_name", {
event_category: "Review",
event_action: "send"
}), ym(53110486, "reachGoal", "Review"))), s.form.parent.find('input[name="g-recaptcha-response"]').remove()
},
error: function (e) {
console.log(e), s.form.parent.find('input[name="g-recaptcha-response"]').remove()
}
})
}, o.eventFormSubmit()
ob_get_clean();
echo json_encode([
'status' => false,
'title' => "Failure",
'msg' => "Confirm that you are not a robot",
]);
die();
CEvent::Send("FORM_FILLING_FORM_JOB_VACANCY", $SITE_ID, $arMailFields_clear, "N", "", [$file]);