Maks | перенес компонент формы Нужна консультация и пока отключил путем переименования папки include

web_99
Andrei 2 months ago
parent 356f22f708
commit 3aa877b856
  1. 27
      interesnoe/blog-pro-septiki/stantsii-biologicheskoy-ochistki-pravilnyy-vybor/index.php
  2. 21
      local/include-ОТКЛЮЧИЛ/consultation.php
  3. 8
      local/templates/EraSeptik/components/bitrix/main.feedback/consultation/lang/en/template.php
  4. 8
      local/templates/EraSeptik/components/bitrix/main.feedback/consultation/lang/ru/template.php
  5. 2
      local/templates/EraSeptik/components/bitrix/main.feedback/consultation/result_modifier.php
  6. 17
      local/templates/EraSeptik/components/bitrix/main.feedback/consultation/template.php
  7. 8
      local/templates/EraSeptik/components/bitrix/main.feedback/order/lang/en/template.php
  8. 8
      local/templates/EraSeptik/components/bitrix/main.feedback/order/lang/ru/template.php
  9. 2
      local/templates/EraSeptik/components/bitrix/main.feedback/order/result_modifier.php
  10. 1
      local/templates/EraSeptik/components/bitrix/main.feedback/order/style.css
  11. 1
      local/templates/EraSeptik/components/bitrix/main.feedback/order/style.min.css
  12. 165
      local/templates/EraSeptik/components/bitrix/main.feedback/order/template.php

@ -346,13 +346,20 @@ $APPLICATION->SetTitle("Станции биологической очистки
</p> </p>
</div> </div>
</div> </div>
</section> <?$APPLICATION->IncludeComponent( </section>
"bitrix:main.include",
"", <?
Array(
"AREA_FILE_RECURSIVE" => "Y", $APPLICATION->IncludeComponent(
"AREA_FILE_SHOW" => "file", "bitrix:main.include",
"EDIT_TEMPLATE" => "", "",
"PATH" => "/local/include/consultation.php" Array(
) "AREA_FILE_RECURSIVE" => "Y",
);?><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?> "AREA_FILE_SHOW" => "file",
"EDIT_TEMPLATE" => "",
"PATH" => "/local/include/consultation.php"
)
);
?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>

@ -0,0 +1,21 @@
<section class="consultation container">
<h2 class="consultation__title">Нужна консультация?</h2>
<?$APPLICATION->IncludeComponent(
"bitrix:main.feedback",
"consultation",
array(
"EMAIL_TO" => "fl@itbuben.ru",
"EVENT_MESSAGE_ID" => array(
0 => "7",
),
"OK_TEXT" => "Спасибо, ваше сообщение принято.",
"REQUIRED_FIELDS" => array(
0 => "NAME",
1 => "EMAIL",
),
"USE_CAPTCHA" => "Y",
"COMPONENT_TEMPLATE" => "consultation"
),
false
);?>
</section>

@ -0,0 +1,8 @@
<?
$MESS ['MFT_NAME'] = "Name";
$MESS ['MFT_EMAIL'] = "Your E-mail";
$MESS ['MFT_MESSAGE'] = "Message";
$MESS ['MFT_CAPTCHA'] = "CAPTCHA";
$MESS ['MFT_CAPTCHA_CODE'] = "Type the letters you see on the picture";
$MESS ['MFT_SUBMIT'] = "Send";
?>

@ -0,0 +1,8 @@
<?
$MESS ['MFT_NAME'] = "Ваше имя";
$MESS ['MFT_EMAIL'] = "Ваш E-mail";
$MESS ['MFT_MESSAGE'] = "Сообщение";
$MESS ['MFT_CAPTCHA'] = "Защита от автоматических сообщений";
$MESS ['MFT_CAPTCHA_CODE'] = "Введите слово на картинке";
$MESS ['MFT_SUBMIT'] = "Отправить";
?>

@ -0,0 +1,2 @@
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); ?>

@ -0,0 +1,17 @@
<?php
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();?>
<div>
<form action="<?=POST_FORM_ACTION_URI?>" method="POST" class="consultation__form">
<?=bitrix_sessid_post()?>
<input type="text" name="user_name" class="search-input" placeholder="Ваше имя" value="<?=$arResult["AUTHOR_NAME"]?>" required />
<input type="tel" name="user_phone" class="search-input" placeholder="Номер телефона" value="<?=$arResult["AUTHOR_PHONE"]?>" required />
<button type="submit" name="submit" class="button button--orange">Получить консультацию</button>
</form>
<div class="consultation__info">
Нажимая кнопку «Получить консультацию», вы соглашаетесь с <a href="/dokumentatsiya/politika-konfidentsialnosti/" class="consultation__info--link"><u>условиями конфиденциальности</u></a>
</div>
</div>

