<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<div class="catalog-top">
<table cellpadding="0" cellspacing="0" border="1px">
	<tr>
		<th width="300px"><?=GetMessage("CATALOG_NAME")?></th>
		<th><?=GetMessage("CATALOG_PRICE")?></th>
		<th><?=GetMessage("CATALOG_OPERATION")?></th>
	</tr>
	<?foreach($arResult["ROWS"] as $arItems){?>
	<?foreach($arItems as $arElement){?>
	<tr>
		<td width="300px">
		<a href="<?=$arElement["DETAIL_PAGE_URL"]?>"><?=$arElement["NAME"]?></a>
		</td>
		
		<td>
		<?foreach($arElement["PRICES"] as $code=>$arPrice){?>
			<?if($arPrice["CAN_ACCESS"]){?>
					<?if($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]):?>
						<s><?=$arPrice["PRINT_VALUE"]?></s> <span class="catalog-price"><?=$arPrice["PRINT_DISCOUNT_VALUE"]?></span>
					<?else:?><span class="catalog-price"><?=$arPrice["PRINT_VALUE"]?></span><?endif;?>
					</p>
			<?}?>
		<?}?>
		</td>
		
		<td>
			<a href="<?echo $arElement["ADD_URL"]?>" rel="nofollow"><?echo GetMessage("CATALOG_ADD")?></a>
		</td>
	</tr>
	<?}?>
	<?}?>	
</table>

</div>
