<?$LINE_ELEMENT_COUNT=2;?>
<table cellpadding="0" cellspacing="0" border="0">
<?foreach($arResult["ITEMS"] as $cell=>$arElement):?>
<?if($cell%$LINE_ELEMENT_COUNT == 0):?>
<tr>
<?endif;?>
<td valign="top" width="<?=round(100/$LINE_ELEMENT_COUNT)?>%">
Здесь распологается вывод одной новости.
</td>
<?$cell++;
if($cell%$LINE_ELEMENT_COUNT == 0):?>
</tr>
<?endif?>
<?endforeach; // foreach($arResult["ITEMS"] as $arElement):?>
<?while(($cell++)%$LINE_ELEMENT_COUNT != 0):?>
<td> </td>
<?endwhile;?>
</table>
|