コード例 #1
0
 /**
  * @param FieldType $fieldType
  * @param string $callbackFunctionName
  * @param mixed $value
  * @return string
  */
 public static function renderControlOptions(FieldType $fieldType, $callbackFunctionName, $value)
 {
     if (is_array($value)) {
         reset($value);
         $valueTmp = (int) current($value);
     } else {
         $valueTmp = (int) $value;
     }
     $iblockId = 0;
     if ($valueTmp > 0) {
         $elementIterator = \CIBlockElement::getList(array(), array('ID' => $valueTmp), false, false, array('ID', 'IBLOCK_ID'));
         if ($element = $elementIterator->fetch()) {
             $iblockId = $element['IBLOCK_ID'];
         }
     }
     if ($iblockId <= 0 && (int) $fieldType->getOptions() > 0) {
         $iblockId = (int) $fieldType->getOptions();
     }
     $defaultIBlockId = 0;
     $result = '<select id="WFSFormOptionsX" onchange="' . htmlspecialcharsbx($callbackFunctionName) . '(this.options[this.selectedIndex].value)">';
     $iblockTypeIterator = \CIBlockParameters::getIBlockTypes();
     foreach ($iblockTypeIterator as $iblockTypeId => $iblockTypeName) {
         $result .= '<optgroup label="' . htmlspecialcharsbx($iblockTypeName) . '">';
         $iblockIterator = \CIBlock::getList(array('SORT' => 'ASC'), array('TYPE' => $iblockTypeId, 'ACTIVE' => 'Y'));
         while ($iblock = $iblockIterator->fetch()) {
             $result .= '<option value="' . $iblock['ID'] . '"' . ($iblock['ID'] == $iblockId ? ' selected' : '') . '>' . htmlspecialcharsbx($iblock['NAME']) . '</option>';
             if ($defaultIBlockId <= 0 || $iblock['ID'] == $iblockId) {
                 $defaultIBlockId = $iblock['ID'];
             }
         }
         $result .= '</optgroup>';
     }
     $result .= '</select><!--__defaultOptionsValue:' . $defaultIBlockId . '--><!--__modifyOptionsPromt:' . Loc::getMessage('UTP_ELIST_DOCUMENT_MOPROMT') . '-->';
     $fieldType->setOptions($defaultIBlockId);
     return $result;
 }
コード例 #2
0
ファイル: .parameters.php プロジェクト: Satariall/izurit
$arPrice = array();
if ($boolCatalog) {
    $arSort = array_merge($arSort, CCatalogIBlockParameters::GetCatalogSortFields());
    $rsPrice = CCatalogGroup::GetList($v1 = "sort", $v2 = "asc");
    while ($arr = $rsPrice->Fetch()) {
        $arPrice[$arr["NAME"]] = "[" . $arr["NAME"] . "] " . $arr["NAME_LANG"];
    }
} else {
    $arPrice = $arProperty_N;
}
$arAscDesc = array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC"));
$arProperty_UF = array();
$arUserFields = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("IBLOCK_" . $arCurrentValues["IBLOCK_ID"] . "_SECTION");
foreach ($arUserFields as $FIELD_NAME => $arUserField) {
    $arProperty_UF[$FIELD_NAME] = $arUserField["LIST_COLUMN_LABEL"] ? $arUserField["LIST_COLUMN_LABEL"] : $FIELD_NAME;
}
$arComponentParameters = array("GROUPS" => array("PRICES" => array("NAME" => GetMessage("IBLOCK_PRICES"))), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock, "REFRESH" => "Y"), "SECTION_FIELDS" => CIBlockParameters::GetSectionFieldCode(GetMessage("CP_BCST_SECTION_FIELDS"), "DATA_SOURCE", array()), "SECTION_USER_FIELDS" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCST_SECTION_USER_FIELDS"), "TYPE" => "LIST", "MULTIPLE" => "Y", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arProperty_UF), "SECTION_SORT_FIELD" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => CIBlockParameters::GetSectionSortFields(array('SORT', 'TIMESTAMP_X', 'NAME', 'ID', 'DEPTH_LEVEL'), array('KEY_LOWERCASE' => 'Y')), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "sort"), "SECTION_SORT_ORDER" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "asc"), "ELEMENT_SORT_FIELD" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => $arSort, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "sort"), "ELEMENT_SORT_ORDER" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "asc", "ADDITIONAL_VALUES" => "Y"), "ELEMENT_SORT_FIELD2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD2"), "TYPE" => "LIST", "VALUES" => $arSort, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "id"), "ELEMENT_SORT_ORDER2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER2"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "desc", "ADDITIONAL_VALUES" => "Y"), "FILTER_NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_FILTER_NAME_IN"), "TYPE" => "STRING", "DEFAULT" => "arrFilter"), "SECTION_URL" => CIBlockParameters::GetPathTemplateParam("SECTION", "SECTION_URL", GetMessage("IBLOCK_SECTION_URL"), "", "URL_TEMPLATES"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("IBLOCK_DETAIL_URL"), "", "URL_TEMPLATES"), "BASKET_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_BASKET_URL"), "TYPE" => "STRING", "DEFAULT" => "/personal/basket.php"), "ACTION_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_ACTION_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "action"), "PRODUCT_ID_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_PRODUCT_ID_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "id"), "PRODUCT_QUANTITY_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("CP_BCST_PRODUCT_QUANTITY_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "quantity"), "PRODUCT_PROPS_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("CP_BCST_PRODUCT_PROPS_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "prop"), "SECTION_ID_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_SECTION_ID_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "SECTION_ID"), "DISPLAY_COMPARE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_DISPLAY_COMPARE"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "USE_MAIN_ELEMENT_SECTION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BCST_USE_MAIN_ELEMENT_SECTION"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SECTION_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_SECTION_COUNT"), "TYPE" => "STRING", "DEFAULT" => "20"), "ELEMENT_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => "9"), "LINE_ELEMENT_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_LINE_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => "3"), "PROPERTY_CODE" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_LNS, "ADDITIONAL_VALUES" => "Y"), "PRICE_CODE" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_PRICE_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arPrice), "USE_PRICE_COUNT" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_USE_PRICE_COUNT"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SHOW_PRICE_COUNT" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_SHOW_PRICE_COUNT"), "TYPE" => "STRING", "DEFAULT" => "1"), "PRICE_VAT_INCLUDE" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_VAT_INCLUDE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "PRODUCT_PROPERTIES" => array("PARENT" => "PRICES", "NAME" => GetMessage("CP_BCST_PRODUCT_PROPERTIES"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_X), "USE_PRODUCT_QUANTITY" => array("PARENT" => "PRICES", "NAME" => GetMessage("CP_BCST_USE_PRODUCT_QUANTITY"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "REFRESH" => 'Y'), "CACHE_TIME" => array("DEFAULT" => 36000000), "CACHE_FILTER" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("IBLOCK_CACHE_FILTER"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BCST_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
if ($boolCatalog) {
    $arComponentParameters["PARAMETERS"]['HIDE_NOT_AVAILABLE'] = array('PARENT' => 'DATA_SOURCE', 'NAME' => GetMessage('CP_BCST_HIDE_NOT_AVAILABLE'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N');
    if (CModule::IncludeModule('currency')) {
        $arComponentParameters["PARAMETERS"]['CONVERT_CURRENCY'] = array('PARENT' => 'PRICES', 'NAME' => GetMessage('CP_BCST_CONVERT_CURRENCY'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N', 'REFRESH' => 'Y');
        if (isset($arCurrentValues['CONVERT_CURRENCY']) && 'Y' == $arCurrentValues['CONVERT_CURRENCY']) {
            $arCurrencyList = array();
            $rsCurrencies = CCurrency::GetList($by = 'SORT', $order = 'ASC');
            while ($arCurrency = $rsCurrencies->Fetch()) {
                $arCurrencyList[$arCurrency['CURRENCY']] = $arCurrency['CURRENCY'];
            }
            $arComponentParameters['PARAMETERS']['CURRENCY_ID'] = array('PARENT' => 'PRICES', 'NAME' => GetMessage('CP_BCST_CURRENCY_ID'), 'TYPE' => 'LIST', 'VALUES' => $arCurrencyList, 'DEFAULT' => CCurrency::GetBaseCurrency(), "ADDITIONAL_VALUES" => "Y");
        }
    }
}
コード例 #3
0
ファイル: .parameters.php プロジェクト: ASDAFF/entask.ru
			"VALUES" => $arSort,
			"ADDITIONAL_VALUES" => "Y",
			"DEFAULT" => "sort",
		),
		"ELEMENT_SORT_ORDER" => array(
			"PARENT" => "DATA_SOURCE",
			"NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"),
			"TYPE" => "LIST",
			"VALUES" => $arAscDesc,
			"DEFAULT" => "asc",
			"ADDITIONAL_VALUES" => "Y",
		),
		"DETAIL_URL" => CIBlockParameters::GetPathTemplateParam(
			"DETAIL",
			"DETAIL_URL",
			GetMessage("IBLOCK_DETAIL_URL"),
			"",
			"ADDITIONAL_SETTINGS"
		),
		"BASKET_URL" => array(
			"PARENT" => "BASKET",
			"NAME" => GetMessage("IBLOCK_BASKET_URL"),
			"TYPE" => "STRING",
			"DEFAULT" => "/personal/basket.php",
		),
		"ACTION_VARIABLE" => array(
			"PARENT" => "ACTION_SETTINGS",
			"NAME" => GetMessage("IBLOCK_ACTION_VARIABLE"),
			"TYPE" => "STRING",
			"DEFAULT" => "action",
		),
コード例 #4
0
<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();

if(!CModule::IncludeModule("iblock"))
	return;

$arIBlockType = CIBlockParameters::GetIBlockTypes();

$arIBlock = array();
$rsIBlock = CIBlock::GetList(Array("sort" => "asc"), Array("TYPE" => $arCurrentValues["IBLOCK_TYPE"], "ACTIVE"=>"Y"));
while($arr=$rsIBlock->Fetch())
	$arIBlock[$arr["ID"]] = "[".$arr["ID"]."] ".$arr["NAME"];

$arProperty_LNS = array();
$arProperty_N = array();
$arProperty_X = array();
if (0 < intval($arCurrentValues['IBLOCK_ID']))
{
	$rsProp = CIBlockProperty::GetList(Array("sort"=>"asc", "name"=>"asc"), Array("IBLOCK_ID"=>$arCurrentValues["IBLOCK_ID"], "ACTIVE"=>"Y"));
	while ($arr=$rsProp->Fetch())
	{
		if($arr["PROPERTY_TYPE"] != "F")
			$arProperty[$arr["CODE"]] = "[".$arr["CODE"]."] ".$arr["NAME"];

		if($arr["PROPERTY_TYPE"]=="N")
			$arProperty_N[$arr["CODE"]] = "[".$arr["CODE"]."] ".$arr["NAME"];

		if($arr["PROPERTY_TYPE"]!="F")
		{
			if($arr["MULTIPLE"] == "Y")
				$arProperty_X[$arr["CODE"]] = "[".$arr["CODE"]."] ".$arr["NAME"];
コード例 #5
0
ファイル: .parameters.php プロジェクト: Satariall/izurit
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arTypes = CIBlockParameters::GetIBlockTypes();
$arIBlocks = array();
$db_iblock = CIBlock::GetList(array("SORT" => "ASC"), array("SITE_ID" => $_REQUEST["site"], "TYPE" => $arCurrentValues["IBLOCK_TYPE"] != "-" ? $arCurrentValues["IBLOCK_TYPE"] : ""));
while ($arRes = $db_iblock->Fetch()) {
    $arIBlocks[$arRes["ID"]] = $arRes["NAME"];
}
$arProperty_LNS = array();
$rsProp = CIBlockProperty::GetList(array("sort" => "asc", "name" => "asc"), array("ACTIVE" => "Y", "IBLOCK_ID" => isset($arCurrentValues["IBLOCK_ID"]) ? $arCurrentValues["IBLOCK_ID"] : $arCurrentValues["ID"]));
while ($arr = $rsProp->Fetch()) {
    $arProperty[$arr["CODE"]] = "[" . $arr["CODE"] . "] " . $arr["NAME"];
    if (in_array($arr["PROPERTY_TYPE"], array("L", "N", "S"))) {
        $arProperty_LNS[$arr["CODE"]] = "[" . $arr["CODE"] . "] " . $arr["NAME"];
    }
}
$arUGroupsEx = array();
$dbUGroups = CGroup::GetList($by = "c_sort", $order = "asc");
while ($arUGroups = $dbUGroups->Fetch()) {
    $arUGroupsEx[$arUGroups["ID"]] = $arUGroups["NAME"];
}
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("AJAX_MODE" => array(), "IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_TYPE"), "TYPE" => "LIST", "VALUES" => $arTypes, "DEFAULT" => "news", "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_ID"), "TYPE" => "LIST", "VALUES" => $arIBlocks, "DEFAULT" => '', "ADDITIONAL_VALUES" => "Y", "REFRESH" => "Y"), "ELEMENT_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BND_ELEMENT_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["ELEMENT_ID"]}'), "ELEMENT_CODE" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BND_ELEMENT_CODE"), "TYPE" => "STRING", "DEFAULT" => ''), "CHECK_DATES" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_CHECK_DATES"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("IBLOCK_FIELD"), "DATA_SOURCE"), "PROPERTY_CODE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_LNS, "ADDITIONAL_VALUES" => "Y"), "IBLOCK_URL" => CIBlockParameters::GetPathTemplateParam("LIST", "IBLOCK_URL", GetMessage("T_IBLOCK_DESC_LIST_PAGE_URL"), "", "URL_TEMPLATES"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("CP_BND_DETAIL_URL"), "", "URL_TEMPLATES"), "SET_TITLE" => array(), "SET_CANONICAL_URL" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BND_SET_CANONICAL_URL"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SET_BROWSER_TITLE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BND_SET_BROWSER_TITLE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"), "BROWSER_TITLE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BND_BROWSER_TITLE"), "TYPE" => "LIST", "MULTIPLE" => "N", "DEFAULT" => "-", "VALUES" => array_merge(array("-" => " ", "NAME" => GetMessage("IBLOCK_FIELD_NAME")), $arProperty_LNS), "HIDDEN" => isset($arCurrentValues['SET_BROWSER_TITLE']) && $arCurrentValues['SET_BROWSER_TITLE'] == 'N' ? 'Y' : 'N'), "SET_META_KEYWORDS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BND_SET_META_KEYWORDS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"), "META_KEYWORDS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_KEYWORDS"), "TYPE" => "LIST", "MULTIPLE" => "N", "DEFAULT" => "-", "VALUES" => array_merge(array("-" => " "), $arProperty_LNS), "HIDDEN" => isset($arCurrentValues['SET_META_KEYWORDS']) && $arCurrentValues['SET_META_KEYWORDS'] == 'N' ? 'Y' : 'N'), "SET_META_DESCRIPTION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BND_SET_META_DESCRIPTION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"), "META_DESCRIPTION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_DESCRIPTION"), "TYPE" => "LIST", "MULTIPLE" => "N", "DEFAULT" => "-", "VALUES" => array_merge(array("-" => " "), $arProperty_LNS), "HIDDEN" => isset($arCurrentValues['SET_META_DESCRIPTION']) && $arCurrentValues['SET_META_DESCRIPTION'] == 'N' ? 'Y' : 'N'), "SET_LAST_MODIFIED" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BND_SET_LAST_MODIFIED"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "INCLUDE_IBLOCK_INTO_CHAIN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_INCLUDE_IBLOCK_INTO_CHAIN"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "ADD_SECTIONS_CHAIN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_ADD_SECTIONS_CHAIN"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "ADD_ELEMENT_CHAIN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_ADD_ELEMENT_CHAIN"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "ACTIVE_DATE_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_IBLOCK_DESC_ACTIVE_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "USE_PERMISSIONS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_USE_PERMISSIONS"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "REFRESH" => "Y"), "GROUP_PERMISSIONS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_GROUP_PERMISSIONS"), "TYPE" => "LIST", "VALUES" => $arUGroupsEx, "DEFAULT" => array(1), "MULTIPLE" => "Y"), "CACHE_TIME" => array("DEFAULT" => 36000000), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BND_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
CIBlockParameters::AddPagerSettings($arComponentParameters, GetMessage("T_IBLOCK_DESC_PAGER_PAGE"), false, true, true, $arCurrentValues["PAGER_BASE_LINK_ENABLE"] === "Y");
unset($arComponentParameters["PARAMETERS"]["PAGER_SHOW_ALWAYS"]);
CIBlockParameters::Add404Settings($arComponentParameters, $arCurrentValues);
if ($arCurrentValues["USE_PERMISSIONS"] != "Y") {
    unset($arComponentParameters["PARAMETERS"]["GROUP_PERMISSIONS"]);
}
コード例 #6
0
ファイル: .parameters.php プロジェクト: rasuldev/torino
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
$arYesNo = array("Y" => GetMessage("SPO_DESC_YES"), "N" => GetMessage("SPO_DESC_NO"));
$arComponentParameters = array("PARAMETERS" => array("SEF_MODE" => array("list" => array("NAME" => GetMessage("SPO_LIST_DESC"), "DEFAULT" => "index.php", "VARIABLES" => array()), "detail" => array("NAME" => GetMessage("SPO_DETAIL_DESC"), "DEFAULT" => "order_detail.php?ID=#ID#", "VARIABLES" => array("ID")), "cancel" => array("NAME" => GetMessage("SPO_CANCEL_DESC"), "DEFAULT" => "order_cancel.php?ID=#ID#", "VARIABLES" => array("ID"))), "ORDERS_PER_PAGE" => array("NAME" => GetMessage("SPO_ORDERS_PER_PAGE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "20", "PARENT" => "ADDITIONAL_SETTINGS"), "PATH_TO_PAYMENT" => array("NAME" => GetMessage("SPO_PATH_TO_PAYMENT"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "payment.php", "PARENT" => "ADDITIONAL_SETTINGS"), "PATH_TO_BASKET" => array("NAME" => GetMessage("SPO_PATH_TO_BASKET"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "basket.php", "COLS" => 25, "PARENT" => "ADDITIONAL_SETTINGS"), "SET_TITLE" => array(), "SAVE_IN_SESSION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SPO_SAVE_IN_SESSION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "NAV_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SPOL_NAV_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "CACHE_TIME" => array("DEFAULT" => 3600), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("SPO_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
if (CModule::IncludeModule("iblock")) {
    $arComponentParameters["PARAMETERS"]["ACTIVE_DATE_FORMAT"] = CIBlockParameters::GetDateFormat(GetMessage("SPO_ACTIVE_DATE_FORMAT"), "VISUAL");
    $arComponentParameters["PARAMETERS"]["CUSTOM_SELECT_PROPS"] = array("NAME" => GetMessage("SPO_PARAM_CUSTOM_SELECT_PROPS"), "TYPE" => "STRING", "MULTIPLE" => "Y", "VALUES" => array(), "PARENT" => "ADDITIONAL_SETTINGS");
}
if (CModule::IncludeModule("sale")) {
    $dbPerson = CSalePersonType::GetList(array("SORT" => "ASC", "NAME" => "ASC"));
    while ($arPerson = $dbPerson->GetNext()) {
        $arPers2Prop = array("" => GetMessage("SPO_SHOW_ALL"));
        $bProp = false;
        $dbProp = CSaleOrderProps::GetList(array("SORT" => "ASC", "NAME" => "ASC"), array("PERSON_TYPE_ID" => $arPerson["ID"]));
        while ($arProp = $dbProp->GetNext()) {
            $arPers2Prop[$arProp["ID"]] = $arProp["NAME"];
            $bProp = true;
        }
        if ($bProp) {
            $arComponentParameters["PARAMETERS"]["PROP_" . $arPerson["ID"]] = array("NAME" => GetMessage("SPO_PROPS_NOT_SHOW") . " \"" . $arPerson["NAME"] . "\" (" . $arPerson["LID"] . ")", "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arPers2Prop, "DEFAULT" => "", "COLS" => 25, "ADDITIONAL_VALUES" => "N", "PARENT" => "BASE");
        }
    }
    // "historic" statuses
    $dbStat = CSaleStatus::GetList(array('sort' => 'asc'), array('LID' => LANGUAGE_ID), false, false, array('ID', 'NAME'));
    $statList = array();
    while ($item = $dbStat->Fetch()) {
        $statList[$item['ID']] = $item['NAME'];
    }
コード例 #7
0
ファイル: .parameters.php プロジェクト: Satariall/izurit
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
/** @var array $arCurrentValues */
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arTypesEx = CIBlockParameters::GetIBlockTypes(array("-" => " "));
$arIBlocks = array();
$db_iblock = CIBlock::GetList(array("SORT" => "ASC"), array("SITE_ID" => $_REQUEST["site"], "TYPE" => $arCurrentValues["IBLOCK_TYPE"] != "-" ? $arCurrentValues["IBLOCK_TYPE"] : ""));
while ($arRes = $db_iblock->Fetch()) {
    $arIBlocks[$arRes["ID"]] = $arRes["NAME"];
}
$arSorts = array("ASC" => GetMessage("T_IBLOCK_DESC_ASC"), "DESC" => GetMessage("T_IBLOCK_DESC_DESC"));
$arSortFields = array("ID" => GetMessage("T_IBLOCK_DESC_FID"), "NAME" => GetMessage("T_IBLOCK_DESC_FNAME"), "ACTIVE_FROM" => GetMessage("T_IBLOCK_DESC_FACT"), "SORT" => GetMessage("T_IBLOCK_DESC_FSORT"), "TIMESTAMP_X" => GetMessage("T_IBLOCK_DESC_FTSAMP"));
$arProperty_LNS = array();
$rsProp = CIBlockProperty::GetList(array("sort" => "asc", "name" => "asc"), array("ACTIVE" => "Y", "IBLOCK_ID" => isset($arCurrentValues["IBLOCK_ID"]) ? $arCurrentValues["IBLOCK_ID"] : $arCurrentValues["ID"]));
while ($arr = $rsProp->Fetch()) {
    $arProperty[$arr["CODE"]] = "[" . $arr["CODE"] . "] " . $arr["NAME"];
    if (in_array($arr["PROPERTY_TYPE"], array("L", "N", "S"))) {
        $arProperty_LNS[$arr["CODE"]] = "[" . $arr["CODE"] . "] " . $arr["NAME"];
    }
}
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_TYPE"), "TYPE" => "LIST", "VALUES" => $arTypesEx, "DEFAULT" => "news", "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_ID"), "TYPE" => "LIST", "VALUES" => $arIBlocks, "DEFAULT" => '={$_REQUEST["ID"]}', "ADDITIONAL_VALUES" => "Y", "REFRESH" => "Y"), "NEWS_COUNT" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_CONT"), "TYPE" => "STRING", "DEFAULT" => "20"), "SORT_BY1" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBORD1"), "TYPE" => "LIST", "DEFAULT" => "ACTIVE_FROM", "VALUES" => $arSortFields, "ADDITIONAL_VALUES" => "Y"), "SORT_ORDER1" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBBY1"), "TYPE" => "LIST", "DEFAULT" => "DESC", "VALUES" => $arSorts, "ADDITIONAL_VALUES" => "Y"), "SORT_BY2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBORD2"), "TYPE" => "LIST", "DEFAULT" => "SORT", "VALUES" => $arSortFields, "ADDITIONAL_VALUES" => "Y"), "SORT_ORDER2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBBY2"), "TYPE" => "LIST", "DEFAULT" => "ASC", "VALUES" => $arSorts, "ADDITIONAL_VALUES" => "Y"), "FILTER_NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_FILTER"), "TYPE" => "STRING", "DEFAULT" => ""), "FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("IBLOCK_FIELD"), "DATA_SOURCE"), "PROPERTY_CODE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_LNS, "ADDITIONAL_VALUES" => "Y"), "CHECK_DATES" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_CHECK_DATES"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("T_IBLOCK_DESC_DETAIL_PAGE_URL"), "", "URL_TEMPLATES"), "PREVIEW_TRUNCATE_LEN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_PREVIEW_TRUNCATE_LEN"), "TYPE" => "STRING", "DEFAULT" => ""), "ACTIVE_DATE_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_IBLOCK_DESC_ACTIVE_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "HIDE_LINK_WHEN_NO_DETAIL" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_HIDE_LINK_WHEN_NO_DETAIL"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "PARENT_SECTION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_ID"), "TYPE" => "STRING", "DEFAULT" => ''), "PARENT_SECTION_CODE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_CODE"), "TYPE" => "STRING", "DEFAULT" => ''), "INCLUDE_SUBSECTIONS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BNL_INCLUDE_SUBSECTIONS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "CACHE_TIME" => array("DEFAULT" => 36000000), "CACHE_FILTER" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("IBLOCK_CACHE_FILTER"), "TYPE" => "CHECKBOX", "DEFAULT" => "N")));
コード例 #8
0
ファイル: .parameters.php プロジェクト: ASDAFF/bitrix-5
			"DEFAULT" => "Y"
		),
		"SHOWN_ITEMS_COUNT" => array(
			"PARENT" => "PHOTO_SETTINGS",
			"NAME" => GetMessage("P_SHOWN_ITEMS_COUNT"),
			"DEFAULT" => "6"
		),
		"SHOW_NAVIGATION" => array(
			"PARENT" => "PHOTO_SETTINGS",
			"NAME" => GetMessage("P_SHOW_NAVIGATION"),
			"TYPE" => "CHECKBOX",
			"DEFAULT" => "N",
			"HIDDEN" => $hidden
		),
		"DATE_TIME_FORMAT_DETAIL" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT_DETAIL"), "ADDITIONAL_SETTINGS"),
		"DATE_TIME_FORMAT_SECTION" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT_SECTION"), "ADDITIONAL_SETTINGS"),
