| Current Path : /var/www/homesaver/www/local/templates/aspro_next/ |
| Current File : /var/www/homesaver/www/local/templates/aspro_next/footer.php |
<?CNext::checkRestartBuffer();?>
<?IncludeTemplateLangFile(__FILE__);?>
<?if(!$isIndex):?>
<?if($isBlog):?>
</div> <?// class=col-md-9 col-sm-9 col-xs-8 content-md?>
<div class="col-md-3 col-sm-3 hidden-xs hidden-sm right-menu-md">
<div class="sidearea">
<?$APPLICATION->ShowViewContent('under_sidebar_content');?>
<?CNext::get_banners_position('SIDE', 'Y');?>
<?$APPLICATION->IncludeComponent("bitrix:main.include", "", array("AREA_FILE_SHOW" => "sect", "AREA_FILE_SUFFIX" => "sidebar", "AREA_FILE_RECURSIVE" => "Y"), false);?>
</div>
</div>
</div><?endif;?>
<?if($isHideLeftBlock):?>
</div> <?// .maxwidth-theme?>
<?endif;?>
</div> <?// .container?>
<?else:?>
<?CNext::ShowPageType('indexblocks');?>
<?endif;?>
<?CNext::get_banners_position('CONTENT_BOTTOM');?>
</div> <?// .middle?>
<?//if(!$isHideLeftBlock && !$isBlog):?>
<?if(($isIndex && $isShowIndexLeftBlock) || (!$isIndex && !$isHideLeftBlock) && !$isBlog):?>
</div> <?// .right_block?>
<?if($APPLICATION->GetProperty("HIDE_LEFT_BLOCK") != "Y" && !defined("ERROR_404")):?>
<div class="left_block">
<?CNext::ShowPageType('left_block');?>
</div>
<?endif;?>
<?endif;?>
<?if($isIndex):?>
</div>
<?elseif(!$isWidePage):?>
</div> <?// .wrapper_inner?>
<?endif;?>
</div> <?// #content?>
<?CNext::get_banners_position('FOOTER');?>
</div><?// .wrapper?>
<footer id="footer">
<?if($APPLICATION->GetProperty("viewed_show") == "Y" || $is404):?>
<?$APPLICATION->IncludeComponent(
"bitrix:main.include",
"basket",
array(
"COMPONENT_TEMPLATE" => "basket",
"PATH" => SITE_DIR."include/footer/comp_viewed.php",
"AREA_FILE_SHOW" => "file",
"AREA_FILE_SUFFIX" => "",
"AREA_FILE_RECURSIVE" => "Y",
"EDIT_TEMPLATE" => "standard.php",
"PRICE_CODE" => array(
0 => "BASE",
),
"STORES" => array(
0 => "",
1 => "",
),
"BIG_DATA_RCM_TYPE" => "bestsell"
),
false
);?>
<?endif;?>
<?CNext::ShowPageType('footer');?>
</footer>
<div class="bx_areas">
<?CNext::ShowPageType('bottom_counter');?>
</div>
<?CNext::ShowPageType('search_title_component');?>
<?CNext::setFooterTitle();
CNext::showFooterBasket();?>
<link href="https://cdn.jsdelivr.net/npm/suggestions-jquery@20.3.0/dist/css/suggestions.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/suggestions-jquery@20.3.0/dist/js/jquery.suggestions.min.js"></script>
<script>
function neededId () {
//Инфа о компании по ИНН
$("#soa-property-10").suggestions({
token: "d7b91d4a8c828c8b9cc0dac436033318561f9e99",
type: "PARTY",
onSelect: function(suggestions) {
let inputVal = suggestions['data']
$('#soa-property-10').val(inputVal.inn)
$('#soa-property-11').val(inputVal.kpp)
$('#soa-property-23').val(inputVal.ogrn)
$('#soa-property-8').val(suggestions.value)
$('#soa-property-9').val(inputVal['address'].value)
$('#soa-property-20').val(inputVal['management'].name)
$('#soa-property-21').val(inputVal['management'].post)
}
});
//Адрес доставки
$("#soa-property-19").suggestions({
token: "d7b91d4a8c828c8b9cc0dac436033318561f9e99",
type: "ADDRESS",
});
}
//Проверка на наличие необходимого id
let dadata = false;
setInterval(function() {
var nessId = $("input").is("#soa-property-10");
if (nessId === true && dadata === false){
neededId();
dadata = true;
}
if (nessId === false){
dadata = false;
}
}, 500);
</script>
</body>
</html>