if strlen trim arResult DATA FLAT_PRICE_PER_METR tr th th td arResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?if (strlen(trim($arResult["DATA"]["FLAT_PRICE_PER_METR"])) > 0):?>
<tr>
<th></th>
<td><?=$arResult["DATA"]["FLAT_PRICE_PER_METR"]?> <?=GetMessage("ADS_APARTMENT_PRICE_PER_SQ_METER_".$arResult["CURRENCY_TYPE"])?></td>
</tr>
<?endif;?>
<?if (strlen(trim($arResult["DATA"]["FLAT_SPACE_TOTAL"])) > 0):?>
<tr>
<th><?=GetMessage("ADS_APARTMENT_ALL_AREA")?>:</th>
<td><?=$arResult["DATA"]["FLAT_SPACE_TOTAL"]?> <?=GetMessage("ADS_AREA_SQUARE_METERS")?></td>
</tr>
<?endif;?>
<?if (strlen(trim($arResult["DATA"]["FLAT_SPACE_LIVING"])) > 0):?>
<tr>
<th>&#151; <?=GetMessage("ADS_APARTMENT_LIVE_AREA")?>:</th>
<td><?=$arResult["DATA"]["FLAT_SPACE_LIVING"]?> <?=GetMessage("ADS_AREA_SQUARE_METERS")?></td>
</tr>
<?endif;?>
<?if (strlen(trim($arResult["DATA"]["FLAT_SPACE_KITCHEN"])) > 0):?>
<tr>
<th>&#151; <?=GetMessage("ADS_APARTMEBT_KITCHEN_AREA")?>:</th>
<td><?=$arResult["DATA"]["FLAT_SPACE_KITCHEN"]?> <?=GetMessage("ADS_AREA_SQUARE_METERS")?></td>
</tr>
<?endif;?>
<?if (strlen(trim($arResult["DATA"]["F_F"])) > 0):?>
<tr>
<th><?=GetMessage("ADS_APARTMENT_FLOOR")?>:</th>
<td><?=$arResult["DATA"]["F_F"]?><?if($arResult["DATA"]["H_F"]){?> (<?=GetMessage("ADS_PREPENDS_FROM")?> <?=$arResult["DATA"]["H_F"]?>)<?}?></td>
</tr>
<?endif;?>