Current Path : /var/www/html/clients/amz.e-nk.ru/aukcion/ |
Current File : /var/www/html/clients/amz.e-nk.ru/aukcion/detail2.php |
<? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); $APPLICATION->SetTitle("Подробнее");?> <?php $id=intval($_GET[id]); $BID = 44; $IBLOCK_TYPE = ""; $arrPROPERTY_CODE = array ("naim", "name_org", "CONDITION", "predmet"); $CACHE_TIME = 0; $CACHE_ID = SITE_ID."|".$APPLICATION->GetCurPage()."|".md5(serialize($arParams))."|".$USER->GetGroups(); $NAME_NAV = "Конкурсы"; if(CModule::IncludeModule("iblock") && ($arIBlock = GetIBlock($BID, $IBLOCK_TYPE))){ $items=GetIBlockElement($id); ?> <h1><?= $items[NAME]?></h1> <div style="background-color: black;" > <table width="100%" cellspacing="1" cellpadding="1" border="0"> <tbody> <?php //echo $items[PROPERTIES][name_org]['~DEFAULT_VALUE']; foreach ($items[PROPERTIES] as $prop) { echo"<tr><td class=tableheadtext style=\"background-color: white; margin:1px; padding:3px;\">$prop[NAME]</td>"; if ($prop[PROPERTY_TYPE ]== "F" AND $prop[VALUE] <> "") { $path="../".CFile::GetPath($prop[VALUE]); $filesize=round(filesize($path)/1024,2); echo "<td class=tableheadtext style=\"background-color: white; margin:1px; padding:3px;\"><a href=$path title=\"$filesize кб\"><img src=/images/icons/zip.jpg border=0></a></td>"; } else { if ($prop[VALUE] == ""){$prop[VALUE]=" ";} echo "<td class=tableheadtext style=\"background-color: white; margin:1px; padding:3px;\">$prop[VALUE]</td>"; } echo "</tr>"; } } ?> </tbody></table></div> <center><a href=\"javascript:void(0);\" OnClick=\"history.back();\" style=\"font-size:12px;font-family:arial,tahoma\">Вернуться назад</a></center> <? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>