Почему не работает? <a href="<?=$arElement["DISPLAY_PROPERTIES"]['DOCS']['FILE_VALUE']['SRC'] ?>">
| Код |
|---|
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?foreach($arResult["SECTIONS"] as $arSection):?>
<div class="inner_tables">
<div class="inner_tables_block">
<div class="int_name in_minus">
<div class="intn_left">
<p><a href="<?=$arSection["SECTION_PAGE_URL"]?>"><?=$arSection["NAME"]?></a></p>
</div>
<div class="intn_right"><a class="in_minus" href="#"></a>
</div>
</div>
<table width="100%" cellspacing="0" cellpadding="0">
<tr style="display: none; ">
<?
$cell = 0;
foreach($arSection["ITEMS"] as $arElement):
?>
<?
$this->AddEditAction($arElement['ID'], $arElement['EDIT_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_EDIT"));
$this->AddDeleteAction($arElement['ID'], $arElement['DELETE_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BCST_ELEMENT_DELETE_CONFIRM')));
?>
<td valign="top" width="<?=round(100/$arParams["LINE_ELEMENT_COUNT"])?>%" id="<?=$this->GetEditAreaId($arElement['ID']);?>">
<a href="<?=$arElement["DISPLAY_PROPERTIES"]['DOCS']['FILE_VALUE']['SRC'] ?>"><?=$arElement["NAME"]?></a>
<?foreach($arElement["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
<small><?=$arProperty["NAME"]?>: <?
if(is_array($arProperty["DISPLAY_VALUE"]))
echo implode(" / ", $arProperty["DISPLAY_VALUE"]);
else
echo $arProperty["DISPLAY_VALUE"];?></small>
<?endforeach?>
</td>
<?
$cell++;
if($cell>=$arParams["LINE_ELEMENT_COUNT"]):
$cell = 0;
?>
</tr>
<tr style="display: none; ">
<?
endif; // if($n%$LINE_ELEMENT_COUNT == 0):
endforeach; // foreach($arResult["ITEMS"] as $arElement):
while ($cell<$arParams["LINE_ELEMENT_COUNT"]):
$cell++;
?><?
endwhile;
?>
</tr>
</table>
</div>
</div>
<?endforeach?> |
Спасибо