require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
$user_id = 1;
$result = \Bitrix\Main\UserTable::getList(array(
'select' => array('EMAIL', 'LOGIN', 'NAME', 'LAST_NAME'),
'filter' => array('ID' => $user_id),
'limit' => 1
));
$arUser = $result->fetch();
$post_user = 'login='.$arUser["LOGIN"].'&name='.$arUser["NAME"].'&last_name='.$arUser["LAST_NAME"].'&email='.$arUser["EMAIL"];
$URL = 'https://domain.ru/handlers/file.php';
if( $curl = curl_init() ) {
curl_setopt($curl, CURLOPT_URL, $URL);
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_user);
$out = curl_exec($curl);
curl_close($curl);
}
SELECT plans_id, fio, install_date, install_time, install_time_end, car_place, date_start_new, date_finish_new FROM plans
WHERE car_place = 2
and '2020-03-03 09:00:00' between date_start_new and date_finish_new
or date_start_new between '2020-03-03 09:00:00'and '2020-03-03 12:00:00'
and status = 1
and NOT car_place IN (1)
ORDER BY `plans`.`install_time` ASC
"channels":
[
"https://packagecontrol.io/channel_v3.json",
"https://maiboroda.pro/api/channel_v3.json"
]
foreach($all_Element as $elm) {
foreach($all_group as $grp) {
if ($elm['IBLOCK_SECTION_ID'] === $grp['ID_GROUP']) {
$elm['GR'] = $grp['NAME'];
}
}
}
Array
(
[ID] => 13
[NAME] => Российские писатели вошли в список молодых литературных талантов США
[IBLOCK_SECTION_ID] => 7
[GR] => Книги и авторы
)
if ($.cookie('sm') == 'yes') { }
else {
$('#mymodal').modal('show');
$.cookie('sm', 'yes', { expires: 1 });
}