<?$sklad_mark = - ($arElement["PRICES"]["sklad"]["DISCOUNT_VALUE"] - $arElement["PRICES"]["sklad"]["VALUE"]);?>
<?$zakaz_mark = - ($arElement["PRICES"]["zakaz"]["DISCOUNT_VALUE"] - $arElement["PRICES"]["zakaz"]["VALUE"]);?>
<?$sklad = ($arElement["PRICES"]["sklad"]["VALUE"] + $sklad_mark);?>
<?$zakaz = ($arElement["PRICES"]["zakaz"]["VALUE"] + $zakaz_mark);?>
<td>
<?if ( ($arElement["PRICES"]["sklad"]["VALUE"]) > 0):?>
<?echo ($arElement["PRICES"]["roznich"]["PRINT_VALUE"]);?>
<td>
<?if (($arElement["PRICES"]["sklad"]["VALUE"]) > ($arElement["PRICES"]["sale"]["VALUE"])):?>
<?echo ($arElement["PRICES"]["sale"]["PRINT_VALUE"]);?>
<td>
<b><?=GetMessage("SALE");?></b>
</td>
<?else:?>
<?if (($arElement["PRICES"]["sklad"]["VALUE"]) > ($arElement["PRICES"]["special"]["VALUE"])):?>
<b><?echo ($arElement["PRICES"]["special"]["PRINT_VALUE"]);?></b>
<td>
<?=GetMessage("SPECIAL");?>
</td>
<?else:?>
<?echo number_format($sklad, 2, ',', ' ');?><?=GetMessage("RUB");?>
<td>
<?echo round(($arElement["PRICES"]["roznich"]["VALUE"]-$sklad)/($arElement["PRICES"]["roznich"]["VALUE"]/100));?><?print_r("%");?>
</td>
<?endif;?>
<?endif;?>
</td>
<?else:?>
<?if (($arElement["PRICES"]["zakaz"]["VALUE"]) > 0):?>
<?echo ($arElement["PRICES"]["roznich"]["PRINT_VALUE"]);?>
<td>
<?if (($arElement["PRICES"]["zakaz"]["VALUE"]) > ($arElement["PRICES"]["sale"]["VALUE"])):?>
<?echo ($arElement["PRICES"]["sale"]["PRINT_VALUE"]);?>
<td>
<?=GetMessage("SALE");?>
& |