diff --git a/.htaccess b/.htaccess index 3064baf..7215953 100644 --- a/.htaccess +++ b/.htaccess @@ -1,32 +1,32 @@ -Options -Indexes -ErrorDocument 404 /404.php - - - php_flag allow_call_time_pass_reference 1 - php_flag session.use_trans_sid off - - #php_value display_errors 1 - - #php_value mbstring.internal_encoding UTF-8 - - - - Options +FollowSymLinks - RewriteEngine On - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} !-l - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$ - RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L] - RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}] - - - - DirectoryIndex index.php index.html - - - - ExpiresActive on - ExpiresByType image/jpeg "access plus 3 day" - ExpiresByType image/gif "access plus 3 day" +Options -Indexes +ErrorDocument 404 /404.php + + + php_flag allow_call_time_pass_reference 1 + php_flag session.use_trans_sid off + + #php_value display_errors 1 + + #php_value mbstring.internal_encoding UTF-8 + + + + Options +FollowSymLinks + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-l + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$ + RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L] + RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}] + + + + DirectoryIndex index.php index.html + + + + ExpiresActive on + ExpiresByType image/jpeg "access plus 3 day" + ExpiresByType image/gif "access plus 3 day" \ No newline at end of file diff --git a/about/.left.menu_ext.php b/about/.left.menu_ext.php index e8684a0..5394a46 100644 --- a/about/.left.menu_ext.php +++ b/about/.left.menu_ext.php @@ -28,6 +28,13 @@ $aMenuLinks = Array( Array(), "" ), + Array( + "Прочее", + "/about/rules/", + Array(), + Array(), + "" + ), /* Array( "Отзыв доверенностей", @@ -36,7 +43,6 @@ $aMenuLinks = Array( Array(), "" ), - Array( "Прочее", "/about/additional/", diff --git a/about/career/index.php b/about/career/index.php index abf0212..d231a92 100644 --- a/about/career/index.php +++ b/about/career/index.php @@ -13,7 +13,7 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Карьера" ?> IncludeComponent( - "evolution:form.leasing", + "evolution:form.vacancy", "", Array() ); diff --git a/about/career/vacancy.php b/about/career/vacancy.php index ff7b83a..504432a 100644 --- a/about/career/vacancy.php +++ b/about/career/vacancy.php @@ -20,11 +20,4 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Карьера" ) ); ?> -IncludeComponent( - "evolution:form.vacancy", - "", - Array() - ); -?> \ No newline at end of file diff --git a/about/requisites/index.php b/about/requisites/index.php index da511b4..631e4e2 100644 --- a/about/requisites/index.php +++ b/about/requisites/index.php @@ -1,10 +1,9 @@ SetTitle("Эволюция автолизинга: Реквизиты"); -?> -
+?>
-

О компании

+

Реквизиты

