Current Path : /var/www/html/clients/amz.e-nk.ru/zkh/price/ |
Current File : /var/www/html/clients/amz.e-nk.ru/zkh/price/index.php |
<? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); $APPLICATION->SetTitle("Все Цены"); ?><P> <? if (CModule::IncludeModule("iblock")) { echo " <a href=\"/zkh/price/archive.php\" class='chain'>Архив котировок цен</a><br> <TABLE class=text cellSpacing=1 cellPadding=3 width=\"100%\" border=0> <tr> <TD class=tablehead><B><FONT class=tableheadtext>Название</FONT></B></TD> <TD class=tablehead align=middle style = \"width : 100px;\"><B><FONT class=tableheadtext>Подробнее</FONT></B></TD> </TR> "; $sections=GetIBlockElementList(56); while($obsect=$sections->GetNext()) { $items=GetiBlockElement($obsect[ID]); $condition=$items[PROPERTIES][condition][VALUE_ENUM_ID]; if($condition=='122'||$condition=='121') { echo "<tr> <td valign=\"top\" class=tablebody nowrap><span style=\"font-size:12px;font-weight:bold;color:#2f5367\"> $obsect[NAME] </span> </td> <Td class=tablebody vAlign=top align=middle rowspan=3> "; $path="../../".CFile::GetPath($items[PROPERTIES][FILE][VALUE]); if($items[PROPERTIES][FILE][VALUE]!="") { $path="../../".CFile::GetPath($items[PROPERTIES][FILE][VALUE]); $filesize=round(filesize($path)/1024,2); echo "<a href=$path title=\"$filesize кб\"><img src=/images/icons/zip.jpg border=0></a>"; } echo "</td> </tr>"; echo "<tr><td class=tablebody><FONT class=smalltextblack> Состояние: "; if ($condition=='121') { print "Котировка цен перенесена"; } elseif ($condition=='122') { print "Прием котировочных заявок"; } echo "</td> </tr><tr> <td class=tablebody><FONT class=smalltextblack> Срок приема заявок: ".$items[PROPERTIES][srok][VALUE]; echo "</td></tr><tr><td colspan=2 height=2 style=\"font-size:1px;\"> </td></tr>"; } // if condition etc. } echo "</table>"; } ?> </P><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>