//Pictures display method
if($arPart['IMG_ZOOM']=='Y'){
$Zoom=$arPart['IMG_SRC']; $ZClass='cbx_imgs';
$PicText=''; $Target='';
}else{
$Zoom='https://www.google.com/search?q='.$arPart['BRAND'].'+'.$arPart['ARTICLE'].'&tbm=isch'; $ZClass='';
$PicText=Lng('Search_photo_in_google',1,0); $Target='target="_blank"';
}
if(TDM_ISADMIN AND $arPart['LINK_CODE']!=''){$BrandClass='linked';
$BrLink = '<a href="/'.TDM_ROOT_DIR.'/admin/mbedit.php?selecttable=Y&table=TDM_LINKS&LINK='.$arPart['LINK_LEFT_AKEY'].'" target="_blank" class="ttip link" title="'.$arPart['LINK_INFO'].'<br>'.$arPart['LINK_CODE'].'"></a>';
}else{$BrandClass=''; $BrLink='';}
if ($Cnt==1) {echo '<tr><td colspan="8"><h3 class="head_partslist">Вы запросили:</h3></td></tr>';}
/*elseif ($arPart['KIND'] == "1") {
if ($k1 === 1) {
$arHeading = '<tr><td colspan="5"><h3>Оригинальные запчасти от других производителей:</h3></td></tr>';
} else {
$arHeading = "";
}
$k1++;
}*/elseif ($arPart['KIND'] == "3") {
if ($k3 === 1) {
$arHeading = '<tr><td colspan="8"><h3 class="head_partslist">Оригинальные запчасти:</h3></td></tr>';
} else {
$arHeading = "";
}
$k3++;
} elseif ($arPart['KIND'] == "4" || $arPart['KIND'] == "1" || $arPart['KIND'] == "2") {
if ($k4 === 1) {
$arHeading = '<tr><td colspan="8"><h3 class="head_partslist">Предложения по заменителям:</h3></td></tr>';
} else {
$arHeading = "";
}
$k4++;
} else {
$arHeading = "";
}
?>
<?=$arHeading?>
<tr class="cols">
<td>
<?if(is_array($arPart["IMG_ADDITIONAL"])){
foreach($arPart["IMG_ADDITIONAL"] as $AddImgSrc){ $AddF++;?><a href="<?=$AddImgSrc?>" class="cbx_imgs" rel="img<?=$arPart['PKEY']?>" title="<?=$arPart['BRAND']?> <?=$arPart['ARTICLE']?>"></a><?}
}?>
<a href="<?=$Zoom?>" rel="img<?=$arPart['PKEY']?>"><img src="<?=$arPart['IMG_SRC']?>" class="img-responsive"></a>
</td>
<td class="tdbrand">
<?=$arPart['BRAND']?>
<?if($arPart['KIND']>0){?><span style="font-size:11px;"><?=TDMPrintArtKinde($arPart['KIND']);?></span><br><?}?>
<?if($arPart['SUPERSEDED']!=''){?><span style="color:#a92828;" title="<?=Lng('Superseded',1,0)?> <?=Lng('Article',2,0)?>"><?=$arPart['SUPERSEDED']?></span><?}?><br>
<a href="/autoparts/part/<?=$arPart['BKEY']?>-<?=$arPart['AKEY']?>-<?=$arPart['AID']?>">Подробнее</a>
</td>
<td class="article <?if(TDM_ISADMIN){?>ttip" title="BKEY: <?=$arPart['BKEY']?><br>AKEY: <?=$arPart['AKEY']?><br>ID:<?=$arPart['AID']?><?}?>">
<?=$arPart['ARTICLE']?>
</td>
<td width="40%">
<b class="name" title="TecDoc name: <?=$arPart['TD_NAME']?>"><?=$arPart['NAME']?></b><?if($arPart["PROPS_COUNT"]>0){?>
<br><a class="moreprops" href="javascript:void(0)" onClick="ShowMoreProps(this,'props<?=$arPart['PKEY']?>')">Узнать свойства</a>
<?}?>
<div class="criteria"><?=$arPart['CRITERIA']?></div>
<div class="itemprops" id="props<?=$arPart['PKEY']?>" style="display:none;">
<?if($arPart["PROPS_COUNT"]>0){
foreach($arPart['PROPS'] as $PName=>$PValue){?>
<span class="criteria"><?=$PName?><?if($PValue!=''){?>: <?=$PValue?><?}else{?>.<?}?></span><br>
<?}
}?>
</div>
</td>