<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<div class="news-list">
<?if($arParams["DISPLAY_TOP_PAGER"]):?>
<?=$arResult["NAV_STRING"]?><br />
<?endif;?>
<table class="data-table">
<thead>
<?
//вывод заголовков таблицы
$i=0;
foreach($arResult["ITEMS"] as $arItem)
{
If($i<1){
?>
<tr>
<?foreach($arItem["DISPLAY_PROPERTIES"] as $pid=>$arProperty){?>
<th>
<?=$arProperty["NAME"]?>
</th>
<?}?>
</tr>
<?
}
$i++;
}
?>
</thead>
<tbody>
<?
//вывод значений
foreach($arResult["ITEMS"] as $arItem)
{
$this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));
$this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
?>
<tr class="news-item" id="<?=$this->GetEditAreaId($arItem['ID']);?>">
<?foreach($arItem["DISPLAY_PROPERTIES"] as $pid=>$arProperty){?>
<td>
<?if(is_array($arProperty["DISPLAY_VALUE"])){?>
<?=implode(" / ", $arProperty["DISPLAY_VALUE"]);?>
<?}else{?>
<?=$arProperty["DISPLAY_VALUE"];?>
<?}?>
</td>
<?}?>
</tr>
<?}?>
</tbody>
</table>
<?if($arParams["DISPLAY_BOTTOM_PAGER"]){?>
<br /><?=$arResult["NAV_STRING"]?>
<?}?>
</div>
|