<?$APPLICATION->IncludeComponent(
"bitrix:form.result.new",
".default",
array(
"CACHE_TIME" => "3600",
"CACHE_TYPE" => "A",
"CHAIN_ITEM_LINK" => "",
"CHAIN_ITEM_TEXT" => "",
"EDIT_URL" => "",
"IGNORE_CUSTOM_TEMPLATE" => "N",
"LIST_URL" => "",
"SEF_MODE" => "N",
"SUCCESS_URL" => "",
"USE_EXTENDED_ERRORS" => "N",
"WEB_FORM_ID" => "1",
"COMPONENT_TEMPLATE" => ".default",
"VARIABLE_ALIASES" => array(
"WEB_FORM_ID" => "WEB_FORM_ID",
"RESULT_ID" => "RESULT_ID",
),
"AJAX_MODE" => "Y"
),
false
);?>
$arTemplateParameters = array(
"AJAX_MODE" => array(
"NAME" => GetMessage("TP_FBF_AJX"),
"TYPE" => "STRING",
"DEFAULT" => "Y",
)
)
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if($arResult["isFormErrors"] == "Y")
{
echo $arResult["FORM_ERRORS_TEXT"];
};
print_r($arResult);
echo $arResult["FORM_NOTE"];
echo $arResult["FORM_HEADER"];
if ($arResult["isFormNote"] != "Y")
{
//============== TABLE TITLE ====================/
echo "<table>";
if ($arResult["isFormDescription"] == "Y" || $arResult["isFormTitle"] == "Y" || $arResult["isFormImage"] == "Y")
{
echo "<tr><td>";
if ($arResult["isFormTitle"])
{
echo "<h3>".$arResult["FORM_TITLE"]."</h3>";
};
echo "<p>".$arResult["FORM_DESCRIPTION"]."</p>";
echo "</td></tr>";
};
echo "</table>";
//============== QUESTION ====================/
echo "<table>";
foreach ($arResult["QUESTIONS"] as $FIELD_SID => $arQuestion)
{
if ($arQuestion['STRUCTURE'][0]['FIELD_TYPE'] == 'hidden')
{
if ($FIELD_SID == "IP")
{
$id = $arQuestion["STRUCTURE"][0]["ID"];
echo "<tr><td>";
echo "<input type='hidden' name='form_hidden_".$id."' value='".$_SERVER["REMOTE_ADDR"]."'>";
echo "</td></tr>";
}
else
{
echo $arQuestion["HTML_CODE"];
}
}
else
{
echo "<tr><td>";
if (is_array($arResult["FORM_ERRORS"]) && array_key_exists($FIELD_SID, $arResult['FORM_ERRORS']))
{
echo "<span class='error-fld' title='".$arResult["FORM_ERRORS"][$FIELD_SID]."'></span>";
};
echo $arQuestion["CAPTION"];
if ($arQuestion["REQUIRED"] == "Y")
{
echo $arResult["REQUIRED_SIGN"];
};
if ($arQuestion["IS_INPUT_CAPTION_IMAGE"] == "Y")
{
echo "<br />".$arQuestion["IMAGE"]["HTML_CODE"];
};
echo $arQuestion["HTML_CODE"];
echo "</td></tr>";
}
} //endwhile
echo "<tr>";
echo "<td><input ".(intval($arResult["F_RIGHT"]) < 10 ? "disabled=\"disabled\"" : "")." type='submit' name='web_form_submit' value='Submit' /></td>";
echo "</tr>";
echo "</table>";
echo "<p>";
echo $arResult["REQUIRED_SIGN"]." - ".GetMessage("FORM_REQUIRED_FIELDS");
echo "</p>";
echo $arResult["FORM_FOOTER"];
};
<?$APPLICATION->IncludeComponent(
"bitrix:form",
"",
Array(
"AJAX_MODE" => "Y",
"AJAX_OPTION_ADDITIONAL" => "",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"CACHE_TIME" => "3600",
"CACHE_TYPE" => "A",
"CHAIN_ITEM_LINK" => "",
"CHAIN_ITEM_TEXT" => "",
"COMPONENT_TEMPLATE" => ".default",
"EDIT_ADDITIONAL" => "N",
"EDIT_STATUS" => "Y",
"IGNORE_CUSTOM_TEMPLATE" => "N",
"NOT_SHOW_FILTER" => array("",""),
"NOT_SHOW_TABLE" => array("",""),
"RESULT_ID" => $_REQUEST[RESULT_ID],
"SEF_MODE" => "N",
"SHOW_ADDITIONAL" => "N",
"SHOW_ANSWER_VALUE" => "N",
"SHOW_EDIT_PAGE" => "Y",
"SHOW_LIST_PAGE" => "Y",
"SHOW_STATUS" => "Y",
"SHOW_VIEW_PAGE" => "Y",
"START_PAGE" => "new",
"SUCCESS_URL" => "",
"USE_EXTENDED_ERRORS" => "N",
"VARIABLE_ALIASES" => Array("action"=>"action"),
"WEB_FORM_ID" => "10"
)
);?>
<? require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
$APPLICATION->SetTitle("Задать вопрос");
?>
<?$APPLICATION->IncludeComponent(
"bitrix:form.result.new",
".default",
array(
"CACHE_TIME" => "3600",
"CACHE_TYPE" => "A",
"CHAIN_ITEM_LINK" => "",
"CHAIN_ITEM_TEXT" => "",
"EDIT_URL" => "",
"IGNORE_CUSTOM_TEMPLATE" => "N",
"LIST_URL" => "",
"SEF_MODE" => "N",
"SUCCESS_URL" => "",
"USE_EXTENDED_ERRORS" => "N",
"WEB_FORM_ID" => "1",
"COMPONENT_TEMPLATE" => ".default",
"VARIABLE_ALIASES" => array(
"WEB_FORM_ID" => "WEB_FORM_ID",
"RESULT_ID" => "RESULT_ID",
),
"AJAX_MODE" => "Y"
),
false
);?><br><? require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php") ?>
Mixed Content: The page at 'https://mysite/razdel/'
was loaded over HTTPS, but requested an insecure form action
'http://mysite/razdel/?WEB_FORM_ID=8&RESULT_ID=7776&…=addok&bxajaxid=823b0aa…&AJAX_CALL=Y'.
This request has been blocked;
the content must be served over HTTPS.
action="/razdel/"
https://mysite/razdel/
Uncaught TypeError: Cannot set property 'innerHTML' of null
at new qq.FileUploader (fileuploader.js:583)
at createUploader ((index):101)
at (index):113
at HTMLDocument.ready (jcf.js:611)