but == proverka
это как вообще ?<div class="style-item_count">
<div class="style-count-minus" onClick="this.parentNode.querySelector('.style-count-number').innerText = parseInt(this.parentNode.querySelector('.style-count-number').innerText, 10) - 1 + 'шт';">
-
</div>
<div class="style-count-number">
1шт
</div>
<div class="style-count-plus" onClick="this.parentNode.querySelector('.style-count-number').innerText = parseInt(this.parentNode.querySelector('.style-count-number').innerText, 10) + 1 + 'шт';">
+
</div>
</div>
<?
$rez=count($am);
if($rez>0) {
if($rez>1) {
?>
<div id="captionleft"><?=$arrow_left?></div>
<div id="captionright"><?=$arrow_right?></div>
<?
} else {
};
};