/*
		"USE_PHOTO_TITLE" => array(
			"PARENT" => "PHOTO_SETTINGS",
			"NAME" => GetMessage("P_USE_PHOTO_TITLE"),
			"TYPE" => "CHECKBOX",
			"DEFAULT" => "N"
		),
		"DISPLAY_PANEL" => Array(
			"PARENT" => "ADDITIONAL_SETTINGS",
			"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PANEL"),
			"TYPE" => "CHECKBOX",
			"DEFAULT" => "N",
			"HIDDEN" => $hidden),
		"USE_PERMISSIONS" => Array(
			"PARENT" => "ADDITIONAL_SETTINGS",
コード例 #9
0
$arIBlock_LINK = array();
$rsIblock = CIBlock::GetList(array("sort" => "asc"), array("TYPE" => $arCurrentValues["LINK_IBLOCK_TYPE"], "ACTIVE" => "Y"));
while ($arr = $rsIblock->Fetch()) {
    $arIBlock_LINK[$arr["ID"]] = "[" . $arr["ID"] . "] " . $arr["NAME"];
}
$arProperty_LINK = array();
if (0 < intval($arCurrentValues["LINK_IBLOCK_ID"])) {
    $rsProp = CIBlockProperty::GetList(array("sort" => "asc", "name" => "asc"), array("IBLOCK_ID" => $arCurrentValues["LINK_IBLOCK_ID"], "ACTIVE" => "Y"));
    while ($arr = $rsProp->Fetch()) {
        if (in_array($arr["PROPERTY_TYPE"], array("E"))) {
            $arProperty_LINK[$arr["CODE"]] = "[" . $arr["CODE"] . "] " . $arr["NAME"];
        }
    }
}
$arAscDesc = array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC"));
$arComponentParameters = array("GROUPS" => array("PRICES" => array("NAME" => GetMessage("IBLOCK_PRICES")), "LINK" => array("NAME" => GetMessage("IBLOCK_LINK"))), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock, "REFRESH" => "Y"), "ELEMENT_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["ELEMENT_ID"]}'), "ELEMENT_CODE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_CODE"), "TYPE" => "STRING", "DEFAULT" => ''), "SECTION_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["SECTION_ID"]}'), "SECTION_CODE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_CODE"), "TYPE" => "STRING", "DEFAULT" => ''), "SECTION_URL" => CIBlockParameters::GetPathTemplateParam("SECTION", "SECTION_URL", GetMessage("IBLOCK_SECTION_URL"), "", "URL_TEMPLATES"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("IBLOCK_DETAIL_URL"), "", "URL_TEMPLATES"), "BASKET_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_BASKET_URL"), "TYPE" => "STRING", "DEFAULT" => "/personal/basket.php"), "ACTION_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_ACTION_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "action"), "PRODUCT_ID_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_PRODUCT_ID_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "id"), "PRODUCT_QUANTITY_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("CP_BCE_PRODUCT_QUANTITY_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "quantity"), "PRODUCT_PROPS_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("CP_BCE_PRODUCT_PROPS_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "prop"), "SECTION_ID_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_SECTION_ID_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "SECTION_ID"), "META_KEYWORDS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_KEYWORDS"), "TYPE" => "LIST", "MULTIPLE" => "N", "DEFAULT" => "-", "VALUES" => array_merge(array("-" => " "), $arProperty_LS)), "META_DESCRIPTION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_DESCRIPTION"), "TYPE" => "LIST", "MULTIPLE" => "N", "DEFAULT" => "-", "VALUES" => array_merge(array("-" => " "), $arProperty_LS)), "BROWSER_TITLE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BCE_BROWSER_TITLE"), "TYPE" => "LIST", "MULTIPLE" => "N", "DEFAULT" => "-", "VALUES" => array_merge(array("-" => " ", "NAME" => GetMessage("IBLOCK_FIELD_NAME")), $arProperty_LS)), "SET_TITLE" => array(), "SET_STATUS_404" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BCE_SET_STATUS_404"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "ADD_SECTIONS_CHAIN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BCE_ADD_SECTIONS_CHAIN"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "PROPERTY_CODE" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty, "ADDITIONAL_VALUES" => "Y"), "OFFERS_FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("CP_BCE_OFFERS_FIELD_CODE"), "VISUAL"), "OFFERS_PROPERTY_CODE" => array("PARENT" => "VISUAL", "NAME" => GetMessage("CP_BCE_OFFERS_PROPERTY_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_Offers, "ADDITIONAL_VALUES" => "Y"), "OFFERS_SORT_FIELD" => array("PARENT" => "VISUAL", "NAME" => GetMessage("CP_BCE_OFFERS_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("shows" => GetMessage("IBLOCK_FIELD_SHOW_COUNTER"), "sort" => GetMessage("IBLOCK_FIELD_SORT"), "timestamp_x" => GetMessage("IBLOCK_FIELD_TIMESTAMP_X"), "name" => GetMessage("IBLOCK_FIELD_NAME"), "id" => GetMessage("IBLOCK_FIELD_ID"), "active_from" => GetMessage("IBLOCK_FIELD_ACTIVE_FROM"), "active_to" => GetMessage("IBLOCK_FIELD_ACTIVE_TO")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "sort"), "OFFERS_SORT_ORDER" => array("PARENT" => "VISUAL", "NAME" => GetMessage("CP_BCE_OFFERS_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "asc", "ADDITIONAL_VALUES" => "Y"), "OFFERS_LIMIT" => array("PARENT" => "VISUAL", "NAME" => GetMessage('CP_BCE_OFFERS_LIMIT'), "TYPE" => "STRING", "DEFAULT" => 0), "PRICE_CODE" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_PRICE_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arPrice), "USE_PRICE_COUNT" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_USE_PRICE_COUNT"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SHOW_PRICE_COUNT" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_SHOW_PRICE_COUNT"), "TYPE" => "STRING", "DEFAULT" => "1"), "PRICE_VAT_INCLUDE" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_VAT_INCLUDE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "PRICE_VAT_SHOW_VALUE" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_VAT_SHOW_VALUE"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "PRODUCT_PROPERTIES" => array("PARENT" => "PRICES", "NAME" => GetMessage("CP_BCE_PRODUCT_PROPERTIES"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_X), "USE_PRODUCT_QUANTITY" => array("PARENT" => "PRICES", "NAME" => GetMessage("CP_BCE_USE_PRODUCT_QUANTITY"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "LINK_IBLOCK_TYPE" => array("PARENT" => "LINK", "NAME" => GetMessage("IBLOCK_LINK_IBLOCK_TYPE"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "LINK_IBLOCK_ID" => array("PARENT" => "LINK", "NAME" => GetMessage("IBLOCK_LINK_IBLOCK_ID"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock_LINK, "REFRESH" => "Y"), "LINK_PROPERTY_SID" => array("PARENT" => "LINK", "NAME" => GetMessage("IBLOCK_LINK_PROPERTY_SID"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arProperty_LINK), "LINK_ELEMENTS_URL" => array("PARENT" => "LINK", "NAME" => GetMessage("IBLOCK_LINK_ELEMENTS_URL"), "TYPE" => "STRING", "DEFAULT" => "link.php?PARENT_ELEMENT_ID=#ELEMENT_ID#"), "CACHE_TIME" => array("DEFAULT" => 36000000), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BCE_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "USE_ELEMENT_COUNTER" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage('CP_BCE_USE_ELEMENT_COUNTER'), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
if (CModule::IncludeModule('catalog') && CModule::IncludeModule('currency')) {
    $arComponentParameters["PARAMETERS"]['CONVERT_CURRENCY'] = array('PARENT' => 'PRICES', 'NAME' => GetMessage('CP_BCE_CONVERT_CURRENCY'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N', 'REFRESH' => 'Y');
    if (isset($arCurrentValues['CONVERT_CURRENCY']) && 'Y' == $arCurrentValues['CONVERT_CURRENCY']) {
        $arCurrencyList = array();
        $rsCurrencies = CCurrency::GetList($by = 'SORT', $order = 'ASC');
        while ($arCurrency = $rsCurrencies->Fetch()) {
            $arCurrencyList[$arCurrency['CURRENCY']] = $arCurrency['CURRENCY'];
        }
        $arComponentParameters['PARAMETERS']['CURRENCY_ID'] = array('PARENT' => 'PRICES', 'NAME' => GetMessage('CP_BCE_CURRENCY_ID'), 'TYPE' => 'LIST', 'VALUES' => $arCurrencyList, 'DEFAULT' => CCurrency::GetBaseCurrency(), "ADDITIONAL_VALUES" => "Y");
    }
}
if (!$OFFERS_IBLOCK_ID) {
    unset($arComponentParameters["PARAMETERS"]["OFFERS_FIELD_CODE"]);
    unset($arComponentParameters["PARAMETERS"]["OFFERS_PROPERTY_CODE"]);
    unset($arComponentParameters["PARAMETERS"]["OFFERS_SORT_FIELD"]);
コード例 #10
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arTypesEx = CIBlockParameters::GetIBlockTypes(array("-" => " "));
$arIBlocks = array();
$db_iblock = CIBlock::GetList(array("SORT" => "ASC"), array("SITE_ID" => $_REQUEST["site"], "TYPE" => $arCurrentValues["IBLOCK_TYPE"] != "-" ? $arCurrentValues["IBLOCK_TYPE"] : ""));
while ($arRes = $db_iblock->Fetch()) {
    $arIBlocks[$arRes["ID"]] = $arRes["NAME"];
}
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => "Тип инфоблока", "TYPE" => "LIST", "VALUES" => $arTypesEx, "DEFAULT" => "news", "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => "IDИнфоблока", "TYPE" => "LIST", "VALUES" => $arIBlocks, "DEFAULT" => '={$_REQUEST["ID"]}', "ADDITIONAL_VALUES" => "Y", "REFRESH" => "Y"), "CACHE_TIME" => array("DEFAULT" => 36000000), "SLIDES" => array("PARENT" => "BASE", "NAME" => 'Количество слайдов', "TYPE" => "STRING", "DEFAULT" => "5")));
コード例 #11
0
ファイル: .parameters.php プロジェクト: webgksupport/alpina
        $propertyCode = (string) $property['CODE'];
        if ($propertyCode == '') {
            $propertyCode = $property['ID'];
        }
        $propertyName = '[' . $propertyCode . '] ' . $property['NAME'];
        if ($property['PROPERTY_TYPE'] != Iblock\PropertyTable::TYPE_FILE) {
            $arProperty[$propertyCode] = $propertyName;
        }
        if ($property['PROPERTY_TYPE'] == Iblock\PropertyTable::TYPE_NUMBER) {
            $arProperty_N[$propertyCode] = $propertyName;
        }
    }
    unset($propertyCode, $propertyName, $property, $propertyIterator);
}
$arOffers = CIBlockPriceTools::GetOffersIBlock($arCurrentValues["IBLOCK_ID"]);
$OFFERS_IBLOCK_ID = is_array($arOffers) ? $arOffers["OFFERS_IBLOCK_ID"] : 0;
$arProperty_Offers = array();
if ($OFFERS_IBLOCK_ID) {
    $rsProp = CIBlockProperty::GetList(array("sort" => "asc", "name" => "asc"), array("ACTIVE" => "Y", "IBLOCK_ID" => $OFFERS_IBLOCK_ID));
    while ($arr = $rsProp->Fetch()) {
        if ($arr["PROPERTY_TYPE"] != "F") {
            $arProperty_Offers[$arr["CODE"]] = "[" . $arr["CODE"] . "] " . $arr["NAME"];
        }
    }
}
$arPrice = $catalogIncluded ? CCatalogIBlockParameters::getPriceTypesList() : $arProperty_N;
$arComponentParameters = array("GROUPS" => array("PRICES" => array("NAME" => GetMessage("IBLOCK_PRICES"))), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock, "REFRESH" => "Y"), "FILTER_NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_FILTER_NAME_OUT"), "TYPE" => "STRING", "DEFAULT" => "arrFilter"), "FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("IBLOCK_FIELD"), "DATA_SOURCE", array("SECTION_ID" => true)), "PROPERTY_CODE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty, "ADDITIONAL_VALUES" => "Y"), "OFFERS_FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("CP_BCF_OFFERS_FIELD_CODE"), "DATA_SOURCE"), "OFFERS_PROPERTY_CODE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCF_OFFERS_PROPERTY_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_Offers, "ADDITIONAL_VALUES" => "Y"), "PRICE_CODE" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_PRICE_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arPrice), "CACHE_TIME" => array("DEFAULT" => 36000000), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BCF_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "LIST_HEIGHT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_LIST_HEIGHT"), "TYPE" => "STRING", "DEFAULT" => "5"), "TEXT_WIDTH" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_TEXT_WIDTH"), "TYPE" => "STRING", "DEFAULT" => "20"), "NUMBER_WIDTH" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_NUMBER_WIDTH"), "TYPE" => "STRING", "DEFAULT" => "5"), "SAVE_IN_SESSION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_SAVE_IN_SESSION"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "PAGER_PARAMS_NAME" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BCF_PAGER_PARAMS_NAME"), "TYPE" => "STRING", "DEFAULT" => "arrPager")));
if (!$OFFERS_IBLOCK_ID) {
    unset($arComponentParameters["PARAMETERS"]["OFFERS_FIELD_CODE"]);
    unset($arComponentParameters["PARAMETERS"]["OFFERS_PROPERTY_CODE"]);
}
コード例 #12
0
ファイル: .parameters.php プロジェクト: Satariall/izurit
}
// Prices
$catalogGroupIterator = CCatalogGroup::getList(array("NAME" => "ASC", "SORT" => "ASC"));
$catalogGroups = array();
while ($catalogGroup = $catalogGroupIterator->fetch()) {
    $catalogGroups[$catalogGroup['NAME']] = "[{$catalogGroup['NAME']}] {$catalogGroup['NAME_LANG']}";
}
// iblockTypes
$iblockTypes = CIBlockParameters::getIBlockTypes();
$iblockNames = array();
$iblockIterator = CIBlock::GetList(array("SORT" => "ASC"), array("TYPE" => $arCurrentValues["IBLOCK_TYPE"] != "-" ? $arCurrentValues["IBLOCK_TYPE"] : ""));
while ($iblock = $iblockIterator->fetch()) {
    $iblockNames[$iblock['ID']] = "[{$iblock['CODE']}] {$iblock['NAME']}";
}
$arAscDesc = array("asc" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_SORT_ASC"), "desc" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_SORT_DESC"));
$arComponentParameters = array("GROUPS" => array("PRICES" => array("NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_PRICES")), "BASKET" => array("NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_BASKET"))), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_TYPE"), "TYPE" => "LIST", "VALUES" => $iblockTypes, "DEFAULT" => "catalog", "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_IBLOCK_ID"), "TYPE" => "LIST", "VALUES" => $iblockNames, "DEFAULT" => '={$_REQUEST["IBLOCK_ID"]}', "ADDITIONAL_VALUES" => "Y", "REFRESH" => "Y"), "ID" => array("PARENT" => "BASE", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["PRODUCT_ID"]}'), "CODE" => array("PARENT" => "BASE", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_CODE"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["PRODUCT_CODE"]}'), "PROPERTY_LINK" => array("PARENT" => "BASE", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_PROP_LIST"), "TYPE" => "STRING", "DEFAULT" => "RECOMMEND"), "OFFERS_PROPERTY_LINK" => array("PARENT" => "BASE", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_OFFERS_PROP_LIST"), "TYPE" => "STRING", "DEFAULT" => "RECOMMEND"), "CACHE_TIME" => array("DEFAULT" => 86400), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_DETAIL_URL"), "", "URL_TEMPLATES"), "BASKET_URL" => array("PARENT" => "BASKET", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_BASKET_URL"), "TYPE" => "STRING", "DEFAULT" => "/personal/basket.php"), "ACTION_VARIABLE" => array("PARENT" => "BASKET", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_ACTION_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "action"), "PRODUCT_ID_VARIABLE" => array("PARENT" => "BASKET", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_PRODUCT_ID_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "id"), "PRODUCT_QUANTITY_VARIABLE" => array("PARENT" => "BASKET", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_PRODUCT_QUANTITY_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "quantity"), "ADD_PROPERTIES_TO_BASKET" => array("PARENT" => "BASKET", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_ADD_PROPERTIES_TO_BASKET"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"), "PRODUCT_PROPS_VARIABLE" => array("PARENT" => "BASKET", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_PRODUCT_PROPS_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "prop", "HIDDEN" => isset($arCurrentValues['ADD_PROPERTIES_TO_BASKET']) && $arCurrentValues['ADD_PROPERTIES_TO_BASKET'] == 'N' ? 'Y' : 'N'), "PARTIAL_PRODUCT_PROPERTIES" => array("PARENT" => "BASKET", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_PARTIAL_PRODUCT_PROPERTIES"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "HIDDEN" => isset($arCurrentValues['ADD_PROPERTIES_TO_BASKET']) && $arCurrentValues['ADD_PROPERTIES_TO_BASKET'] == 'N' ? 'Y' : 'N'), "SHOW_OLD_PRICE" => array("PARENT" => "PRICES", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_SHOW_OLD_PRICE"), "TYPE" => "CHECKBOX", "VALUES" => "N"), 'SHOW_DISCOUNT_PERCENT' => array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_SHOW_DISCOUNT_PERCENT'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N'), "PRICE_CODE" => array("PARENT" => "PRICES", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_PRICE_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $catalogGroups), "SHOW_PRICE_COUNT" => array("PARENT" => "PRICES", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_SHOW_PRICE_COUNT"), "TYPE" => "STRING", "DEFAULT" => "1"), 'PRODUCT_SUBSCRIPTION' => array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_PRODUCT_SUBSCRIPTION'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N'), "PRICE_VAT_INCLUDE" => array("PARENT" => "PRICES", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_VAT_INCLUDE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "USE_PRODUCT_QUANTITY" => array("PARENT" => "BASKET", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_USE_PRODUCT_QUANTITY"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "REFRESH" => "Y"), "SHOW_NAME" => array("PARENT" => "VISUAL", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_SHOW_NAME"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SHOW_IMAGE" => array("PARENT" => "VISUAL", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_SHOW_IMAGE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), 'MESS_BTN_BUY' => array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_MESS_BTN_BUY'), 'TYPE' => 'STRING', 'DEFAULT' => GetMessage('CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_MESS_BTN_BUY_DEFAULT')), 'MESS_BTN_DETAIL' => array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_MESS_BTN_DETAIL'), 'TYPE' => 'STRING', 'DEFAULT' => GetMessage('CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_MESS_BTN_DETAIL_DEFAULT')), 'MESS_NOT_AVAILABLE' => array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_MESS_NOT_AVAILABLE'), 'TYPE' => 'STRING', 'DEFAULT' => GetMessage('CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_MESS_NOT_AVAILABLE_DEFAULT')), 'MESS_BTN_SUBSCRIBE' => array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_MESS_BTN_SUBSCRIBE'), 'TYPE' => 'STRING', 'DEFAULT' => GetMessage('CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_MESS_BTN_SUBSCRIBE_DEFAULT')), "PAGE_ELEMENT_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("CATALOG_RECOMMENDED_PRODUCTS_COMPONENT_PAGE_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => "30")));
// Params groups
$iblockMap = array();
$iblockIterator = CIBlock::GetList(array("SORT" => "ASC"), array("ACTIVE" => "Y"));
while ($iblock = $iblockIterator->fetch()) {
    $iblockMap[$iblock['ID']] = $iblock;
}
$catalogs = array();
$productsCatalogs = array();
$skuCatalogs = array();
$catalogIterator = CCatalog::getList(array("IBLOCK_ID" => "ASC"), array("@IBLOCK_ID" => array_keys($iblockMap)));
while ($catalog = $catalogIterator->fetch()) {
    $isOffersCatalog = (int) $catalog['PRODUCT_IBLOCK_ID'] > 0;
    if ($isOffersCatalog) {
        $skuCatalogs[$catalog['PRODUCT_IBLOCK_ID']] = $catalog;
    } else {
コード例 #13
0
    while ($file = readdir($handle)) {
        if ($file == "." || $file == ".." || !is_file($path . $file)) {
            continue;
        }
        $file_exist = true;
        $arFiles[$file] = $file;
    }
}
if (!$file_exist) {
    $arFiles = array("" => GetMessage("P_FONTS_NONE"));
}
$hidden = $arCurrentValues["USE_LIGHT_VIEW"] == "Y" ? "Y" : "N";
if (empty($arCurrentValues["SEF_URL_TEMPLATES_index"]) && !empty($arCurrentValues["SEF_URL_TEMPLATES_sections_top"])) {
    $arCurrentValues["SEF_URL_TEMPLATES_index"] = $arCurrentValues["SEF_URL_TEMPLATES_sections_top"];
}
$arComponentParameters = array("GROUPS" => array("PAGE_SETTINGS" => array("NAME" => GetMessage("P_PAGE_SETTINGS"), "SORT" => "100"), "PHOTO_SETTINGS" => array("NAME" => GetMessage("P_PHOTO_SETTINGS"), "SORT" => "150"), "RATING_SETTINGS" => array("NAME" => GetMessage("T_IBLOCK_DESC_RATING_SETTINGS")), "TAGS_CLOUD" => array("NAME" => GetMessage("T_TAGS_CLOUD"))), "PARAMETERS" => array("USE_LIGHT_VIEW" => array("PARENT" => "BASE", "NAME" => GetMessage("P_USE_LIGHT_VIEW"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"), "VARIABLE_ALIASES" => array("SECTION_ID" => array("NAME" => GetMessage("SECTION_ID_DESC")), "ELEMENT_ID" => array("NAME" => GetMessage("ELEMENT_ID_DESC")), "PAGE_NAME" => array("NAME" => GetMessage("PAGE_NAME_DESC")), "ACTION" => array("NAME" => GetMessage("ACTION_DESC"))), "SEF_MODE" => array("index" => array("NAME" => GetMessage("INDEX_PAGE"), "DEFAULT" => "index.php", "VARIABLES" => array()), "section" => array("NAME" => GetMessage("SECTION_PAGE"), "DEFAULT" => "#SECTION_ID#/", "VARIABLES" => array("SECTION_ID")), "section_edit" => array("NAME" => GetMessage("SECTION_EDIT_PAGE"), "DEFAULT" => "#SECTION_ID#/action/#ACTION#/", "VARIABLES" => array("SECTION_ID", "ACTION")), "section_edit_icon" => array("NAME" => GetMessage("SECTION_EDIT_ICON_PAGE"), "DEFAULT" => "#SECTION_ID#/icon/action/#ACTION#/", "VARIABLES" => array("SECTION_ID", "ACTION")), "upload" => array("NAME" => GetMessage("UPLOAD_PAGE"), "DEFAULT" => "#SECTION_ID#/action/upload/", "VARIABLES" => array("SECTION_ID")), "detail" => array("NAME" => GetMessage("DETAIL_PAGE"), "DEFAULT" => "#SECTION_ID#/#ELEMENT_ID#/", "VARIABLES" => array("ELEMENT_ID", "SECTION_ID")), "detail_edit" => array("NAME" => GetMessage("DETAIL_EDIT_PAGE"), "DEFAULT" => "#SECTION_ID#/#ELEMENT_ID#/action/#ACTION#/", "VARIABLES" => array("ELEMENT_ID", "SECTION_ID")), "detail_slide_show" => array("NAME" => GetMessage("DETAIL_SLIDE_SHOW_PAGE"), "DEFAULT" => "#SECTION_ID#/#ELEMENT_ID#/slide_show/", "VARIABLES" => array("SECTION_ID", "ELEMENT_ID")), "detail_list" => array("NAME" => GetMessage("DETAIL_LIST_PAGE"), "DEFAULT" => "list/", "VARIABLES" => array())), "IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock, "REFRESH" => "Y"), "SECTION_SORT_BY" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("ID" => "ID", "NAME" => GetMessage("IBLOCK_SORT_NAME"), "SORT" => GetMessage("IBLOCK_SORT_SORT"), "ELEMENTS_CNT" => GetMessage("IBLOCK_SORT_ELEMENTS_CNT"), "UF_DATE" => GetMessage("IBLOCK_SORT_DATE")), "DEFAULT" => array("UF_DATE"), "HIDDEN" => $hidden), "SECTION_SORT_ORD" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("ASC" => GetMessage("IBLOCK_SORT_ASC"), "DESC" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => array("DESC"), "HIDDEN" => $hidden), "ELEMENT_SORT_FIELD" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("shows" => GetMessage("IBLOCK_SORT_SHOWS"), "sort" => GetMessage("IBLOCK_SORT_SORT"), "timestamp_x" => GetMessage("IBLOCK_SORT_TIMESTAMP"), "name" => GetMessage("IBLOCK_SORT_NAME"), "id" => GetMessage("IBLOCK_SORT_ID"), "rating" => GetMessage("IBLOCK_SORT_RATING"), "comments" => GetMessage("IBLOCK_SORT_COMMENTS")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "name", "HIDDEN" => $hidden), "ELEMENT_SORT_ORDER" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "desc", "HIDDEN" => $hidden), "ELEMENTS_USE_DESC_PAGE" => array("PARENT" => "PAGE_SETTINGS", "NAME" => GetMessage("T_ELEMENTS_USE_DESC_PAGE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "SECTION_PAGE_ELEMENTS" => array("PARENT" => "PAGE_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_PAGE_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => "15", "HIDDEN" => $hidden), "ELEMENTS_PAGE_ELEMENTS" => array("PARENT" => "PAGE_SETTINGS", "NAME" => GetMessage("IBLOCK_ELEMENTS_PAGE_ELEMENTS"), "TYPE" => "STRING", "DEFAULT" => '50', "HIDDEN" => $hidden), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "PAGE_SETTINGS", "NAME" => GetMessage("P_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "", "HIDDEN" => $hidden), "UPLOAD_MAX_FILE_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => str_replace("#upload_max_filesize#", ini_get('upload_max_filesize'), GetMessage("P_UPLOAD_MAX_FILE_SIZE")), "TYPE" => "STRING", "DEFAULT" => ini_get('upload_max_filesize')), "ALBUM_PHOTO_THUMBS_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ALBUM_PHOTO_THUMBS_SIZE"), "TYPE" => "STRING", "DEFAULT" => "200"), "ALBUM_PHOTO_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ALBUM_PHOTO_SIZE"), "TYPE" => "STRING", "DEFAULT" => "120"), "THUMBS_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_THUMBS_SIZE"), "TYPE" => "STRING", "DEFAULT" => "250"), "JPEG_QUALITY1" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_JPEG_QUALITY1"), "TYPE" => "STRING", "DEFAULT" => "95", "HIDDEN" => $hidden), "PREVIEW_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_PREVIEW_SIZE"), "TYPE" => "STRING", "DEFAULT" => "700"), "JPEG_QUALITY2" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_JPEG_QUALITY2"), "TYPE" => "STRING", "DEFAULT" => "95", "HIDDEN" => $hidden), "ORIGINAL_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ORIGINAL_SIZE"), "TYPE" => "STRING", "DEFAULT" => "0"), "JPEG_QUALITY" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_JPEG_QUALITY"), "TYPE" => "STRING", "DEFAULT" => "90", "HIDDEN" => $hidden), "ADDITIONAL_SIGHTS" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ADDITIONAL_SIGHTS"), "TYPE" => "LIST", "VALUES" => $arSights, "DEFAULT" => array(), "MULTIPLE" => "Y", "HIDDEN" => $hidden), "WATERMARK_MIN_PICTURE_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_WATERMARK_MIN_PICTURE_SIZE"), "TYPE" => "STRING", "DEFAULT" => "200", "HIDDEN" => $hidden), "PATH_TO_FONT" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_PATH_TO_FONT"), "TYPE" => "LIST", "VALUES" => $arFiles, "DEFAULT" => array(""), "MULTIPLE" => "N"), "WATERMARK_RULES" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_WATERMARK_RULES"), "TYPE" => "LIST", "VALUES" => array("USER" => GetMessage("P_WATERMARK_RULES_USER"), "ALL" => GetMessage("P_WATERMARK_RULES_ALL")), "DEFAULT" => "USER", "REFRESH" => "Y"), "DATE_TIME_FORMAT_SECTION" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT_SECTION"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT_DETAIL" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT_DETAIL"), "ADDITIONAL_SETTINGS"), "SET_TITLE" => array(), "CACHE_TIME" => array("DEFAULT" => 3600), "USE_RATING" => array("PARENT" => "RATING_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_USE_RATING"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "REFRESH" => "Y"), "SHOW_TAGS" => array("PARENT" => "TAGS_CLOUD", "NAME" => GetMessage("P_SHOW_TAGS"), "TYPE" => "CHECKBOX", "REFRESH" => IsModuleInstalled("search") ? "Y" : "N", "DEFAULT" => "N")));
$arComponentParameters["PARAMETERS"]["DATE_TIME_FORMAT_SECTION"]["HIDDEN"] = $hidden;
$arComponentParameters["PARAMETERS"]["DATE_TIME_FORMAT_DETAIL"]["HIDDEN"] = $hidden;
if ($arCurrentValues["USE_PERMISSIONS"] != "Y") {
    unset($arComponentParameters["PARAMETERS"]["GROUP_PERMISSIONS"]);
}
if ($arCurrentValues["WATERMARK_RULES"] == "ALL") {
    $arComponentParameters["PARAMETERS"]["WATERMARK_TYPE"] = array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_WATERMARK_TYPE"), "TYPE" => "LIST", "VALUES" => array("TEXT" => GetMessage("P_WATERMARK_TYPE_TEXT"), "PICTURE" => GetMessage("P_WATERMARK_TYPE_PICTURE")), "DEFAULT" => "PICTURE", "REFRESH" => "Y");
    if ($arCurrentValues["WATERMARK_TYPE"] == "TEXT") {
        $arComponentParameters["PARAMETERS"]["WATERMARK_TEXT"] = array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_WATERMARK_TEXT"), "TYPE" => "STRING", "VALUES" => "");
        $arComponentParameters["PARAMETERS"]["WATERMARK_COLOR"] = array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_WATERMARK_COLOR"), "TYPE" => "STRING", "VALUES" => "FF00EE");
        $arComponentParameters["PARAMETERS"]["WATERMARK_SIZE"] = array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_WATERMARK_SIZE"), "TYPE" => "STRING", "VALUES" => "10");
    } else {
        $arComponentParameters["PARAMETERS"]["WATERMARK_FILE"] = array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_WATERMARK_FILE"), "TYPE" => "STRING", "VALUES" => "");
        $arComponentParameters["PARAMETERS"]["WATERMARK_FILE_ORDER"] = array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_WATERMARK_FILE_ORDER"), "TYPE" => "LIST", "VALUES" => array("usual" => GetMessage("P_WATERMARK_FILE_ORDER_USUAL"), "resize" => GetMessage("P_WATERMARK_FILE_ORDER_RESIZE"), "repeat" => GetMessage("P_WATERMARK_FILE_ORDER_REPEAT")), "DEFAULT" => "usual");
    }
コード例 #14
0
ファイル: .parameters.php プロジェクト: nProfessor/Mytb
		),
		"ADD_SECTIONS_CHAIN" => Array(
			"PARENT" => "ADDITIONAL_SETTINGS",
			"NAME" => GetMessage("CP_BCE_ADD_SECTIONS_CHAIN"),
			"TYPE" => "CHECKBOX",
			"DEFAULT" => "Y",
		),
		"PROPERTY_CODE" => array(
			"PARENT" => "VISUAL",
			"NAME" => GetMessage("IBLOCK_PROPERTY"),
			"TYPE" => "LIST",
			"MULTIPLE" => "Y",
			"VALUES" => $arProperty,
			"ADDITIONAL_VALUES" => "Y",
		),
		"OFFERS_FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("CP_BCE_OFFERS_FIELD_CODE"), "VISUAL"),
		"OFFERS_PROPERTY_CODE" => array(
			"PARENT" => "VISUAL",
			"NAME" => GetMessage("CP_BCE_OFFERS_PROPERTY_CODE"),
			"TYPE" => "LIST",
			"MULTIPLE" => "Y",
			"VALUES" => $arProperty_Offers,
			"ADDITIONAL_VALUES" => "Y",
		),
		"OFFERS_SORT_FIELD" => array(
			"PARENT" => "VISUAL",
			"NAME" => GetMessage("CP_BCE_OFFERS_SORT_FIELD"),
			"TYPE" => "LIST",
			"VALUES" => array(
				"shows" => GetMessage("IBLOCK_FIELD_SHOW_COUNTER"),
				"sort" => GetMessage("IBLOCK_FIELD_SORT"),
コード例 #15
0
ファイル: .parameters.php プロジェクト: Satariall/izurit
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arIBlockType = CIBlockParameters::GetIBlockTypes(array("-" => GetMessage("CP_BCI1_CREATE")));
$arUGroupsEx = array();
$dbUGroups = CGroup::GetList($by = "c_sort", $order = "asc");
while ($arUGroups = $dbUGroups->Fetch()) {
    $arUGroupsEx[$arUGroups["ID"]] = $arUGroups["NAME"];
}
$rsSite = CSite::GetList($by = "sort", $order = "asc", $arFilter = array("ACTIVE" => "Y"));
$arSites = array("-" => GetMessage("CP_BCI1_CURRENT"));
while ($arSite = $rsSite->GetNext()) {
    $arSites[$arSite["LID"]] = $arSite["NAME"];
}
$arAction = array("N" => GetMessage("CP_BCI1_NONE"), "A" => GetMessage("CP_BCI1_DEACTIVATE"), "D" => GetMessage("CP_BCI1_DELETE"));
$arComponentParameters = array("GROUPS" => array("PICTURE" => array("NAME" => GetMessage("CP_BCI1_PICTURE")), "TRANSLIT" => array("NAME" => GetMessage("CP_BCI1_TRANSLIT"))), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCI1_IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType), "SITE_LIST" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCI1_SITE_LIST"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arSites), "INTERVAL" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCI1_INTERVAL"), "TYPE" => "STRING", "DEFAULT" => 30), "GROUP_PERMISSIONS" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCI1_GROUP_PERMISSIONS"), "TYPE" => "LIST", "VALUES" => $arUGroupsEx, "DEFAULT" => array(1), "MULTIPLE" => "Y"), "USE_OFFERS" => array("PARENT" => "ADDITIONAL", "NAME" => GetMessage("CP_BCI1_USE_OFFERS"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "FORCE_OFFERS" => array("PARENT" => "ADDITIONAL", "NAME" => GetMessage("CP_BCI1_FORCE_OFFERS"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "USE_IBLOCK_TYPE_ID" => array("PARENT" => "ADDITIONAL", "NAME" => GetMessage("CP_BCI1_USE_IBLOCK_TYPE_ID"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SKIP_ROOT_SECTION" => array("PARENT" => "ADDITIONAL", "NAME" => GetMessage("CP_BCI1_SKIP_ROOT_SECTION"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "ELEMENT_ACTION" => array("PARENT" => "ADDITIONAL", "NAME" => GetMessage("CP_BCI1_ELEMENT_ACTION"), "TYPE" => "LIST", "VALUES" => $arAction, "DEFAULT" => "D"), "SECTION_ACTION" => array("PARENT" => "ADDITIONAL", "NAME" => GetMessage("CP_BCI1_SECTION_ACTION"), "TYPE" => "LIST", "VALUES" => $arAction, "DEFAULT" => "D"), "FILE_SIZE_LIMIT" => array("PARENT" => "ADDITIONAL", "NAME" => GetMessage("CP_BCI1_FILE_SIZE_LIMIT"), "TYPE" => "STRING", "DEFAULT" => 200 * 1024), "USE_CRC" => array("PARENT" => "ADDITIONAL", "NAME" => GetMessage("CP_BCI1_USE_CRC"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "USE_ZIP" => array("PARENT" => "ADDITIONAL", "NAME" => GetMessage("CP_BCI1_USE_ZIP"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SKIP_SOURCE_CHECK" => array("PARENT" => "ADDITIONAL", "NAME" => GetMessage("CP_BCI1_SKIP_SOURCE_CHECK"), "TYPE" => "CHECKBOX", "DEFAULT" => "N")));
$arComponentParameters["PARAMETERS"]["USE_IBLOCK_PICTURE_SETTINGS"] = array("PARENT" => "PICTURE", "NAME" => GetMessage("CP_BCI1_USE_IBLOCK_PICTURE_SETTINGS"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "REFRESH" => "Y");
if ($arCurrentValues["USE_IBLOCK_PICTURE_SETTINGS"] !== "Y") {
    $arComponentParameters["PARAMETERS"]["GENERATE_PREVIEW"] = array("PARENT" => "PICTURE", "NAME" => GetMessage("CP_BCI1_GENERATE_PREVIEW"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y");
    if ($arCurrentValues["GENERATE_PREVIEW"] != "N") {
        $arComponentParameters["PARAMETERS"]["PREVIEW_WIDTH"] = array("PARENT" => "PICTURE", "NAME" => GetMessage("CP_BCI1_PREVIEW_WIDTH"), "TYPE" => "STRING", "DEFAULT" => 100);
        $arComponentParameters["PARAMETERS"]["PREVIEW_HEIGHT"] = array("PARENT" => "PICTURE", "NAME" => GetMessage("CP_BCI1_PREVIEW_HEIGHT"), "TYPE" => "STRING", "DEFAULT" => 100);
    }
    $arComponentParameters["PARAMETERS"]["DETAIL_RESIZE"] = array("PARENT" => "PICTURE", "NAME" => GetMessage("CP_BCI1_DETAIL_RESIZE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y");
    if ($arCurrentValues["DETAIL_RESIZE"] != "N") {
        $arComponentParameters["PARAMETERS"]["DETAIL_WIDTH"] = array("PARENT" => "PICTURE", "NAME" => GetMessage("CP_BCI1_DETAIL_WIDTH"), "TYPE" => "STRING", "DEFAULT" => 300);
コード例 #16
0
ファイル: iblock_edit.php プロジェクト: Satariall/izurit
    if (CIBlockRights::UserHasRightTo($ID, $ID, "iblock_edit")) {
        $aMenu = array(array("TEXT" => GetMessage("IBLOCK_BACK_TO_ADMIN"), "LINK" => '/bitrix/admin/iblock_admin.php?lang=' . $lang . '&type=' . urlencode($type) . '&admin=' . ($_REQUEST["admin"] == "Y" ? "Y" : "N"), "ICON" => "btn_list"));
        $context = new CAdminContextMenu($aMenu);
        $context->Show();
        $u = new CAdminPopupEx("mnu_LIST_PAGE_URL", CIBlockParameters::GetPathTemplateMenuItems("LIST", "__SetUrlVar", "mnu_LIST_PAGE_URL", "LIST_PAGE_URL"), array("zIndex" => 2000));
        $u->Show();
        $u = new CAdminPopupEx("mnu_SECTION_PAGE_URL", CIBlockParameters::GetPathTemplateMenuItems("SECTION", "__SetUrlVar", "mnu_SECTION_PAGE_URL", "SECTION_PAGE_URL"), array("zIndex" => 2000));
        $u->Show();
        $arItems = CIBlockParameters::GetPathTemplateMenuItems("DETAIL", "__SetUrlVar", "mnu_DETAIL_PAGE_URL", "DETAIL_PAGE_URL");
        if ($str_CATALOG_TYPE == 'O') {
            $arItems[] = array("SEPARATOR" => true);
            $arItems[] = array("TEXT" => GetMessage("IB_E_URL_PRODUCT_ID"), "TITLE" => "#PRODUCT_URL# - " . GetMessage("IB_E_URL_PRODUCT_ID"), "ONCLICK" => "__SetUrlVar('#PRODUCT_URL#', 'mnu_DETAIL_PAGE_URL', 'DETAIL_PAGE_URL')");
        }
        $u = new CAdminPopupEx("mnu_DETAIL_PAGE_URL", $arItems, array("zIndex" => 2000));
        $u->Show();
        $arItems = CIBlockParameters::GetPathTemplateMenuItems("DETAIL", "__SetUrlVar", "mnu_CANONICAL_PAGE_URL", "CANONICAL_PAGE_URL");
        array_unshift($arItems, array("SEPARATOR" => true));
        array_unshift($arItems, array("TEXT" => "https://", "TITLE" => "", "ONCLICK" => "__SetUrlVar('https://', 'mnu_CANONICAL_PAGE_URL', 'CANONICAL_PAGE_URL')"));
        array_unshift($arItems, array("TEXT" => "http://", "TITLE" => "", "ONCLICK" => "__SetUrlVar('http://', 'mnu_CANONICAL_PAGE_URL', 'CANONICAL_PAGE_URL')"));
        $u = new CAdminPopupEx("mnu_CANONICAL_PAGE_URL", $arItems, array("zIndex" => 2000));
        $u->Show();
        ?>
<script>
	var InheritedPropertiesTemplates = new JCInheritedPropertiesTemplates(
		'frm',
		'/bitrix/admin/iblock_templates.ajax.php?ENTITY_TYPE=B&ENTITY_ID=<?php 
        echo intval($ID);
        ?>
'
	);
	BX.ready(function(){
コード例 #17
0
$arComponentParameters["PARAMETERS"]["ELEMENT_SORT_FIELD"] = array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("SHOW_COUNTER" => GetMessage("IBLOCK_SORT_SHOWS"), "SORT" => GetMessage("IBLOCK_SORT_SORT"), "TIMESTAMP_X" => GetMessage("IBLOCK_SORT_TIMESTAMP"), "NAME" => GetMessage("IBLOCK_SORT_NAME"), "ID" => GetMessage("IBLOCK_SORT_ID"), "PROPERTY_RATING" => GetMessage("IBLOCK_SORT_RATING"), "PROPERTY_FORUM_MESSAGE_CNT" => GetMessage("IBLOCK_SORT_COMMENTS_FORUM"), "PROPERTY_BLOG_COMMENTS_CNT" => GetMessage("IBLOCK_SORT_COMMENTS_BLOG")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "SORT");
$arComponentParameters["PARAMETERS"]["ELEMENT_SORT_ORDER"] = array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "asc");
$arComponentParameters["PARAMETERS"]["ELEMENT_SORT_FIELD1"] = array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD1"), "TYPE" => "LIST", "VALUES" => array("SHOW_COUNTER" => GetMessage("IBLOCK_SORT_SHOWS"), "SORT" => GetMessage("IBLOCK_SORT_SORT"), "TIMESTAMP_X" => GetMessage("IBLOCK_SORT_TIMESTAMP"), "NAME" => GetMessage("IBLOCK_SORT_NAME"), "ID" => GetMessage("IBLOCK_SORT_ID"), "PROPERTY_RATING" => GetMessage("IBLOCK_SORT_RATING"), "PROPERTY_FORUM_MESSAGE_CNT" => GetMessage("IBLOCK_SORT_COMMENTS_FORUM"), "PROPERTY_BLOG_COMMENTS_CNT" => GetMessage("IBLOCK_SORT_COMMENTS_BLOG")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "");
$arComponentParameters["PARAMETERS"]["ELEMENT_SORT_ORDER1"] = array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "asc");
/*$arComponentParameters["PARAMETERS"]["ELEMENT_FILTER"] = array();
/*$arComponentParameters["PARAMETERS"]["ELEMENT_SELECT_FIELD"] = array();
*/
$arComponentParameters["PARAMETERS"]["PROPERTY_CODE"] = array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_LNS, "ADDITIONAL_VALUES" => "Y");
if ($arCurrentValues["BEHAVIOUR"] == "USER") {
    $arComponentParameters["PARAMETERS"]["GALLERY_URL"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_GALLERY_URL"), "TYPE" => "STRING", "DEFAULT" => "gallery.php?USER_ALIAS=#USER_ALIAS#");
}
$arComponentParameters["PARAMETERS"]["DETAIL_URL"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_DETAIL_URL"), "TYPE" => "STRING", "DEFAULT" => "detail.php?" . ($arCurrentValues["BEHAVIOUR"] == "USER" ? "USER_ALIAS=#USER_ALIAS#" : "") . "SECTION_ID=#SECTION_ID#&ELEMENT_ID=#ELEMENT_ID#");
$arComponentParameters["PARAMETERS"]["DETAIL_SLIDE_SHOW_URL"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_DETAIL_SLIDE_SHOW_URL"), "TYPE" => "STRING", "DEFAULT" => "slide_show.php?" . ($arCurrentValues["BEHAVIOUR"] == "USER" ? "USER_ALIAS=#USER_ALIAS#" : "") . "SECTION_ID=#SECTION_ID#&ELEMENT_ID=#ELEMENT_ID#");
if (IsModuleInstalled("search")) {
    $arComponentParameters["PARAMETERS"]["SEARCH_URL"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_SEARCH_URL"), "TYPE" => "STRING", "DEFAULT" => "search.php");
}
$arComponentParameters["PARAMETERS"]["USE_PERMISSIONS"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_USE_PERMISSIONS"), "TYPE" => "CHECKBOX", "DEFAULT" => "N");
$arComponentParameters["PARAMETERS"]["GROUP_PERMISSIONS"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_GROUP_PERMISSIONS"), "TYPE" => "LIST", "VALUES" => $arUGroupsEx, "DEFAULT" => array(1), "MULTIPLE" => "Y");
$arComponentParameters["PARAMETERS"]["USE_DESC_PAGE"] = array("PARENT" => "BASE", "NAME" => GetMessage("T_USE_DESC_PAGE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y");
$arComponentParameters["PARAMETERS"]["PAGE_ELEMENTS"] = array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_PAGE_ELEMENTS"), "TYPE" => "STRING", "DEFAULT" => '50');
$arComponentParameters["PARAMETERS"]["PAGE_NAVIGATION_TEMPLATE"] = array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => '');
$arComponentParameters["PARAMETERS"]["DATE_TIME_FORMAT"] = CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS");
$arComponentParameters["PARAMETERS"]["SET_STATUS_404"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_SET_STATUS_404"), "TYPE" => "CHECKBOX", "DEFAULT" => "N");
$arComponentParameters["PARAMETERS"]["ADDITIONAL_SIGHTS"] = array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ADDITIONAL_SIGHTS"), "TYPE" => "LIST", "VALUES" => $arSights, "DEFAULT" => array(), "MULTIPLE" => "Y");
$arComponentParameters["PARAMETERS"]["PICTURES_SIGHT"] = array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_PICTURES_SIGHT"), "TYPE" => "LIST", "VALUES" => array_merge(array("" => "...", "detail" => GetMessage("P_DETAIL_PICTURES_SIGHT"), "real" => GetMessage("P_REAL_PICTURES_SIGHT")), $arSights), "DEFAULT" => "");
if ($arCurrentValues["BEHAVIOUR"] == "USER") {
    $arComponentParameters["PARAMETERS"]["GALLERY_SIZE"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_GALLERY_SIZE"), "TYPE" => "STRING", "DEFAULT" => "");
}
$arComponentParameters["PARAMETERS"]["PATH_TO_USER"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_PATH_TO_USER"), "DEFAULT" => "/company/personal/user/#USER_ID#");
$arComponentParameters["PARAMETERS"]["NAME_TEMPLATE"] = array("PARENT" => "ADDITIONAL_SETTINGS", "TYPE" => "LIST", "NAME" => GetMessage("P_NAME_TEMPLATE"), "VALUES" => CComponentUtil::GetDefaultNameTemplates(), "MULTIPLE" => "N", "ADDITIONAL_VALUES" => "Y", "DEFAULT" => GetMessage("P_NAME_TEMPLATE_DEFAULT"));
$arComponentParameters["PARAMETERS"]["SHOW_LOGIN"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_SHOW_LOGIN"), "TYPE" => "CHECKBOX", "VALUE" => "Y", "DEFAULT" => "Y");
コード例 #18
0
ファイル: .parameters.php プロジェクト: rasuldev/torino
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arTypes = CIBlockParameters::GetIBlockTypes();
$arIBlocks = array();
$db_iblock = CIBlock::GetList(array("SORT" => "ASC"), array("SITE_ID" => $_REQUEST["site"], "TYPE" => $arCurrentValues["IBLOCK_TYPE"] != "-" ? $arCurrentValues["IBLOCK_TYPE"] : ""));
while ($arRes = $db_iblock->Fetch()) {
    $arIBlocks[$arRes["ID"]] = $arRes["NAME"];
}
$arProperty_LNS = array();
if (count($arCurrentValues["IBLOCKS"]) == 1) {
    $rsProp = CIBlockProperty::GetList(array("sort" => "asc", "name" => "asc"), array("ACTIVE" => "Y", "IBLOCK_ID" => $arCurrentValues["IBLOCKS"][0]));
    while ($arr = $rsProp->Fetch()) {
        $arProperty[$arr["CODE"]] = "[" . $arr["CODE"] . "] " . $arr["NAME"];
        if (in_array($arr["PROPERTY_TYPE"], array("L", "N", "S"))) {
            $arProperty_LNS[$arr["CODE"]] = "[" . $arr["CODE"] . "] " . $arr["NAME"];
        }
    }
}
$arSorts = array("ASC" => GetMessage("T_IBLOCK_DESC_ASC"), "DESC" => GetMessage("T_IBLOCK_DESC_DESC"));
$arSortFields = array("ID" => GetMessage("T_IBLOCK_DESC_FID"), "NAME" => GetMessage("T_IBLOCK_DESC_FNAME"), "ACTIVE_FROM" => GetMessage("T_IBLOCK_DESC_FACT"), "SORT" => GetMessage("T_IBLOCK_DESC_FSORT"), "TIMESTAMP_X" => GetMessage("T_IBLOCK_DESC_FTSAMP"));
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_IBTYPE"), "TYPE" => "LIST", "VALUES" => $arTypes, "DEFAULT" => "news", "REFRESH" => "Y"), "IBLOCKS" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_ID"), "TYPE" => "LIST", "VALUES" => $arIBlocks, "MULTIPLE" => "Y", "REFRESH" => "Y"), "NEWS_COUNT" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_IBCNT"), "TYPE" => "STRING", "DEFAULT" => "5"), "IBLOCK_SORT_BY" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBSORT"), "TYPE" => "LIST", "VALUES" => array("SORT" => GetMessage("T_IBLOCK_DESC_SORT"), "NAME" => GetMessage("T_IBLOCK_DESC_FNAME"), "ID" => GetMessage("T_IBLOCK_DESC_ID")), "DEFAULT" => "SORT"), "IBLOCK_SORT_ORDER" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBSORTBY"), "TYPE" => "LIST", "DEFAULT" => "ASC", "VALUES" => $arSorts, "ADDITIONAL_VALUES" => "Y"), "SORT_BY1" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBORD1"), "TYPE" => "LIST", "DEFAULT" => "ACTIVE_FROM", "VALUES" => $arSortFields, "ADDITIONAL_VALUES" => "Y"), "SORT_ORDER1" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBBY1"), "TYPE" => "LIST", "DEFAULT" => "DESC", "VALUES" => $arSorts, "ADDITIONAL_VALUES" => "Y"), "SORT_BY2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBORD2"), "TYPE" => "LIST", "DEFAULT" => "SORT", "VALUES" => $arSortFields, "ADDITIONAL_VALUES" => "Y"), "SORT_ORDER2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBBY2"), "TYPE" => "LIST", "DEFAULT" => "ASC", "VALUES" => $arSorts, "ADDITIONAL_VALUES" => "Y"), "FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("IBLOCK_FIELD"), "DATA_SOURCE"), "PROPERTY_CODE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arProperty_LNS, "ADDITIONAL_VALUES" => "Y"), "FILTER_NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_FILTER_NAME_IN"), "TYPE" => "STRING", "DEFAULT" => "arrFilter"), "IBLOCK_URL" => CIBlockParameters::GetPathTemplateParam("LIST", "IBLOCK_URL", GetMessage("IBLOCK_IBLOCK_URL"), "", "URL_TEMPLATES"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("IBLOCK_DETAIL_URL"), "", "URL_TEMPLATES"), "ACTIVE_DATE_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_IBLOCK_DESC_ACTIVE_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "CACHE_TIME" => array("DEFAULT" => 36000000), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BNI_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
コード例 #19
0
ファイル: iblockdocument.php プロジェクト: spas-viktor/books
    function GetFieldInputControlOptions($documentType, &$arFieldType, $jsFunctionName, &$value)
    {
        $result = "";
        static $arDocumentFieldTypes = array();
        if (!array_key_exists($documentType, $arDocumentFieldTypes)) {
            $arDocumentFieldTypes[$documentType] = self::GetDocumentFieldTypes($documentType);
        }
        if (!array_key_exists($arFieldType["Type"], $arDocumentFieldTypes[$documentType]) || !$arDocumentFieldTypes[$documentType][$arFieldType["Type"]]["Complex"]) {
            return "";
        }
        if ($arFieldType["Type"] == "E:EList") {
            if (is_array($value)) {
                reset($value);
                $valueTmp = intval(current($value));
            } else {
                $valueTmp = intval($value);
            }
            $iblockId = 0;
            if ($valueTmp > 0) {
                $dbResult = CIBlockElement::GetList(array(), array("ID" => $valueTmp), false, false, array("ID", "IBLOCK_ID"));
                if ($arResult = $dbResult->Fetch()) {
                    $iblockId = $arResult["IBLOCK_ID"];
                }
            }
            if ($iblockId <= 0 && intval($arFieldType["Options"]) > 0) {
                $iblockId = intval($arFieldType["Options"]);
            }
            $defaultIBlockId = 0;
            $result .= '<select id="WFSFormOptionsX" onchange="' . htmlspecialcharsbx($jsFunctionName) . '(this.options[this.selectedIndex].value)">';
            $arIBlockType = CIBlockParameters::GetIBlockTypes();
            foreach ($arIBlockType as $iblockTypeId => $iblockTypeName) {
                $result .= '<optgroup label="' . $iblockTypeName . '">';
                $dbIBlock = CIBlock::GetList(array("SORT" => "ASC"), array("TYPE" => $iblockTypeId, "ACTIVE" => "Y"));
                while ($arIBlock = $dbIBlock->GetNext()) {
                    $result .= '<option value="' . $arIBlock["ID"] . '"' . ($arIBlock["ID"] == $iblockId ? " selected" : "") . '>' . $arIBlock["NAME"] . '</option>';
                    if ($defaultIBlockId <= 0 || $arIBlock["ID"] == $iblockId) {
                        $defaultIBlockId = $arIBlock["ID"];
                    }
                }
                $result .= '</optgroup>';
            }
            $result .= '</select><!--__defaultOptionsValue:' . $defaultIBlockId . '--><!--__modifyOptionsPromt:' . GetMessage("IBD_DOCUMENT_MOPROMT") . '-->';
            $arFieldType["Options"] = $defaultIBlockId;
        } elseif ($arFieldType["Type"] == "select") {
            $valueTmp = $arFieldType["Options"];
            if (!is_array($valueTmp)) {
                $valueTmp = array($valueTmp => $valueTmp);
            }
            $str = '';
            foreach ($valueTmp as $k => $v) {
                if (is_array($v) && count($v) == 2) {
                    $v1 = array_values($v);
                    $k = $v1[0];
                    $v = $v1[1];
                }
                if ($k != $v) {
                    $str .= '[' . $k . ']' . $v;
                } else {
                    $str .= $v;
                }
                $str .= "\n";
            }
            $result .= '<textarea id="WFSFormOptionsX" rows="5" cols="30">' . htmlspecialcharsbx($str) . '</textarea><br />';
            $result .= GetMessage("IBD_DOCUMENT_XFORMOPTIONS1") . '<br />';
            $result .= GetMessage("IBD_DOCUMENT_XFORMOPTIONS2") . '<br />';
            $result .= '<script type="text/javascript">
				function WFSFormOptionsXFunction()
				{
					var result = {};
					var i, id, val, str = document.getElementById("WFSFormOptionsX").value;

					var arr = str.split(/[\\r\\n]+/);
					var p, re = /\\[([^\\]]+)\\].+/;
					for (i in arr)
					{
						str = arr[i].replace(/^\\s+|\\s+$/g, \'\');
						if (str.length > 0)
						{
							id = str.match(re);
							if (id)
							{
								p = str.indexOf(\']\');
								id = id[1];
								val = str.substr(p + 1);
							}
							else
							{
								val = str;
								id = val;
							}
							result[id] = val;
						}
					}

					return result;
				}
				</script>';
            $result .= '<input type="button" onclick="' . htmlspecialcharsbx($jsFunctionName) . '(WFSFormOptionsXFunction())" value="' . GetMessage("IBD_DOCUMENT_XFORMOPTIONS3") . '">';
        }
        return $result;
    }
コード例 #20
0
ファイル: comp_parameters.php プロジェクト: ASDAFF/open_bx
	public static function GetPathTemplateParam($menuType, $ID, $parameterName, $defaultValue = "", $parentID = "URL_TEMPLATES")
	{
		return array(
			"PARENT" => $parentID,
			"NAME" => $parameterName,
			"TYPE" => "CUSTOM",
			"DEFAULT" => $defaultValue,
			"JS_FILE" => FX_ROOT."/js/iblock/path_templates.js",
			"JS_EVENT" => "IBlockComponentProperties",
			"JS_DATA" => str_replace("\n", "", CUtil::PhpToJSObject(array(
				"mnu_".$ID, //menu div ID
				5000, //zIndex
				CIBlockParameters::GetPathTemplateMenuItems($menuType, "window.IBlockComponentPropertiesObj.Action", "mnu_".$ID), //Menu items
			))),
		);
	}
コード例 #21
0
ファイル: .parameters.php プロジェクト: webgksupport/alpina
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arTypes = CIBlockParameters::GetIBlockTypes();
$arIBlocks = array();
$db_iblock = CIBlock::GetList(array("SORT" => "ASC"), array("SITE_ID" => $_REQUEST["site"], "TYPE" => $arCurrentValues["IBLOCK_TYPE"] != "-" ? $arCurrentValues["IBLOCK_TYPE"] : ""));
while ($arRes = $db_iblock->Fetch()) {
    $arIBlocks[$arRes["ID"]] = $arRes["NAME"];
}
$arDATE_FIELD = array("DATE_ACTIVE_FROM" => "[DATE_ACTIVE_FROM] " . GetMessage("T_IBLOCK_DESC_CAL_DATE_ACTIVE_FROM"), "DATE_ACTIVE_TO" => "[DATE_ACTIVE_TO] " . GetMessage("T_IBLOCK_DESC_CAL_DATE_ACTIVE_TO"), "TIMESTAMP_X" => "[TIMESTAMP_X] " . GetMessage("T_IBLOCK_DESC_CAL_TIMESTAMP_X"), "DATE_CREATE" => "[DATE_CREATE] " . GetMessage("T_IBLOCK_DESC_CAL_DATE_CREATE"));
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("AJAX_MODE" => array(), "IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_TYPE"), "TYPE" => "LIST", "VALUES" => $arTypes, "DEFAULT" => "news", "MULTIPLE" => "N", "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_ID"), "TYPE" => "LIST", "VALUES" => $arIBlocks, "DEFAULT" => '={$_REQUEST["ID"]}', "MULTIPLE" => "N", "ADDITIONAL_VALUES" => "Y", "REFRESH" => "Y"), "MONTH_VAR_NAME" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_MVN"), "TYPE" => "STRING", "DEFAULT" => "month"), "YEAR_VAR_NAME" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_YVN"), "TYPE" => "STRING", "DEFAULT" => "year"), "WEEK_START" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_WS"), "TYPE" => "LIST", "DEFAULT" => 1, "VALUES" => array("0" => GetMessage("T_IBLOCK_DESC_CAL_WS_0"), "1" => GetMessage("T_IBLOCK_DESC_CAL_WS_1"), "2" => GetMessage("T_IBLOCK_DESC_CAL_WS_2"), "3" => GetMessage("T_IBLOCK_DESC_CAL_WS_3"), "4" => GetMessage("T_IBLOCK_DESC_CAL_WS_4"), "5" => GetMessage("T_IBLOCK_DESC_CAL_WS_5"), "6" => GetMessage("T_IBLOCK_DESC_CAL_WS_6"))), "DATE_FIELD" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_DATE_FIELD"), "TYPE" => "LIST", "DEFAULT" => "DATE_ACTIVE_FROM", "VALUES" => $arDATE_FIELD), "TYPE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_TYPE"), "TYPE" => "LIST", "DEFAULT" => "EVENTS", "VALUES" => array("EVENTS" => GetMessage("T_IBLOCK_DESC_CAL_TYPE_EVENTS"), "NEWS" => GetMessage("T_IBLOCK_DESC_CAL_TYPE_NEWS"))), "SHOW_YEAR" => array("PARENT" => "VISUAL", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_SHOW_YEAR"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SHOW_TIME" => array("PARENT" => "VISUAL", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_SHOW_TIME"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "TITLE_LEN" => array("PARENT" => "VISUAL", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_TITLE_LEN"), "TYPE" => "STRING", "DEFAULT" => "0"), "SET_TITLE" => array(), "SHOW_CURRENT_DATE" => array("PARENT" => "VISUAL", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_SHOW_CURRENT_DATE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SHOW_MONTH_LIST" => array("PARENT" => "VISUAL", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_SHOW_MONTH_LIST"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "NEWS_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("T_IBLOCK_DESC_CAL_NEWS_COUNT"), "TYPE" => "STRING", "DEFAULT" => "0"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("IBLOCK_DETAIL_URL"), "", "URL_TEMPLATES"), "CACHE_TIME" => array("DEFAULT" => 36000000)));
コード例 #22
0
ファイル: .parameters.php プロジェクト: webgksupport/alpina
$handle = opendir($path);
$file_exist = false;
if ($handle) {
    while ($file = readdir($handle)) {
        if ($file == "." || $file == ".." || !is_file($path . $file)) {
            continue;
        }
        $file_exist = true;
        $arFiles[$file] = $file;
    }
}
if (!$file_exist) {
    $arFiles = array("" => GetMessage("P_FONTS_NONE"));
}
$hidden = $arCurrentValues["USE_LIGHT_VIEW"] == "N" ? "N" : "Y";
$arComponentParameters = array("GROUPS" => array("PAGE_SETTINGS" => array("NAME" => GetMessage("P_PAGE_SETTINGS"), "SORT" => "100"), "PHOTO_SETTINGS" => array("NAME" => GetMessage("P_PHOTO_SETTINGS"), "SORT" => "150"), "RATING_SETTINGS" => array("NAME" => GetMessage("T_IBLOCK_DESC_RATING_SETTINGS")), "TAGS_CLOUD" => array("NAME" => GetMessage("T_TAGS_CLOUD")), "UPLOADER" => array("NAME" => GetMessage("P_UPLOADER"))), "PARAMETERS" => array("USE_LIGHT_VIEW" => array("PARENT" => "BASE", "NAME" => GetMessage("P_USE_LIGHT_VIEW"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"), "IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock), "GALLERY_GROUPS" => array("PARENT" => "BASE", "NAME" => GetMessage("P_GALLERY_GROUPS"), "TYPE" => "LIST", "VALUES" => $arUGroupsEx, "DEFAULT" => array(1), "MULTIPLE" => "Y"), "ONLY_ONE_GALLERY" => array("PARENT" => "BASE", "NAME" => GetMessage("P_ONLY_ONE_GALLERY"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "MODERATION" => array("PARENT" => "BASE", "NAME" => GetMessage("P_GLOBAL_MODERATE"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SECTION_SORT_BY" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("ID" => "ID", "NAME" => GetMessage("IBLOCK_SORT_NAME"), "SORT" => GetMessage("IBLOCK_SORT_SORT"), "ELEMENT_CNT" => GetMessage("IBLOCK_SORT_ELEMENTS_CNT"), "UF_DATE" => GetMessage("IBLOCK_SORT_DATE")), "DEFAULT" => "UF_DATE", "HIDDEN" => $hidden), "SECTION_SORT_ORD" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("ASC" => GetMessage("IBLOCK_SORT_ASC"), "DESC" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "DESC", "HIDDEN" => $hidden), "ELEMENT_SORT_FIELD" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("shows" => GetMessage("IBLOCK_SORT_SHOWS"), "sort" => GetMessage("IBLOCK_SORT_SORT"), "timestamp_x" => GetMessage("IBLOCK_SORT_TIMESTAMP"), "name" => GetMessage("IBLOCK_SORT_NAME"), "id" => $arCurrentValues["DRAG_SORT"] == "N" ? GetMessage("IBLOCK_SORT_ID") : GetMessage("IBLOCK_SORT_ID_SORTED"), "rating" => GetMessage("IBLOCK_SORT_RATING"), "comments" => GetMessage("IBLOCK_SORT_COMMENTS")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "id", "HIDDEN" => $hidden), "ELEMENT_SORT_ORDER" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "desc", "HIDDEN" => $hidden), "PATH_TO_USER" => array("PARENT" => "BASE", "NAME" => GetMessage("P_PATH_TO_USER"), "TYPE" => "STRING", "DEFAULT" => ""), "VARIABLE_ALIASES" => array("USER_ID" => array("NAME" => GetMessage("USER_ID_DESC")), "USER_ALIAS" => array("NAME" => GetMessage("USER_ALIAS_DESC")), "SECTION_ID" => array("NAME" => GetMessage("SECTION_ID_DESC")), "ELEMENT_ID" => array("NAME" => GetMessage("ELEMENT_ID_DESC")), "PAGE_NAME" => array("NAME" => GetMessage("PAGE_NAME_DESC")), "ACTION" => array("NAME" => GetMessage("ACTION_DESC"))), "SEF_MODE" => array("index" => array("NAME" => GetMessage("INDEX_PAGE"), "DEFAULT" => "index.php", "VARIABLES" => array()), "galleries" => array("NAME" => GetMessage("GALLERIES_PAGE"), "DEFAULT" => "galleries/#USER_ID#/", "VARIABLES" => array()), "gallery" => array("NAME" => GetMessage("GALLERY_PAGE"), "DEFAULT" => "#USER_ALIAS#/", "VARIABLES" => array("USER_ALIAS")), "gallery_edit" => array("NAME" => GetMessage("GALLERY_EDIT_PAGE"), "DEFAULT" => "#USER_ALIAS#/action/#ACTION#/", "VARIABLES" => array("USER_ALIAS", "ACTION")), "section" => array("NAME" => GetMessage("SECTION_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID")), "section_edit" => array("NAME" => GetMessage("SECTION_EDIT_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/action/#ACTION#/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID", "ACTION")), "section_edit_icon" => array("NAME" => GetMessage("SECTION_EDIT_ICON_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/icon/action/#ACTION#/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID", "ACTION")), "upload" => array("NAME" => GetMessage("UPLOAD_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/action/upload/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID")), "detail" => array("NAME" => GetMessage("DETAIL_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/#ELEMENT_ID#/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID", "ELEMENT_ID")), "detail_edit" => array("NAME" => GetMessage("DETAIL_EDIT_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/#ELEMENT_ID#/action/#ACTION#/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID", "ELEMENT_ID")), "detail_slide_show" => array("NAME" => GetMessage("DETAIL_SLIDE_SHOW_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/#ELEMENT_ID#/slide_show/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID", "ELEMENT_ID")), "detail_list" => array("NAME" => GetMessage("DETAIL_LIST_PAGE"), "DEFAULT" => "list/", "VARIABLES" => array())), "SECTION_PAGE_ELEMENTS" => array("PARENT" => "PAGE_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_PAGE_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => "15", "HIDDEN" => $hidden), "ELEMENTS_PAGE_ELEMENTS" => array("PARENT" => "PAGE_SETTINGS", "NAME" => GetMessage("IBLOCK_ELEMENTS_PAGE_ELEMENTS"), "TYPE" => "STRING", "DEFAULT" => '50', "HIDDEN" => $hidden), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "PAGE_SETTINGS", "NAME" => GetMessage("P_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "", "HIDDEN" => $hidden), "DATE_TIME_FORMAT_SECTION" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT_SECTION"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT_DETAIL" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT_DETAIL"), "ADDITIONAL_SETTINGS"), "GALLERY_AVATAR_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_GALLERY_AVATAR_SIZE"), "TYPE" => "STRING", "DEFAULT" => "50"), "ALBUM_PHOTO_THUMBS_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ALBUM_PHOTO_THUMBS_SIZE"), "TYPE" => "STRING", "DEFAULT" => "120"), "THUMBNAIL_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_THUMBS_SIZE"), "TYPE" => "STRING", "DEFAULT" => "100"), "ORIGINAL_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ORIGINAL_SIZE"), "TYPE" => "STRING", "DEFAULT" => "1280"), "JPEG_QUALITY1" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_JPEG_QUALITY1"), "TYPE" => "STRING", "DEFAULT" => "100", "HIDDEN" => $hidden), "JPEG_QUALITY" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_JPEG_QUALITY"), "TYPE" => "STRING", "DEFAULT" => "100", "HIDDEN" => $hidden), "ADDITIONAL_SIGHTS" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ADDITIONAL_SIGHTS"), "TYPE" => "LIST", "VALUES" => $arSights, "DEFAULT" => array(), "MULTIPLE" => "Y", "HIDDEN" => $hidden), "USE_RATING" => array("PARENT" => "RATING_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_USE_RATING"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "REFRESH" => "Y"), "SHOW_TAGS" => array("PARENT" => "TAGS_CLOUD", "NAME" => GetMessage("P_SHOW_TAGS"), "TYPE" => "CHECKBOX", "REFRESH" => IsModuleInstalled("search") ? "Y" : "N", "DEFAULT" => "N"), "SET_TITLE" => array(), "CACHE_TIME" => array("DEFAULT" => 3600)), "DRAG_SORT" => array("PARENT" => "BASE", "NAME" => GetMessage("P_DRAG_SORT"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"));
if ($hidden == "Y") {
    unset($arComponentParameters["GROUPS"]["PAGE_SETTINGS"]);
}
if ($arCurrentValues["USE_PERMISSIONS"] != "Y") {
    unset($arComponentParameters["PARAMETERS"]["GROUP_PERMISSIONS"]);
}
$arComponentParameters["PARAMETERS"]["SHOW_NAVIGATION"] = array("PARENT" => "BASE", "NAME" => GetMessage("P_SHOW_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y");
/* UPLOADER PARAMS */
if ($arCurrentValues["UPLOADER_TYPE"]) {
    $arComponentParameters["PARAMETERS"]["UPLOADER_TYPE"] = array("PARENT" => "UPLOADER", "NAME" => GetMessage("P_UPLOADER_TYPE"), "TYPE" => "LIST", "VALUES" => array("form" => GetMessage("P_UPLOADER_TYPE_FORM_SIMPLE"), "applet" => GetMessage("P_UPLOADER_TYPE_APPLET"), "flash" => GetMessage("P_UPLOADER_TYPE_FLASH")), "DEFAULT" => "form", "HIDDEN" => $arCurrentValues["UPLOADER_TYPE"] == "form" ? "Y" : "N", "REFRESH" => "Y");
}
if ($arCurrentValues["UPLOADER_TYPE"] == "applet") {
    $arComponentParameters["PARAMETERS"]["APPLET_LAYOUT"] = array("PARENT" => "UPLOADER", "NAME" => GetMessage("P_APPLET_LAYOUT"), "TYPE" => "LIST", "VALUES" => array("extended" => GetMessage("P_APPLET_LAYOUT_EXTENDED"), "simple" => GetMessage("P_APPLET_LAYOUT_SIMPLE")), "DEFAULT" => "extended");
}
//This function transforms the php.ini notation for numbers (like 2G, 3M, 1T) to an value in Mb
コード例 #23
0
ファイル: .parameters.php プロジェクト: spas-viktor/books
        }
    }
}
$arSort = CIBlockParameters::GetElementSortFields(array('SHOWS', 'SORT', 'TIMESTAMP_X', 'NAME', 'ID', 'ACTIVE_FROM', 'ACTIVE_TO'), array('KEY_LOWERCASE' => 'Y'));
$arPrice = array();
if ($boolCatalog) {
    $arSort = array_merge($arSort, CCatalogIBlockParameters::GetCatalogSortFields());
    $rsPrice = CCatalogGroup::GetList($v1 = "sort", $v2 = "asc");
    while ($arr = $rsPrice->Fetch()) {
        $arPrice[$arr["NAME"]] = "[" . $arr["NAME"] . "] " . $arr["NAME_LANG"];
    }
} else {
    $arPrice = $arProperty_N;
}
$arAscDesc = array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC"));
$arComponentParameters = array("GROUPS" => array("PRICES" => array("NAME" => GetMessage("IBLOCK_PRICES"))), "PARAMETERS" => array("AJAX_MODE" => array(), "NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_COMPARE_NAME"), "TYPE" => "STRING", "DEFAULT" => "CATALOG_COMPARE_LIST"), "IBLOCK_TYPE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock, "REFRESH" => "Y"), "FIELD_CODE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_FIELD"), "TYPE" => "LIST", "MULTIPLE" => "Y", "ADDITIONAL_VALUES" => "N", "VALUES" => array("ID" => GetMessage("IBLOCK_FIELD_ID"), "NAME" => GetMessage("IBLOCK_FIELD_NAME"), "PREVIEW_TEXT" => GetMessage("IBLOCK_FIELD_PREVIEW_TEXT"), "PREVIEW_PICTURE" => GetMessage("IBLOCK_FIELD_PREVIEW_PICTURE"), "DETAIL_TEXT" => GetMessage("IBLOCK_FIELD_DETAIL_TEXT"), "DETAIL_PICTURE" => GetMessage("IBLOCK_FIELD_DETAIL_PICTURE"), "DATE_ACTIVE_FROM" => GetMessage("IBLOCK_FIELD_DATE_ACTIVE_FROM"), "DATE_ACTIVE_TO" => GetMessage("IBLOCK_FIELD_DATE_ACTIVE_TO"))), "PROPERTY_CODE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty, "ADDITIONAL_VALUES" => "Y"), "OFFERS_FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("CP_BCCR_OFFERS_FIELD_CODE"), "DATA_SOURCE"), "OFFERS_PROPERTY_CODE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCCR_OFFERS_PROPERTY_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_Offers, "ADDITIONAL_VALUES" => "Y"), "ELEMENT_SORT_FIELD" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => $arSort, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "sort"), "ELEMENT_SORT_ORDER" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "asc", "ADDITIONAL_VALUES" => "Y"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("IBLOCK_DETAIL_URL"), "", "ADDITIONAL_SETTINGS"), "BASKET_URL" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_BASKET_URL"), "TYPE" => "STRING", "DEFAULT" => "/personal/basket.php"), "ACTION_VARIABLE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_ACTION_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "action"), "PRODUCT_ID_VARIABLE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_PRODUCT_ID_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "id"), "SECTION_ID_VARIABLE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_ID_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "SECTION_ID"), "PRICE_CODE" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_PRICE_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arPrice), "USE_PRICE_COUNT" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_USE_PRICE_COUNT"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SHOW_PRICE_COUNT" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_SHOW_PRICE_COUNT"), "TYPE" => "STRING", "DEFAULT" => "1"), "PRICE_VAT_INCLUDE" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_VAT_INCLUDE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "DISPLAY_ELEMENT_SELECT_BOX" => array("NAME" => GetMessage("T_IBLOCK_DESC_ELEMENT_BOX"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "ELEMENT_SORT_FIELD_BOX" => array("NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD_BOX"), "TYPE" => "LIST", "VALUES" => $arSort, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "name"), "ELEMENT_SORT_ORDER_BOX" => array("NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER_BOX"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "asc", "ADDITIONAL_VALUES" => "Y"), "ELEMENT_SORT_FIELD_BOX2" => array("NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD_BOX2"), "TYPE" => "LIST", "VALUES" => $arSort, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "id"), "ELEMENT_SORT_ORDER_BOX2" => array("NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER_BOX2"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "desc", "ADDITIONAL_VALUES" => "Y")));
if ($boolCatalog) {
    $arComponentParameters["PARAMETERS"]['HIDE_NOT_AVAILABLE'] = array('NAME' => GetMessage('CP_BCCR_HIDE_NOT_AVAILABLE'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N');
    if (CModule::IncludeModule('currency')) {
        $arComponentParameters["PARAMETERS"]['CONVERT_CURRENCY'] = array('PARENT' => 'PRICES', 'NAME' => GetMessage('CP_BCCR_CONVERT_CURRENCY'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N', 'REFRESH' => 'Y');
        if (isset($arCurrentValues['CONVERT_CURRENCY']) && 'Y' == $arCurrentValues['CONVERT_CURRENCY']) {
            $arCurrencyList = array();
            $rsCurrencies = CCurrency::GetList($by = 'SORT', $order = 'ASC');
            while ($arCurrency = $rsCurrencies->Fetch()) {
                $arCurrencyList[$arCurrency['CURRENCY']] = $arCurrency['CURRENCY'];
            }
            $arComponentParameters['PARAMETERS']['CURRENCY_ID'] = array('PARENT' => 'PRICES', 'NAME' => GetMessage('CP_BCCR_CURRENCY_ID'), 'TYPE' => 'LIST', 'VALUES' => $arCurrencyList, 'DEFAULT' => CCurrency::GetBaseCurrency(), "ADDITIONAL_VALUES" => "Y");
        }
    }
}
if (!$OFFERS_IBLOCK_ID) {
コード例 #24
0
ファイル: .parameters.php プロジェクト: Varfann/bx-features
<?php

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
    die;
}
/**
 * @var array               $arCurrentValues
 * @global CUserTypeManager $USER_FIELD_MANAGER
 */
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\Loader;
Loc::loadLanguageFile(__FILE__);
global $USER_FIELD_MANAGER;
if (!Loader::includeModule('iblock')) {
    return;
}
$iBlockTypeList = CIBlockParameters::GetIBlockTypes();
$iBlockCollection = CIBlock::GetList(['sort' => 'asc'], ['TYPE' => $arCurrentValues['IBLOCK_TYPE'], 'ACTIVE' => 'Y']);
while ($arr = $iBlockCollection->Fetch()) {
    $iBlockList[$arr['ID']] = '[' . $arr['ID'] . '] ' . $arr['NAME'];
}
$userFieldPropertyList = [];
$userFieldList = $USER_FIELD_MANAGER->GetUserFields('IBLOCK_' . $arCurrentValues['IBLOCK_ID'] . '_SECTION');
foreach ($userFieldList as $FIELD_NAME => $userField) {
    $userFieldPropertyList[$FIELD_NAME] = $userField['LIST_COLUMN_LABEL'] ? $userField['LIST_COLUMN_LABEL'] : $FIELD_NAME;
}
$arComponentParameters = ['GROUPS' => [], 'PARAMETERS' => ['IBLOCK_TYPE' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('CC_IBSL_IBLOCK_TYPE'), 'TYPE' => 'LIST', 'VALUES' => $iBlockTypeList, 'REFRESH' => 'Y'], 'IBLOCK_ID' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('CC_IBSL_IBLOCK_ID'), 'TYPE' => 'LIST', 'ADDITIONAL_VALUES' => 'Y', 'VALUES' => $iBlockList, 'REFRESH' => 'Y'], 'SECTION_ID' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('CC_IBSL_SECTION_ID'), 'TYPE' => 'STRING', 'DEFAULT' => '={$_REQUEST["SECTION_ID"]}'], 'SECTION_CODE' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('CC_IBSL_SECTION_CODE'), 'TYPE' => 'STRING', 'DEFAULT' => ''], 'FILTER_NAME' => ['PARENT' => 'DATA_SOURCE', 'NAME' => Loc::getMessage('CC_IBSL_FILTER_NAME'), 'TYPE' => 'STRING', 'DEFAULT' => ''], 'SECTION_URL' => CIBlockParameters::GetPathTemplateParam('SECTION', 'SECTION_URL', Loc::getMessage('CC_IBSL_SECTION_URL'), '', 'URL_TEMPLATES'), 'COUNT_ELEMENTS' => ['PARENT' => 'DATA_SOURCE', 'NAME' => Loc::getMessage('CC_IBSL_COUNT_ELEMENTS'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'], 'TOP_DEPTH' => ['PARENT' => 'DATA_SOURCE', 'NAME' => Loc::getMessage('CC_IBSL_TOP_DEPTH'), 'TYPE' => 'STRING', 'DEFAULT' => '2'], 'SECTION_FIELDS' => CIBlockParameters::GetSectionFieldCode(Loc::getMessage('CC_IBSL_SECTION_FIELDS'), 'DATA_SOURCE', []), 'SECTION_USER_FIELDS' => ['PARENT' => 'DATA_SOURCE', 'NAME' => Loc::getMessage('CC_IBSL_SECTION_USER_FIELDS'), 'TYPE' => 'LIST', 'MULTIPLE' => 'Y', 'ADDITIONAL_VALUES' => 'Y', 'VALUES' => $userFieldPropertyList], 'ADD_SECTIONS_CHAIN' => ['PARENT' => 'ADDITIONAL_SETTINGS', 'NAME' => Loc::getMessage('CC_IBSL_ADD_SECTIONS_CHAIN'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'], 'CACHE_TIME' => ['DEFAULT' => 36000000], 'CACHE_GROUPS' => ['PARENT' => 'CACHE_SETTINGS', 'NAME' => Loc::getMessage('CC_IBSL_CACHE_GROUPS'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y']]];
コード例 #25
0
ファイル: .parameters.php プロジェクト: ASDAFF/open_bx
			"TYPE" => "CHECKBOX",
			"DEFAULT" => "Y",
		),
	),
);
CIBlockParameters::AddPagerSettings($arComponentParameters, GetMessage("T_IBLOCK_DESC_PAGER_PHOTO"), true, true);

if($arCurrentValues["USE_FILTER"]=="Y")
{
	$arComponentParameters["PARAMETERS"]["FILTER_NAME"] = array(
		"PARENT" => "FILTER_SETTINGS",
		"NAME" => GetMessage("T_IBLOCK_FILTER"),
		"TYPE" => "STRING",
		"DEFAULT" => "",
	);
	$arComponentParameters["PARAMETERS"]["FILTER_FIELD_CODE"] = CIBlockParameters::GetFieldCode(GetMessage("IBLOCK_FIELD"), "FILTER_SETTINGS");
	$arComponentParameters["PARAMETERS"]["FILTER_PROPERTY_CODE"] = array(
		"PARENT" => "FILTER_SETTINGS",
		"NAME" => GetMessage("T_IBLOCK_PROPERTY"),
		"TYPE" => "LIST",
		"MULTIPLE" => "Y",
		"VALUES" => $arProperty_LNS,
		"ADDITIONAL_VALUES" => "Y",
	);
}
if($arCurrentValues["USE_PERMISSIONS"]!="Y")
	unset($arComponentParameters["PARAMETERS"]["GROUP_PERMISSIONS"]);
if($arCurrentValues["USE_RATING"]=="Y")
{
	$arComponentParameters["PARAMETERS"]["MAX_VOTE"] = array(
		"PARENT" => "RATING_SETTINGS",
コード例 #26
0
ファイル: .parameters.php プロジェクト: Satariall/izurit
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arIBlockType = array();
$rsIBlockType = CIBlockType::GetList(array("sort" => "asc"), array("ACTIVE" => "Y"));
while ($arr = $rsIBlockType->Fetch()) {
    if ($ar = CIBlockType::GetByIDLang($arr["ID"], LANGUAGE_ID)) {
        $arIBlockType[$arr["ID"]] = "[" . $arr["ID"] . "] " . $ar["~NAME"];
    }
}
$arIBlock = array();
$rsIBlock = CIBlock::GetList(array("sort" => "asc"), array("TYPE" => $arCurrentValues["IBLOCK_TYPE"], "ACTIVE" => "Y"));
while ($arr = $rsIBlock->Fetch()) {
    $arIBlock[$arr["ID"]] = "[" . $arr["ID"] . "] " . $arr["NAME"];
}
if (empty($arCurrentValues["INDEX_URL"]) && !empty($arCurrentValues["SECTIONS_TOP_URL"])) {
    $arCurrentValues["INDEX_URL"] = $arCurrentValues["SECTIONS_TOP_URL"];
}
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock), "SECTION_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["SECTION_ID"]}'), "SECTION_CODE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_CODE"), "TYPE" => "STRING", "DEFAULT" => ''), "USER_ALIAS" => array("PARENT" => "BASE", "NAME" => GetMessage("P_USER_ALIAS"), "TYPE" => "STRING", "DEFAULT" => ''), "BEHAVIOUR" => array("PARENT" => "BASE", "NAME" => GetMessage("P_BEHAVIOUR"), "TYPE" => "STRING", "DEFAULT" => '', "REFRESH" => "Y"), "ACTION" => array("PARENT" => "BASE", "NAME" => GetMessage("P_ACTION"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["ACTION"]}'), "INDEX_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_INDEX_URL"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "SECTION_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_SECTION_URL"), "TYPE" => "STRING", "DEFAULT" => "section.php?" . ($arCurrentValues["BEHAVIOUR"] == "USER" ? "USER_ALIAS=#USER_ALIAS#" : "") . "SECTION_ID=#SECTION_ID#"), "DATE_TIME_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "SET_STATUS_404" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_SET_STATUS_404"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "CACHE_TIME" => array("DEFAULT" => 3600), "SET_TITLE" => array()));
if ($arCurrentValues["BEHAVIOUR"] == "USER") {
    $arComponentParameters["PARAMETERS"]["GALLERY_URL"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_GALLERY_URL"), "TYPE" => "STRING", "DEFAULT" => "gallery.php?USER_ALIAS=#USER_ALIAS#");
}
コード例 #27
0
ファイル: .parameters.php プロジェクト: ASDAFF/entask.ru
		"CACHE_TIME"  =>  array("DEFAULT"=>36000000),
		"CACHE_FILTER" => array(
			"PARENT" => "ADDITIONAL_SETTINGS",
			"NAME" => GetMessage("IBLOCK_CACHE_FILTER"),
			"TYPE" => "CHECKBOX",
			"DEFAULT" => "N",
		),
		"CACHE_GROUPS" => array(
			"PARENT" => "CACHE_SETTINGS",
			"NAME" => GetMessage("CP_BCS_CACHE_GROUPS"),
			"TYPE" => "CHECKBOX",
			"DEFAULT" => "Y",
		),
	),
);
CIBlockParameters::AddPagerSettings($arComponentParameters, GetMessage("T_IBLOCK_DESC_PAGER_CATALOG"), true, true);

if ($boolCatalog)
{
	$arComponentParameters["PARAMETERS"]['HIDE_NOT_AVAILABLE'] = array(
		'PARENT' => 'DATA_SOURCE',
		'NAME' => GetMessage('CP_BCS_HIDE_NOT_AVAILABLE'),
		'TYPE' => 'CHECKBOX',
		'DEFAULT' => 'N',
	);
	$arComponentParameters["PARAMETERS"]['CONVERT_CURRENCY'] = array(
		'PARENT' => 'PRICES',
		'NAME' => GetMessage('CP_BCS_CONVERT_CURRENCY'),
		'TYPE' => 'CHECKBOX',
		'DEFAULT' => 'N',
		'REFRESH' => 'Y',
コード例 #28
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arIBlockType = CIBlockParameters::GetIBlockTypes();
$rsIBlock = CIBlock::GetList(array("sort" => "asc"), array("TYPE" => $arCurrentValues["IBLOCK_TYPE"], "ACTIVE" => "Y"));
while ($arr = $rsIBlock->Fetch()) {
    $arIBlock[$arr["ID"]] = "[" . $arr["ID"] . "] " . $arr["NAME"];
}
$arProperty_UF = array();
$arUserFields = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("IBLOCK_" . $arCurrentValues["IBLOCK_ID"] . "_SECTION");
foreach ($arUserFields as $FIELD_NAME => $arUserField) {
    $arProperty_UF[$FIELD_NAME] = $arUserField["LIST_COLUMN_LABEL"] ? $arUserField["LIST_COLUMN_LABEL"] : $FIELD_NAME;
}
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCSL_IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCSL_IBLOCK_ID"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock, "REFRESH" => "Y"), "SECTION_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCSL_SECTION_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["SECTION_ID"]}'), "SECTION_CODE" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCSL_SECTION_CODE"), "TYPE" => "STRING", "DEFAULT" => ''), "SECTION_URL" => CIBlockParameters::GetPathTemplateParam("SECTION", "SECTION_URL", GetMessage("CP_BCSL_SECTION_URL"), "", "URL_TEMPLATES"), "FILTER_NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCSL_FILTER_NAME"), "TYPE" => "STRING", "DEFAULT" => 'arrFilter'), "COUNT_ELEMENTS" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCSL_COUNT_ELEMENTS"), "TYPE" => "CHECKBOX", "DEFAULT" => 'Y'), "TOP_DEPTH" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCSL_TOP_DEPTH"), "TYPE" => "STRING", "DEFAULT" => '2'), "SECTION_FIELDS" => CIBlockParameters::GetSectionFieldCode(GetMessage("CP_BCSL_SECTION_FIELDS"), "DATA_SOURCE", array()), "SECTION_USER_FIELDS" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCSL_SECTION_USER_FIELDS"), "TYPE" => "LIST", "MULTIPLE" => "Y", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arProperty_UF), "ADD_SECTIONS_CHAIN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BCSL_ADD_SECTIONS_CHAIN"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "CACHE_TIME" => array("DEFAULT" => 36000000), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BCSL_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
コード例 #29
0
    $arComponentParameters["PARAMETERS"]["TOP_ELEMENT_SORT_FIELD"] = array("PARENT" => "TOP_SETTINGS", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("shows" => GetMessage("IBLOCK_SORT_SHOWS"), "sort" => GetMessage("IBLOCK_SORT_SORT"), "timestamp_x" => GetMessage("IBLOCK_SORT_TIMESTAMP"), "name" => GetMessage("IBLOCK_SORT_NAME"), "id" => GetMessage("IBLOCK_SORT_ID"), "active_from" => GetMessage("IBLOCK_SORT_ACTIVE_FROM"), "active_to" => GetMessage("IBLOCK_SORT_ACTIVE_TO")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "sort");
    $arComponentParameters["PARAMETERS"]["TOP_ELEMENT_SORT_ORDER"] = array("PARENT" => "TOP_SETTINGS", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "asc", "ADDITIONAL_VALUES" => "Y");
    $arComponentParameters["PARAMETERS"]["TOP_PROPERTY_CODE"] = array("PARENT" => "TOP_SETTINGS", "NAME" => GetMessage("BC_P_TOP_PROPERTY_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arProperty, "ADDITIONAL_VALUES" => "Y");
    if ($OFFERS_IBLOCK_ID) {
        $arComponentParameters["PARAMETERS"]["TOP_OFFERS_FIELD_CODE"] = CIBlockParameters::GetFieldCode(GetMessage("CP_BC_TOP_OFFERS_FIELD_CODE"), "TOP_SETTINGS");
        $arComponentParameters["PARAMETERS"]["TOP_OFFERS_PROPERTY_CODE"] = array("PARENT" => "TOP_SETTINGS", "NAME" => GetMessage("CP_BC_TOP_OFFERS_PROPERTY_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_Offers, "ADDITIONAL_VALUES" => "Y");
        $arComponentParameters["PARAMETERS"]["TOP_OFFERS_LIMIT"] = array("PARENT" => "TOP_SETTINGS", "NAME" => GetMessage("CP_BC_TOP_OFFERS_LIMIT"), "TYPE" => "STRING", "DEFAULT" => 5);
    }
}
if ($arCurrentValues["USE_FILTER"] == "Y") {
    $arComponentParameters["PARAMETERS"]["FILTER_NAME"] = array("PARENT" => "FILTER_SETTINGS", "NAME" => GetMessage("T_IBLOCK_FILTER"), "TYPE" => "STRING", "DEFAULT" => "");
    $arComponentParameters["PARAMETERS"]["FILTER_FIELD_CODE"] = CIBlockParameters::GetFieldCode(GetMessage("IBLOCK_FIELD"), "FILTER_SETTINGS");
    $arComponentParameters["PARAMETERS"]["FILTER_PROPERTY_CODE"] = array("PARENT" => "FILTER_SETTINGS", "NAME" => GetMessage("T_IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_LNS, "ADDITIONAL_VALUES" => "Y");
    $arComponentParameters["PARAMETERS"]["FILTER_PRICE_CODE"] = array("PARENT" => "FILTER_SETTINGS", "NAME" => GetMessage("IBLOCK_PRICE_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arPrice);
    if ($OFFERS_IBLOCK_ID) {
        $arComponentParameters["PARAMETERS"]["FILTER_OFFERS_FIELD_CODE"] = CIBlockParameters::GetFieldCode(GetMessage("CP_BC_FILTER_OFFERS_FIELD_CODE"), "FILTER_SETTINGS");
        $arComponentParameters["PARAMETERS"]["FILTER_OFFERS_PROPERTY_CODE"] = array("PARENT" => "FILTER_SETTINGS", "NAME" => GetMessage("CP_BC_FILTER_OFFERS_PROPERTY_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_Offers, "ADDITIONAL_VALUES" => "Y");
    }
}
if (!IsModuleInstalled("forum")) {
    unset($arComponentParameters["PARAMETERS"]["USE_REVIEW"]);
    unset($arComponentParameters["GROUPS"]["REVIEW_SETTINGS"]);
} elseif ($arCurrentValues["USE_REVIEW"] == "Y") {
    $arForumList = array();
    if (CModule::IncludeModule("forum")) {
        $rsForum = CForumNew::GetList();
        while ($arForum = $rsForum->Fetch()) {
            $arForumList[$arForum["ID"]] = $arForum["NAME"];
        }
    }
    $arComponentParameters["PARAMETERS"]["MESSAGES_PER_PAGE"] = array("PARENT" => "REVIEW_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => intVal(COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10")));
コード例 #30
0
ファイル: .parameters.php プロジェクト: rasuldev/torino
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arIBlockType = array();
$rsIBlockType = CIBlockType::GetList(array("sort" => "asc"), array("ACTIVE" => "Y"));
while ($arr = $rsIBlockType->Fetch()) {
    if ($ar = CIBlockType::GetByIDLang($arr["ID"], LANGUAGE_ID)) {
        $arIBlockType[$arr["ID"]] = "[" . $arr["ID"] . "] " . $ar["~NAME"];
    }
}
$arIBlock = array();
$rsIBlock = CIBlock::GetList(array("sort" => "asc"), array("TYPE" => $arCurrentValues["IBLOCK_TYPE"], "ACTIVE" => "Y"));
while ($arr = $rsIBlock->Fetch()) {
    $arIBlock[$arr["ID"]] = "[" . $arr["ID"] . "] " . $arr["NAME"];
}
$arUGroupsEx = array();
$dbUGroups = CGroup::GetList($by = "c_sort", $order = "asc");
while ($arUGroups = $dbUGroups->Fetch()) {
    $arUGroupsEx[$arUGroups["ID"]] = $arUGroups["NAME"];
}
if (empty($arCurrentValues["INDEX_URL"]) && !empty($arCurrentValues["SECTIONS_TOP_URL"])) {
    $arCurrentValues["INDEX_URL"] = $arCurrentValues["SECTIONS_TOP_URL"];
}
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock), "USER_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("P_USER_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["USER_ID"]}'), "SORT_BY" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("ID" => "ID", "NAME" => GetMessage("IBLOCK_SORT_NAME"), "SORT" => GetMessage("IBLOCK_SORT_SORT"), "UF_DATE" => GetMessage("IBLOCK_SORT_DATE")), "DEFAULT" => "UF_DATE"), "SORT_ORD" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("ASC" => GetMessage("IBLOCK_SORT_ASC"), "DESC" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "ASC"), "INDEX_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("P_INDEX_URL"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "GALLERY_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("P_GALLERY_URL"), "TYPE" => "STRING", "DEFAULT" => "gallery.php?USER_ALIAS=#USER_ALIAS#"), "GALLERY_EDIT_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("P_GALLERY_EDIT_URL"), "TYPE" => "STRING", "DEFAULT" => "gallery_edit.php?USER_ALIAS=#USER_ALIAS#&ACTION=#ACTION#"), "UPLOAD_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("P_UPLOAD_URL"), "TYPE" => "STRING", "DEFAULT" => "upload.php?USER_ALIAS=#USER_ALIAS#&SECTION_ID=#SECTION_ID#&ACTION=upload"), "ONLY_ONE_GALLERY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_ONLY_ONE_GALLERY"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "GALLERY_GROUPS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_GALLERY_GROUPS"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arUGroupsEx), "GALLERY_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_GALLERY_SIZE"), "TYPE" => "STRING", "DEFAULT" => "50"), "PAGE_ELEMENTS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_PAGE_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => 0), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "DATE_TIME_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "GALLERY_AVATAR_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_GALLERY_AVATAR_SIZE"), "TYPE" => "STRING", "DEFAULT" => ""), "SET_STATUS_404" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_SET_STATUS_404"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "CACHE_TIME" => array("DEFAULT" => 3600)));