Current Path : /var/www/u0635749/data/www/hobbyclick.ru/www.hobbyclick.ru/www/local/ajax/form/ |
Current File : /var/www/u0635749/data/www/hobbyclick.ru/www.hobbyclick.ru/www/local/ajax/form/request.php |
<?php require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); $request = \Bitrix\Main\Context::getCurrent()->getRequest(); $id = intval(trim($request->getPost('iblock'))); $template = $request->getPost('template'); print_r('fgdfhfghdf'); $APPLICATION->IncludeComponent( "meven:form", $template, array( "COMPONENT_TEMPLATE" => $template, "IBLOCK_TYPE" => "forms", "IBLOCK_ID" => $id, "SUCCESS_MESSAGE" => "Спасибо! Ваше сообщение отправлено!", "SEND_BUTTON_NAME" => "Задать вопрос", "SEND_BUTTON_CLASS" => "btn btn-primary", "DISPLAY_CLOSE_BUTTON" => "Y", "SHOW_LICENCE" => "Y", "LICENCE_TEXT" => "btn btn-primary", "CLOSE_BUTTON_NAME" => "Закрыть", "CLOSE_BUTTON_CLASS" => "btn btn-primary", "AJAX_MODE" => "N", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "Y", "AJAX_OPTION_HISTORY" => "N", "AJAX_OPTION_ADDITIONAL" => "", "CACHE_TYPE" => "A", "CACHE_TIME" => "3600", "CACHE_GROUPS" => "Y", "FORM_TITLE" => $title, "HIDDEN_FIELDS" => ['SECTION'], "USE_CAPTCHA" => "N", ), false );