about company, new updates
@ -19,12 +19,12 @@ $APPLICATION->SetTitle("О Компании");
|
||||
"",
|
||||
Array(
|
||||
"TOP" => "ТОП 10",
|
||||
"DEALS" => "< 10 млн",
|
||||
"CONTRACTS" => "200 000+",
|
||||
"CITIES" => "35",
|
||||
"DEALS" => "> 50 млрд ₽",
|
||||
"CONTRACTS" => "10 000+",
|
||||
"CITIES" => "37",
|
||||
"PERIOD" => "10 лет",
|
||||
"DIVISIONS" => "51",
|
||||
"CLIENTS" => "200 000+",
|
||||
"DIVISIONS" => "61",
|
||||
"CLIENTS" => "6 000+",
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 797 B After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 25 KiB |
BIN
images/no_image_380.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
images/no_image_650.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
28
local/check_user.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?
|
||||
//$_SERVER["DOCUMENT_ROOT"] = __DIR__;
|
||||
define('STOP_STATISTICS', true);
|
||||
define('NO_KEEP_STATISTIC', 'Y');
|
||||
define('NO_AGENT_STATISTIC', 'Y');
|
||||
define('DisableEventsCheck', true);
|
||||
define('BX_SECURITY_SHOW_MESSAGE', true);
|
||||
define('NOT_CHECK_PERMISSIONS', true);
|
||||
|
||||
$_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__, 1);
|
||||
require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');
|
||||
CModule::IncludeModule('iblock');
|
||||
|
||||
$user_id = 22;
|
||||
|
||||
$existed_client_res = CIBlockElement::GetList([ 'id' => 'desc' ], [ 'IBLOCK_ID' => IBLOCK_ID_CLIENTS, 'PROPERTY_USERS' => $user_id ], false, []);
|
||||
while ($existed_client_element = $existed_client_res->GetNextElement())
|
||||
{
|
||||
$existed_client_record = $existed_client_element->GetFields();
|
||||
$existed_client_record['PROPERTIES'] = $existed_client_element->GetProperties();
|
||||
|
||||
print_r("existed_client_record");
|
||||
print_r($existed_client_record);
|
||||
}
|
||||
|
||||
die();
|
||||
|
||||
?>
|
||||
@ -58,7 +58,7 @@ $this->setFrameMode(true);
|
||||
stroke="white" stroke-width="2" />
|
||||
</svg>
|
||||
<p class="title"><?= $arParams['TOP']; ?></p>
|
||||
<p>по России по лизингу легковых автомобилей по рэнкингу Эксперт РА по результатам 9 месяцев 2021 года</p>
|
||||
<p>В России по лизингу легковых автомобилей по рэнкингу Эксперт РА по результатам 2021 года</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
@ -92,7 +92,7 @@ $this->setFrameMode(true);
|
||||
</svg>
|
||||
<p class="title">
|
||||
<?= $arParams['DEALS']; ?></p>
|
||||
<p>Объем сделок</p>
|
||||
<p>Общая стоимость ПЛ, переданных клиентам</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section_4">
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
$this->setFrameMode(true);
|
||||
?>
|
||||
<div class="bg_description">
|
||||
<p>Эволюция – самая динамично развивающаяся автолизинговая компания России. Благодаря огромному опыту в лизинге и лучшим практикам на рынке, за год работы вошли в Топ 10 лизинговых компаний». Возможно, что-то ещё.</p>
|
||||
<p>Эволюция – самая динамично развивающаяся автолизинговая компания России. Благодаря огромному опыту в лизинге и лучшим практикам на рынке, за год работы вошли в Топ 10 лизинговых компаний.</p>
|
||||
</div>
|
||||
<div class="lines_title">
|
||||
<p>
|
||||
@ -21,7 +21,7 @@ $this->setFrameMode(true);
|
||||
<span>путь развития</span>
|
||||
</p>
|
||||
<? if(!empty($arParams['PRESENTATION_URL'])): ?>
|
||||
<a href="<?= $arParams['PRESENTATION_URL']; ?>">Скачать презентацию</a>
|
||||
<a href="<?= $arParams['PRESENTATION_URL']; ?>" class="button button-blue">Скачать презентацию</a>
|
||||
<? endif; ?>
|
||||
</div>
|
||||
<div class="history">
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
<?
|
||||
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
|
||||
|
||||
$arTemplateDescription = array(
|
||||
"NAME" => GetMessage("DEFAULT_NAME"),
|
||||
"DESCRIPTION" => GetMessage("DEFAULT_DESC"),
|
||||
);
|
||||
?>
|
||||
42
local/components/evolution/catalog.brands/component.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?
|
||||
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
|
||||
/** @var CBitrixComponent $this */
|
||||
/** @var array $arParams */
|
||||
/** @var array $arResult */
|
||||
/** @var string $componentPath */
|
||||
/** @var string $componentName */
|
||||
/** @var string $componentTemplate */
|
||||
/** @global CDatabase $DB */
|
||||
/** @global CUser $USER */
|
||||
/** @global CMain $APPLICATION */
|
||||
|
||||
use Bitrix\Main\Context,
|
||||
Bitrix\Main\Type\DateTime,
|
||||
Bitrix\Main\Loader,
|
||||
Bitrix\Iblock;
|
||||
|
||||
//if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
|
||||
//{
|
||||
if(CModule::IncludeModule('iblock'))
|
||||
{
|
||||
$arResult = [
|
||||
'BRANDS' => []
|
||||
];
|
||||
|
||||
$brands_res = CIBlockElement::GetList([ "NAME" => "ASC" ], [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_BRANDS ], false, []);
|
||||
while ($brands_ob_element = $brands_res->GetNextElement())
|
||||
{
|
||||
$brands_ar_res = $brands_ob_element->GetFields();
|
||||
$brands_ar_res['PROPERTIES'] = $brands_ob_element->GetProperties();
|
||||
|
||||
if(isset($brands_ar_res['PREVIEW_PICTURE']))
|
||||
{
|
||||
$brands_ar_res['PREVIEW_PICTURE'] = CFile::GetPath($brands_ar_res['PREVIEW_PICTURE']);
|
||||
}
|
||||
|
||||
$arResult['BRANDS'][] = $brands_ar_res;
|
||||
}
|
||||
|
||||
$this->IncludeComponentTemplate();
|
||||
}
|
||||
//}
|
||||
@ -0,0 +1,4 @@
|
||||
<?
|
||||
$MESS ['DEFAULT_NAME'] = "Список марок ЛКТ";
|
||||
$MESS ['DEFAULT_DESC'] = "Список марок ЛКТ";
|
||||
?>
|
||||
@ -0,0 +1,423 @@
|
||||
/*
|
||||
var selected = {};
|
||||
var inputs = {};
|
||||
|
||||
function formCatalogFilter(props)
|
||||
{
|
||||
console.log("props???");
|
||||
console.log(props);
|
||||
selected = props;
|
||||
$(".filter_header .tabs .tab").on("click", function()
|
||||
{
|
||||
$(".filter_header .tabs .tab").removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
}
|
||||
|
||||
function updateCounter(parameters)
|
||||
{
|
||||
console.log("updateCounter", parameters);
|
||||
|
||||
$("#catalog_filter_spinner").show();
|
||||
$("#catalog_filter_search_button_counter").hide();
|
||||
|
||||
var params = {};
|
||||
for(let i in parameters)
|
||||
{
|
||||
if(parameters[i] !== undefined) { params[i] = parameters[i]; }
|
||||
}
|
||||
|
||||
$.get("/api/catalog/count/", params, function(response)
|
||||
{
|
||||
$("#catalog_filter_spinner").hide();
|
||||
$("#catalog_filter_search_button_counter").text("Показать "+response.total+" вариантов").show();
|
||||
}, "json");
|
||||
}
|
||||
|
||||
function loadModels(uid)
|
||||
{
|
||||
$.post("/api/catalog/models/",
|
||||
{
|
||||
BRAND_UID: uid
|
||||
}, function(response)
|
||||
{
|
||||
console.log("loadModels", selected['MODEL_ID'], selected['MODEL']);
|
||||
|
||||
$("#small_filter_models").empty();
|
||||
$("#filter_models").empty();
|
||||
|
||||
if(selected['MODEL_ID'] !== undefined)
|
||||
{
|
||||
$("#small_filter_models").append("<option value=''>Любая</option>");
|
||||
$("#filter_models").append("<option value=''>Любая</option>");
|
||||
}
|
||||
else
|
||||
{
|
||||
if(selected['MODEL'] !== undefined)
|
||||
{
|
||||
$("#small_filter_models").append("<option value=''>Любая</option>");
|
||||
$("#filter_models").append("<option value=''>Любая</option>");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#small_filter_models").append("<option value='' disabled>Модель</option>");
|
||||
$("#filter_models").append("<option value='' disabled>Модель</option>");
|
||||
}
|
||||
}
|
||||
$("#small_filter_models")[0].selectedIndex = 0;
|
||||
$("#filter_models")[0].selectedIndex = 0;
|
||||
|
||||
for(let i in response.models)
|
||||
{
|
||||
$("#small_filter_models").append("<option value='"+response.models[i]['CODE']+"' data-id='"+response.models[i]['ID']+"' data-uid='"+response.models[i]['UID']+"'>"+response.models[i]['NAME']+"</option>");
|
||||
$("#filter_models").append("<option value='"+response.models[i]['CODE']+"' data-id='"+response.models[i]['ID']+"' data-uid='"+response.models[i]['UID']+"'>"+response.models[i]['NAME']+"</option>");
|
||||
}
|
||||
|
||||
if(selected['MODEL'] !== undefined)
|
||||
{
|
||||
$("#small_filter_models").val(selected['MODEL']);
|
||||
$("#filter_models").val(selected['MODEL']);
|
||||
|
||||
let id = $("#filter_models").find(':selected').data('id');
|
||||
selected['MODEL_ID'] = id;
|
||||
|
||||
updateCounter(selected);
|
||||
}
|
||||
else
|
||||
{
|
||||
updateCounter(selected);
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
|
||||
$(function()
|
||||
{
|
||||
$.get("/api/catalog/brands/",
|
||||
{
|
||||
params: {},
|
||||
}, function(response)
|
||||
{
|
||||
console.log("selected", selected);
|
||||
//$("#small_filter_brands").empty();
|
||||
//$("#small_filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
//$("#filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
|
||||
for(let i in response.brands)
|
||||
{
|
||||
$("#small_filter_brands").append("<option value='"+response.brands[i]['CODE']+"' data-id='"+response.brands[i]['ID']+"' data-uid='"+response.brands[i]['UID']+"'>"+response.brands[i]['NAME']+"</option>");
|
||||
$("#filter_brands").append("<option value='"+response.brands[i]['CODE']+"' data-id='"+response.brands[i]['ID']+"' data-uid='"+response.brands[i]['UID']+"'>"+response.brands[i]['NAME']+"</option>");
|
||||
}
|
||||
|
||||
if(selected['BRAND'] !== undefined)
|
||||
{
|
||||
$("#small_filter_brands").find("option").first().text("Любая").attr("disabled", false).val('');
|
||||
$("#filter_brands").find("option").first().text("Любая").attr("disabled", false).val('');
|
||||
|
||||
$("#small_filter_brands").val(selected['BRAND']);
|
||||
$("#filter_brands").val(selected['BRAND']);
|
||||
|
||||
let uid = $("#filter_brands").find(':selected').data('uid');
|
||||
let id = $("#filter_brands").find(':selected').data('id');
|
||||
selected['BRAND_ID'] = id;
|
||||
|
||||
loadModels(uid);
|
||||
}
|
||||
else
|
||||
{
|
||||
updateCounter(selected);
|
||||
}
|
||||
}, "json");
|
||||
|
||||
$("#small_filter_brands").on("change", function(event)
|
||||
{
|
||||
$("#filter_brands").val(event.target.value);
|
||||
selected['MODEL'] = undefined;
|
||||
selected['MODEL_ID'] = undefined;
|
||||
|
||||
if($(this).val() === "")
|
||||
{
|
||||
$("#small_filter_brands").find("option").first().text("Марка").attr("disabled", "disabled");
|
||||
$("#small_filter_models").empty();
|
||||
$("#small_filter_models").append("<option value='' disabled selected>Модель</option>");
|
||||
$("#filter_brands").find("option").first().text("Марка").attr("disabled", "disabled");
|
||||
$("#filter_models").empty();
|
||||
$("#filter_models").append("<option value='' disabled selected>Модель</option>");
|
||||
}
|
||||
else
|
||||
{
|
||||
let uid = $(this).find(':selected').data('uid');
|
||||
let id = $(this).find(':selected').data('id');
|
||||
selected['BRAND_ID'] = id;
|
||||
|
||||
$("#small_filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
$("#filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
|
||||
loadModels(uid);
|
||||
}
|
||||
});
|
||||
|
||||
$("#small_filter_models").on("change", function(event)
|
||||
{
|
||||
if($(this).val() === "")
|
||||
{
|
||||
$("#filter_models").val();
|
||||
|
||||
selected['MODEL'] = undefined;
|
||||
selected['MODEL_ID'] = undefined;
|
||||
|
||||
$("#small_filter_models").find("option").first().text("Модель").attr("disabled", "disabled");
|
||||
$("#filter_models").find("option").first().text("Модель").attr("disabled", "disabled");
|
||||
}
|
||||
else
|
||||
{
|
||||
let id = $(this).find(':selected').data('id');
|
||||
$("#filter_models").val(event.target.value);
|
||||
|
||||
selected['MODEL'] = id;
|
||||
selected['MODEL_ID'] = id;
|
||||
|
||||
$("#small_filter_models").find("option").first().text("Любая").attr("disabled", false);
|
||||
$("#filter_models").find("option").first().text("Любая").attr("disabled", false);
|
||||
}
|
||||
});
|
||||
|
||||
$("#filter_brands").on("change", function(event)
|
||||
{
|
||||
console.log("BBBBB", $(this).val());
|
||||
if($(this).val() === '')
|
||||
{
|
||||
selected['BRAND'] = undefined;
|
||||
selected['BRAND_ID'] = undefined;
|
||||
selected['MODEL'] = undefined;
|
||||
selected['MODEL_ID'] = undefined;
|
||||
|
||||
$("#small_filter_brands").find("option").first().text("Марка").attr("disabled", "disabled");
|
||||
$("#small_filter_models").empty();
|
||||
$("#small_filter_models").append("<option disabled selected>Модель</option>");
|
||||
$("#filter_brands").find("option").first().text("Марка").attr("disabled", "disabled");
|
||||
$("#filter_models").empty();
|
||||
$("#filter_models").append("<option disabled selected>Модель</option>");
|
||||
|
||||
updateCounter(selected);
|
||||
}
|
||||
else
|
||||
{
|
||||
let id = $(this).find(':selected').data('id');
|
||||
let uid = $(this).find(':selected').data('uid');
|
||||
selected['BRAND'] = $(this).val();
|
||||
selected['BRAND_ID'] = id;
|
||||
selected['MODEL'] = undefined;
|
||||
selected['MODEL_ID'] = undefined;
|
||||
|
||||
$("#small_filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
$("#filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
|
||||
loadModels(uid);
|
||||
}
|
||||
});
|
||||
|
||||
$("#filter_models").on("change", function(event)
|
||||
{
|
||||
if($(this).val() === "")
|
||||
{
|
||||
selected['MODEL'] = undefined;
|
||||
selected['MODEL_ID'] = undefined;
|
||||
|
||||
$("#filter_models").find("option").first().text("Модель").attr("disabled", "disabled");
|
||||
}
|
||||
else
|
||||
{
|
||||
let id = $(this).find(':selected').data('id');
|
||||
selected['MODEL_ID'] = id;
|
||||
|
||||
$("#filter_models").find("option").first().text("Любая").attr("disabled", false);
|
||||
}
|
||||
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#catalog_small_form").on("submit", function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("#catalog_small_find").on("click", function()
|
||||
{
|
||||
var path = "/catalog";
|
||||
|
||||
if($("#small_filter_brands").val() !== "")
|
||||
{
|
||||
path = path+"/"+$("#small_filter_brands").val();
|
||||
}
|
||||
if($("#small_filter_models").val() !== "")
|
||||
{
|
||||
path = path+"/"+$("#small_filter_models").val();
|
||||
}
|
||||
|
||||
path = path+"/";
|
||||
|
||||
window.location.href = path;
|
||||
//$("#catalog_small_form").submit();
|
||||
});
|
||||
|
||||
$("#rich_filter_toggle").on("click", function()
|
||||
{
|
||||
updateCounter(selected);
|
||||
$("#filter").addClass("visible");
|
||||
$("#catalog_small_filter").addClass("hidden");
|
||||
});
|
||||
|
||||
$.get("/api/catalog/parameters/",
|
||||
{
|
||||
params: {},
|
||||
}, function(response)
|
||||
{
|
||||
for(let i in response.bodies)
|
||||
{
|
||||
$("#filter_bodies").append("<option value='"+response.bodies[i]+"'>"+response.bodies[i]+"</option>");
|
||||
}
|
||||
if(selected['BODY'] !== undefined && selected['BODY'] !== null && selected['BODY'] !== "")
|
||||
{
|
||||
$("#filter_bodies").val(selected['BODY']);
|
||||
$("#filter_bodies").find("option").first().text("Любой").attr("disabled", false);
|
||||
}
|
||||
|
||||
for(let i in response.gears)
|
||||
{
|
||||
$("#filter_gears").append("<option value='"+response.gears[i]+"'>"+response.gears[i]+"</option>");
|
||||
}
|
||||
if(selected['GEAR'] !== undefined && selected['GEAR'] !== null && selected['GEAR'] !== "")
|
||||
{
|
||||
$("#filter_gears").val(selected['GEAR']);
|
||||
$("#filter_gears").find("option").first().text("Любая").attr("disabled", false);
|
||||
}
|
||||
|
||||
for(let i in response.engine_fuels)
|
||||
{
|
||||
$("#filter_engine_fuels").append("<option value='"+response.engine_fuels[i]+"'>"+response.engine_fuels[i]+"</option>");
|
||||
}
|
||||
if(selected['ENGINE_FUEL'] !== undefined && selected['ENGINE_FUEL'] !== null && selected['ENGINE_FUEL'] !== "")
|
||||
{
|
||||
$("#filter_engine_fuels").val(selected['ENGINE_FUEL']);
|
||||
$("#filter_engine_fuels").find("option").first().text("Любой").attr("disabled", false);
|
||||
}
|
||||
|
||||
for(let i in response.drives)
|
||||
{
|
||||
$("#filter_drives").append("<option value='"+response.drives[i]+"'>"+response.drives[i]+"</option>");
|
||||
}
|
||||
if(selected['DRIVE'] !== undefined && selected['DRIVE'] !== null && selected['DRIVE'] !== "")
|
||||
{
|
||||
$("#filter_drives").val(selected['DRIVE']);
|
||||
$("#filter_drives").find("option").first().text("Любой").attr("disabled", false);
|
||||
}
|
||||
|
||||
if(selected['ENGINE_VOLUME_FROM'] !== undefined && selected['ENGINE_VOLUME_FROM'] !== null && selected['ENGINE_VOLUME_FROM'] !== "")
|
||||
{
|
||||
$("#filter_engine_volume_from").val(selected['ENGINE_VOLUME_FROM']);
|
||||
$("#filter_engine_volume_from").find("option").first().text("Любой").attr("disabled", false);
|
||||
}
|
||||
|
||||
if(selected['ENGINE_VOLUME_TO'] !== undefined && selected['ENGINE_VOLUME_TO'] !== null && selected['ENGINE_VOLUME_TO'] !== "")
|
||||
{
|
||||
$("#filter_engine_volume_to").val(selected['ENGINE_VOLUME_TO']);
|
||||
$("#filter_engine_volume_to").find("option").first().text("Любой").attr("disabled", false);
|
||||
}
|
||||
|
||||
console.log("response", response);
|
||||
}, "json");
|
||||
|
||||
$("#filter_bodies").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любой").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Кузов").attr("disabled", "disabled"); }
|
||||
|
||||
selected['BODY'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#filter_drives").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любой").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Привод").attr("disabled", "disabled"); }
|
||||
|
||||
selected['DRIVE'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#filter_engine_fuels").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любой").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Двигатель").attr("disabled", "disabled"); }
|
||||
|
||||
selected['ENGINE_FUEL'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#filter_gears").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любая").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Коробка").attr("disabled", "disabled"); }
|
||||
|
||||
selected['GEAR'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#catalog_filter_search_button").on("click", function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var path = "/catalog";
|
||||
|
||||
if($("#filter_brands").val() !== undefined && $("#filter_brands").val() !== null && $("#filter_brands").val() !== "")
|
||||
{
|
||||
path = path+"/"+$("#filter_brands").val();
|
||||
}
|
||||
if($("#filter_models").val() !== undefined && $("#filter_models").val() !== null && $("#filter_models").val() !== "")
|
||||
{
|
||||
path = path+"/"+$("#filter_models").val();
|
||||
}
|
||||
|
||||
var p = {};
|
||||
for(let i in selected)
|
||||
{
|
||||
if(i !== "BRAND" && i !== "BRAND_ID" && i !== "MODEL" && i !== "MODEL_ID")
|
||||
{
|
||||
p[i] = selected[i];
|
||||
}
|
||||
}
|
||||
|
||||
path = path+"/?"+$.param(p);
|
||||
window.location.href = path;
|
||||
});
|
||||
|
||||
$("#filter_engine_volume_from").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любой").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Объем, от").attr("disabled", "disabled"); }
|
||||
|
||||
selected['ENGINE_VOLUME_FROM'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#filter_engine_volume_to").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любой").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Объем, до").attr("disabled", "disabled"); }
|
||||
|
||||
selected['ENGINE_VOLUME_TO'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
});
|
||||
*/
|
||||
@ -0,0 +1,26 @@
|
||||
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
|
||||
/** @var array $arParams */
|
||||
/** @var array $arResult */
|
||||
/** @global CMain $APPLICATION */
|
||||
/** @global CUser $USER */
|
||||
/** @global CDatabase $DB */
|
||||
/** @var CBitrixComponentTemplate $this */
|
||||
/** @var string $templateName */
|
||||
/** @var string $templateFile */
|
||||
/** @var string $templateFolder */
|
||||
/** @var string $componentPath */
|
||||
/** @var CBitrixComponent $component */
|
||||
$this->setFrameMode(true);
|
||||
?>
|
||||
<div class="other_models">
|
||||
<p class="title"><?= $arParams['TITLE']; ?></p>
|
||||
<? foreach($arResult['BRANDS'] AS $brand): ?>
|
||||
<div class="oher_item">
|
||||
<a href="/catalog/<?= $brand['CODE']; ?>/">
|
||||
<span><?= $brand['NAME']; ?></span>
|
||||
<!-- <?= print_r($brand); ?>-->
|
||||
<img src="<?= ($brand['PREVIEW_PICTURE'] != "") ? $brand['PREVIEW_PICTURE'] : "/images/no_image_380.png"; ?>" alt="<?= $brand['NAME']; ?>" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
<? endforeach; ?>
|
||||
</div>
|
||||
@ -0,0 +1,8 @@
|
||||
<?
|
||||
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
|
||||
|
||||
$arTemplateDescription = array(
|
||||
"NAME" => GetMessage("DEFAULT_NAME"),
|
||||
"DESCRIPTION" => GetMessage("DEFAULT_DESC"),
|
||||
);
|
||||
?>
|
||||
63
local/components/evolution/catalog.models/component.php
Normal file
@ -0,0 +1,63 @@
|
||||
<?
|
||||
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
|
||||
/** @var CBitrixComponent $this */
|
||||
/** @var array $arParams */
|
||||
/** @var array $arResult */
|
||||
/** @var string $componentPath */
|
||||
/** @var string $componentName */
|
||||
/** @var string $componentTemplate */
|
||||
/** @global CDatabase $DB */
|
||||
/** @global CUser $USER */
|
||||
/** @global CMain $APPLICATION */
|
||||
|
||||
use Bitrix\Main\Context,
|
||||
Bitrix\Main\Type\DateTime,
|
||||
Bitrix\Main\Loader,
|
||||
Bitrix\Iblock;
|
||||
|
||||
//if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
|
||||
//{
|
||||
if(CModule::IncludeModule('iblock'))
|
||||
{
|
||||
$arResult = [
|
||||
'BRAND_TITLE' => "",
|
||||
'MODELS' => [],
|
||||
];
|
||||
|
||||
$brands = [];
|
||||
$brands_res = CIBlockElement::GetList([ "NAME" => "ASC" ], [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_BRANDS, ], false, []);
|
||||
while ($brands_ob_element = $brands_res->GetNextElement())
|
||||
{
|
||||
$brands_ar_res = $brands_ob_element->GetFields();
|
||||
$brands_ar_res['PROPERTIES'] = $brands_ob_element->GetProperties();
|
||||
$brands[$brands_ar_res['CODE']] = [
|
||||
"NAME" => $brands_ar_res['NAME'],
|
||||
"CODE" => $brands_ar_res['CODE'],
|
||||
"UID" => $brands_ar_res['PROPERTIES']['UID']['VALUE'],
|
||||
];
|
||||
}
|
||||
|
||||
//print "<!-- BRANDS >>>>>";
|
||||
//print_r($brands);
|
||||
//print "-->";
|
||||
|
||||
$arResult['TITLE'] = $arParams['RECOMMENDED'] ? "Каталог автомобилей ".$brands[$arParams['BRAND']]['NAME'] : "";
|
||||
|
||||
$models_res = CIBlockElement::GetList([ "NAME" => "ASC" ], [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_MODELS, "PROPERTY_BRAND_UID" => $brands[$arParams['BRAND']]['UID'] ], false, []);
|
||||
while ($models_ob_element = $models_res->GetNextElement())
|
||||
{
|
||||
$models_ar_res = $models_ob_element->GetFields();
|
||||
$models_ar_res['PROPERTIES'] = $models_ob_element->GetProperties();
|
||||
|
||||
if(isset($models_ar_res['PREVIEW_PICTURE']))
|
||||
{
|
||||
$models_ar_res['PREVIEW_PICTURE'] = CFile::GetPath($models_ar_res['PREVIEW_PICTURE']);
|
||||
$models_ar_res['URL'] = "/catalog/".$brands[$arParams['BRAND']]['CODE']."/".$models_ar_res['CODE']."/";
|
||||
}
|
||||
|
||||
$arResult['MODELS'][] = $models_ar_res;
|
||||
}
|
||||
|
||||
$this->IncludeComponentTemplate();
|
||||
}
|
||||
//}
|
||||
@ -0,0 +1,4 @@
|
||||
<?
|
||||
$MESS ['DEFAULT_NAME'] = "Список марок ЛКТ";
|
||||
$MESS ['DEFAULT_DESC'] = "Список марок ЛКТ";
|
||||
?>
|
||||
@ -0,0 +1,423 @@
|
||||
/*
|
||||
var selected = {};
|
||||
var inputs = {};
|
||||
|
||||
function formCatalogFilter(props)
|
||||
{
|
||||
console.log("props???");
|
||||
console.log(props);
|
||||
selected = props;
|
||||
$(".filter_header .tabs .tab").on("click", function()
|
||||
{
|
||||
$(".filter_header .tabs .tab").removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
}
|
||||
|
||||
function updateCounter(parameters)
|
||||
{
|
||||
console.log("updateCounter", parameters);
|
||||
|
||||
$("#catalog_filter_spinner").show();
|
||||
$("#catalog_filter_search_button_counter").hide();
|
||||
|
||||
var params = {};
|
||||
for(let i in parameters)
|
||||
{
|
||||
if(parameters[i] !== undefined) { params[i] = parameters[i]; }
|
||||
}
|
||||
|
||||
$.get("/api/catalog/count/", params, function(response)
|
||||
{
|
||||
$("#catalog_filter_spinner").hide();
|
||||
$("#catalog_filter_search_button_counter").text("Показать "+response.total+" вариантов").show();
|
||||
}, "json");
|
||||
}
|
||||
|
||||
function loadModels(uid)
|
||||
{
|
||||
$.post("/api/catalog/models/",
|
||||
{
|
||||
BRAND_UID: uid
|
||||
}, function(response)
|
||||
{
|
||||
console.log("loadModels", selected['MODEL_ID'], selected['MODEL']);
|
||||
|
||||
$("#small_filter_models").empty();
|
||||
$("#filter_models").empty();
|
||||
|
||||
if(selected['MODEL_ID'] !== undefined)
|
||||
{
|
||||
$("#small_filter_models").append("<option value=''>Любая</option>");
|
||||
$("#filter_models").append("<option value=''>Любая</option>");
|
||||
}
|
||||
else
|
||||
{
|
||||
if(selected['MODEL'] !== undefined)
|
||||
{
|
||||
$("#small_filter_models").append("<option value=''>Любая</option>");
|
||||
$("#filter_models").append("<option value=''>Любая</option>");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#small_filter_models").append("<option value='' disabled>Модель</option>");
|
||||
$("#filter_models").append("<option value='' disabled>Модель</option>");
|
||||
}
|
||||
}
|
||||
$("#small_filter_models")[0].selectedIndex = 0;
|
||||
$("#filter_models")[0].selectedIndex = 0;
|
||||
|
||||
for(let i in response.models)
|
||||
{
|
||||
$("#small_filter_models").append("<option value='"+response.models[i]['CODE']+"' data-id='"+response.models[i]['ID']+"' data-uid='"+response.models[i]['UID']+"'>"+response.models[i]['NAME']+"</option>");
|
||||
$("#filter_models").append("<option value='"+response.models[i]['CODE']+"' data-id='"+response.models[i]['ID']+"' data-uid='"+response.models[i]['UID']+"'>"+response.models[i]['NAME']+"</option>");
|
||||
}
|
||||
|
||||
if(selected['MODEL'] !== undefined)
|
||||
{
|
||||
$("#small_filter_models").val(selected['MODEL']);
|
||||
$("#filter_models").val(selected['MODEL']);
|
||||
|
||||
let id = $("#filter_models").find(':selected').data('id');
|
||||
selected['MODEL_ID'] = id;
|
||||
|
||||
updateCounter(selected);
|
||||
}
|
||||
else
|
||||
{
|
||||
updateCounter(selected);
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
|
||||
$(function()
|
||||
{
|
||||
$.get("/api/catalog/brands/",
|
||||
{
|
||||
params: {},
|
||||
}, function(response)
|
||||
{
|
||||
console.log("selected", selected);
|
||||
//$("#small_filter_brands").empty();
|
||||
//$("#small_filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
//$("#filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
|
||||
for(let i in response.brands)
|
||||
{
|
||||
$("#small_filter_brands").append("<option value='"+response.brands[i]['CODE']+"' data-id='"+response.brands[i]['ID']+"' data-uid='"+response.brands[i]['UID']+"'>"+response.brands[i]['NAME']+"</option>");
|
||||
$("#filter_brands").append("<option value='"+response.brands[i]['CODE']+"' data-id='"+response.brands[i]['ID']+"' data-uid='"+response.brands[i]['UID']+"'>"+response.brands[i]['NAME']+"</option>");
|
||||
}
|
||||
|
||||
if(selected['BRAND'] !== undefined)
|
||||
{
|
||||
$("#small_filter_brands").find("option").first().text("Любая").attr("disabled", false).val('');
|
||||
$("#filter_brands").find("option").first().text("Любая").attr("disabled", false).val('');
|
||||
|
||||
$("#small_filter_brands").val(selected['BRAND']);
|
||||
$("#filter_brands").val(selected['BRAND']);
|
||||
|
||||
let uid = $("#filter_brands").find(':selected').data('uid');
|
||||
let id = $("#filter_brands").find(':selected').data('id');
|
||||
selected['BRAND_ID'] = id;
|
||||
|
||||
loadModels(uid);
|
||||
}
|
||||
else
|
||||
{
|
||||
updateCounter(selected);
|
||||
}
|
||||
}, "json");
|
||||
|
||||
$("#small_filter_brands").on("change", function(event)
|
||||
{
|
||||
$("#filter_brands").val(event.target.value);
|
||||
selected['MODEL'] = undefined;
|
||||
selected['MODEL_ID'] = undefined;
|
||||
|
||||
if($(this).val() === "")
|
||||
{
|
||||
$("#small_filter_brands").find("option").first().text("Марка").attr("disabled", "disabled");
|
||||
$("#small_filter_models").empty();
|
||||
$("#small_filter_models").append("<option value='' disabled selected>Модель</option>");
|
||||
$("#filter_brands").find("option").first().text("Марка").attr("disabled", "disabled");
|
||||
$("#filter_models").empty();
|
||||
$("#filter_models").append("<option value='' disabled selected>Модель</option>");
|
||||
}
|
||||
else
|
||||
{
|
||||
let uid = $(this).find(':selected').data('uid');
|
||||
let id = $(this).find(':selected').data('id');
|
||||
selected['BRAND_ID'] = id;
|
||||
|
||||
$("#small_filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
$("#filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
|
||||
loadModels(uid);
|
||||
}
|
||||
});
|
||||
|
||||
$("#small_filter_models").on("change", function(event)
|
||||
{
|
||||
if($(this).val() === "")
|
||||
{
|
||||
$("#filter_models").val();
|
||||
|
||||
selected['MODEL'] = undefined;
|
||||
selected['MODEL_ID'] = undefined;
|
||||
|
||||
$("#small_filter_models").find("option").first().text("Модель").attr("disabled", "disabled");
|
||||
$("#filter_models").find("option").first().text("Модель").attr("disabled", "disabled");
|
||||
}
|
||||
else
|
||||
{
|
||||
let id = $(this).find(':selected').data('id');
|
||||
$("#filter_models").val(event.target.value);
|
||||
|
||||
selected['MODEL'] = id;
|
||||
selected['MODEL_ID'] = id;
|
||||
|
||||
$("#small_filter_models").find("option").first().text("Любая").attr("disabled", false);
|
||||
$("#filter_models").find("option").first().text("Любая").attr("disabled", false);
|
||||
}
|
||||
});
|
||||
|
||||
$("#filter_brands").on("change", function(event)
|
||||
{
|
||||
console.log("BBBBB", $(this).val());
|
||||
if($(this).val() === '')
|
||||
{
|
||||
selected['BRAND'] = undefined;
|
||||
selected['BRAND_ID'] = undefined;
|
||||
selected['MODEL'] = undefined;
|
||||
selected['MODEL_ID'] = undefined;
|
||||
|
||||
$("#small_filter_brands").find("option").first().text("Марка").attr("disabled", "disabled");
|
||||
$("#small_filter_models").empty();
|
||||
$("#small_filter_models").append("<option disabled selected>Модель</option>");
|
||||
$("#filter_brands").find("option").first().text("Марка").attr("disabled", "disabled");
|
||||
$("#filter_models").empty();
|
||||
$("#filter_models").append("<option disabled selected>Модель</option>");
|
||||
|
||||
updateCounter(selected);
|
||||
}
|
||||
else
|
||||
{
|
||||
let id = $(this).find(':selected').data('id');
|
||||
let uid = $(this).find(':selected').data('uid');
|
||||
selected['BRAND'] = $(this).val();
|
||||
selected['BRAND_ID'] = id;
|
||||
selected['MODEL'] = undefined;
|
||||
selected['MODEL_ID'] = undefined;
|
||||
|
||||
$("#small_filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
$("#filter_brands").find("option").first().text("Любая").attr("disabled", false);
|
||||
|
||||
loadModels(uid);
|
||||
}
|
||||
});
|
||||
|
||||
$("#filter_models").on("change", function(event)
|
||||
{
|
||||
if($(this).val() === "")
|
||||
{
|
||||
selected['MODEL'] = undefined;
|
||||
selected['MODEL_ID'] = undefined;
|
||||
|
||||
$("#filter_models").find("option").first().text("Модель").attr("disabled", "disabled");
|
||||
}
|
||||
else
|
||||
{
|
||||
let id = $(this).find(':selected').data('id');
|
||||
selected['MODEL_ID'] = id;
|
||||
|
||||
$("#filter_models").find("option").first().text("Любая").attr("disabled", false);
|
||||
}
|
||||
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#catalog_small_form").on("submit", function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("#catalog_small_find").on("click", function()
|
||||
{
|
||||
var path = "/catalog";
|
||||
|
||||
if($("#small_filter_brands").val() !== "")
|
||||
{
|
||||
path = path+"/"+$("#small_filter_brands").val();
|
||||
}
|
||||
if($("#small_filter_models").val() !== "")
|
||||
{
|
||||
path = path+"/"+$("#small_filter_models").val();
|
||||
}
|
||||
|
||||
path = path+"/";
|
||||
|
||||
window.location.href = path;
|
||||
//$("#catalog_small_form").submit();
|
||||
});
|
||||
|
||||
$("#rich_filter_toggle").on("click", function()
|
||||
{
|
||||
updateCounter(selected);
|
||||
$("#filter").addClass("visible");
|
||||
$("#catalog_small_filter").addClass("hidden");
|
||||
});
|
||||
|
||||
$.get("/api/catalog/parameters/",
|
||||
{
|
||||
params: {},
|
||||
}, function(response)
|
||||
{
|
||||
for(let i in response.bodies)
|
||||
{
|
||||
$("#filter_bodies").append("<option value='"+response.bodies[i]+"'>"+response.bodies[i]+"</option>");
|
||||
}
|
||||
if(selected['BODY'] !== undefined && selected['BODY'] !== null && selected['BODY'] !== "")
|
||||
{
|
||||
$("#filter_bodies").val(selected['BODY']);
|
||||
$("#filter_bodies").find("option").first().text("Любой").attr("disabled", false);
|
||||
}
|
||||
|
||||
for(let i in response.gears)
|
||||
{
|
||||
$("#filter_gears").append("<option value='"+response.gears[i]+"'>"+response.gears[i]+"</option>");
|
||||
}
|
||||
if(selected['GEAR'] !== undefined && selected['GEAR'] !== null && selected['GEAR'] !== "")
|
||||
{
|
||||
$("#filter_gears").val(selected['GEAR']);
|
||||
$("#filter_gears").find("option").first().text("Любая").attr("disabled", false);
|
||||
}
|
||||
|
||||
for(let i in response.engine_fuels)
|
||||
{
|
||||
$("#filter_engine_fuels").append("<option value='"+response.engine_fuels[i]+"'>"+response.engine_fuels[i]+"</option>");
|
||||
}
|
||||
if(selected['ENGINE_FUEL'] !== undefined && selected['ENGINE_FUEL'] !== null && selected['ENGINE_FUEL'] !== "")
|
||||
{
|
||||
$("#filter_engine_fuels").val(selected['ENGINE_FUEL']);
|
||||
$("#filter_engine_fuels").find("option").first().text("Любой").attr("disabled", false);
|
||||
}
|
||||
|
||||
for(let i in response.drives)
|
||||
{
|
||||
$("#filter_drives").append("<option value='"+response.drives[i]+"'>"+response.drives[i]+"</option>");
|
||||
}
|
||||
if(selected['DRIVE'] !== undefined && selected['DRIVE'] !== null && selected['DRIVE'] !== "")
|
||||
{
|
||||
$("#filter_drives").val(selected['DRIVE']);
|
||||
$("#filter_drives").find("option").first().text("Любой").attr("disabled", false);
|
||||
}
|
||||
|
||||
if(selected['ENGINE_VOLUME_FROM'] !== undefined && selected['ENGINE_VOLUME_FROM'] !== null && selected['ENGINE_VOLUME_FROM'] !== "")
|
||||
{
|
||||
$("#filter_engine_volume_from").val(selected['ENGINE_VOLUME_FROM']);
|
||||
$("#filter_engine_volume_from").find("option").first().text("Любой").attr("disabled", false);
|
||||
}
|
||||
|
||||
if(selected['ENGINE_VOLUME_TO'] !== undefined && selected['ENGINE_VOLUME_TO'] !== null && selected['ENGINE_VOLUME_TO'] !== "")
|
||||
{
|
||||
$("#filter_engine_volume_to").val(selected['ENGINE_VOLUME_TO']);
|
||||
$("#filter_engine_volume_to").find("option").first().text("Любой").attr("disabled", false);
|
||||
}
|
||||
|
||||
console.log("response", response);
|
||||
}, "json");
|
||||
|
||||
$("#filter_bodies").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любой").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Кузов").attr("disabled", "disabled"); }
|
||||
|
||||
selected['BODY'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#filter_drives").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любой").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Привод").attr("disabled", "disabled"); }
|
||||
|
||||
selected['DRIVE'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#filter_engine_fuels").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любой").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Двигатель").attr("disabled", "disabled"); }
|
||||
|
||||
selected['ENGINE_FUEL'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#filter_gears").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любая").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Коробка").attr("disabled", "disabled"); }
|
||||
|
||||
selected['GEAR'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#catalog_filter_search_button").on("click", function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var path = "/catalog";
|
||||
|
||||
if($("#filter_brands").val() !== undefined && $("#filter_brands").val() !== null && $("#filter_brands").val() !== "")
|
||||
{
|
||||
path = path+"/"+$("#filter_brands").val();
|
||||
}
|
||||
if($("#filter_models").val() !== undefined && $("#filter_models").val() !== null && $("#filter_models").val() !== "")
|
||||
{
|
||||
path = path+"/"+$("#filter_models").val();
|
||||
}
|
||||
|
||||
var p = {};
|
||||
for(let i in selected)
|
||||
{
|
||||
if(i !== "BRAND" && i !== "BRAND_ID" && i !== "MODEL" && i !== "MODEL_ID")
|
||||
{
|
||||
p[i] = selected[i];
|
||||
}
|
||||
}
|
||||
|
||||
path = path+"/?"+$.param(p);
|
||||
window.location.href = path;
|
||||
});
|
||||
|
||||
$("#filter_engine_volume_from").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любой").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Объем, от").attr("disabled", "disabled"); }
|
||||
|
||||
selected['ENGINE_VOLUME_FROM'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
|
||||
$("#filter_engine_volume_to").on("change", function()
|
||||
{
|
||||
if($(this).val() !== "")
|
||||
{ $(this).find("option").first().text("Любой").attr("disabled", false); }
|
||||
else
|
||||
{ $(this).find("option").first().text("Объем, до").attr("disabled", "disabled"); }
|
||||
|
||||
selected['ENGINE_VOLUME_TO'] = $(this).val();;
|
||||
updateCounter(selected);
|
||||
});
|
||||
});
|
||||
*/
|
||||
@ -0,0 +1,28 @@
|
||||
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
|
||||
/** @var array $arParams */
|
||||
/** @var array $arResult */
|
||||
/** @global CMain $APPLICATION */
|
||||
/** @global CUser $USER */
|
||||
/** @global CDatabase $DB */
|
||||
/** @var CBitrixComponentTemplate $this */
|
||||
/** @var string $templateName */
|
||||
/** @var string $templateFile */
|
||||
/** @var string $templateFolder */
|
||||
/** @var string $componentPath */
|
||||
/** @var CBitrixComponent $component */
|
||||
$this->setFrameMode(true);
|
||||
?>
|
||||
<!--
|
||||
<? /*= print_r($arResult);*/ ?>
|
||||
-->
|
||||
<div class="recom_models">
|
||||
<p class="title"><?= isset($arParams['TITLE']) ? $arParams['TITLE'] : $arResult['TITLE']; ?></p>
|
||||
<? foreach($arResult['MODELS'] AS $model): ?>
|
||||
<div class="oher_item">
|
||||
<a href="<?= $model['URL']; ?>">
|
||||
<span><?= $model['NAME']; ?></span>
|
||||
<img src="<?= ($model['PREVIEW_PICTURE'] != "") ? $model['PREVIEW_PICTURE'] : "/images/no_image_380.png"; ?>" alt="<?= $model['NAME']; ?>" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
<? endforeach; ?>
|
||||
</div>
|
||||
@ -18,6 +18,9 @@ $this->setFrameMode(true);
|
||||
calculator(<?= CUtil::PhpToJSObject(array_merge($arParams, $arResult['CALCULATION'])); ?>);
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
main {overflow-x: unset;}
|
||||
</style>
|
||||
<section data-page="position">
|
||||
<input type="hidden" id="FORM_FIELD_BRAND" value="<?= $arResult['PROPERTIES']['BRAND']['RELATED']['NAME']; ?>"/>
|
||||
<input type="hidden" id="FORM_FIELD_MODEL" value="<?= $arResult['PROPERTIES']['MODEL']['RELATED']['NAME']; ?>"/>
|
||||
@ -35,7 +38,7 @@ $this->setFrameMode(true);
|
||||
<h2 class="model"><?= $arResult['PROPERTIES']['MODIFICATION']['RELATED']['PROPERTIES']['TITLE']['VALUE']; ?></h2>
|
||||
<div class="model_container">
|
||||
<div class="col">
|
||||
<img src="<?= $arResult['PROPERTIES']['IMAGE_URL']['VALUE']; ?>" alt="<?= $arResult['NAME']; ?>" width="650px" >
|
||||
<img src="<?= $arResult['PROPERTIES']['IMAGE_URL']['VALUE'] !== "" ? $arResult['PROPERTIES']['IMAGE_URL']['VALUE'] : "/images/no_image_650.png"; ?>" alt="<?= $arResult['NAME']; ?>" width="650px" >
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="model_desc">
|
||||
@ -50,7 +53,7 @@ $this->setFrameMode(true);
|
||||
<li>Топливо: <?= $arResult['PROPERTIES']['ENGINE_FUEL']['VALUE']; ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="fixed_col">
|
||||
<div class="model_price">
|
||||
<p>Оформите автомбиль Audi A3 в лизинг на выгодных условиях</p>
|
||||
<p>
|
||||
@ -62,6 +65,7 @@ $this->setFrameMode(true);
|
||||
<button class="button">Задать вопрос</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="aside_container">
|
||||
<aside>
|
||||
<ul class="aside_nav">
|
||||
|
||||
@ -12,6 +12,9 @@
|
||||
/** @var CBitrixComponent $component */
|
||||
$this->setFrameMode(true);
|
||||
?>
|
||||
<style>
|
||||
main {overflow-x: unset;}
|
||||
</style>
|
||||
<section data-page="catalog" id="catalog">
|
||||
<div class="container">
|
||||
<div id="view"></div>
|
||||
@ -117,72 +120,63 @@ $this->setFrameMode(true);
|
||||
</div>
|
||||
<? endif; ?>
|
||||
|
||||
<? /*
|
||||
<div class="recom_models">
|
||||
<p class="title">Рекомендуемые модели Audi для вас</p>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
@ -190,73 +184,93 @@ $this->setFrameMode(true);
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
*/ ?>
|
||||
|
||||
<!-- <?= print_r($_SERVER); ?>-->
|
||||
<!-- REQUEST -->
|
||||
<!-- <?= print_r($_REQUEST); ?>-->
|
||||
<!-- <?= $_REQUEST['BRAND'] === "" ? "BRAND YES" : "BRAND NO"; ?>-->
|
||||
<? if(!isset($_REQUEST['BRAND'])): ?>
|
||||
<? $APPLICATION->IncludeComponent(
|
||||
"evolution:catalog.brands",
|
||||
"",
|
||||
Array(
|
||||
"TITLE" => "Каталог автомобилей",
|
||||
"SORT" => $arParams['SORT'],
|
||||
"FILTER" => $arResult['FILTER_SMALL'],
|
||||
)
|
||||
); ?>
|
||||
<? endif; ?>
|
||||
<? if(isset($_REQUEST['BRAND'])): ?>
|
||||
<? $APPLICATION->IncludeComponent(
|
||||
"evolution:catalog.models",
|
||||
"",
|
||||
Array(
|
||||
"BRAND" => $_REQUEST['BRAND'],
|
||||
"RECOMMENDED" => true,
|
||||
)
|
||||
); ?>
|
||||
<? endif; ?>
|
||||
<? if($_SERVER['HTTP_CF_CONNECTING_IP'] == "79.139.204.178" || $_SERVER['HTTP_CF_CONNECTING_IP'] == "2a00:1370:8196:3923:71ab:2da3:93b8:9286"): ?>
|
||||
<? endif; ?>
|
||||
|
||||
<? /*
|
||||
<div class="other_models">
|
||||
<p class="title">Седаны в лизинг</p>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="oher_item">
|
||||
<a href="#">
|
||||
<span>Haval</span>
|
||||
@ -264,17 +278,12 @@ $this->setFrameMode(true);
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<button id="showMore" class="button">Показать еще</button>
|
||||
*/ ?>
|
||||
|
||||
<?= $arResult['NAV_STRING']; ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<aside class="rightColumn">
|
||||
<div class="banner special">
|
||||
<img src="https://evo.quickcode.ru/upload/iblock/e1d/jfbovbbwqj02dezcj5w81xte2cz2pgg4.jpg" alt="" width="254px" height="238px" />
|
||||
@ -285,7 +294,6 @@ $this->setFrameMode(true);
|
||||
</ul>
|
||||
<a href="#" aria-label="Подробнее" title="Подробнее"></a>
|
||||
</div>
|
||||
|
||||
<div class="banner consultation">
|
||||
<p>Не можете найти нужный автомобиль?</p>
|
||||
<img src="/images/man.png" loading="lazy" alt="" width="131px" height="192px" />
|
||||
|
||||
@ -3,6 +3,8 @@ var selected = {};
|
||||
var inputs = {};
|
||||
var path = "";
|
||||
var program = null;
|
||||
var updating = false;
|
||||
var counter_params = undefined;
|
||||
|
||||
function formCatalogFilter(p, pr, props)
|
||||
{
|
||||
@ -23,6 +25,10 @@ function updateCounter(parameters)
|
||||
{
|
||||
console.log("updateCounter", parameters);
|
||||
|
||||
if(!updating)
|
||||
{
|
||||
updating = true;
|
||||
|
||||
$("#catalog_filter_spinner").show();
|
||||
$("#catalog_filter_search_button_counter").hide();
|
||||
|
||||
@ -36,12 +42,35 @@ function updateCounter(parameters)
|
||||
if(parameters[i] !== undefined) { params[i] = parameters[i]; }
|
||||
}
|
||||
|
||||
$.get("/api/catalog/count/", params, function(response)
|
||||
counter_params = params;
|
||||
|
||||
setTimeout(function()
|
||||
{
|
||||
console.log("sending");
|
||||
|
||||
$.get("/api/catalog/count/", counter_params, function(response)
|
||||
{
|
||||
$("#catalog_filter_spinner").hide();
|
||||
$("#catalog_filter_search_button_counter").text("Показать "+response.total+" вариантов").show();
|
||||
$("#catalog_small_find").text("Показать "+response.total+" вариантов");
|
||||
updating = false;
|
||||
}, "json");
|
||||
}, 100);
|
||||
}
|
||||
else
|
||||
{
|
||||
var params = {};
|
||||
if(program !== null)
|
||||
{
|
||||
params['PROGRAM'] = program;
|
||||
}
|
||||
for(let i in parameters)
|
||||
{
|
||||
if(parameters[i] !== undefined) { params[i] = parameters[i]; }
|
||||
}
|
||||
|
||||
counter_params = params;
|
||||
}
|
||||
}
|
||||
|
||||
function loadModels(uid)
|
||||
@ -493,15 +522,20 @@ $(function()
|
||||
}
|
||||
|
||||
var pa = {};
|
||||
var pa_count = 0;
|
||||
for(let i in selected)
|
||||
{
|
||||
if(i !== "BRAND" && i !== "BRAND_ID" && i !== "MODEL" && i !== "MODEL_ID")
|
||||
{
|
||||
if(selected[i] !== undefined && selected[i] !== null && selected[i] !== "")
|
||||
{
|
||||
pa[i] = selected[i];
|
||||
pa_count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p = p + "?"+$.param(pa);
|
||||
if(pa_count > 0) { p = p + "?"+$.param(pa); }
|
||||
window.location.href = p;
|
||||
});
|
||||
|
||||
|
||||
@ -59,25 +59,6 @@ $this->setFrameMode(true);
|
||||
.catalog_filter_spinner_animation div { box-sizing: content-box; }
|
||||
</style>
|
||||
<form method="GET" action="/catalog/" id="catalog_filter_form">
|
||||
<div class="filter_header">
|
||||
<div class="tabs">
|
||||
<?
|
||||
/*
|
||||
<div class="tab active">Новые</div>
|
||||
<div class="tab">С пробегом</div>
|
||||
<div class="tab">Все</div>
|
||||
*/
|
||||
?>
|
||||
</div>
|
||||
<a href="#" class="button button-blue" id="catalog_filter_search_button">
|
||||
<div id="catalog_filter_spinner">
|
||||
<div class="catalog_filter_spinner_animation">
|
||||
<div></div>
|
||||
</div>
|
||||
</div>
|
||||
<span id="catalog_filter_search_button_counter" style="display:none;"></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="filter_body">
|
||||
<div class="filter_column">
|
||||
<div class="form_field">
|
||||
@ -159,4 +140,23 @@ $this->setFrameMode(true);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_header">
|
||||
<div class="tabs">
|
||||
<?
|
||||
/*
|
||||
<div class="tab active">Новые</div>
|
||||
<div class="tab">С пробегом</div>
|
||||
<div class="tab">Все</div>
|
||||
*/
|
||||
?>
|
||||
</div>
|
||||
<a href="#" class="button button-blue" id="catalog_filter_search_button">
|
||||
<div id="catalog_filter_spinner">
|
||||
<div class="catalog_filter_spinner_animation">
|
||||
<div></div>
|
||||
</div>
|
||||
</div>
|
||||
<span id="catalog_filter_search_button_counter" style="display:none;"></span>
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
@ -1 +1 @@
|
||||
header{background:#fff;position:fixed;z-index:99;left:0;right:0;height:112px;font-size:16px;line-height:24px;box-shadow:8px 8px 16px 4px rgba(133,139,146,0.06)}@media all and (max-width:1600px) and (min-width:1280px){header{height:82px;font-size:14px;line-height:18px}}header .container{height:inherit;display:flex;align-items:center;justify-content:space-between;padding:0 0 35px 0;background:#fff}@media all and (max-width:1279px){header .container{padding-bottom:0}}header .container:after{display:none}header a{text-decoration:none;color:#000}header a.logo{transform:translateY(4px)}header .header_menu{margin:0 32px;padding:0 32px;border-left:1px solid #e7e9f0;border-right:1px solid #e7e9f0;display:flex;align-items:center;justify-content:space-between;height:32px;width:100%}@media all and (max-width:1600px) and (min-width:1280px){header .header_menu{margin:0 24px;padding:0 24px}}header .header_menu:last-child{border-right:0;padding-right:0;margin-right:0}header .header_menu .header_search{width:calc(100% - 160px)}header .header_menu .header_search form{display:flex;width:100%}header .header_menu .header_search form .form_field{width:100%}@media all and (max-width:1279px){header .header_menu .header_search{display:none}}header .header_menu nav{position:absolute;bottom:13px;left:0}@media all and (max-width:1279px){header .header_menu nav{bottom:0}}header .header_menu nav .nav_toggle{display:none}header .header_menu nav ul{display:flex}header .header_menu nav ul li:not(:last-child){margin-right:24px}header .header_menu nav ul li:last-child{margin-right:63px}@media all and (min-width:1280px){header .header_menu nav ul li:first-child{display:none}}header .header_menu nav ul li.active a{color:var(--blue);font-weight:700}header .lk{display:block;text-decoration:none;min-width:32px;width:32px;height:32px;background:url("/images/icons/icon-lk.svg") no-repeat center}@media all and (max-width:1420px){header a.logo img{width:180px;height:26px;object-fit:contain}header .header_menu{padding:0 16px;margin:0 16px}header .header_menu nav ul li:not(:last-child){margin-right:15px}header .header_menu nav ul li:last-child{margin-right:30px}}@media all and (max-width:1279px){header{font-size:15px;line-height:24px;height:86px}header a.logo img{width:130px;height:20px}header .header_menu{padding:0 16px 0 32px;margin:0 16px 0 32px}header .header_menu nav{height:23px;position:relative}header .header_menu nav .nav_toggle{display:block;height:23px;z-index:3;background-image:url("/images/icons/icon-select.svg");background-repeat:no-repeat;background-position:100% 50%;font-size:15px;color:var(--blue);font-weight:700;padding-right:24px;padding-left:0;cursor:pointer}header .header_menu nav ul{display:block;position:absolute;background:#fff;padding:15px 20px;top:25px;left:-20px}header .header_menu nav ul:not(.open){display:none}header .header_menu nav ul li:not(:last-child){margin-bottom:6px}header .header_menu nav ul li a{font-size:15px}header .header_menu nav ul li.active a{color:#000;font-weight:400}header .header_menu a[href^="tel:"]{width:32px;height:32px;background:url("/images/icons/icon-header-phone.svg") no-repeat center;text-indent:-9999px;overflow:hidden;margin-left:auto}}@media all and (max-width:768px){header{height:84px}header .container{padding-bottom:35px}header .header_menu{border-left:0;padding-left:0;margin-left:0;height:24px}header .header_menu nav{position:absolute;left:0;bottom:9px}header .header_menu a[href^="tel:"]{width:24px;height:24px;background-size:contain}header .lk{width:24px;height:24px;min-width:24px;background-size:contain}}/*# sourceMappingURL=./style.css.map */
|
||||
header{background:#fff;position:fixed;z-index:99;left:0;right:0;height:112px;font-size:16px;line-height:24px;box-shadow:8px 8px 16px 4px rgba(133,139,146,0.06)}@media all and (max-width:1600px) and (min-width:1280px){header{height:98px;font-size:14px;line-height:18px}}header .container{height:inherit;display:flex;align-items:center;justify-content:space-between;padding:0 0 35px 0;background:#fff}@media all and (max-width:1279px){header .container{padding-bottom:0}}header .container:after{display:none}header a{text-decoration:none;color:#000}header a.logo{transform:translateY(4px)}header .header_menu{margin:0 32px;padding:0 32px;border-left:1px solid #e7e9f0;border-right:1px solid #e7e9f0;display:flex;align-items:center;justify-content:space-between;height:32px;width:100%}@media all and (max-width:1600px) and (min-width:1280px){header .header_menu{margin:0 24px;padding:0 24px}}header .header_menu:last-child{border-right:0;padding-right:0;margin-right:0}header .header_menu .header_search{width:calc(100% - 160px)}header .header_menu .header_search form{display:flex;width:100%}header .header_menu .header_search form .form_field{width:100%}@media all and (max-width:1279px){header .header_menu .header_search{display:none}}header .header_menu nav{position:absolute;bottom:13px;left:0}@media all and (max-width:1279px){header .header_menu nav{bottom:0}}header .header_menu nav .nav_toggle{display:none}header .header_menu nav ul{display:flex}header .header_menu nav ul li:not(:last-child){margin-right:24px}header .header_menu nav ul li:last-child{margin-right:63px}@media all and (min-width:1280px){header .header_menu nav ul li:first-child{display:none}}header .header_menu nav ul li.active a{color:var(--blue);font-weight:700}header .lk{display:block;text-decoration:none;min-width:32px;width:32px;height:32px;background:url("/images/icons/icon-lk.svg") no-repeat center}@media all and (max-width:1420px){header a.logo img{width:180px;height:26px;object-fit:contain}header .header_menu{padding:0 16px;margin:0 16px}header .header_menu nav ul li:not(:last-child){margin-right:15px}header .header_menu nav ul li:last-child{margin-right:30px}}@media all and (max-width:1279px){header{font-size:15px;line-height:24px;height:86px}header a.logo img{width:130px;height:20px}header .header_menu{padding:0 16px 0 32px;margin:0 16px 0 32px}header .header_menu nav{height:23px;position:relative}header .header_menu nav .nav_toggle{display:block;height:23px;z-index:3;background-image:url("/images/icons/icon-select.svg");background-repeat:no-repeat;background-position:100% 50%;font-size:15px;color:var(--blue);font-weight:700;padding-right:24px;padding-left:0;cursor:pointer}header .header_menu nav ul{display:block;position:absolute;background:#fff;padding:15px 20px;top:25px;left:-20px}header .header_menu nav ul:not(.open){display:none}header .header_menu nav ul li:not(:last-child){margin-bottom:6px}header .header_menu nav ul li a{font-size:15px}header .header_menu nav ul li.active a{color:#000;font-weight:400}header .header_menu a[href^="tel:"]{width:32px;height:32px;background:url("/images/icons/icon-header-phone.svg") no-repeat center;text-indent:-9999px;overflow:hidden;margin-left:auto}}@media all and (max-width:768px){header{height:84px}header .container{padding-bottom:35px}header .header_menu{border-left:0;padding-left:0;margin-left:0;height:24px}header .header_menu nav{position:absolute;left:0;bottom:9px}header .header_menu a[href^="tel:"]{width:24px;height:24px;background-size:contain}header .lk{width:24px;height:24px;min-width:24px;background-size:contain}}/*# sourceMappingURL=./style.css.map */
|
||||
@ -11,7 +11,7 @@ header {
|
||||
box-shadow: 8px 8px 16px 4px rgba(133, 139, 146, 0.06);
|
||||
|
||||
@media all and (max-width: 1600px) and (min-width: 1280px) {
|
||||
height: 82px;
|
||||
height: 98px;
|
||||
font-size: 14px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
}
|
||||
|
||||
main {
|
||||
overflow: hidden;
|
||||
overflow-x: hidden;
|
||||
padding-top: 112px;
|
||||
|
||||
@media all and (max-width: 1600px) and (min-width: 1280px) {
|
||||
@ -2232,11 +2232,27 @@ main {
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
margin-top: 60px;
|
||||
position: relative;
|
||||
|
||||
@media all and (max-width: 1600px) {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.fixed_col {
|
||||
@media all and (min-width: 1280px) {
|
||||
width: 254px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
|
||||
.model_price {
|
||||
position: sticky;
|
||||
top: 110px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.col {
|
||||
width: calc(50% - 15px);
|
||||
|
||||
@ -3883,7 +3899,9 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
}
|
||||
}
|
||||
|
||||
.grecaptcha-badge { visibility: hidden; }
|
||||
.grecaptcha-badge {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
// About
|
||||
#about_banner {
|
||||
@ -3891,6 +3909,7 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
margin: auto;
|
||||
margin-top: -90px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 1280px) {
|
||||
margin-top: -40px;
|
||||
@ -4390,7 +4409,7 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
}
|
||||
|
||||
@media (max-width: 1600px) {
|
||||
height: 219px;
|
||||
height: 220px;
|
||||
|
||||
p {
|
||||
font-size: 10px;
|
||||
@ -4718,7 +4737,7 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
|
||||
.lines_title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
|
||||
p {
|
||||
@ -4743,6 +4762,7 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
line-height: 20px;
|
||||
color: var(--blue);
|
||||
margin-bottom: 30px;
|
||||
margin-top: 15px;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
margin-bottom: 55px;
|
||||
@ -4751,6 +4771,10 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
@media (max-width: 920px) {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
@ -4788,18 +4812,26 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
margin-bottom: 250px;
|
||||
max-width: 975px;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
max-width: 820px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
max-width: 570px;
|
||||
margin-bottom: 160px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 600px) {
|
||||
max-width: 470px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 459px) and (min-width: 376px) {
|
||||
max-width: 369px;
|
||||
}
|
||||
|
||||
@media (max-width: 376px) {
|
||||
max-width: 303px;
|
||||
}
|
||||
|
||||
@ -4813,34 +4845,51 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
min-height: 100px;
|
||||
margin-bottom: 177px;
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
margin-bottom: 120px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media all and (max-width: 600px) {
|
||||
margin-bottom: 80px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
||||
}
|
||||
|
||||
.line {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
left: -9px;
|
||||
background: url("/images/about/line-right.png") repeat-y top left;
|
||||
background-size: 100% auto;
|
||||
top: -4px;
|
||||
bottom: -10px;
|
||||
width: 100%;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
top: 16px;
|
||||
left: -8px;
|
||||
}
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 1280px) {}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
right: 10px;
|
||||
background-size: calc(100% + 30px) auto;
|
||||
@media all and (max-width: 1000px) {
|
||||
top: 10px;
|
||||
background-position: top right;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media all and (max-width: 600px) and (min-width: 460px) {
|
||||
|
||||
}
|
||||
|
||||
@media (max-width: 376px) {
|
||||
top: -6px;
|
||||
background-size: 100% auto;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
@media (max-width: 300px) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -4848,30 +4897,44 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
margin-top: 40px;
|
||||
padding-top: 40px;
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
padding-top: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 376px) {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.line {
|
||||
top: 30px;
|
||||
top: 94px;
|
||||
bottom: -9px;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
top: -2px;
|
||||
bottom: -20px;
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
top: 75px;
|
||||
bottom: -30px;
|
||||
left: -8px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
top: 75px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 600px) and (min-width: 460px) {
|
||||
top: 40px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 459px) and (min-width: 376px) {
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
top: -5px;
|
||||
@media (max-width: 376px) {
|
||||
top: 10px;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
@media (max-width: 300px) {
|
||||
top: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4884,18 +4947,22 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
left: -10px;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
height: 200px;
|
||||
height: 235px;
|
||||
background: url("/images/about/top.png") no-repeat top left #fff;
|
||||
background-size: 100% auto;
|
||||
top: -115px;
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
height: 82px;
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
left: -9px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 1000px) {
|
||||
height: 140px;
|
||||
top: -62px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
height: 46px;
|
||||
@media all and (max-width: 375px) {
|
||||
height: 120px;
|
||||
top: -48px;
|
||||
}
|
||||
}
|
||||
@ -4919,29 +4986,44 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
bottom: -234px;
|
||||
left: -11px;
|
||||
bottom: -270px;
|
||||
left: -8px;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
height: 225px;
|
||||
height: 345px;
|
||||
background: url("/images/about/top-2.png") no-repeat bottom left #fff;
|
||||
background-size: 100% auto;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
height: 186px;
|
||||
bottom: -200px;
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
height: 308px;
|
||||
bottom: -230px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 1000px) {
|
||||
height: 205px;
|
||||
bottom: -154px;
|
||||
left: -9px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 600px) and (min-width: 460px) {
|
||||
height: 162px;
|
||||
bottom: -120px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 459px) and (min-width: 376px) {
|
||||
height: 130px;
|
||||
bottom: -120px;
|
||||
}
|
||||
|
||||
@media (max-width: 376px) {
|
||||
height: 108px;
|
||||
bottom: -85px;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
height: 128px;
|
||||
bottom: -136px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
height: 70px;
|
||||
bottom: -78px;
|
||||
left: -10px;
|
||||
@media (max-width: 300px) {
|
||||
height: 90px;
|
||||
bottom: -75px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4954,19 +5036,17 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
top: 33px;
|
||||
bottom: 38px;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
top: 11px;
|
||||
bottom: -16px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
top: 9px;
|
||||
left: -14px;
|
||||
background-size: calc(100% + 9px) auto;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 376px) {
|
||||
top: -7px;
|
||||
left: -10px;
|
||||
bottom: -7px;
|
||||
@ -4980,32 +5060,43 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
bottom: -165px;
|
||||
left: -10px;
|
||||
bottom: -167px;
|
||||
left: -8px;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
height: 203px;
|
||||
height: 215px;
|
||||
background: url("/images/about/bottom-2.png") no-repeat bottom left #fff;
|
||||
background-size: 100% auto;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
bottom: -158px;
|
||||
height: 158px;
|
||||
right: 21px !important;
|
||||
width: calc(100% - 10px);
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
bottom: -135px;
|
||||
height: 185px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
height: 118px;
|
||||
bottom: -90px;
|
||||
left: -14px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
height: 63px;
|
||||
bottom: -64px;
|
||||
@media all and (max-width: 1000px) {
|
||||
height: 135px;
|
||||
bottom: -81px;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 600px) and (min-width: 460px) {
|
||||
height: 110px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 459px) and (min-width: 376px) {
|
||||
height: 85px;
|
||||
}
|
||||
|
||||
@media (max-width: 376px) {
|
||||
height: 70px;
|
||||
bottom: -50px;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
@media (max-width: 300px) {
|
||||
height: 55px;
|
||||
bottom: -45px;
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-child(even) {
|
||||
@ -5022,11 +5113,11 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
left: auto !important;
|
||||
right: 10px;
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
right: 9px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 376px) {
|
||||
right: 11px;
|
||||
}
|
||||
}
|
||||
@ -5039,16 +5130,17 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
bottom: -4px;
|
||||
left: -11px;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
bottom: -15px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
left: -12px;
|
||||
@media all and (max-width: 1000px) {
|
||||
left: -11px;
|
||||
top: -10px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 767px) {
|
||||
@media all and (max-width: 375px) {
|
||||
left: -10px;
|
||||
}
|
||||
}
|
||||
@ -5057,12 +5149,12 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
background: url("/images/about/bottom-3.png") no-repeat bottom left #fff;
|
||||
background-size: 100% auto;
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
right: auto;
|
||||
left: -12px !important;
|
||||
left: -11px !important;
|
||||
}
|
||||
|
||||
@media all and (max-width: 767px) {
|
||||
@media all and (max-width: 375px) {
|
||||
left: -10px !important;
|
||||
}
|
||||
}
|
||||
@ -5070,9 +5162,8 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
|
||||
&:nth-child(odd) {
|
||||
.month:last-child:after {
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
left: auto !important;
|
||||
right: 7px !important;
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
left: -8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -5085,25 +5176,25 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
bottom: -228px;
|
||||
bottom: -290px;
|
||||
left: -10px;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
height: 225px;
|
||||
height: 345px;
|
||||
background: url("/images/about/bottom-1.png") no-repeat bottom left #fff;
|
||||
background-size: 100% auto;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
bottom: -197px;
|
||||
height: 189px;
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
bottom: -255px;
|
||||
height: 305px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
height: 130px;
|
||||
bottom: -130px;
|
||||
@media all and (max-width: 1000px) {
|
||||
height: 205px;
|
||||
bottom: -175px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 376px) {
|
||||
height: 70px;
|
||||
bottom: -74px;
|
||||
}
|
||||
@ -5127,11 +5218,11 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
margin: auto;
|
||||
z-index: 3;
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 460px) {
|
||||
bottom: auto;
|
||||
right: 25px;
|
||||
}
|
||||
@ -5147,30 +5238,46 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
bottom: -234px;
|
||||
left: -10px;
|
||||
bottom: -285px;
|
||||
left: -9px;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
height: 225px;
|
||||
height: 350px;
|
||||
background: url("/images/about/top-2.png") no-repeat bottom left #fff;
|
||||
background-size: 100% auto;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
bottom: -195px;
|
||||
height: 190px;
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
bottom: -248px;
|
||||
height: 308px;
|
||||
left: -8px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
height: 205px;
|
||||
bottom: -164px;
|
||||
left: -9px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 600px) and (min-width: 460px) {
|
||||
height: 162px;
|
||||
bottom: -124px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 459px) and (min-width: 376px) {
|
||||
height: 130px;
|
||||
bottom: -130px;
|
||||
left: -14px;
|
||||
bottom: -115px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
height: 70px;
|
||||
bottom: -80px;
|
||||
@media (max-width: 376px) {
|
||||
height: 107px;
|
||||
bottom: -85px;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
@media (max-width: 300px) {
|
||||
height: 90px;
|
||||
bottom: -75px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -5182,20 +5289,25 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
background-size: 100% auto;
|
||||
top: 41px;
|
||||
bottom: -4px;
|
||||
left: -7px;
|
||||
left: -8px;
|
||||
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
top: 20px;
|
||||
bottom: -45px;
|
||||
left: -11px;
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
top: 22px;
|
||||
bottom: 22px;
|
||||
left: -8px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
top: 29px;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 600px) and (min-width: 460px) {
|
||||
left: -9px;
|
||||
top: 15px;
|
||||
left: -12px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 376px) {
|
||||
top: -5px;
|
||||
left: -10px;
|
||||
}
|
||||
@ -5205,7 +5317,7 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
right: auto;
|
||||
left: -12px;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 376px) {
|
||||
left: 5px;
|
||||
top: -25px;
|
||||
}
|
||||
@ -5217,21 +5329,45 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
&:before,
|
||||
&:after {
|
||||
left: auto !important;
|
||||
right: 10px;
|
||||
right: 9px;
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
right: 14px;
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
right: 8px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
right: 10px;
|
||||
height: 220px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 600px) and (min-width: 460px) {
|
||||
bottom: -122px;
|
||||
right: 9px;
|
||||
height: 165px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 459px) and (min-width: 376px) {
|
||||
bottom: -107px;
|
||||
right: 10px;
|
||||
height: 130px;
|
||||
}
|
||||
|
||||
@media (max-width: 376px) {
|
||||
right: 10px;
|
||||
height: 110px;
|
||||
bottom: -95px;
|
||||
}
|
||||
|
||||
@media (max-width: 300px) {
|
||||
height: 90px;
|
||||
bottom: -85px;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
&:after {
|
||||
@media (max-width: 1600px) and (min-width: 920px) {
|
||||
right: 13px;
|
||||
@media (max-width: 1600px) and (min-width: 1000px) {
|
||||
right: 12px;
|
||||
}
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@ -5250,11 +5386,11 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
padding: 6px 0;
|
||||
//position: relative;
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
width: calc(100% - 90px);
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 460px) {
|
||||
display: block;
|
||||
width: calc(100% - 65px);
|
||||
}
|
||||
@ -5270,18 +5406,23 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
width: 150px;
|
||||
min-width: 150px;
|
||||
|
||||
@media all and (max-width: 920px) {
|
||||
@media all and (max-width: 1000px) {
|
||||
width: 90px;
|
||||
min-width: 90px;
|
||||
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 460px) {
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
ul, ol {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -5354,6 +5495,7 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
width: 254px;
|
||||
min-width: 254px;
|
||||
margin-left: 8px;
|
||||
position: relative;
|
||||
|
||||
@media all and (max-width: 1279px) {
|
||||
display: none;
|
||||
@ -5422,6 +5564,8 @@ main .dropdown_blocks_list .dropdown_block .block_body {
|
||||
|
||||
&.consultation {
|
||||
padding: 20px 4px 0 4px;
|
||||
position: sticky;
|
||||
top: 110px;
|
||||
|
||||
|
||||
p {
|
||||
|
||||
113
local/users_to_clients.php
Normal file
@ -0,0 +1,113 @@
|
||||
<?
|
||||
//$_SERVER["DOCUMENT_ROOT"] = __DIR__;
|
||||
define('STOP_STATISTICS', true);
|
||||
define('NO_KEEP_STATISTIC', 'Y');
|
||||
define('NO_AGENT_STATISTIC', 'Y');
|
||||
define('DisableEventsCheck', true);
|
||||
define('BX_SECURITY_SHOW_MESSAGE', true);
|
||||
define('NOT_CHECK_PERMISSIONS', true);
|
||||
|
||||
$_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__, 1);
|
||||
require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');
|
||||
CModule::IncludeModule('iblock');
|
||||
|
||||
$users_res = CUser::GetList([ 'sort' => 'asc' ], 'desc', [], [ "SELECT" => [ "UF_*" ] ]);
|
||||
while($user = $users_res->Fetch())
|
||||
{
|
||||
print "user_id = ".$user['ID']."\n";
|
||||
|
||||
if($user['ID'] != 1)
|
||||
{
|
||||
$user_properties = [
|
||||
'COMPANY' => $user['UF_ORG_TITLE'],
|
||||
'INN' => $user['UF_INN'],
|
||||
'KPP' => $user['UF_KPP'],
|
||||
'OGRN' => $user['UF_UF_OGRN'],
|
||||
'ADMINS' => [ $user['ID'] ],
|
||||
'USERS' => [ $user['ID'] ],
|
||||
];
|
||||
|
||||
$ar_new_client = [
|
||||
'IBLOCK_ID' => IBLOCK_ID_CLIENTS,
|
||||
'NAME' => $user['UF_ORG_TITLE'],
|
||||
'CODE' => $user['XML_ID'],
|
||||
'PROPERTY_VALUES' => $user_properties,
|
||||
'ACTIVE' => 'Y', // активен
|
||||
];
|
||||
|
||||
$new_client = new CIBlockElement;
|
||||
if($new_client_id = $new_client->Add($ar_new_client))
|
||||
{
|
||||
print "New ID: ".$new_client_id."\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Error: ".$new_client->LAST_ERROR."\n\n";
|
||||
print "EXISTED USER: \n\n";
|
||||
|
||||
$existed_client_res = CIBlockElement::GetList([ 'id' => 'desc' ], [ 'IBLOCK_ID' => IBLOCK_ID_CLIENTS, 'CODE' => $user['XML_ID'] ], false, []);
|
||||
while ($existed_client_element = $existed_client_res->GetNextElement())
|
||||
{
|
||||
$existed_client_record = $existed_client_element->GetFields();
|
||||
$existed_client_record['PROPERTIES'] = $existed_client_element->GetProperties();
|
||||
|
||||
$admins = $existed_client_record['PROPERTIES']['ADMINS']['VALUE'];
|
||||
$users = $existed_client_record['PROPERTIES']['USERS']['VALUE'];
|
||||
|
||||
array_push($admins, $user['ID']);
|
||||
array_push($users, $user['ID']);
|
||||
|
||||
$admins = array_unique($admins);
|
||||
$users = array_unique($users);
|
||||
|
||||
$updated_fields = [
|
||||
'PROPERTY_VALUES' => [
|
||||
'ADMINS' => $admins,
|
||||
'USERS' => $users,
|
||||
]
|
||||
];
|
||||
|
||||
CIBlockElement::SetPropertyValuesEx($existed_client_record['ID'], IBLOCK_ID_CLIENTS, [ 'ADMINS' => $admins, 'USERS' => $users, ]);
|
||||
print $existed_client_record['CODE']." UPDATED\n\n";
|
||||
|
||||
/*
|
||||
if($ai = array_search(20, $admins))
|
||||
{
|
||||
array_splice($admins, $ai, 1);
|
||||
}
|
||||
|
||||
if($ai = array_search(20, $users))
|
||||
{
|
||||
array_splice($users, $ai, 1);
|
||||
}
|
||||
*/
|
||||
/*
|
||||
$updated_client = new CIBlockElement;
|
||||
if($updated_client_result = $updated_client->Update($existed_client_record['ID'], $updated_fields))
|
||||
{
|
||||
print "UPDATED\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "UPDATE ERROR: ".$updated_client->LAST_ERROR."\n\n";
|
||||
}
|
||||
*/
|
||||
|
||||
//print_r($existed_client_record);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
$rules_res = CIBlockElement::GetList([ 'id' => 'desc' ], [ 'PROPERTY_USER.' => '' ], false, $options);
|
||||
while ($rules_ob_element = $rules_res->GetNextElement())
|
||||
{
|
||||
$rules_ar_res = $rules_ob_element->GetFields();
|
||||
$rules_ar_res['PROPERTIES'] = $rules_ob_element->GetProperties();
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
die();
|
||||
|
||||
?>
|
||||