Код |
---|
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); ?> <? //echo "<pre>Template arParams: "; print_r($arParams); echo "</pre>"; //echo "<pre>Template arResult: "; print_r($arResult); echo "</pre>"; //exit(); ?> <?if (count($arResult["ERRORS"])):?> <?=ShowError(implode("<br />", $arResult["ERRORS"]))?> <?endif?> <?if (strlen($arResult["MESSAGE"]) > 0):?> <?=ShowNote($arResult["MESSAGE"])?> <?endif?> <form name="iblock_add" action="<?=POST_FORM_ACTION_URI?>" method="post" enctype="multipart/form-data"> <?=bitrix_sessid_post()?> <?if ($arParams["MAX_FILE_SIZE"] > 0):?><input type="hidden" name="MAX_FILE_SIZE" value="<?=$arParams["MAX_FILE_SIZE"]?>" /><?endif?> <table class="data-table"> <thead> <tr> <td colspan="2"> </td> </tr> </thead> <?if (is_array($arResult["PROPERTY_LIST"]) && count($arResult["PROPERTY_LIST"] > 0)):?> <tbody> <?foreach ($arResult["PROPERTY_LIST"] as $propertyID):?> <tr> <td><?if (intval($propertyID) > 0):?><?=$arResult["PROPERTY_LIST_FULL"][$propertyID]["NAME"]?><?else:?><?=!empty($arParams["CUSTOM_TITLE_".$propertyID]) ? $arParams["CUSTOM_TITLE_".$propertyID] : GetMessage("IBLOCK_FIELD_".$propertyID)?><?endif?><?if(in_array($propertyID, $arResult["PROPERTY_REQUIRED"])):?><span class="starrequired">*</span><?endif?></td> <td> <? //echo "<pre>"; print_r($arResult["PROPERTY_LIST_FULL"]); echo "</pre>"; if (intval($propertyID) > 0) { if ( $arResult["PROPERTY_LIST_FULL"][$propertyID]["PROPERTY_TYPE"] == "T" && $arResult["PROPERTY_LIST_FULL"][$propertyID]["ROW_COUNT"] == "1" ) $arResult["PROPERTY_LIST_FULL"][$propertyID]["PROPERTY_TYPE"] = "S"; elseif ( ( $arResult["PROPERTY_LIST_FULL"][$propertyID]["PROPERTY_TYPE"] == "S" || $arResult["PROPERTY_LIST_FULL"][$propertyID]["PROPERTY_TYPE"] == "N" ) && $arResult["PROPERTY_LIST_FULL"][$propertyID]["ROW_COUNT"] > "1" ) $arResult["PROPERTY_LIST_FULL"][$propertyID]["PROPERTY_TYPE"] = "T"; } elseif (($propertyID == "TAGS") && CModule::IncludeModule('search')) $arResult["PROPERTY_LIST_FULL"][$propertyID]["PROPERTY_TYPE"] = "TAGS"; if ($arResult["PROPERTY_LIST_FULL"][$propertyID]["MULTIPLE"] == "Y") { $inputNum = ($arParams["ID"] > 0 || count($arResult["ERRO |
Код |
---|
<?$APPLICATION->IncludeComponent("bitrix:news", "works", Array( "IBLOCK_TYPE" => "works", "IBLOCK_ID" => "works", "NEWS_COUNT" => "10", "FILTER_FIELD_CODE" => array( 0 => "", 1 => "", ), "FILTER_PROPERTY_CODE" => array( 0 => "OTRASL", 1 => "PLATFORM", ), "LIST_FIELD_CODE" => array( 0 => "", 1 => "", ), "LIST_PROPERTY_CODE" => array( 0 => "VERSION", 1 => "VERSION_2", 2 => "CLIENT", 3 => "PRODUCT", 4 => "DATE", 5 => "OTRASL", 6 => "COMPAT", ), "DETAIL_FIELD_CODE" => array( 0 => "", 1 => "", ), "DETAIL_PROPERTY_CODE" => array( 0 => "VERSION", 1 => "VERSION_2", 2 => "CLIENT", 3 => "PRODUCT", 4 => "DATE", 5 => "OTRASL", 6 => "COMPAT", 7 => "DESCR", 8 => "PLACE", 9 => "COUNT", ), ) ); |