当前位置: 首页>>代码示例>>PHP>>正文


PHP CComponentUtil::GetDateFormatField方法代码示例

本文整理汇总了PHP中CComponentUtil::GetDateFormatField方法的典型用法代码示例。如果您正苦于以下问题:PHP CComponentUtil::GetDateFormatField方法的具体用法?PHP CComponentUtil::GetDateFormatField怎么用?PHP CComponentUtil::GetDateFormatField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CComponentUtil的用法示例。


在下文中一共展示了CComponentUtil::GetDateFormatField方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("forum")) {
    return;
}
$arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["FID"]}'), "USE_DESC_PAGE" => array("PARENT" => "BASE", "NAME" => GetMessage("F_USE_DESC_PAGE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "URL_TEMPLATES_INDEX" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_INDEX_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "URL_TEMPLATES_FORUMS" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_FORUMS_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "forums.php?GID=#GID#"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "URL_TEMPLATES_MESSAGE_APPR" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_APPR_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_appr.php?FID=#FID#"), "URL_TEMPLATES_TOPIC_NEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_TOPIC_NEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_new.php?FID=#FID#"), "URL_TEMPLATES_SUBSCR_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_SUBSCRIBE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "subscr_list.php?FID=#FID#"), "URL_TEMPLATES_TOPIC_MOVE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MOVE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_move.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_RSS" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_RSS_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "rss.php?TYPE=#TYPE#&MODE=#MODE#&IID=#IID#"), "PAGEN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGEN"), "TYPE" => "STRING", "DEFAULT" => intVal($GLOBALS["NavNum"] + 1)), "TOPICS_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_TOPICS_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => intVal(COption::GetOptionString("forum", "TOPICS_PER_PAGE", "10"))), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => intVal(COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10"))), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => "11"), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "WORD_LENGTH" => CForumParameters::GetWordLength(), "CACHE_TIME" => array(), "SET_TITLE" => array()));
开发者ID:rasuldev,项目名称:torino,代码行数:9,代码来源:.parameters.php

