<? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); ?>
<?
if (CModule::IncludeModule('iblock')):
$res = CIBlockElement::GetList(Array(), Array(
"IBLOCK_TYPE" => "catalog",
"IBLOCK_ID" => "43",
));
if ($ob = $res->GetNextElement()):
$arIBlockElement = $ob->GetFields();
$props = $ob->GetProperties();
$APPLICATION->SetTitle($arIBlockElement["NAME"]);
?>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<?php if (isset($props["MATRIX_TYPE"]["NAME"]) && isset($props["MATRIX_TYPE"]["VALUE"] )) { ?>
<tr valign="top">
<td width="40%"> # <? echo $props["MATRIX_TYPE"]["NAME"];?>: </td>
<td width="60%"><b><? echo $props["MATRIX_TYPE"]["VALUE"];?></b></td>
</tr>
<?php } ?>
</table>
<? else: ?>
<? echo ShowError("Элемент не найден"); ?>
<? endif; ?>
<? else:?>
<? echo ShowError("Модуль инфоблоков не установлен"); ?>
<? endif; ?>
<? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php"); ?> |