IncludeComponent("bitrix:menu", "evolution.left.menu", Array( "ALLOW_MULTI_SELECT" => "N", // Разрешить несколько активных пунктов одновременно @@ -26,53 +25,45 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Реквизи

Наименование

-

ООО «ЛК»

-
-
-

Телефон

-

+7 (495) 000-00-00

+

ООО "ЛК Эволюция"

ИНН

-

0000019700

+

9724016636

КПП

-

500050001

+

772401001

ОГРН

-

0000900000000

-
-
-

ОКВЭД

-

65.21, 71.21

-
-
-

ОКПО

-

00007300

+

1207700245037

Юридический адрес

-

000000, г. Москва, пр. Мира, 1

+

115201, г. Москва, ул. Котляковская, дом 8, эт. 3, пом. 337

Почтовый адрес

-

000004, г. Москва, ул. Мира, д. 1

+

115201, г. Москва, ул. Котляковская, дом 8, эт. 3, пом. 337

Банк

-

ПАО Сбербанк России г. Москва

+

ПАО «МОСКОВСКИЙ КРЕДИТНЫЙ БАНК»

БИК

-

044525225

+

044525659

Расчётный счёт

-

00001810000070000000

+

40701810600760000017

- +
+

Корреспондентский счёт

+

30101810745250000659

+
+ Скачать реквизиты в PDF
diff --git a/about/rules/.section.php b/about/rules/.section.php new file mode 100644 index 0000000..6452856 --- /dev/null +++ b/about/rules/.section.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/about/rules/index.php b/about/rules/index.php new file mode 100644 index 0000000..a949927 --- /dev/null +++ b/about/rules/index.php @@ -0,0 +1,17 @@ +SetTitle("Эволюция автолизинга: Общие условия договора лизинга"); +?> +IncludeComponent( + "evolution:about.rules", + "", + Array() +); +?> +IncludeComponent( + "evolution:form.leasing", + "", +Array() +);?> + \ No newline at end of file diff --git a/api/index.php b/api/index.php index c7b6217..b4daa0e 100644 --- a/api/index.php +++ b/api/index.php @@ -182,12 +182,23 @@ switch($PARAM_1) "UF_INN" => (string)$REQ['inn'], "UF_KPP" => (string)$REQ['kpp'], "UF_OGRN" => (string)$REQ['ogrn'], - "UF_PHONE" => (int)$REQ['phone'], + "UF_PHONE_NUMBER" => (int)$REQ['phone'], ]; $ID = $user->Add($profile); if (intval($ID) > 0) { + \Bitrix\Main\Mail\Event::send([ + "EVENT_NAME" => "USER_INFO", + "LID" => "s1", + "C_FIELDS" => Array( + "EMAIL" => $REQ['email'], + "ORG_NAME" => $REQ['org_title'], + "LOGIN" => $REQ['email'], + "PASS" => $REQ['password'], + ) + ]); + print json_encode([ "status" => "success" ]); @@ -236,6 +247,8 @@ switch($PARAM_1) $filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => 1 ]; if(!empty($REQ['BRAND_ID'])) { $filter["PROPERTY_BRAND"] = $REQ['BRAND_ID']; } if(!empty($REQ['MODEL_ID'])) { $filter["PROPERTY_MODEL"] = $REQ['MODEL_ID']; } + if(!empty($REQ['MODIFICATION'])) { $filter["PROPERTY_MODIFICATION"] = $REQ['MODIFICATION']; } + if(!empty($REQ['GEAR'])) { $filter["PROPERTY_GEAR"] = $REQ['GEAR']; } if(!empty($REQ['DRIVE'])) { $filter["PROPERTY_DRIVE"] = $REQ['DRIVE']; } if(!empty($REQ['BODY'])) { $filter["PROPERTY_BODY"] = $REQ['BODY']; } @@ -319,7 +332,7 @@ switch($PARAM_1) $modifications_ar_res['PROPERTIES'] = $modifications_ob_element->GetProperties(); $modifications[] = [ - "NAME" => $modifications_ar_res['NAME'], + "NAME" => $modifications_ar_res['PROPERTIES']['TITLE']['VALUE'], "ID" => $modifications_ar_res['ID'], ]; } @@ -367,6 +380,67 @@ switch($PARAM_1) } } break; + + case "reset": + { + if(CModule::IncludeModule('iblock')) + { + $cars = []; + $cars_res = CIBlockElement::GetList(["ID" => "ASC"], [ "IBLOCK_ID" => 1 ], false, []); + while ($cars_ob_element = $cars_res->GetNextElement()) + { + $cars_ar_res = $cars_ob_element->GetFields(); + CIBlockElement::Delete($cars_ar_res['ID']); + } + + $modifications_res = CIBlockElement::GetList(["ID" => "ASC"], [ "IBLOCK_ID" => 10 ], false, []); + while ($modifications_ob_element = $modifications_res->GetNextElement()) + { + $modifications_ar_res = $modifications_ob_element->GetFields(); + CIBlockElement::Delete($modifications_ar_res['ID']); + } + + $models_res = CIBlockElement::GetList(["NAME" => "ASC"], [ "IBLOCK_ID" => 9 ], false, []); + while ($models_ob_element = $models_res->GetNextElement()) + { + $models_ar_res = $models_ob_element->GetFields(); + CIBlockElement::Delete($models_ar_res['ID']); + } + + $brands_res = CIBlockElement::GetList(["NAME" => "ASC"], [ "IBLOCK_ID" => 8 ], false, []); + while ($brands_ob_element = $brands_res->GetNextElement()) + { + $brands_ar_res = $brands_ob_element->GetFields(); + CIBlockElement::Delete($brands_ar_res['ID']); + } + } + + die(); + } + break; + } + } + break; + + case "programs": + { + if(CModule::IncludeModule('iblock')) + { + $programs = []; + $programs_res = CIBlockElement::GetList(["SORT" => "ASC"], ["ACTIVE" => "Y", "IBLOCK_ID" => 3], false, []); + while ($programs_ob_element = $programs_res->GetNextElement()) + { + $programs_ar_res = $programs_ob_element->GetFields(); + + $programs[] = [ + "name" => $programs_ar_res['NAME'], + "code" => $programs_ar_res['CODE'], + ]; + } + + print json_encode([ + "programs" => $programs, + ]); } } break; @@ -396,6 +470,200 @@ switch($PARAM_1) } break; + case "forms": + { + if(CModule::IncludeModule('form')) + { + $error = ""; + $arr = Array(); + $form_errors = Array(); + $arParams['request'] = $_REQUEST; + $attach = false; + + $form_code = trim($_REQUEST['form']); + + $form = CForm::GetBySID($form_code); + $form = $form->Fetch(); + + $formQuestions = Array(); + $formAnswers = Array(); + + $sort = "s_sort"; + $order = "asc"; + $filtered = false; + $resFormQuestions = CFormField::GetList($form['ID'], "N", $$sort, $$order, Array(), $$filtered); + while($arFormQuestion = $resFormQuestions->Fetch()) + { + $rsAnswers = CFormAnswer::GetList($arFormQuestion['ID'], $$sort, $$order, Array(), $$filtered); + $arAnswer = $rsAnswers->Fetch(); + + $arFormQuestion['ANSWER'] = $arAnswer; + $formQuestions[] = $arFormQuestion; + } + + $c = 1; + foreach($formQuestions AS $fq) + { + if($fq['REQUIRED'] == "Y") + { + if($_REQUEST[$fq['SID']] == "" && $fq['ANSWER']['FIELD_TYPE'] != "file") + { + array_push($form_errors, $fq['SID']); + } + if($fq['ANSWER']['FIELD_TYPE'] == "email") + { + if(!filter_var($_REQUEST[$fq['SID']], FILTER_VALIDATE_EMAIL)) + { + array_push($form_errors, $fq['SID']); + } + } + } + + if($fq['ANSWER']['FIELD_TYPE'] == "file") + { + if(is_array($_FILES[$fq['SID']])) + { + if(CFormValidator::Execute( + array("PARAMS" => Array("EXT" => "doc,docx,rtf,pdf,txt,jpg,jpeg,png,gif,bmp"),"NAME" => "file_type"), + array(), + array(), + array($_FILES[$fq['SID']]) + )) + { + $formAnswers["form_".$fq['ANSWER']['FIELD_TYPE']."_".$fq['ANSWER']['ID']] = $_FILES[$fq['SID']]; + $attach = true; + } + else + { + array_push($form_errors, $fq['SID']); + } + } + else + { + if($fq['REQUIRED'] == "Y") + { + array_push($form_errors, $fq['SID']); + } + } + } + else + { + $formAnswers["form_".$fq['ANSWER']['FIELD_TYPE']."_".$fq['ANSWER']['ID']] = $_REQUEST[$fq['SID']]; + } + + $arr['q'][] = $fq; + + $c++; + } + + if(!empty($_SESSION[$_REQUEST['form']."_CAPTCHA"])) + { + if($_SESSION[$_REQUEST['form'].'_CAPTCHA'] != $_REQUEST[$_REQUEST['form'].'_CAPTCHA']) + { + array_push($form_errors, $_REQUEST['form'].'_CAPTCHA'); + } + } + + $arr['FILES'] = $_FILES; + + if(count($form_errors) == 0) + { + if($RESULT_ID = CFormResult::Add($form['ID'], $formAnswers)) + { + $arr['status'] = "complete"; + + if($attach || array_key_exists("FORM_FILLING", $_REQUEST)) + { + if($attach) + { + $arAnswer = CFormResult::GetDataByID($RESULT_ID, Array(), $arResult, $arAnswer2); + + $fields = Array(); + $attached_files = Array(); + foreach($arAnswer AS $k => $v) + { + $fields[$k] = $v[0]['USER_TEXT']; + if($v[0]['USER_FILE_ID'] != NULL) + { + array_push($attached_files, $v[0]['USER_FILE_ID']); + } + } + + $post_event_name = "FORM_FILLING_".$_REQUEST['form']; + file_put_contents($_SERVER['DOCUMENT_ROOT']."/files.txt", var_export($attached_files, true)); + + CEvent::Send($post_event_name, "s1", $fields, "N", "", $attached_files); + } + else + { + CFormResult::Mail($RESULT_ID); + } + } + else + { + CFormResult::Mail($RESULT_ID); + } + + //HERE + $url = API_HOST."/site/RequestFromSite"; + + $payload = json_encode([ + "region" => "Московская область", + "name" => $REQ['FORM_FIELD_FIO'], + "phone" => $REQ['FORM_FIELD_PHONE'], + "email" => $REQ['FORM_FIELD_EMAIL'], + "email" => $REQ['FORM_FIELD_COMPANY'], + "brand" => $REQ['FORM_FIELD_BRAND'], + "model" => $REQ['FORM_FIELD_MODEL'], + "modification" => $REQ['FORM_FIELD_MODIFICATION'], + "price" => (int) $REQ['FORM_FIELD_PRICE'], + "prepaid" => (int) $REQ['FORM_FIELD_PREPAID'], + "term" => (int) $REQ['FORM_FIELD_TERM'], + "redemption" => (int) $REQ['FORM_FIELD_REDEMPTION'], + "utm_source" => null, + "utm_medium" => null, + "utm_campaign" => null, + "utm_term" => null, + "utm_content" => null, + "page_url" => $REQ['FORM_FIELD_PAGE_URL'], + "page_name" => $REQ['FORM_FIELD_PAGE_NAME'], + ]); + + $c = curl_init(); + curl_setopt($c, CURLOPT_URL, API_HOST."/site/RequestFromSite"); + curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 30); + curl_setopt($c, CURLOPT_TIMEOUT, 30); + curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0); + curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0); + curl_setopt($c, CURLOPT_POST, 1); + curl_setopt($c, CURLOPT_POSTFIELDS, $payload); + curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); + + $response = curl_exec($c); + curl_close($c); + } + else + { + $arr['status'] = "error"; + global $strError; + $arr['message'] = $strError; + } + } + else + { + $arr['status'] = "error"; + $arr['errors'] = $form_errors; + } + $arr['request'] = $_REQUEST; + $arr['answers'] = $formAnswers; + + print json_encode($arr); + die(); + } + } + break; + case "account": { switch($PARAM_2) @@ -429,6 +697,7 @@ switch($PARAM_1) "secondname" => $ar_user['SECOND_NAME'], "lastname" => $ar_user['LAST_NAME'], "phone" => $ar_user['UF_PHONE'], + "phone_verified" => $ar_user['UF_PHONE_VERIFIED'], ]; $company_data = [ @@ -460,7 +729,106 @@ switch($PARAM_1) case "phone": { + /* + $oUserTypeEntity = new CUserTypeEntity(); + //$oUserTypeEntity->Delete(12); + $aUserFields = array( + 'ENTITY_ID' => 'USER', + 'FIELD_NAME' => 'UF_PHONE_NUMBER', + 'USER_TYPE_ID' => 'string', + 'XML_ID' => 'XML_USER_PHONE_NUMBER', + 'SORT' => 500, + 'MULTIPLE' => 'N', + 'MANDATORY' => 'N', + 'SHOW_FILTER' => 'N', + 'SHOW_IN_LIST' => '', + 'EDIT_IN_LIST' => '', + 'IS_SEARCHABLE' => 'N', + 'SETTINGS' => array( + 'DEFAULT_VALUE' => '', + 'SIZE' => '20', + 'ROWS' => '1', + 'MIN_LENGTH' => '0', + 'MAX_LENGTH' => '0', + 'REGEXP' => '', + ), + 'EDIT_FORM_LABEL' => array( + 'ru' => 'Номер телефона', + 'en' => 'Phone number', + ), + 'LIST_COLUMN_LABEL' => array( + 'ru' => 'Номер телефона', + 'en' => 'Phone number', + ), + 'LIST_FILTER_LABEL' => array( + 'ru' => 'Номер телефона', + 'en' => 'Phone number', + ), + 'ERROR_MESSAGE' => array( + 'ru' => 'Ошибка при заполнении пользовательского свойства', + 'en' => 'An error in completing the user field', + ), + 'HELP_MESSAGE' => array( + 'ru' => '', + 'en' => '', + ), + ); + + $iUserFieldId = $oUserTypeEntity->Add( $aUserFields ); // int + print $iUserFieldId; + die(); + */ + + if(!empty($REQ['phone'])) + { + $user = new \CUser; + $filter = ["UF_PHONE_NUMBER" => $REQ['phone']]; + + $numbers = []; + $rsUsers = CUser::GetList(["ID" => "ASC"], false, $filter, array("SELECT"=>array("UF_*"))); + while($arUser = $rsUsers->Fetch()) + { + array_push($numbers, $arUser); + //echo $arUser['ID'].' '.$arUser['LOGIN']."\n"; + } + + if(count($numbers) > 0) + { + $ar_user = $numbers[count( $numbers ) - 1]; + + print json_encode([ + "status" => "success", + "acc_number" => $ar_user['XML_ID'], + "user" => [ + "email" => $ar_user['LOGIN'], + "name" => $ar_user['NAME'], + "secondname" => $ar_user['SECOND_NAME'], + "lastname" => $ar_user['LAST_NAME'], + "phone_number" => $ar_user['UF_PHONE_NUMBER'], + "phone_verified" => $ar_user['UF_PHONE_VERIFIED'], + ], + "company" => [ + "inn" => $ar_user['UF_INN'], + "kpp" => $ar_user['UF_KPP'], + "ogrn" => $ar_user['UF_OGRN'], + "title" => $ar_user['UF_ORG_TITLE'], + ], + ]); + } + else + { + print json_encode([ + "status" => "error", + ]); + } + } + else + { + print json_encode([ + "status" => "error", + ]); + } } break; } @@ -468,6 +836,45 @@ switch($PARAM_1) } break; + case "rules": + { + if(CModule::IncludeModule('iblock')) + { + $sort = ["ACTIVE_FROM" => "DESC", "SORT" => "DESC"]; + $filter = ["ACTIVE" => "Y", "IBLOCK_ID" => 18]; + $options = []; + + if(!empty($REQ['date'])) + { + $filter['GetNextElement()) + { + $rules_ar_res = $rules_ob_element->GetFields(); + $rules_ar_res['PROPERTIES'] = $rules_ob_element->GetProperties(); + + $f = CFile::GetByID($rules_ar_res['PROPERTIES']['FILE']['VALUE']); + + $rules[] = [ + "name" => $rules_ar_res['NAME'], + "active_from" => $rules_ar_res['ACTIVE_FROM'], + "filename" => $f->Fetch()['ORIGINAL_NAME'], + "url" => CFile::GetPath($rules_ar_res['PROPERTIES']['FILE']['VALUE']), + ]; + } + + print json_encode([ + "rules" => $rules, + ]); + } + } + break; + case "contracts": { if($auth['acc_number']) @@ -599,18 +1006,7 @@ switch($PARAM_1) break; case "calculation": - { - /* - $response = $httpClient->post(API_HOST."/calculator/", [ - "car_price" => $REQ['car_price'], - "initial_payment" => $REQ['initial_payment'], - "lease_period" => $REQ['lease_period'], - "redemption_payment" => $REQ['redemption_payment'], - ], false); - print "response\n\n"; - print_r($response); - */ - + { $payload = json_encode([ "car_price" => $REQ['car_price'], "initial_payment" => $REQ['initial_payment'], @@ -631,29 +1027,8 @@ switch($PARAM_1) $response = curl_exec($c); curl_close($c); - /* - $context = $arrContextOptions; - $context['http'] = [ - 'method' => 'POST', - 'header' => 'Content-Type: application/x-www-form-urlencoded', - 'content' => [ - "car_price" => $REQ['car_price'], - "initial_payment" => $REQ['initial_payment'], - "lease_period" => $REQ['lease_period'], - "redemption_payment" => $REQ['redemption_payment'], - ] - ]; - - //print_r($context); - - $response = file_get_contents(API_HOST."/calculator/", false, stream_context_create($context)); - //$json = json_decode($response, true); - */ - print $response; - //print json_encode($response); - die(); } break; diff --git a/catalog/index.php b/catalog/index.php index c3cb570..a8cf17b 100644 --- a/catalog/index.php +++ b/catalog/index.php @@ -10,6 +10,7 @@ $APPLICATION->SetTitle("Каталог"); "PAGINATION" => "Y", "BRAND" => $_REQUEST['BRAND'], "MODEL" => $_REQUEST['MODEL'], + "MODIFICATION" => $_REQUEST['MODIFICATION'], "DRIVE" => $_REQUEST['DRIVE'], "BODY" => $_REQUEST['BODY'], "GEAR" => $_REQUEST['GEAR'], diff --git a/cookies/.section.php b/cookies/.section.php new file mode 100644 index 0000000..89d7e10 --- /dev/null +++ b/cookies/.section.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/cookies/index.php b/cookies/index.php new file mode 100644 index 0000000..69a7d9d --- /dev/null +++ b/cookies/index.php @@ -0,0 +1,23 @@ +SetTitle("Эволюция автолизинга: Использование Cookies"); +?>
+
+

Использование Cookies

+

+ Настоящим, продолжая работу на сайте, пользователь тем самым предоставляет свое согласие ООО "ЛК Эволюция" на обработку данных пользователя: файлы cookie, сведения о действиях, которые совершаются пользователем, сведения об используемых для этого устройствах, дата и время сессии, с использованием метрических программ в автоматическом режиме. Это необходимо улучшения работы сайта, анализа посещений сайта и предоставления функций для использования в социальных сетях.  +

+
+

+ Настоящее согласие действует с момента его предоставления и в течение всего периода использования сайта. +

+
+
В случае отказа от обработки данных пользователь считается проинформированным о необходимости прекратить использование сайта.
+
+
+
+
IncludeComponent( + "evolution:form.leasing", + "", +Array() +);?> \ No newline at end of file diff --git a/corp/.section.php b/corp/.section.php new file mode 100644 index 0000000..552be76 --- /dev/null +++ b/corp/.section.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/corp/index.php b/corp/index.php new file mode 100644 index 0000000..bada762 --- /dev/null +++ b/corp/index.php @@ -0,0 +1,35 @@ +SetTitle("Эволюция автолизинга: Вместе с МКБ"); +?>
+
+

Вместе с МКБ

+
+

mkblogo500v2.png
+

+

2% - субсидия на авансовый платёж для клиентов МКБ

+

Лучшие условия финансирования среди лизинговых компаний за счет собственного фондирования

+
    +
  • Рассмотрение заявки по 2-м документам (анкета и паспорт).
  • +
  • Аванс от 20%.
  • +
  • Срок финансирования от 7 до 60 месяцев.
  • +
  • Одобрение в течении 4-х рабочих часов.
  • +
+

С нами удобно!

+
    +
  • Помощь в подборе автомобилей с максимальными скидками от автосалонов.
  • +
  • Помощь в подборе и оформлении выгодных тарифов по страхованию.
  • +
  • Досрочное и частично-досрочное погашение.
  • +
  • Выкуп на физическое лицо.
  • +
+

+ Отправить заявку +

+
+
+
+IncludeComponent( + "evolution:form.leasing", + "", +Array() +);?> \ No newline at end of file diff --git a/files.txt b/files.txt new file mode 100644 index 0000000..e41191c --- /dev/null +++ b/files.txt @@ -0,0 +1,3 @@ +array ( + 0 => '784', +) \ No newline at end of file diff --git a/images/404.jpg b/images/404.jpg index bf53d9e..3296078 100644 Binary files a/images/404.jpg and b/images/404.jpg differ diff --git a/images/icons/check.svg b/images/icons/check.svg new file mode 100644 index 0000000..ddc582a --- /dev/null +++ b/images/icons/check.svg @@ -0,0 +1,3 @@ + + + diff --git a/local/components/evolution/about.career.list/templates/.default/template.php b/local/components/evolution/about.career.list/templates/.default/template.php index 82bba3b..2f120ad 100644 --- a/local/components/evolution/about.career.list/templates/.default/template.php +++ b/local/components/evolution/about.career.list/templates/.default/template.php @@ -14,7 +14,7 @@ $this->setFrameMode(true); ?>
-

О компании

+

Карьера

IncludeComponent("bitrix:menu", "evolution.left.menu", Array( "ALLOW_MULTI_SELECT" => "N", // Разрешить несколько активных пунктов одновременно @@ -35,6 +35,12 @@ $this->setFrameMode(true);
diff --git a/local/components/evolution/about.career.vacancy/component.php b/local/components/evolution/about.career.vacancy/component.php index 2fb0b60..8f9ba86 100644 --- a/local/components/evolution/about.career.vacancy/component.php +++ b/local/components/evolution/about.career.vacancy/component.php @@ -31,7 +31,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) { $ar_res = $obElement->GetFields(); $ar_res['PROPERTIES'] = $obElement->GetProperties(); - $ar_res['PROPERTIES']['REGION']['RELATED'] = get_related(15, $ar_res['PROPERTIES']['REGION']['VALUE']); + $ar_res['PROPERTIES']['REGION']['RELATED'] = get_related_array(15, $ar_res['PROPERTIES']['REGION']['VALUE']); $arResult = $ar_res; } diff --git a/local/components/evolution/about.career.vacancy/templates/.default/template.php b/local/components/evolution/about.career.vacancy/templates/.default/template.php index 27adccb..b65b496 100644 --- a/local/components/evolution/about.career.vacancy/templates/.default/template.php +++ b/local/components/evolution/about.career.vacancy/templates/.default/template.php @@ -16,8 +16,15 @@ $this->setFrameMode(true);

-

Регион:

-
+ 0): ?> +

Регион: + + + + +

+
+


Обязанности:

@@ -33,4 +40,14 @@ $this->setFrameMode(true);

-
\ No newline at end of file +
+IncludeComponent( + "evolution:form.vacancy", + "", + Array( + "VACANCY" => $arResult["NAME"], + "VACANCY_REGION" => $arResult['PROPERTIES']['REGION']['RELATED']['NAME'], + ) + ); +?> \ No newline at end of file diff --git a/local/components/evolution/about.contacts.list/component.php b/local/components/evolution/about.contacts.list/component.php index c0cbb21..302f4e7 100644 --- a/local/components/evolution/about.contacts.list/component.php +++ b/local/components/evolution/about.contacts.list/component.php @@ -36,6 +36,10 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $arResult['AGENCIES'][] = $ar_res; } + //print "
";
+		//print_r($arResult['AGENCIES']);
+		//print "
"; + $this->IncludeComponentTemplate(); } } \ No newline at end of file diff --git a/local/components/evolution/about.contacts.list/templates/.default/script.js b/local/components/evolution/about.contacts.list/templates/.default/script.js index a7699f6..62ccdba 100644 --- a/local/components/evolution/about.contacts.list/templates/.default/script.js +++ b/local/components/evolution/about.contacts.list/templates/.default/script.js @@ -1,15 +1,54 @@ $(function() { + /* $.get("https://wow.evoleasing.ru/api/regions/", { params: {}, }, function(response) { - console.log(response); for(let i in response.regions) { - $("#regions_select").append(""); - $("#regions_select_mobile").append(""); + //$("#regions_select").append(""); + //$("#regions_select_mobile").append(""); } + //$("#regions_select")[0].selectedIndex = 1; + //$("#regions_select_mobile")[0].selectedIndex = 1; }, "json"); + */ + + $(".regions_select").on("change", function() + { + var geo = $(this).find(':selected').data("geo"); + var zoom = $(this).find(':selected').data("zoom"); + var coords = geo.split(","); + + window.map.setCenter([ coords[0], coords[1] ], zoom); + + if($('.tab.active').index() === 1) + { + $(".dropdown_block").removeClass("open"); + $("#region_"+parseInt($(this).val(), 10)).addClass("open"); + $('html, body').animate({ + scrollTop: $("#region_"+parseInt($(this).val(), 10)).offset().top - 100 + }, 200); + } + else + { + $('html, body').animate({ + scrollTop: $("#contacts_top").offset().top - 100 + }, 200); + } + }); + + $(".contacts_show_office_on_map").on("click", function() + { + const geo = $(this).data("geo"); + var coords = geo.split(","); + window.map.setCenter([ coords[0], coords[1] ], 9); + + $(".tab").first().click(); + $('html, body').animate({ + scrollTop: $("#contacts_top").offset().top - 100 + }, 100); + }); }); \ No newline at end of file diff --git a/local/components/evolution/about.contacts.list/templates/.default/template.php b/local/components/evolution/about.contacts.list/templates/.default/template.php index 5850adc..eb9bb0a 100644 --- a/local/components/evolution/about.contacts.list/templates/.default/template.php +++ b/local/components/evolution/about.contacts.list/templates/.default/template.php @@ -12,19 +12,43 @@ /** @var CBitrixComponent $component */ $this->setFrameMode(true); ?> -
+Горячая линия: ".$agency['PROPERTIES']['PHONE']['VALUE']."

" : ""; + $content .= !empty($agency['PROPERTIES']['PHONE_CENTRAL']['VALUE']) ? "

Телефон центрального офиса: ".$agency['PROPERTIES']['PHONE_CENTRAL']['VALUE']."

" : ""; + $content .= !empty($agency['PROPERTIES']['ADDRESS']['VALUE']) ? "

Адрес: ".$agency['PROPERTIES']['ADDRESS']['VALUE']."

" : ""; + $content .= !empty($agency['PROPERTIES']['HOURS']['VALUE']) ? "

Часы работы: ".$agency['PROPERTIES']['HOURS']['VALUE']."

" : ""; + + $coords = explode(",", $agency['PROPERTIES']['GEO']['VALUE']); + array_push($placemarks, [ + "coords" => $coords, + "content" => $content, + ]); + } +?> +
-
+
-

О компании

+

Контакты

+ Показываем представительства, которые обслуживают выбранный регион

+ */?>
- + IncludeComponent( + "evolution:regions.list", + "select", + Array( + "ID" => "regions_select", + "CLASS" => "regions_select", + ) + ); ?>
@@ -50,9 +74,14 @@ $this->setFrameMode(true);

Показываем представительства, которые обслуживают выбранный регион

- + IncludeComponent( + "evolution:regions.list", + "select", + Array( + "ID" => "regions_select_mobile", + "CLASS" => "regions_select", + ) + ); ?>
@@ -60,24 +89,35 @@ $this->setFrameMode(true);
Списком
-