示例2: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("forum")) {
    return;
}
$arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("SHOW_USER_STATUS" => array("PARENT" => "BASE", "NAME" => GetMessage("F_SHOW_USER_STATUS"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "URL_TEMPLATES_MESSAGE_SEND" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_SEND_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_send.php?TYPE=#TYPE#&UID=#UID#"), "URL_TEMPLATES_PM_EDIT" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PM_EDIT_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "pm_edit.php?FID=#FID#&MID=#MID#&UID=#UID#&mode=#mode#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "URL_TEMPLATES_USER_POST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_USER_POST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "user_post.php?UID=#UID#&mode=#mode#"), "USERS_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_USERS_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => "20"), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "SET_TITLE" => array(), "CACHE_TIME" => array()));
if (is_set($arCurrentValues, "SEND_ICQ")) {
    $arComponentParameters["PARAMETERS"]["SEND_ICQ"] = CForumParameters::GetSendMessageRights(GetMessage("F_SEND_ICQ"), "BASE", "A", "ICQ");
}
if (is_set($arCurrentValues, "SEND_MAIL")) {
    $arComponentParameters["PARAMETERS"]["SEND_MAIL"] = CForumParameters::GetSendMessageRights(GetMessage("F_SEND_MAIL"), "BASE", "E");
}
开发者ID:Satariall,项目名称:izurit,代码行数:15,代码来源:.parameters.php

示例3: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
CModule::IncludeModule('intranet');
if (!CModule::IncludeModule("socialnetwork")) {
    return false;
}
$arComponentParameters = array('GROUPS' => array('FILTER' => array('NAME' => GetMessage('INTR_IS_GROUP_FILTER'))), 'PARAMETERS' => array('AJAX_MODE' => array(), 'SEARCH_URL' => array('TYPE' => 'STRING', 'MULTIPLE' => 'N', 'DEFAULT' => 'search.php', 'NAME' => GetMessage('INTR_IS_PARAM_SEARCH_URL'), 'PARENT' => 'BASE'), 'PM_URL' => array('TYPE' => 'STRING', 'DEFAULT' => '/company/personal/messages/chat/#USER_ID#/', 'NAME' => GetMessage('INTR_IS_PARAM_PM_URL'), 'PARENT' => 'BASE'), 'PATH_TO_CONPANY_DEPARTMENT' => array('TYPE' => 'STRING', 'DEFAULT' => '/company/structure.php?set_filter_structure=Y&structure_UF_DEPARTMENT=#ID#', 'NAME' => GetMessage('INTR_IS_PARAM_PATH_TO_CONPANY_DEPARTMENT'), 'PARENT' => 'BASE'), 'FILTER_1C_USERS' => array('TYPE' => 'CHECKBOX', 'MULTIPLE' => 'N', 'DEFAULT' => 'Y', 'NAME' => GetMessage('INTR_IS_PARAM_FILTER_1C_USERS'), 'PARENT' => 'FILTER'), 'FILTER_NAME' => array('TYPE' => 'STRING', 'MULTIPLE' => 'N', 'DEFAULT' => 'users', 'PARENT' => 'FILTER', 'NAME' => GetMessage('INTR_IS_PARAM_FILTER_NAME')), 'USERS_PER_PAGE' => array('TYPE' => 'STRING', 'MULTIPLE' => 'N', 'DEFAULT' => '10', 'NAME' => GetMessage('INTR_IS_PARAM_USERS_PER_PAGE'), 'PARENT' => 'BASE'), 'FILTER_SECTION_CURONLY' => array('TYPE' => 'LIST', 'VALUES' => array('Y' => GetMessage('INTR_IS_PARAM_FILTER_SECTION_CURONLY_VALUE_Y'), 'N' => GetMessage('INTR_IS_PARAM_FILTER_SECTION_CURONLY_VALUE_N')), 'MULTIPLE' => 'N', 'DEFAULT' => 'N', 'NAME' => GetMessage('INTR_IS_PARAM_FILTER_SECTION_CURONLY'), 'PARENT' => 'BASE'), 'NAME_TEMPLATE' => array('TYPE' => 'LIST', 'NAME' => GetMessage('INTR_IS_PARAM_NAME_TEMPLATE'), 'VALUES' => CComponentUtil::GetDefaultNameTemplates(), 'MULTIPLE' => 'N', 'ADDITIONAL_VALUES' => 'Y', 'DEFAULT' => '', 'PARENT' => 'BASE'), "SHOW_LOGIN" => array("NAME" => GetMessage("INTR_IS_PARAM_SHOW_LOGIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "BASE"), 'SHOW_ERROR_ON_NULL' => array('TYPE' => 'CHECKBOX', 'MULTIPLE' => 'N', 'DEFAULT' => 'N', 'NAME' => GetMessage('INTR_IS_PARAM_SHOW_ERROR_ON_NULL'), 'PARENT' => 'BASE'), 'NAV_TITLE' => array('TYPE' => 'STRING', 'MULTIPLE' => 'N', 'DEFAULT' => GetMessage('INTR_IS_PARAM_NAV_TITLE_DEFAULT'), 'NAME' => GetMessage('INTR_IS_PARAM_NAV_TITLE'), 'PARENT' => 'BASE'), 'SHOW_NAV_TOP' => array('TYPE' => 'CHECKBOX', 'MULTIPLE' => 'N', 'DEFAULT' => 'Y', 'NAME' => GetMessage('INTR_IS_PARAM_SHOW_NAV_TOP'), 'PARENT' => 'BASE'), 'SHOW_NAV_BOTTOM' => array('TYPE' => 'CHECKBOX', 'MULTIPLE' => 'N', 'DEFAULT' => 'Y', 'NAME' => GetMessage('INTR_IS_PARAM_SHOW_NAV_BOTTOM'), 'PARENT' => 'BASE'), 'SHOW_UNFILTERED_LIST' => array('TYPE' => 'CHECKBOX', 'MULTIPLE' => 'N', 'DEFAULT' => 'N', 'NAME' => GetMessage('INTR_IS_PARAM_SHOW_UNFILTERED_LIST'), 'PARENT' => 'BASE'), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("INTR_IS_PARAM_DATE_FORMAT"), 'ADDITIONAL_SETTINGS'), "DATE_FORMAT_NO_YEAR" => CComponentUtil::GetDateFormatField(GetMessage("INTR_IS_PARAM_DATE_FORMAT_NO_YEAR"), 'ADDITIONAL_SETTINGS', true), "SHOW_YEAR" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("INTR_IS_PARAM_SHOW_YEAR"), "TYPE" => "LIST", "VALUES" => array("Y" => GetMessage("INTR_IS_PARAM_SHOW_YEAR_VALUE_Y"), "M" => GetMessage("INTR_IS_PARAM_SHOW_YEAR_VALUE_M"), "N" => GetMessage("INTR_IS_PARAM_SHOW_YEAR_VALUE_N")), "MULTIPLE" => "N", "DEFAULT" => "Y"), 'CACHE_TIME' => array('DEFAULT' => 3600)));
$arComponentParameters["PARAMETERS"]["DATE_TIME_FORMAT"] = CComponentUtil::GetDateTimeFormatField(GetMessage("INTR_IS_PARAM_DATE_TIME_FORMAT"), 'ADDITIONAL_SETTINGS');
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:11,代码来源:.parameters.php

示例4: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("forum")) {
    return;
}
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("USER", 0, LANGUAGE_ID);
$userProp = array();
if (!empty($arRes)) {
    foreach ($arRes as $key => $val) {
        $userProp[$val["FIELD_NAME"]] = strLen($val["EDIT_FORM_LABEL"]) > 0 ? $val["EDIT_FORM_LABEL"] : $val["FIELD_NAME"];
    }
}
$arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("UID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_UID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["UID"]}'), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_PROFILE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile.php?UID=#UID#"), "URL_TEMPLATES_USER_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_USER_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "user_list.php"), "URL_TEMPLATES_PM_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PM_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "pm_list.php"), "URL_TEMPLATES_MESSAGE_SEND" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_SEND_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_send.php?TYPE=#TYPE#&UID=#UID#"), "URL_TEMPLATES_PM_EDIT" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PM_EDIT_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "pm_edit.php"), "URL_TEMPLATES_SUBSCR_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_SUBSCR_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "subscr_list.php"), "URL_TEMPLATES_USER_POST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_USER_POST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "user_post.php?UID=#UID#&mode=#mode#"), "FID_RANGE" => CForumParameters::GetForumsMultiSelect(GetMessage("F_FID_RANGE"), "ADDITIONAL_SETTINGS"), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "SEND_MAIL" => CForumParameters::GetSendMessageRights(GetMessage("F_SEND_MAIL"), "ADDITIONAL_SETTINGS", "E"), "SEND_ICQ" => CForumParameters::GetSendMessageRights(GetMessage("F_SEND_ICQ"), "ADDITIONAL_SETTINGS", "E", "ICQ"), "USER_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("USER_PROPERTY"), "TYPE" => "LIST", "VALUES" => $userProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "CACHE_TIME" => array(), "SET_TITLE" => array()));
// rating
$arComponentParameters["GROUPS"]["RATING_SETTINGS"] = array("NAME" => GetMessage("F_RATING_SETTINGS"));
$arComponentParameters["PARAMETERS"]["SHOW_RATING"] = array("PARENT" => "RATING_SETTINGS", "NAME" => GetMessage("SHOW_RATING"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("SHOW_RATING_CONFIG"), "Y" => GetMessage("MAIN_YES"), "N" => GetMessage("MAIN_NO")), "MULTIPLE" => "N", "DEFAULT" => "", "REFRESH" => "Y");
if ($arCurrentValues["SHOW_RATING"] != "N") {
    $arRatingsList = array();
    $db_res = CRatings::GetList($aSort = array("ID" => "ASC"), array("ACTIVE" => "Y", "ENTITY_ID" => "USER"));
    while ($res = $db_res->Fetch()) {
        $arRatingsList[$res["ID"]] = "[ " . $res["ID"] . " ] " . $res["NAME"];
    }
    $arComponentParameters["PARAMETERS"]["RATING_ID"] = array("PARENT" => "RATING_SETTINGS", "NAME" => GetMessage("F_RATING_ID"), "TYPE" => "LIST", "VALUES" => $arRatingsList, "DEFAULT" => "", "REFRESH" => "N");
    $arComponentParameters["PARAMETERS"]["RATING_TYPE"] = array("NAME" => GetMessage("RATING_TYPE"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("RATING_TYPE_CONFIG"), "like" => GetMessage("RATING_TYPE_LIKE_TEXT"), "like_graphic" => GetMessage("RATING_TYPE_LIKE_GRAPHIC"), "standart_text" => GetMessage("RATING_TYPE_STANDART_TEXT"), "standart" => GetMessage("RATING_TYPE_STANDART_GRAPHIC")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "RATING_SETTINGS");
}
开发者ID:webgksupport,项目名称:alpina,代码行数:28,代码来源:.parameters.php

示例5: array

 * @param array $arCurrentValues
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/components/bitrix/desktop/include.php';
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("ID" => array("NAME" => GetMessage("CMDESKTOP_PARAMS_ID"), "TYPE" => "STRING", "DEFAULT" => "holder1" . (strlen($_REQUEST["src_site"]) > 0 ? $_REQUEST["src_site"] : ""), "PARENT" => "DATA_SOURCE"), "CAN_EDIT" => array("NAME" => GetMessage("CMDESKTOP_PARAMS_CAN_EDIT"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "PARENT" => "DATA_SOURCE"), "COLUMNS" => array("NAME" => GetMessage("CMDESKTOP_PARAMS_COLUMNS"), "TYPE" => "STRING", "DEFAULT" => "3", "PARENT" => "DATA_SOURCE", "REFRESH" => "Y")));
if (IsModuleInstalled('intranet')) {
    CModule::IncludeModule('socialnetwork');
    $arComponentParameters["PARAMETERS"]["PM_URL"] = array('TYPE' => 'STRING', 'DEFAULT' => '/company/personal/messages/chat/#USER_ID#/', 'NAME' => GetMessage('CMDESKTOP_PARAMS_PM_URL'), 'PARENT' => 'ADDITIONAL_SETTINGS');
    $arComponentParameters["PARAMETERS"]["PATH_TO_CONPANY_DEPARTMENT"] = array('TYPE' => 'STRING', 'DEFAULT' => '/company/structure.php?set_filter_structure=Y&structure_UF_DEPARTMENT=#ID#', 'NAME' => GetMessage('CMDESKTOP_PARAMS_PATH_TO_CONPANY_DEPARTMENT'), 'PARENT' => 'ADDITIONAL_SETTINGS');
    if (IsModuleInstalled("video")) {
        $arComponentParameters["PARAMETERS"]["PATH_TO_VIDEO_CALL"] = array('TYPE' => 'STRING', 'DEFAULT' => '/company/personal/video/#USER_ID#/', 'NAME' => GetMessage('CMDESKTOP_PARAMS_PATH_TO_VIDEO_CALL'), 'PARENT' => 'ADDITIONAL_SETTINGS');
    }
    $arComponentParameters["PARAMETERS"]["NAME_TEMPLATE"] = array('TYPE' => 'LIST', 'NAME' => GetMessage('CMDESKTOP_PARAMS_NAME_TEMPLATE'), 'VALUES' => CComponentUtil::GetDefaultNameTemplates(), 'MULTIPLE' => 'N', 'ADDITIONAL_VALUES' => 'Y', 'DEFAULT' => '', 'PARENT' => 'ADDITIONAL_SETTINGS');
    $arComponentParameters["PARAMETERS"]["SHOW_LOGIN"] = array("NAME" => GetMessage("CMDESKTOP_PARAMS_SHOW_LOGIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS");
    $arComponentParameters["PARAMETERS"]["DATE_TIME_FORMAT"] = CComponentUtil::GetDateTimeFormatField(GetMessage("CMDESKTOP_PARAMS_DATE_TIME_FORMAT"), 'ADDITIONAL_SETTINGS');
    $arComponentParameters["PARAMETERS"]["DATE_FORMAT"] = CComponentUtil::GetDateFormatField(GetMessage("CMDESKTOP_PARAMS_DATE_FORMAT"), 'ADDITIONAL_SETTINGS');
    $arComponentParameters["PARAMETERS"]["DATE_FORMAT_NO_YEAR"] = CComponentUtil::GetDateFormatField(GetMessage("CMDESKTOP_PARAMS_DATE_FORMAT_NO_YEAR"), 'ADDITIONAL_SETTINGS', true);
    $arComponentParameters["PARAMETERS"]["SHOW_YEAR"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CMDESKTOP_PARAMS_SHOW_YEAR"), "TYPE" => "LIST", "VALUES" => array("Y" => GetMessage("CMDESKTOP_PARAMS_SHOW_YEAR_VALUE_Y"), "M" => GetMessage("CMDESKTOP_PARAMS_SHOW_YEAR_VALUE_M"), "N" => GetMessage("CMDESKTOP_PARAMS_SHOW_YEAR_VALUE_N")), "MULTIPLE" => "N", "DEFAULT" => "M");
}
if ($arCurrentValues["COLUMNS"] > 0) {
    $d = intval(100 / $arCurrentValues["COLUMNS"]) . "%";
    for ($i = 0; $i < $arCurrentValues["COLUMNS"]; $i++) {
        $arComponentParameters["PARAMETERS"]["COLUMN_WIDTH_" . $i] = array("NAME" => GetMessage("CMDESKTOP_PARAMS_COLUMN_WITH") . " #" . ($i + 1), "PARENT" => "DATA_SOURCE", "TYPE" => "STRING", "DEFAULT" => $d);
    }
}
$arComponentParameters["PARAMETERS"]["GADGETS"] = array("NAME" => GetMessage("CMDESKTOP_PARAMS_GADGETS"), "TYPE" => "LIST", "DEFAULT" => "ALL", "PARENT" => "DATA_SOURCE", "MULTIPLE" => "Y", "SIZE" => "10", "REFRESH" => "Y", "VALUES" => array("ALL" => GetMessage("CMDESKTOP_PARAMS_GADGETS_ALL")));
$arGadgets = BXGadget::GetList(true, $arCurrentValues);
foreach ($arGadgets as $gd) {
    if ($gd["SU_ONLY"] == true || $gd["SG_ONLY"] == true) {
        continue;
    }
    if ($gd["EXTRANET_ONLY"] == true && (!CModule::IncludeModule('extranet') || !CExtranet::IsExtranetSite($_REQUEST["src_site"]))) {
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:31,代码来源:.parameters.php

示例6: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("forum")) {
    return;
}
$arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["FID"]}'), "TID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_TID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["TID"]}'), "URL_TEMPLATES_INDEX" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_INDEX_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_MESSAGE_APPR" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_APPR_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_appr.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "URL_TEMPLATES_PM_EDIT" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PM_EDIT_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "pm_edit.php"), "URL_TEMPLATES_MESSAGE_SEND" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_SEND_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_send.php?UID=#UID#"), "URL_TEMPLATES_TOPIC_NEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_TOPIC_NEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_new.php?FID=#FID#"), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10")), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => "11"), "WORD_LENGTH" => CForumParameters::GetWordLength(), "IMAGE_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_IMAGE_SIZE"), "TYPE" => "STRING", "DEFAULT" => 300), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SET_TITLE" => array(), "CACHE_TIME" => array()));
开发者ID:webgksupport,项目名称:alpina,代码行数:9,代码来源:.parameters.php

示例7: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
CModule::IncludeModule('intranet');
/*
$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"];
*/
$arComponentParameters = array('GROUPS' => array('FILTER' => array('NAME' => GetMessage('INTR_ABSC_GROUP_FILTER'))), 'PARAMETERS' => array('NAME_TEMPLATE' => array('TYPE' => 'LIST', 'NAME' => GetMessage('INTR_ISL_PARAM_NAME_TEMPLATE'), 'VALUES' => CComponentUtil::GetDefaultNameTemplates(), 'MULTIPLE' => 'N', 'ADDITIONAL_VALUES' => 'Y', 'DEFAULT' => "#NOBR##LAST_NAME# #NAME##/NOBR#", 'PARENT' => 'BASE'), 'VIEW_START' => array('PARENT' => 'ADDITIONAL', 'NAME' => GetMessage('INTR_ABSC_PARAM_VIEW_START'), 'TYPE' => 'LIST', 'VALUES' => array('day' => GetMessage('INTR_ABSC_PARAM_VIEW_day'), 'week' => GetMessage('INTR_ABSC_PARAM_VIEW_week'), 'month' => GetMessage('INTR_ABSC_PARAM_VIEW_month')), 'DEFAULT' => 'month', 'PARENT' => 'BASE'), 'FILTER_CONTROLS' => array('PARENT' => 'ADDITIONAL', 'NAME' => GetMessage('INTR_ABSC_PARAM_FILTER_CONTROLS'), 'TYPE' => 'LIST', 'MULTIPLE' => 'Y', 'VALUES' => array('DATEPICKER' => GetMessage('INTR_ABSC_PARAM_FILTER_CONTROLS_DATEPICKER'), 'TYPEFILTER' => GetMessage('INTR_ABSC_PARAM_FILTER_CONTROLS_TYPEFILTER'), 'SHOW_ALL' => GetMessage('INTR_ABSC_PARAM_FILTER_CONTROLS_SHOW_ALL'), 'DEPARTMENT' => GetMessage('INTR_ABSC_PARAM_FILTER_CONTROLS_DEPARTMENT')), 'DEFAULT' => array('DATEPICKER', 'TYPEFILTER', 'DEPARTMENT'), 'PARENT' => 'BASE'), 'FIRST_DAY' => array('TYPE' => 'LIST', 'NAME' => GetMessage('INTR_ISL_PARAM_FIRST_DAY'), 'VALUES' => array('0' => GetMessage('INTR_ISL_PARAM_FIRST_DAY_0'), '1' => GetMessage('INTR_ISL_PARAM_FIRST_DAY_1'), '2' => GetMessage('INTR_ISL_PARAM_FIRST_DAY_2'), '3' => GetMessage('INTR_ISL_PARAM_FIRST_DAY_3'), '4' => GetMessage('INTR_ISL_PARAM_FIRST_DAY_4'), '5' => GetMessage('INTR_ISL_PARAM_FIRST_DAY_5'), '6' => GetMessage('INTR_ISL_PARAM_FIRST_DAY_6')), 'MULTIPLE' => 'N', 'ADDITIONAL_VALUES' => 'N', 'DEFAULT' => "1", 'PARENT' => 'BASE'), 'DAY_START' => array('PARENT' => 'ADDITIONAL', 'NAME' => GetMessage('INTR_ABSC_PARAM_DAY_START'), 'TYPE' => 'STRING', 'DEFAULT' => '9', 'PARENT' => 'BASE'), 'DAY_FINISH' => array('PARENT' => 'ADDITIONAL', 'NAME' => GetMessage('INTR_ABSC_PARAM_DAY_FINISH'), 'TYPE' => 'STRING', 'DEFAULT' => '18', 'PARENT' => 'BASE'), 'DAY_SHOW_NONWORK' => array('PARENT' => 'ADDITIONAL', 'NAME' => GetMessage('INTR_ABSC_PARAM_DAY_SHOW_NONWORK'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N', 'PARENT' => 'BASE'), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("INTR_ABSC_PARAM_DATE_FORMAT"), 'BASE'), "DATETIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("INTR_ABSC_PARAM_DATETIME_FORMAT"), 'BASE')));
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:21,代码来源:.parameters.php

示例8: array

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arTypesEx = array("-" => " ");
$db_iblock_type = CIBlockType::GetList(array("SORT" => "ASC"));
while ($arRes = $db_iblock_type->Fetch()) {
    if ($arIBType = CIBlockType::GetByIDLang($arRes["ID"], LANG)) {
        $arTypesEx[$arRes["ID"]] = $arIBType["NAME"];
    }
}
$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("AJAX_MODE" => array(), "IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_TYPE"), "TYPE" => "LIST", "VALUES" => $arTypesEx, "DEFAULT" => "library", "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"), "DOCS_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), "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"), "DETAIL_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("T_IBLOCK_DESC_DETAIL_PAGE_URL"), "TYPE" => "STRING", "DEFAULT" => "doc_detail.php?ID=#ELEMENT_ID#"), "PREVIEW_TRUNCATE_LEN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_PREVIEW_TRUNCATE_LEN"), "TYPE" => "STRING", "DEFAULT" => ""), "ACTIVE_DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("T_IBLOCK_DESC_ACTIVE_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DISPLAY_PANEL" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_DOCS_PANEL"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SET_TITLE" => array(), "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"), "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" => ''), "CACHE_TIME" => array("DEFAULT" => 3600), "CACHE_FILTER" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("IBLOCK_CACHE_FILTER"), "TYPE" => "CHECKBOX", "DEFAULT" => "N")));
CIBlockParameters::AddPagerSettings($arComponentParameters, GetMessage("T_IBLOCK_DESC_PAGER_DOCS"));
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:30,代码来源:.parameters.php

示例9: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("forum")) {
    return;
}
$arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["FID"]}'), "TID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_TID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["TID"]}'), "MID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_MID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["MID"]}'), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_MESSAGE_MOVE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_MOVE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_move.php?FID=#FID#&TID=#TID#&MID_ARRAY=#MID_ARRAY#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "URL_TEMPLATES_TOPIC_NEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_TOPIC_NEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_new.php?FID=#FID#"), "URL_TEMPLATES_SUBSCR_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_SUBSCR_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "subscr_list.php?FID=#FID#"), "URL_TEMPLATES_TOPIC_MOVE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_TOPIC_MOVE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "topic_move.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_INDEX" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_INDEX_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "URL_TEMPLATES_PM_EDIT" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PM_EDIT_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "pm_edit.php"), "URL_TEMPLATES_MESSAGE_SEND" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_SEND_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message_send.php?UID=#UID#"), "URL_TEMPLATES_RSS" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_RSS_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "rss.php?TYPE=#TYPE#&MODE=#MODE#&IID=#IID#"), "URL_TEMPLATES_USER_POST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_USER_POST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "user_post.php?UID=#UID#&mode=#mode#"), "PATH_TO_SMILE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_DEFAULT_PATH_TO_SMILE"), "TYPE" => "STRING", "DEFAULT" => "/bitrix/images/forum/smile/"), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10")), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "PAGE_NAVIGATION_WINDOW" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_WINDOW"), "TYPE" => "STRING", "DEFAULT" => "11"), "PAGE_NAVIGATION_SHOW_ALL" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_SHOW_ALL"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "WORD_LENGTH" => CForumParameters::GetWordLength(), "IMAGE_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_IMAGE_SIZE"), "TYPE" => "STRING", "DEFAULT" => 500), "SHOW_FIRST_POST" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SHOW_FIRST_POST"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "AJAX_TYPE" => CForumParameters::GetAjaxType(), "SET_PAGE_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_PAGE_PROPERTY"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SET_TITLE" => array(), "CACHE_TIME" => array()));
// rating
$arComponentParameters["GROUPS"]["RATING_SETTINGS"] = array("NAME" => GetMessage("F_RATING_SETTINGS"));
$arComponentParameters["PARAMETERS"]["SHOW_RATING"] = array("NAME" => GetMessage("SHOW_RATING"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("SHOW_RATING_CONFIG"), "Y" => GetMessage("MAIN_YES"), "N" => GetMessage("MAIN_NO")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "RATING_SETTINGS");
if ($arCurrentValues["SHOW_RATING"] != "N") {
    $arRatingsList = array();
    $db_res = CRatings::GetList($aSort = array("ID" => "ASC"), array("ACTIVE" => "Y", "ENTITY_ID" => "USER"));
    while ($res = $db_res->Fetch()) {
        $arRatingsList[$res["ID"]] = "[ " . $res["ID"] . " ] " . $res["NAME"];
    }
    $arComponentParameters["PARAMETERS"]["RATING_ID"] = array("PARENT" => "RATING_SETTINGS", "NAME" => GetMessage("F_RATING_ID"), "TYPE" => "LIST", "VALUES" => $arRatingsList, "DEFAULT" => "", "REFRESH" => "Y");
    $arComponentParameters["PARAMETERS"]["RATING_TYPE"] = array("NAME" => GetMessage("RATING_TYPE"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("RATING_TYPE_CONFIG"), "like" => GetMessage("RATING_TYPE_LIKE_TEXT"), "like_graphic" => GetMessage("RATING_TYPE_LIKE_GRAPHIC"), "standart_text" => GetMessage("RATING_TYPE_STANDART_TEXT"), "standart" => GetMessage("RATING_TYPE_STANDART_GRAPHIC")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "RATING_SETTINGS");
    /*
    $db_res = CGroup::GetList($by, $order, Array());
    while($res = $db_res->Fetch())
    	$arGroupId[$res['ID']] = $res['NAME']." [".$res["ID"]."]";
    
    $arComponentParameters["PARAMETERS"]["RATING_ROLES"] = array(
    	"PARENT" => "RATING_SETTINGS",
    	"NAME" => GetMessage("F_RATING_ROLES"),
    	"TYPE" => "LIST",
    	"VALUES" => $arGroupId,
    	"DEFAULT" => "", 
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:.parameters.php

示例10: intVal

			"message" => "PAGE_NAME=message&FID=#FID#&TID=#TID#&MID=#MID#",
			"group" => "PAGE_NAME=group&GID=#GID#", 
			"user" => "PAGE_NAME=user&UID=#UID#");
*/
/***************** ADDITIONAL **************************************/
$arParams["PAGEN"] = intVal($GLOBALS["NavNum"] + 1);
//$arParams["PAGE_NAVIGATION_TEMPLATE"] = trim($arParams["PAGE_NAVIGATION_TEMPLATE"]);
$arParams["PAGE_NAVIGATION_TEMPLATE"] = "forum";
$arParams["PAGE_NAVIGATION_WINDOW"] = 5;
$arParams["PAGE_NAVIGATION_SHOW_ALL"] = "N";
$arParams["TOPICS_PER_PAGE"] = intVal($arParams["TOPICS_PER_PAGE"] > 0 ? $arParams["TOPICS_PER_PAGE"] : COption::GetOptionString("forum", "TOPICS_PER_PAGE", "10"));
$arParams["MESSAGES_PER_PAGE"] = intVal($arParams["MESSAGES_PER_PAGE"] > 0 ? $arParams["MESSAGES_PER_PAGE"] : COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10"));
$arParams["~DATE_TIME_FORMAT"] = trim($arParams["DATE_TIME_FORMAT"]);
$arParams["DATE_TIME_FORMAT"] = empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : $arParams["DATE_TIME_FORMAT"];
if (empty($arParams["DATE_FORMAT"]) && !empty($arParams["~DATE_TIME_FORMAT"])) {
    $res = CComponentUtil::GetDateFormatField();
    foreach ($res["VALUES"] as $date => $k) {
        if (substr_compare($date, $arParams["~DATE_TIME_FORMAT"], 0, strlen($date), true) == 0) {
            $arParams["DATE_FORMAT"] = $date;
            break;
        }
    }
}
$arParams["DATE_FORMAT"] = trim(empty($arParams["DATE_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")) : $arParams["DATE_FORMAT"]);
$arParams["WORD_LENGTH"] = intVal($arParams["WORD_LENGTH"]);
$arParams["IMAGE_SIZE"] = intVal($arParams["IMAGE_SIZE"]) > 0 ? $arParams["IMAGE_SIZE"] : 300;
$arParams["AJAX_TYPE"] = $arParams["AJAX_TYPE"] == "Y" ? "Y" : "N";
$arParams["AJAX_CALL"] = $_REQUEST["AJAX_CALL"] == "Y" && $arParams["AJAX_TYPE"] == "Y" ? "Y" : "N";
$arParams["FORUM_AJAX_POST"] = $arParams["AJAX_CALL"] == "Y" ? "N" : "Y";
$arParams["PATH_TO_SMILE"] = empty($arParams["PATH_TO_SMILE"]) ? "/bitrix/images/forum/smile/" : $arParams["PATH_TO_SMILE"];
$arParams["PATH_TO_ICON"] = empty($arParams["PATH_TO_ICON"]) ? "/bitrix/images/forum/icon/" : $arParams["PATH_TO_ICON"];
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:forum.php


注:本文中的CComponentUtil::GetDateFormatField方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。