Current Path : /home/bitrix/ext_www/klimatlend.ua/bitrix/components/bitrix/calendar.grid/ |
Current File : /home/bitrix/ext_www/klimatlend.ua/bitrix/components/bitrix/calendar.grid/.parameters.php |
<? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); if(!CModule::IncludeModule("calendar")) return; $adv_mode = ($arCurrentValues["ADVANCED_MODE_SETTINGS"] == 'Y'); $eventListMode = ($arCurrentValues["EVENT_LIST_MODE"] == 'Y'); $bSocNet = CModule::IncludeModule("socialnetwork"); if($bSocNet) $bSocNet = class_exists('CSocNetUserToGroup') && CBXFeatures::IsFeatureEnabled("Calendar"); $arTypes = array(); $types = CCalendarType::GetList(); if (is_array($types)) { foreach($types as $type) $arTypes[$type["XML_ID"]] = "[".$type["XML_ID"]."] ".$type["NAME"]; } // * * * * * * * * * * * * Groups * * * * * * * * * * * * $arComponentParameters = array(); // $arComponentParameters["GROUPS"] = array( // "BASE_SETTINGS" => array("NAME" => GetMessage("EC_GROUP_BASE_SETTINGS"), "SORT" => "100") // ); //* * * * * * * * * * * Parameters * * * * * * * * * * * $arParams = array(); $arParams["CALENDAR_TYPE"] = Array( "PARENT" => "BASE", "NAME" => GetMessage("EC_TYPE"), "TYPE" => "LIST", "VALUES" => $arTypes ); if (CCalendar::IsIntranetEnabled()) { $arParams["ALLOW_SUPERPOSE"] = Array( "PARENT" => "BASE", "NAME" => GetMessage("EC_P_ALLOW_SUPERPOSE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y" ); $arParams["ALLOW_RES_MEETING"] = Array( "PARENT" => "BASE", "NAME" => GetMessage("EC_P_ALLOW_RES_MEETING"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y" ); } $arComponentParameters["PARAMETERS"] = $arParams; ?>