@ -0,0 +1,8 @@
<?
$MESS ['MFT_NAME'] = "Name";
$MESS ['MFT_EMAIL'] = "Your E-mail";
$MESS ['MFT_MESSAGE'] = "Message";
$MESS ['MFT_CAPTCHA'] = "CAPTCHA";
$MESS ['MFT_CAPTCHA_CODE'] = "Type the letters you see on the picture";
$MESS ['MFT_SUBMIT'] = "Send";
?>

@ -0,0 +1,8 @@
<?
$MESS ['MFT_NAME'] = "Ваше имя";
$MESS ['MFT_EMAIL'] = "Ваш E-mail";
$MESS ['MFT_MESSAGE'] = "Сообщение";
$MESS ['MFT_CAPTCHA'] = "Защита от автоматических сообщений";
$MESS ['MFT_CAPTCHA_CODE'] = "Введите слово на картинке";
$MESS ['MFT_SUBMIT'] = "Отправить";
?>

@ -0,0 +1,2 @@
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); ?>

@ -0,0 +1,165 @@
<?
if(!defined("B_PROLOG_INCLUDED")||B_PROLOG_INCLUDED!==true)die();
\Bitrix\Main\UI\Extension::load("ui.bootstrap4");
/**
* Bitrix vars
*
* @var array $arParams
* @var array $arResult
* @var CBitrixComponentTemplate $this
* @global CMain $APPLICATION
* @global CUser $USER
*/
?>
<!--<div class="mb-4">-->
<!-- --><?//if(!empty($arResult["ERROR_MESSAGE"]))
// {
// foreach($arResult["ERROR_MESSAGE"] as $v)
// ShowError($v);
// }
// if($arResult["OK_MESSAGE"] <> '')
// {
// ?><!--<div class="alert alert-success">--><?php //=$arResult["OK_MESSAGE"]?><!--</div>--><?//
// }
// ?>
<!-- <form action="--><?php //=POST_FORM_ACTION_URI?><!--" method="POST">-->
<!-- --><?php //=bitrix_sessid_post()?>
<!-- <div class="form-group">-->
<!-- <label for="mainFeedback_name">--><?php //=GetMessage("MFT_NAME");?><!----><?//
// if(empty($arParams["REQUIRED_FIELDS"]) || in_array("NAME", $arParams["REQUIRED_FIELDS"])):?><!--<span class="mf-control-required">*</span>--><?//endif;?><!--</label>-->
<!-- <input-->
<!-- type="text"-->
<!-- id="mainFeedback_name"-->
<!-- name="user_name"-->
<!-- class="form-control"-->
<!-- value="--><?php //=$arResult["AUTHOR_NAME"]?><!--"-->
<!-- --><?//if(empty($arParams["REQUIRED_FIELDS"]) || in_array("NAME", $arParams["REQUIRED_FIELDS"])): ?><!--required--><?//endif?>
<!-- />-->
<!-- </div>-->
<!---->
<!-- <div class="form-group">-->
<!-- <label for="mainFeedback_phone"> Телефон </label>-->
<!---->
<!-- <input-->
<!-- type="text"-->
<!-- name="user_phone"-->
<!-- id="mainFeedback_phone"-->
<!-- class="form-control"-->
<!-- value="+7"-->
<!---->
<!-- />-->
<!-- </div>-->
<!---->
<!---->
<!-- <div class="form-group">-->
<!-- <label for="mainFeedback_email">--><?php //=GetMessage("MFT_EMAIL")?><!----><?//
// if(empty($arParams["REQUIRED_FIELDS"]) || in_array("EMAIL", $arParams["REQUIRED_FIELDS"])):?><!--<span class="mf-control-required">*</span>--><?//endif?><!--</label>-->
<!-- <input-->
<!-- type="text"-->
<!-- name="user_email"-->
<!-- id="mainFeedback_email"-->
<!-- class="form-control"-->
<!-- value="--><?php //=$arResult["AUTHOR_EMAIL"]?><!--"-->
<!-- --><?//if(empty($arParams["REQUIRED_FIELDS"]) || in_array("EMAIL", $arParams["REQUIRED_FIELDS"])):?><!--required--><?//endif?>
<!-- />-->
<!-- </div>-->
<!---->
<!---->
<!-- <div class="form-group">-->
<!-- <label for="mainFeedback_message">--><?php //=GetMessage("MFT_MESSAGE")?><!----><?//
// if(empty($arParams["REQUIRED_FIELDS"]) || in_array("MESSAGE", $arParams["REQUIRED_FIELDS"])):?><!--<span class="mf-control-required">*</span>--><?//endif?><!--</label>-->
<!-- <textarea class="form-control" id="mainFeedback_message" name="MESSAGE" rows="5">--><?php //=$arResult["MESSAGE"]?><!--</textarea>-->
<!-- </div>-->
<!---->
<!-- --><?//if($arParams["USE_CAPTCHA"] == "Y"):?>
<!-- <div class="form-row">-->
<!-- <div class="form-group col-auto">-->
<!-- <label>--><?php //=GetMessage("MFT_CAPTCHA_CODE")?><!--<span class="mf-control-required">*</span></label><br/>-->
<!-- <input type="text" if="mainFeedback_captcha" class="form-control" name="captcha_word" size="30" maxlength="50" value=""/><br/>-->
<!-- </div>-->
<!-- <div class="form-group col">-->
<!-- <label for="mainFeedback_captcha">--><?php //=GetMessage("MFT_CAPTCHA")?><!--</label> <div style="clear:both"></div>-->
<!-- <input type="hidden" name="captcha_sid" value="--><?php //=$arResult["capCode"]?><!--">-->
<!-- <img src="/bitrix/tools/captcha.php?captcha_sid=--><?php //=$arResult["capCode"]?><!--" width="180" height="38" alt="CAPTCHA">-->
<!-- </div>-->
<!-- </div>-->
<!-- --><?//endif;?>
<!---->
<!-- <input type="hidden" name="PARAMS_HASH" value="--><?php //=$arResult["PARAMS_HASH"]?><!--">-->
<!-- <input type="submit" name="submit" value="--><?php //=GetMessage("MFT_SUBMIT")?><!--" class="btn btn-primary">-->
<!-- </form>-->
<!--</div>-->
<button class="button button--orange js-cart__order-btn">
Оформить заказ
</button>
<div class="cart-popup__wrapper cart-popup__wrapper--hidden">
<div class="cart-popup">
<button class="button cart-popup__close js-cart__popup-close">
<img src="svg/cancel.svg" width="20" height="20" alt="close-icon">
</button>
<h2>
Оформление заказа
</h2>
<form class="cart-popup__form">
<label>
<input type="text" placeholder=" ">
<span class="cart-popup__input-label">Имя</span>
</label>
<label>
<input type="text" placeholder=" ">
<span class="cart-popup__input-label"> Номер телефона*</span>
</label>
<label>
<input type="text" placeholder=" ">
<span class="cart-popup__input-label">Почта</span>
</label>
<label class="cart-popup__select">
<span class="cart-popup__select-label">Способ получение заказа</span>
<select class="js-cart__order-select">
<option value="self-delivery">
Самовывоз
</option>
<option value="service-delivery">
Службой доставки
</option>
</select>
</label>
<label class="cart-popup__select cart-popup__self-delivery js-cart__self-delivery">
<span class="cart-popup__select-label">Адрес самовывоза</span>
<select disabled="">
<option>
Московская область, г. Наро-Фоминск, ул. Московская улица, 3А
</option>
</select>
</label>
<label class="cart-popup__label-delivery cart-popup__label-delivery--hidden js-cart__service-delivery">
<input type="text" placeholder=" ">
<span class="cart-popup__input-label"> Адрес доставки</span>
</label>
<label class="cart-popup__label-delivery cart-popup__label-delivery--hidden js-cart__service-delivery">
<input type="text" placeholder=" ">
<span class="cart-popup__input-label"> Комментарий</span>
</label>
<label class="cart-popup__select">
<span class="cart-popup__select-label">Способ оплаты</span>
<select>
<option value="cash-on-delivery">
Наличными при получении
</option>
<option value="card-on-delivery">
Картой при получении
</option>
</select>
</label>
<button class="cart-popup__form-submit js-cart__popup-submit" type="submit">
Оформить заказ
</button>
<p class="order-call__personal">
Нажимая кнопку «Заказать звонок», вы подтверждаете свое согласие на
обработку <a href="#">персональных данных
</a></p>
</form>
</div>
</div>
Loading…
Cancel
Save