예제 #1
0
 function __CrmDedupeListErrorText(Merger\EntityMergerException $e)
 {
     __IncludeLang(dirname(__FILE__) . '/lang/' . LANGUAGE_ID . '/' . basename(__FILE__));
     $entityTypeID = $e->getEntityTypeID();
     $entityID = $e->getEntityID();
     $code = $e->getCode();
     if ($code === Merger\EntityMergerException::GENERAL) {
         return GetMessage('CRM_DEDUPE_LIST_MERGE_GENERAL_ERROR');
     } elseif ($code === Merger\EntityMergerException::NOT_FOUND) {
         return GetMessage('CRM_DEDUPE_LIST_MERGE_ERROR_NOT_FOUND', array('#ID#' => $entityID));
     }
     $title = CCrmOwnerType::GetCaption($entityTypeID, $entityID, false);
     if (strlen($title) > 20) {
         $title = substr($title, 0, 17) . '...';
     }
     if ($code === Merger\EntityMergerException::READ_DENIED) {
         return GetMessage('CRM_DEDUPE_LIST_MERGE_ERROR_READ_DENIED', array('#TITLE#' => $title, '#ID#' => $entityID));
     } elseif ($code === Merger\EntityMergerException::UPDATE_DENIED) {
         return GetMessage('CRM_DEDUPE_LIST_MERGE_ERROR_UPDATE_DENIED', array('#TITLE#' => $title, '#ID#' => $entityID));
     } elseif ($code === Merger\EntityMergerException::DELETE_DENIED) {
         return GetMessage('CRM_DEDUPE_LIST_MERGE_ERROR_DELETE_DENIED', array('#TITLE#' => $title, '#ID#' => $entityID));
     } elseif ($code === Merger\EntityMergerException::UPDATE_FAILED) {
         return GetMessage('CRM_DEDUPE_LIST_MERGE_ERROR_UPDATE_FAILED', array('#TITLE#' => $title, '#ID#' => $entityID));
     } elseif ($code === Merger\EntityMergerException::DELETE_FAILED) {
         return GetMessage('CRM_DEDUPE_LIST_MERGE_ERROR_DELETE_FAILED', array('#TITLE#' => $title, '#ID#' => $entityID));
     }
     return $e->getMessage();
 }
예제 #2
0
	function __wd_check_uf_use_bp_property($iblock_id)
	{
		$iblock_id = intval($iblock_id); 
		$db_res = CUserTypeEntity::GetList(array($by=>$order), array("ENTITY_ID" => "IBLOCK_".$iblock_id."_SECTION", "FIELD_NAME" => "UF_USE_BP"));
		if (!$db_res || !($res = $db_res->GetNext()))
		{
			$arFields = Array(
				"ENTITY_ID" => "IBLOCK_".$iblock_id."_SECTION",
				"FIELD_NAME" => "UF_USE_BP",
				"USER_TYPE_ID" => "string",
				"MULTIPLE" => "N",
				"MANDATORY" => "N", 
				"SETTINGS" => array("DEFAULT_VALUE" => "Y"));
			$arFieldName = array();
			$rsLanguage = CLanguage::GetList($by, $order, array());
			while($arLanguage = $rsLanguage->Fetch()):
//				GetMessage("SONET_UF_USE_BP");
				$dir = str_replace(array("\\", "//"), "/", dirname(__FILE__)); 
				$dirs = explode("/", $dir); 
				array_pop($dirs); 
				$file = trim(implode("/", $dirs)."/lang/".$arLanguage["LID"]."/include/webdav_settings.php");
				$tmp_mess = __IncludeLang($file, true);
				$arFieldName[$arLanguage["LID"]] = (empty($tmp_mess["SONET_UF_USE_BP"]) ? "Use Business Process" : $tmp_mess["SONET_UF_USE_BP"]);
			endwhile;
			$arFields["EDIT_FORM_LABEL"] = $arFieldName;
			$obUserField  = new CUserTypeEntity;
			$obUserField->Add($arFields);
			$GLOBALS["USER_FIELD_MANAGER"]->arFieldsCache = array();
		}
	}
예제 #3
0
파일: lib.php 프로젝트: Satariall/izurit
function __cat_LoadMess($__current_file)
{
    $__current_dir = dirname($__current_file);
    $__current_file = basename($__current_file);
    $arMess = array();
    $dbLang = CLanguage::GetList($by = 'SORT', $order = 'ASC');
    while ($arLang = $dbLang->Fetch()) {
        $arMess[$arLang['LID']] = __IncludeLang($__current_dir . "/lang/" . $arLang['LID'] . '/' . $__current_file, true);
    }
    return $arMess;
}
예제 #4
0
 function __CopyForumFiles($source_abs, $target_abs, $bReWriteAdditionalFiles = true, $arParams = array())
 {
     $source_base = dirname(__FILE__);
     $source_base = str_replace(array("\\", "//"), "/", $source_base . "/");
     $source_abs = str_replace(array("\\", "//"), "/", $source_abs . "/");
     $target_abs = str_replace(array("\\", "//"), "/", $target_abs . "/");
     $source = substr($source_abs, strLen($source_base));
     $source = str_replace("//", "/", "/" . $source . "/");
     $arParams = is_array($arParams) ? $arParams : array();
     if (file_exists($source_abs)) {
         //Create target directory
         CheckDirPath($target_abs);
         $dh = opendir($source_abs);
         //Read the source
         while ($file = readdir($dh)) {
             if ($file == "." || $file == "..") {
                 continue;
             }
             if (is_dir($source_abs . $file)) {
                 __CopyForumFiles($source_abs . $file, $target_abs . $file, $bReWriteAdditionalFiles);
             } else {
                 $target_file = $target_abs . $file;
                 if ($bReWriteAdditionalFiles || !file_exists($target_file)) {
                     //Here we will write public data
                     $source_file = $source_abs . $file;
                     $fh = fopen($source_file, "rb");
                     $php_source = fread($fh, filesize($source_file));
                     fclose($fh);
                     $arParamsForReplace = array();
                     foreach ($arParams as $key => $val) {
                         $arParamsForReplace["#" . $key . "#"] = $val;
                     }
                     $php_source = str_replace(array_keys($arParamsForReplace), $arParamsForReplace, $php_source);
                     //Parse localization
                     if (preg_match_all('/GetMessage\\("(.*?)"\\)/', $php_source, $matches)) {
                         //Include LANGUAGE_ID file
                         $path = $source_base . "lang/" . LANGUAGE_ID . $source . $file;
                         __IncludeLang($path);
                         //Substite the stuff
                         foreach ($matches[0] as $i => $text) {
                             $php_source = str_replace($text, '"' . GetMessage($matches[1][$i]) . '"', $php_source);
                         }
                     }
                     //Write to the destination directory
                     $fh = fopen($target_file, "wb");
                     fwrite($fh, $php_source);
                     fclose($fh);
                     @chmod($target_file, BX_FILE_PERMISSIONS);
                 }
             }
         }
     }
 }
예제 #5
0
파일: tools.php 프로젝트: Satariall/izurit
function IMIncludeJSLangFile($lang_file)
{
    $pathLang = BX_ROOT . '/modules/im/lang/' . LANGUAGE_ID . '/';
    $mess_lang = array();
    if ($pathLang . $lang_file) {
        $lang_filename = $_SERVER['DOCUMENT_ROOT'] . $pathLang . $lang_file;
        if (file_exists($lang_filename)) {
            $mess_lang = __IncludeLang($lang_filename, true);
            $GLOBALS['APPLICATION']->AddHeadString('<script type="text/javascript">BX.message(' . CUtil::PhpToJSObject($mess_lang, false) . ')</script>', true);
        }
    }
    return true;
}
예제 #6
0
 public static function __IncludeLang($filePath, $fileName, $lang = false)
 {
     if ($lang === false) {
         $lang = LANGUAGE_ID;
     }
     if ($lang != "en" && $lang != "ru") {
         if (file_exists($fname = $_SERVER["DOCUMENT_ROOT"] . $filePath . "/lang/" . LangSubst($lang) . "/" . $fileName)) {
             __IncludeLang($fname);
         }
     }
     if (file_exists($fname = $_SERVER["DOCUMENT_ROOT"] . $filePath . "/lang/" . $lang . "/" . $fileName)) {
         __IncludeLang($fname);
     }
 }
예제 #7
0
 public static function GetDocumentFields($documentType)
 {
     $arDocumentID = self::GetDocumentInfo($documentType . '_0');
     if (empty($arDocumentID)) {
         throw new CBPArgumentNullException('documentId');
     }
     __IncludeLang($_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/components/bitrix/crm.' . strtolower($arDocumentID['TYPE']) . '.edit/lang/' . LANGUAGE_ID . '/component.php');
     $printableFieldNameSuffix = ' (' . GetMessage('CRM_FIELD_BP_TEXT') . ')';
     $emailFieldNameSuffix = ' (' . GetMessage('CRM_FIELD_BP_EMAIL') . ')';
     $arResult = array('ID' => array('Name' => GetMessage('CRM_FIELD_ID'), 'Type' => 'int', 'Filterable' => true, 'Editable' => false, 'Required' => false), 'TITLE' => array('Name' => GetMessage('CRM_FIELD_TITLE_DEAL'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => true), 'OPPORTUNITY' => array('Name' => GetMessage('CRM_FIELD_OPPORTUNITY'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'CURRENCY_ID' => array('Name' => GetMessage('CRM_FIELD_CURRENCY_ID'), 'Type' => 'select', 'Options' => CCrmCurrencyHelper::PrepareListItems(), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'OPPORTUNITY_ACCOUNT' => array('Name' => GetMessage('CRM_FIELD_OPPORTUNITY_ACCOUNT'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ACCOUNT_CURRENCY_ID' => array('Name' => GetMessage('CRM_FIELD_ACCOUNT_CURRENCY_ID'), 'Type' => 'select', 'Options' => CCrmCurrencyHelper::PrepareListItems(), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'PROBABILITY' => array('Name' => GetMessage('CRM_FIELD_PROBABILITY'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ASSIGNED_BY_ID' => array('Name' => GetMessage('CRM_FIELD_ASSIGNED_BY_ID'), 'Type' => 'user', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ASSIGNED_BY_PRINTABLE' => array('Name' => GetMessage('CRM_FIELD_ASSIGNED_BY_ID') . $printableFieldNameSuffix, 'Type' => 'string', 'Filterable' => false, 'Editable' => false, 'Required' => false), 'ASSIGNED_BY_EMAIL' => array('Name' => GetMessage('CRM_FIELD_ASSIGNED_BY_ID') . $emailFieldNameSuffix, 'Type' => 'string', 'Filterable' => false, 'Editable' => false, 'Required' => false), 'STAGE_ID' => array('Name' => GetMessage('CRM_FIELD_STAGE_ID'), 'Type' => 'select', 'Options' => CCrmStatus::GetStatusListEx('DEAL_STAGE'), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'STAGE_ID_PRINTABLE' => array('Name' => GetMessage('CRM_FIELD_STAGE_ID') . $printableFieldNameSuffix, 'Type' => 'string', 'Filterable' => false, 'Editable' => false, 'Required' => false), 'CLOSED' => array('Name' => GetMessage('CRM_FIELD_CLOSED'), 'Type' => 'bool', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'TYPE_ID' => array('Name' => GetMessage('CRM_FIELD_TYPE_ID'), 'Type' => 'select', 'Options' => CCrmStatus::GetStatusListEx('DEAL_TYPE'), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'COMMENTS' => array('Name' => GetMessage('CRM_FIELD_COMMENTS'), 'Type' => 'text', 'Filterable' => false, 'Editable' => true, 'Required' => false), 'BEGINDATE' => array('Name' => GetMessage('CRM_FIELD_BEGINDATE'), 'Type' => 'datetime', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'CLOSEDATE' => array('Name' => GetMessage('CRM_FIELD_CLOSEDATE'), 'Type' => 'datetime', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'EVENT_DATE' => array('Name' => GetMessage('CRM_FIELD_EVENT_DATE'), 'Type' => 'datetime', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'EVENT_ID' => array('Name' => GetMessage('CRM_FIELD_EVENT_ID'), 'Type' => 'select', 'Options' => CCrmStatus::GetStatusListEx('EVENT_TYPE'), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'EVENT_DESCRIPTION' => array('Name' => GetMessage('CRM_FIELD_EVENT_DESCRIPTION'), 'Type' => 'text', 'Filterable' => false, 'Editable' => true, 'Required' => false), "OPENED" => array("Name" => GetMessage("CRM_FIELD_OPENED"), "Type" => "bool", "Filterable" => true, "Editable" => true, "Required" => false), "LEAD_ID" => array("Name" => GetMessage("CRM_FIELD_LEAD_ID"), "Type" => "int", "Filterable" => true, "Editable" => true, "Required" => false), "ORIGINATOR_ID" => array("Name" => GetMessage("CRM_FIELD_ORIGINATOR_ID"), "Type" => "string", "Filterable" => true, "Editable" => true, "Required" => false), "ORIGIN_ID" => array("Name" => GetMessage("CRM_FIELD_ORIGIN_ID"), "Type" => "string", "Filterable" => true, "Editable" => true, "Required" => false), "CONTACT_ID" => array("Name" => GetMessage("CRM_FIELD_CONTACT_ID"), "Type" => "UF:crm", "Options" => array('CONTACT' => 'Y'), "Filterable" => true, "Editable" => true, "Required" => false, "Multiple" => false), "COMPANY_ID" => array("Name" => GetMessage("CRM_FIELD_COMPANY_ID"), "Type" => "UF:crm", "Options" => array('COMPANY' => 'Y'), "Filterable" => true, "Editable" => true, "Required" => false, "Multiple" => false), "DATE_CREATE" => array("Name" => GetMessage("CRM_DEAL_EDIT_FIELD_DATE_CREATE"), "Type" => "datetime", "Filterable" => true, "Editable" => false, "Required" => false), "DATE_MODIFY" => array("Name" => GetMessage("CRM_DEAL_EDIT_FIELD_DATE_MODIFY"), "Type" => "datetime", "Filterable" => true, "Editable" => false, "Required" => false));
     global $USER_FIELD_MANAGER;
     $CCrmUserType = new CCrmUserType($USER_FIELD_MANAGER, 'CRM_DEAL');
     $CCrmUserType->AddBPFields($arResult, array('PRINTABLE_SUFFIX' => GetMessage("CRM_FIELD_BP_TEXT")));
     return $arResult;
 }
예제 #8
0
 public static function GetDocumentFields($documentType)
 {
     $arDocumentID = self::GetDocumentInfo($documentType . '_0');
     if (empty($arDocumentID)) {
         throw new CBPArgumentNullException('documentId');
     }
     __IncludeLang($_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/components/bitrix/crm.' . strtolower($arDocumentID['TYPE']) . '.edit/lang/' . LANGUAGE_ID . '/component.php');
     $printableFieldNameSuffix = ' (' . GetMessage('CRM_FIELD_BP_TEXT') . ')';
     $emailFieldNameSuffix = ' (' . GetMessage('CRM_FIELD_BP_EMAIL') . ')';
     $arResult = array('ID' => array('Name' => GetMessage('CRM_FIELD_ID'), 'Type' => 'int', 'Filterable' => true, 'Editable' => false, 'Required' => false), 'TITLE' => array('Name' => GetMessage('CRM_FIELD_TITLE'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => true), 'COMPANY_TYPE' => array('Name' => GetMessage('CRM_FIELD_COMPANY_TYPE'), 'Type' => 'select', 'Options' => CCrmStatus::GetStatusListEx('COMPANY_TYPE'), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'INDUSTRY' => array('Name' => GetMessage('CRM_FIELD_INDUSTRY'), 'Type' => 'select', 'Options' => CCrmStatus::GetStatusListEx('INDUSTRY'), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'EMPLOYEES' => array('Name' => GetMessage('CRM_FIELD_EMPLOYEES'), 'Type' => 'select', 'Options' => CCrmStatus::GetStatusListEx('EMPLOYEES'), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'REVENUE' => array('Name' => GetMessage('CRM_FIELD_REVENUE'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'CURRENCY_ID' => array('Name' => GetMessage('CRM_FIELD_CURRENCY_ID'), 'Type' => 'select', 'Options' => CCrmCurrencyHelper::PrepareListItems(), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ASSIGNED_BY_ID' => array('Name' => GetMessage('CRM_FIELD_ASSIGNED_BY_ID'), 'Type' => 'user', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ASSIGNED_BY_PRINTABLE' => array('Name' => GetMessage('CRM_FIELD_ASSIGNED_BY_ID') . $printableFieldNameSuffix, 'Type' => 'string', 'Filterable' => false, 'Editable' => false, 'Required' => false), 'ASSIGNED_BY_EMAIL' => array('Name' => GetMessage('CRM_FIELD_ASSIGNED_BY_ID') . $emailFieldNameSuffix, 'Type' => 'string', 'Filterable' => false, 'Editable' => false, 'Required' => false), 'COMMENTS' => array('Name' => GetMessage('CRM_FIELD_COMMENTS'), 'Type' => 'text', 'Filterable' => false, 'Editable' => true, 'Required' => false), 'EMAIL' => array('Name' => GetMessage('CRM_FIELD_EMAIL'), 'Type' => 'email', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'PHONE' => array('Name' => GetMessage('CRM_FIELD_PHONE'), 'Type' => 'phone', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'WEB' => array('Name' => GetMessage('CRM_FIELD_WEB'), 'Type' => 'web', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'IM' => array('Name' => GetMessage('CRM_FIELD_MESSENGER'), 'Type' => 'im', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ADDRESS' => array('Name' => GetMessage('CRM_FIELD_ADDRESS'), 'Type' => 'text', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ADDRESS_LEGAL' => array('Name' => GetMessage('CRM_FIELD_ADDRESS_LEGAL'), 'Type' => 'text', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'BANKING_DETAILS' => array('Name' => GetMessage('CRM_FIELD_BANKING_DETAILS'), 'Type' => 'text', 'Filterable' => true, 'Editable' => true, 'Required' => false), "OPENED" => array("Name" => GetMessage("CRM_FIELD_OPENED"), "Type" => "bool", "Filterable" => true, "Editable" => true, "Required" => false), "LEAD_ID" => array("Name" => GetMessage("CRM_FIELD_LEAD_ID"), "Type" => "int", "Filterable" => true, "Editable" => true, "Required" => false), "ORIGINATOR_ID" => array("Name" => GetMessage("CRM_FIELD_ORIGINATOR_ID"), "Type" => "string", "Filterable" => true, "Editable" => true, "Required" => false), "ORIGIN_ID" => array("Name" => GetMessage("CRM_FIELD_ORIGIN_ID"), "Type" => "string", "Filterable" => true, "Editable" => true, "Required" => false), "CONTACT_ID" => array("Name" => GetMessage("CRM_FIELD_CONTACT_ID"), "Type" => "UF:crm", "Options" => array('CONTACT' => 'Y'), "Filterable" => true, "Editable" => true, "Required" => false, "Multiple" => false), "DATE_CREATE" => array("Name" => GetMessage("CRM_COMPANY_EDIT_FIELD_DATE_CREATE"), "Type" => "datetime", "Filterable" => true, "Editable" => false, "Required" => false), "DATE_MODIFY" => array("Name" => GetMessage("CRM_COMPANY_EDIT_FIELD_DATE_MODIFY"), "Type" => "datetime", "Filterable" => true, "Editable" => false, "Required" => false));
     $ar = CCrmFieldMulti::GetEntityTypeList();
     foreach ($ar as $typeId => $arFields) {
         $arResult[$typeId . '_PRINTABLE'] = array('Name' => GetMessage("CRM_FIELD_MULTI_" . $typeId) . $printableFieldNameSuffix, 'Type' => 'string', "Filterable" => true, "Editable" => false, "Required" => false);
         foreach ($arFields as $valueType => $valueName) {
             $arResult[$typeId . '_' . $valueType] = array('Name' => $valueName, 'Type' => 'string', "Filterable" => true, "Editable" => false, "Required" => false);
             $arResult[$typeId . '_' . $valueType . '_PRINTABLE'] = array('Name' => $valueName . $printableFieldNameSuffix, 'Type' => 'string', "Filterable" => true, "Editable" => false, "Required" => false);
         }
     }
     global $USER_FIELD_MANAGER;
     $CCrmUserType = new CCrmUserType($USER_FIELD_MANAGER, 'CRM_COMPANY');
     $CCrmUserType->AddBPFields($arResult, array('PRINTABLE_SUFFIX' => GetMessage("CRM_FIELD_BP_TEXT")));
     return $arResult;
 }
예제 #9
0
 public static function GetDocumentFields($documentType)
 {
     $arDocumentID = self::GetDocumentInfo($documentType . '_0');
     if (empty($arDocumentID)) {
         throw new CBPArgumentNullException('documentId');
     }
     __IncludeLang($_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/components/bitrix/crm.' . strtolower($arDocumentID['TYPE']) . '.edit/lang/' . LANGUAGE_ID . '/component.php');
     $addressLabels = Bitrix\Crm\EntityAddress::getShortLabels();
     $printableFieldNameSuffix = ' (' . GetMessage('CRM_FIELD_BP_TEXT') . ')';
     $emailFieldNameSuffix = ' (' . GetMessage('CRM_FIELD_BP_EMAIL') . ')';
     $arResult = array('ID' => array('Name' => GetMessage('CRM_FIELD_ID'), 'Type' => 'int', 'Filterable' => true, 'Editable' => false, 'Required' => false), 'TITLE' => array('Name' => GetMessage('CRM_FIELD_TITLE'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => true), 'STATUS_ID' => array('Name' => GetMessage('CRM_FIELD_STATUS_ID'), 'Type' => 'select', 'Options' => CCrmStatus::GetStatusListEx('STATUS'), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'STATUS_ID_PRINTABLE' => array('Name' => GetMessage('CRM_FIELD_STATUS_ID') . $printableFieldNameSuffix, 'Type' => 'string', 'Filterable' => false, 'Editable' => false, 'Required' => false), 'STATUS_DESCRIPTION' => array('Name' => GetMessage('CRM_FIELD_STATUS_DESCRIPTION'), 'Type' => 'text', 'Filterable' => false, 'Editable' => true, 'Required' => false), 'OPPORTUNITY' => array('Name' => GetMessage('CRM_FIELD_OPPORTUNITY'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'CURRENCY_ID' => array('Name' => GetMessage('CRM_FIELD_CURRENCY_ID'), 'Type' => 'select', 'Options' => CCrmCurrencyHelper::PrepareListItems(), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ASSIGNED_BY_ID' => array('Name' => GetMessage('CRM_FIELD_ASSIGNED_BY_ID'), 'Type' => 'user', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ASSIGNED_BY_PRINTABLE' => array('Name' => GetMessage('CRM_FIELD_ASSIGNED_BY_ID') . $printableFieldNameSuffix, 'Type' => 'string', 'Filterable' => false, 'Editable' => false, 'Required' => false), 'ASSIGNED_BY_EMAIL' => array('Name' => GetMessage('CRM_FIELD_ASSIGNED_BY_ID') . $emailFieldNameSuffix, 'Type' => 'string', 'Filterable' => false, 'Editable' => false, 'Required' => false), 'CREATED_BY_ID' => array('Name' => GetMessage('CRM_FIELD_CREATED_BY_ID'), 'Type' => 'user', 'Filterable' => true, 'Editable' => false, 'Required' => false), 'CREATED_BY_PRINTABLE' => array('Name' => GetMessage('CRM_FIELD_CREATED_BY_ID') . $printableFieldNameSuffix, 'Type' => 'string', 'Filterable' => false, 'Editable' => false, 'Required' => false), 'COMMENTS' => array('Name' => GetMessage('CRM_FIELD_COMMENTS'), 'Type' => 'text', 'Filterable' => false, 'Editable' => true, 'Required' => false), 'NAME' => array('Name' => GetMessage('CRM_FIELD_NAME'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'LAST_NAME' => array('Name' => GetMessage('CRM_FIELD_LAST_NAME'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'SECOND_NAME' => array('Name' => GetMessage('CRM_FIELD_SECOND_NAME'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'BIRTHDATE' => array('Name' => GetMessage('CRM_LEAD_EDIT_FIELD_BIRTHDATE'), 'Type' => 'datetime', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'EMAIL' => array('Name' => GetMessage('CRM_FIELD_EMAIL'), 'Type' => 'email', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'PHONE' => array('Name' => GetMessage('CRM_FIELD_PHONE'), 'Type' => 'phone', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'WEB' => array('Name' => GetMessage('CRM_FIELD_WEB'), 'Type' => 'web', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'IM' => array('Name' => GetMessage('CRM_FIELD_MESSENGER'), 'Type' => 'im', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'COMPANY_TITLE' => array('Name' => GetMessage('CRM_FIELD_COMPANY_TITLE'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'POST' => array('Name' => GetMessage('CRM_FIELD_POST'), 'Type' => 'string', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'FULL_ADDRESS' => array('Name' => GetMessage('CRM_FIELD_ADDRESS'), 'Type' => 'text', 'Filterable' => false, 'Editable' => false, 'Required' => false), 'ADDRESS' => array('Name' => $addressLabels['ADDRESS'], 'Type' => 'text', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ADDRESS_2' => array('Name' => $addressLabels['ADDRESS_2'], 'Type' => 'text', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ADDRESS_CITY' => array('Name' => $addressLabels['CITY'], 'Type' => 'text', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ADDRESS_POSTAL_CODE' => array('Name' => $addressLabels['POSTAL_CODE'], 'Type' => 'text', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ADDRESS_REGION' => array('Name' => $addressLabels['REGION'], 'Type' => 'text', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ADDRESS_PROVINCE' => array('Name' => $addressLabels['PROVINCE'], 'Type' => 'text', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'ADDRESS_COUNTRY' => array('Name' => $addressLabels['COUNTRY'], 'Type' => 'text', 'Filterable' => true, 'Editable' => true, 'Required' => false), 'SOURCE_ID' => array('Name' => GetMessage('CRM_FIELD_SOURCE_ID'), 'Type' => 'select', 'Options' => CCrmStatus::GetStatusListEx('SOURCE'), 'Filterable' => true, 'Editable' => true, 'Required' => false), 'SOURCE_DESCRIPTION' => array('Name' => GetMessage('CRM_FIELD_SOURCE_DESCRIPTION'), 'Type' => 'text', 'Filterable' => false, 'Editable' => true, 'Required' => false), "DATE_CREATE" => array("Name" => GetMessage("CRM_LEAD_EDIT_FIELD_DATE_CREATE"), "Type" => "datetime", "Filterable" => true, "Editable" => false, "Required" => false), "DATE_MODIFY" => array("Name" => GetMessage("CRM_LEAD_EDIT_FIELD_DATE_MODIFY"), "Type" => "datetime", "Filterable" => true, "Editable" => false, "Required" => false));
     $ar = CCrmFieldMulti::GetEntityTypeList();
     foreach ($ar as $typeId => $arFields) {
         $arResult[$typeId . '_PRINTABLE'] = array('Name' => GetMessage('CRM_FIELD_MULTI_' . $typeId) . $printableFieldNameSuffix, 'Type' => 'string', "Filterable" => true, "Editable" => false, "Required" => false);
         foreach ($arFields as $valueType => $valueName) {
             $arResult[$typeId . '_' . $valueType] = array('Name' => $valueName, 'Type' => 'string', "Filterable" => true, "Editable" => false, "Required" => false);
             $arResult[$typeId . '_' . $valueType . '_PRINTABLE'] = array('Name' => $valueName . $printableFieldNameSuffix, 'Type' => 'string', "Filterable" => true, "Editable" => false, "Required" => false);
         }
     }
     global $USER_FIELD_MANAGER;
     $CCrmUserType = new CCrmUserType($USER_FIELD_MANAGER, 'CRM_LEAD');
     $CCrmUserType->AddBPFields($arResult, array('PRINTABLE_SUFFIX' => GetMessage("CRM_FIELD_BP_TEXT")));
     return $arResult;
 }
<?php

define("STOP_STATISTICS", true);
define("BX_SECURITY_SHOW_MESSAGE", true);
define('NO_AGENT_CHECK', true);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/currency/include.php";
$CURRENCY_RIGHT = $APPLICATION->GetGroupRight("currency");
__IncludeLang(GetLangFileName($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/currency/lang/", "/currencies_rates.php"));
if ($CURRENCY_RIGHT == "D") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$RATE = $RATE_CNT = "";
$strError = "";
$port = 80;
if (!check_bitrix_sessid()) {
    $strError = GetMessage("ERROR_SESSID");
}
if ($DATE_RATE == "" || !$DB->IsDate($DATE_RATE) || strlen($CURRENCY) < 0) {
    $strError = GetMessage("ERROR_DATE_RATE");
}
if (strlen($strError) <= 0) {
    //currency
    $currantCurrancy = CCurrency::GetBaseCurrency();
    //select host
    if ($currantCurrancy == "UAH") {
        //ukraina
        $host = "pfsoft.com.ua";
        $path = "/service/currency/";
        $QUERY_STR = "date=" . $DB->FormatDate($DATE_RATE, CLang::GetDateFormat("SHORT", $lang), "DMY");
    } elseif ($currantCurrancy == "BYR") {
예제 #11
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("webdav")) {
    //ShowError(GetMessage("SONET_WD_MODULE_IS_NOT_INSTALLED"));
    return 0;
} elseif (!CModule::IncludeModule("iblock")) {
    //ShowError(GetMessage("SONET_IB_MODULE_IS_NOT_INSTALLED"));
    return 0;
}
$file = trim(preg_replace("'[\\\\/]+'", "/", dirname(__FILE__) . "/../lang/" . LANGUAGE_ID . "/include/webdav_2.php"));
__IncludeLang($file);
$obDavEventHandler = CWebDavSocNetEvent::GetRuntime();
$obDavEventHandler->SetSocnetVars($arResult, $arParams);
AddEventHandler("socialnetwork", "OnBeforeSocNetGroupUpdate", array($obDavEventHandler, "SocNetGroupRename"));
예제 #12
0
파일: step18.php 프로젝트: Satariall/izurit
}
$siteID = $arParams["site_id"];
if (strlen($arParams["site_id"]) <= 0) {
    $siteID = "s1";
}
$dbSite = CSite::GetByID($siteID);
if ($arSite = $dbSite->Fetch()) {
    $lang = $arSite["LANGUAGE_ID"];
}
if (strlen($lang) <= 0) {
    $lang = "ru";
}
$bRus = false;
if ($lang == "ru") {
    $bRus = true;
}
__IncludeLang(GetLangFileName(dirname(__FILE__) . "/lang/", "/" . basename(__FILE__), $lang));
$dbLocation = CSaleLocation::GetList(array("ID" => "ASC"), array("LID" => $lang));
if ($arLocation = $dbLocation->Fetch()) {
    $arLocationArr = array();
    $arLocation4Delivery = array();
    do {
        $arLocationArr[] = $arLocation["ID"];
    } while ($arLocation = $dbLocation->Fetch());
    //Location group
    $groupLang = array(array("LID" => "en", "NAME" => "Group 1"));
    if ($bRus) {
        $groupLang[] = array("LID" => "ru", "NAME" => GetMessage("SALE_WIZARD_GROUP"));
    }
    $locationGroupID = CSaleLocationGroup::Add(array("SORT" => 150, "LOCATION_ID" => $arLocationArr, "LANG" => $groupLang));
}
예제 #13
0
<?php

define("STOP_STATISTICS", true);
define("BX_SECURITY_SHOW_MESSAGE", true);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
__IncludeLang(dirname(__FILE__) . "/lang/" . LANGUAGE_ID . "/getdata.php");
if (!check_bitrix_sessid()) {
    return;
}
$rnd = $_REQUEST["rnd"];
include_once dirname(__FILE__) . '/include.php';
if (!array_key_exists("GD_RSS_PARAMS", $_SESSION) || !array_key_exists($rnd, $_SESSION["GD_RSS_PARAMS"]) || !is_array($_SESSION["GD_RSS_PARAMS"][$rnd])) {
    return;
}
$arGadgetParams = $_SESSION["GD_RSS_PARAMS"][$rnd];
$arGadgetParams["CNT"] = IntVal($arGadgetParams["CNT"]);
if ($arGadgetParams["CNT"] > 50) {
    $arGadgetParams["CNT"] = 0;
}
$cache = new CPageCache();
if ($arGadgetParams["CACHE_TIME"] > 0 && !$cache->StartDataCache($arGadgetParams["CACHE_TIME"], 'c' . $arGadgetParams["RSS_URL"] . '-' . $arGadgetParams["CNT"], "gdrss")) {
    return;
}
if ($arGadgetParams["RSS_URL"] == "") {
    ?>
	<div class="gdrsserror">
		<?php 
    echo GetMessage("GD_RSS_READER_NEW_RSS");
    ?>
	</div>
	<?php 
예제 #14
0
<?
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fevent/include.php");

$CURRENCY_RIGHT = $APPLICATION->GetGroupRight("fevent");
if ($CURRENCY_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));


__IncludeLang(GetLangFileName($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fevent/admin/", "/trigger_actions.php"));
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fevent/prolog.php");

$sTableID = "f_triggers_log";
$oSort = new CAdminSorting($sTableID, "sort", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);

$rsData = CFTriggerLog::GetList($by, $order);
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();

function GetUserNameByID($USER_ID){
	if(intval($USER_ID)){
		$rsUser = CUser::GetByID($USER_ID);
		if($arUser = $rsUser->Fetch()){
			return (strlen($arUser["NAME"]) > 0 && strlen($arUser["LAST_NAME"]) > 0 ? $arUser["NAME"]." ".$arUser["LAST_NAME"] : $arUser["LOGIN"]);
		}else{
			return "";
		}
	}else{
		return "";
	}
}
예제 #15
0
파일: tools.php 프로젝트: nProfessor/Mytb
	private static function _loadLang($lang, $bReturn, $arAdditionalMess = false)
	{
		$mess_lang = array();

		if ($lang)
		{
			$lang_filename = $_SERVER['DOCUMENT_ROOT'].$lang;

			if (file_exists($lang_filename))
			{
				$mess_lang = __IncludeLang($lang_filename, true);
			}
		}

		if (is_array($arAdditionalMess))
			$mess_lang = array_merge($arAdditionalMess, $mess_lang);

		if (count($mess_lang) > 0)
		{
			if ($bReturn)
				return '<script type="text/javascript">BX.message('.CUtil::PhpToJSObject($mess_lang, false).');</script>'."\r\n";
			else
				$GLOBALS['APPLICATION']->AddHeadString('<script type="text/javascript">BX.message('.CUtil::PhpToJSObject($mess_lang, false).')</script>', true);
		}

		return '';
	}
예제 #16
0
파일: step22.php 프로젝트: Satariall/izurit
}
$siteID = $arParams["site_id"];
if (strlen($arParams["site_id"]) <= 0) {
    $siteID = "s1";
}
$dbSite = CSite::GetByID($siteID);
if ($arSite = $dbSite->Fetch()) {
    $lang = $arSite["LANGUAGE_ID"];
}
if (strlen($lang) <= 0) {
    $lang = "ru";
}
$bRus = false;
if ($lang == "ru") {
    $bRus = true;
}
__IncludeLang(GetLangFileName(dirname(__FILE__) . "/lang/", "/step8.php", $lang));
$dbLocation = CSaleLocation::GetList(array("ID" => "ASC"), array("LID" => $lang));
if ($arLocation = $dbLocation->Fetch()) {
    $arLocation4Delivery = array();
    do {
        $arLocation4Delivery[] = array("LOCATION_ID" => $arLocation["ID"], "LOCATION_TYPE" => "L");
    } while ($arLocation = $dbLocation->Fetch());
    //Location group
    $dblocationGroupID = CSaleLocationGroup::GetList(array("ID" => "DESC"));
    if ($arLocationGroupID = $dblocationGroupID->Fetch()) {
        $locationGroupID = $arLocationGroupID["ID"];
    }
    $arLocation4Delivery[] = array("LOCATION_ID" => $locationGroupID, "LOCATION_TYPE" => "G");
    CSaleDelivery::Add(array("NAME" => GetMessage("SALE_WIZARD_COUR"), "LID" => $siteID, "PERIOD_FROM" => 7, "PERIOD_TO" => 15, "PERIOD_TYPE" => "D", "WEIGHT_FROM" => 2000, "WEIGHT_TO" => 0, "ORDER_PRICE_FROM" => 0, "ORDER_PRICE_TO" => 0, "ORDER_CURRENCY" => $bRus ? "RUB" : "USD", "ACTIVE" => "N", "PRICE" => "55", "CURRENCY" => $bRus ? "RUB" : "USD", "SORT" => 100, "DESCRIPTION" => "", "LOCATIONS" => $arLocation4Delivery));
}
예제 #17
0
	function InitLangMess()
	{
		$langPath = $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/fileman/lang/'.LANGUAGE_ID.'/classes/general/html_editor_js.php';
		if(!file_exists($langPath))
			$langPath = $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/fileman/lang/en/classes/general/html_editor_js.php';
		$mess_lang = __IncludeLang($langPath, true, true);

		?><script>BX.message(<?php 
echo CUtil::PhpToJSObject($mess_lang, false);
?>
);</script><?
	}
예제 #18
0
                 }
                 $info = CModule::CreateModuleObject($module);
                 $name = $info->MODULE_NAME;
                 $sort = $info->MODULE_SORT;
             } else {
                 if (!$USER->CanDoOperation('view_other_settings')) {
                     continue;
                 }
                 $name = GetMessage("MAIN_MENU_MAIN_MODULE");
                 $sort = -1;
             }
             $aModule = array("text" => $name, "url" => "settings.php?lang=" . LANGUAGE_ID . "&amp;mid=" . $module . "&amp;mid_menu=1", "more_url" => array("settings.php?lang=" . LANGUAGE_ID . "&mid=" . $module . "&mid_menu=1"), "title" => GetMessage("MAIN_MENU_MODULE_SETT") . " &quot;" . $name . "&quot;", "sort" => $sort);
             if (BX_SEARCH_ADMIN === true) {
                 $lfile = getLocalPath("modules/" . $module . "/lang/" . LANGUAGE_ID . "/options.php");
                 if ($lfile !== false) {
                     $aModule["keywords"] = implode(' ', __IncludeLang($_SERVER["DOCUMENT_ROOT"] . $lfile, true));
                 }
             }
             $aModuleItems[] = $aModule;
         }
         usort($aModuleItems, create_function('$a, $b', 'if($a["sort"] == $b["sort"]) return strcasecmp($a["text"], $b["text"]); return ($a["sort"] < $b["sort"])? -1 : 1;'));
     }
 }
 $aItems = array();
 $aItems[] = array("text" => GetMessage("MAIN_MENU_SITES"), "title" => GetMessage("MAIN_MENU_SITES_TITLE"), "items_id" => "menu_site", "items" => array(array("text" => GetMessage("MAIN_MENU_SITES_LIST"), "url" => "site_admin.php?lang=" . LANGUAGE_ID, "more_url" => array("site_edit.php"), "title" => GetMessage("MAIN_MENU_SITES_ALT")), array("text" => GetMessage("MAIN_MENU_TEMPLATE"), "title" => GetMessage("MAIN_MENU_TEMPL_TITLE"), "url" => "template_admin.php?lang=" . LANGUAGE_ID, "more_url" => array("template_edit.php", "template_load.php"))));
 $aItems[] = array("text" => GetMessage("main_menu_lang_param"), "title" => GetMessage("main_menu_lang_param_title"), "items_id" => "menu_lang", "items" => array(array("text" => GetMessage("MAIN_MENU_LANG"), "url" => "lang_admin.php?lang=" . LANGUAGE_ID, "more_url" => array("lang_edit.php"), "title" => GetMessage("MAIN_MENU_LANGS_ALT")), array("text" => GetMessage("main_menu_reg_sett"), "url" => "culture_admin.php?lang=" . LANGUAGE_ID, "more_url" => array("culture_edit.php"), "title" => GetMessage("main_menu_reg_sett_title"))));
 $aItems[] = array("text" => GetMessage("MAIN_MENU_EVENT"), "title" => GetMessage("MAIN_MENU_EVENT_TITLE"), "items_id" => "menu_templates", "items" => array(array("text" => GetMessage("MAIN_MENU_TEMPLATES"), "url" => "message_admin.php?lang=" . LANGUAGE_ID, "more_url" => array("message_edit.php"), "title" => GetMessage("MAIN_MENU_TEMPLATES_ALT")), array("text" => GetMessage("MAIN_MENU_EVENT_TYPES"), "title" => GetMessage("MAIN_MENU_EVENT_TYPES_TITLE"), "url" => "type_admin.php?lang=" . LANGUAGE_ID, "more_url" => array("type_edit.php")), array("text" => GetMessage("MAIN_MENU_EVENT_THEMES"), "title" => GetMessage("MAIN_MENU_EVENT_THEMES_TITLE"), "url" => "message_theme_admin.php?lang=" . LANGUAGE_ID, "more_url" => array("message_theme_edit.php"))));
 $aItems[] = array("text" => GetMessage("MAIN_MENU_MODULES"), "url" => "module_admin.php?lang=" . LANGUAGE_ID, "more_url" => array("module_edit.php"), "title" => GetMessage("MAIN_MENU_MODULES_ALT"));
 $aItems[] = array("text" => GetMessage("MAIN_MENU_MODULE_SETTINGS"), "url" => "settings.php?lang=" . LANGUAGE_ID, "title" => GetMessage("MAIN_MENU_SETTINGS_ALT"), "dynamic" => true, "module_id" => "main", "items_id" => "menu_module_settings", "items" => $aModuleItems);
 $aItems[] = array("text" => GetMessage("MAIN_MENU_CACHE"), "url" => "cache.php?lang=" . LANGUAGE_ID, "more_url" => array(), "title" => GetMessage("MAIN_MENU_CACHE_ALT"));
 $aItems[] = array("text" => GetMessage("MAIN_MENU_COMPOSITE"), "url" => "composite.php?lang=" . LANGUAGE_ID, "more_url" => array(), "title" => GetMessage("MAIN_MENU_COMPOSITE_ALT"));
예제 #19
0
    $stageID = isset($data['STAGE_ID']) ? $data['STAGE_ID'] : '';
    if ($stageID === '') {
        __CrmMobileDealEditEndResonse(array('ERROR' => GetMessage('CRM_DEAL_STAGE_NOT_FOUND')));
    }
    //$DB->StartTransaction();
    $fields = array('STAGE_ID' => $stageID);
    $entity = new CCrmDeal(false);
    $successed = $entity->Update($ID, $fields, true, true, array());
    if ($successed) {
        //$DB->Commit();
        $errors = array();
        CCrmBizProcHelper::AutoStartWorkflows(CCrmOwnerType::Deal, $ID, CCrmBizProcEventType::Edit, $errors);
        $dbRes = CCrmDeal::GetListEx(array(), array('=ID' => $ID, 'CHECK_PERMISSIONS' => 'N'));
        $currentItem = $dbRes->GetNext();
        $formatParams = isset($_REQUEST['FORMAT_PARAMS']) ? $_REQUEST['FORMAT_PARAMS'] : array();
        CCrmMobileHelper::PrepareDealItem($currentItem, $formatParams);
        __CrmMobileDealEditEndResonse(array('SAVED_ENTITY_ID' => $ID, 'SAVED_ENTITY_DATA' => CCrmMobileHelper::PrepareDealData($currentItem)));
    } else {
        //$DB->Rollback();
        __CrmMobileDealEditEndResonse(array('ERROR' => $fields['RESULT_MESSAGE']));
    }
} elseif ($action === 'CONVERT_MONEY') {
    __IncludeLang(dirname(__FILE__) . '/lang/' . LANGUAGE_ID . '/' . basename(__FILE__));
    $srcCurrencyID = isset($_REQUEST['SRC_CURRENCY_ID']) ? $_REQUEST['SRC_CURRENCY_ID'] : CCrmCurrency::GetBaseCurrencyID();
    $dstCurrencyID = isset($_REQUEST['DST_CURRENCY_ID']) ? $_REQUEST['DST_CURRENCY_ID'] : CCrmCurrency::GetBaseCurrencyID();
    $srcSum = isset($_REQUEST['SUM']) ? doubleval($_REQUEST['SUM']) : 0.0;
    $dstSum = CCrmCurrency::ConvertMoney($srcSum, $srcCurrencyID, $dstCurrencyID);
    __CrmMobileDealEditEndResonse(array('SUM' => $dstSum, 'CURRENCY_ID' => $dstCurrencyID, 'CURRENCY_NAME' => CCrmCurrency::GetCurrencyName($dstCurrencyID), 'FORMATTED_SUM' => CCrmCurrency::MoneyToString($dstSum, $dstCurrencyID)));
} else {
    __CrmMobileDealEditEndResonse(array('ERROR' => 'Action is not supported in current context.'));
}
예제 #20
0
$cb_id = isset($_REQUEST["cb_id"]) ? $_REQUEST["cb_id"] : "";
$event_id = isset($_REQUEST["evid"]) && is_string($_REQUEST["evid"]) ? trim($_REQUEST["evid"]) : "";
$transport = isset($_REQUEST["transport"]) && is_string($_REQUEST["transport"]) ? trim($_REQUEST["transport"]) : "";
$lng = isset($_REQUEST["lang"]) && is_string($_REQUEST["lang"]) ? trim($_REQUEST["lang"]) : "";
$lng = substr(preg_replace("/[^a-z0-9_]/i", "", $lng), 0, 2);
$ls = isset($_REQUEST["ls"]) && !is_array($_REQUEST["ls"]) ? trim($_REQUEST["ls"]) : "";
$ls_arr = isset($_REQUEST["ls_arr"]) ? $_REQUEST["ls_arr"] : "";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
$rsSite = CSite::GetByID($site_id);
if ($arSite = $rsSite->Fetch()) {
    define("LANGUAGE_ID", $arSite["LANGUAGE_ID"]);
} else {
    define("LANGUAGE_ID", "en");
}
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/components/bitrix/socialnetwork.log.ex/include.php";
__IncludeLang(dirname(__FILE__) . "/lang/" . $lng . "/ajax.php");
if (CModule::IncludeModule("compression")) {
    CCompress::Disable2048Spaces();
}
if (CModule::IncludeModule("socialnetwork")) {
    $bCurrentUserIsAdmin = CSocNetUser::IsCurrentUserModuleAdmin();
    // write and close session to prevent lock;
    session_write_close();
    $arResult = array();
    if (in_array($action, array("get_comment", "get_comments"))) {
        $GLOBALS["arExtranetGroupID"] = array();
        $GLOBALS["arExtranetUserID"] = array();
        if ($GLOBALS["USER"]->IsAuthorized()) {
            if (defined("BX_COMP_MANAGED_CACHE")) {
                $ttl = 2592000;
            } else {
예제 #21
0
<?php

define("STOP_STATISTICS", true);
define("BX_SECURITY_SHOW_MESSAGE", true);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
__IncludeLang(GetLangFileName($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/catalog/lang/", "/export_yandex.php"));
if ('GET' == $_SERVER['REQUEST_METHOD']) {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
    die;
}
global $DB;
global $APPLICATION;
global $USER;
if (!check_bitrix_sessid()) {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
    die;
}
$APPLICATION->SetTitle(GetMessage('YANDEX_DETAIL_TITLE'));
CModule::IncludeModule('iblock');
CModule::IncludeModule('currency');
CModule::IncludeModule('catalog');
if (!$USER->CanDoOperation('catalog_export_edit')) {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
    echo ShowError('!!' . GetMessage('YANDEX_ERR_NO_ACCESS_EXPORT'));
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
    die;
}
if (!isset($_REQUEST['IBLOCK_ID']) || 0 == strlen($_REQUEST['IBLOCK_ID'])) {
예제 #22
0
 function InstallService($serviceID, $serviceStage)
 {
     $wizard =& $this->GetWizard();
     $siteID = WizardServices::GetCurrentSiteID($wizard->GetVar("siteID"));
     define("WIZARD_SITE_ID", $siteID);
     define("WIZARD_SITE_ROOT_PATH", $_SERVER["DOCUMENT_ROOT"]);
     $rsSites = CSite::GetByID($siteID);
     if ($arSite = $rsSites->Fetch()) {
         define("WIZARD_SITE_DIR", $arSite["DIR"]);
     } else {
         define("WIZARD_SITE_DIR", "/");
     }
     define("WIZARD_SITE_PATH", str_replace("//", "/", WIZARD_SITE_ROOT_PATH . "/" . WIZARD_SITE_DIR . "/"));
     $wizardPath = $wizard->GetPath();
     define("WIZARD_RELATIVE_PATH", $wizardPath);
     define("WIZARD_ABSOLUTE_PATH", $_SERVER["DOCUMENT_ROOT"] . $wizardPath);
     $templatesPath = WizardServices::GetTemplatesPath(WIZARD_RELATIVE_PATH . "/site");
     $arTemplates = WizardServices::GetTemplates($templatesPath);
     $templateID = $wizard->GetVar("templateID");
     define("WIZARD_TEMPLATE_ID", $templateID);
     define("WIZARD_TEMPLATE_RELATIVE_PATH", $templatesPath . "/" . WIZARD_TEMPLATE_ID);
     define("WIZARD_TEMPLATE_ABSOLUTE_PATH", $_SERVER["DOCUMENT_ROOT"] . WIZARD_TEMPLATE_RELATIVE_PATH);
     $themeID = $wizard->GetVar($templateID . "_themeID");
     $arThemes = WizardServices::GetThemes(WIZARD_TEMPLATE_RELATIVE_PATH . "/themes");
     define("WIZARD_THEME_ID", $themeID);
     define("WIZARD_THEME_RELATIVE_PATH", WIZARD_TEMPLATE_RELATIVE_PATH . "/themes/" . WIZARD_THEME_ID);
     define("WIZARD_THEME_ABSOLUTE_PATH", $_SERVER["DOCUMENT_ROOT"] . WIZARD_THEME_RELATIVE_PATH);
     $servicePath = WIZARD_RELATIVE_PATH . "/site/services/" . $serviceID;
     define("WIZARD_SERVICE_RELATIVE_PATH", $servicePath);
     define("WIZARD_SERVICE_ABSOLUTE_PATH", $_SERVER["DOCUMENT_ROOT"] . $servicePath);
     define("WIZARD_IS_RERUN", $_SERVER["PHP_SELF"] != "/index.php");
     define("WIZARD_SITE_LOGO", intval($wizard->GetVar("siteLogo")));
     define("WIZARD_INSTALL_DEMO_DATA", $wizard->GetVar("installDemoData") == "Y");
     define("WIZARD_REINSTALL_DATA", false);
     define("WIZARD_FIRST_INSTAL", $firstStep = COption::GetOptionString("main", "wizard_first" . substr($wizard->GetID(), 7) . "_" . $wizard->GetVar("siteID"), false, $wizard->GetVar("siteID")));
     $dbUsers = CGroup::GetList($by = "id", $order = "asc", array("ACTIVE" => "Y"));
     while ($arUser = $dbUsers->Fetch()) {
         define("WIZARD_" . $arUser["STRING_ID"] . "_GROUP", $arUser["ID"]);
     }
     if (!file_exists(WIZARD_SERVICE_ABSOLUTE_PATH . "/" . $serviceStage)) {
         return false;
     }
     if (LANGUAGE_ID != "en" && LANGUAGE_ID != "ru") {
         if (file_exists($fname = WIZARD_SERVICE_ABSOLUTE_PATH . "/lang/" . LangSubst(LANGUAGE_ID) . "/" . $serviceStage)) {
             __IncludeLang($fname, false, true);
         }
     }
     if (file_exists($fname = WIZARD_SERVICE_ABSOLUTE_PATH . "/lang/" . LANGUAGE_ID . "/" . $serviceStage)) {
         __IncludeLang($fname, false, true);
     }
     @set_time_limit(3600);
     global $DB, $DBType, $APPLICATION, $USER, $CACHE_MANAGER;
     include WIZARD_SERVICE_ABSOLUTE_PATH . "/" . $serviceStage;
 }
예제 #23
0
파일: index.php 프로젝트: Satariall/izurit
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
$currentDir = dirname(__FILE__);
include $currentDir . '/../form/lib.php';
$dataDir = $currentDir . '/data';
__IncludeLang($currentDir . "/lang/" . LANGUAGE_ID . '/' . basename(__FILE__));
if ($FORM_ID = __form_CreateForm('ANKETA', $dataDir)) {
    $search = array("#FORM.ID(ID=form-anketa)#");
    $replace = array($FORM_ID);
    //Create directory and copy files
    __form_CopyFiles($currentDir . "/public/communication/", "/communication/", false);
    __form_CopyFiles($currentDir . "/public/communication/web-forms/", "/communication/web-forms/", false);
    __form_CopyFiles($currentDir . "/public/communication/web-forms/anketa/", "/communication/web-forms/anketa/", false, $search, $replace);
    $arMenuItems = array(array('menu' => '/communication/.left.menu.php', 'item' => array(GetMessage('WIZDEMO_FORM_ANKETA_PUBLIC_SECTION_TITLE'), "/communication/web-forms/", array(), array(), "")), array('menu' => '/communication/web-forms/.left.menu.php', 'item' => array(GetMessage('WIZDEMO_FORM_ANKETA_NAME'), "/communication/web-forms/anketa/", array(), array(), "")));
    foreach ($arMenuItems as $arMenuItem) {
        DemoSiteUtil::AddMenuItem($arMenuItem['menu'], $arMenuItem['item']);
    }
    //Communication section
    include dirname(__FILE__) . "/../communication/install.php";
}
예제 #24
0
if ($componentPage == 'meeting_edit') {
    $componentPage = 'meeting';
    $arParams['EDIT'] = 'Y';
} elseif ($componentPage == 'meeting_copy') {
    $componentPage = 'meeting';
    $arParams['COPY'] = 'Y';
}
switch ($componentPage) {
    case 'meeting':
        $arParams['MEETING_ID'] = $arVariables['MEETING_ID'];
        break;
    case 'item':
        $arParams['ITEM_ID'] = $arVariables['ITEM_ID'];
        break;
}
$arParams["LIST_URL"] = CComponentEngine::MakePathFromTemplate($arParams["SEF_FOLDER"] . $arParams["SEF_URL_TEMPLATES"]["list"], $arVariables);
$arParams["MEETING_URL"] = CComponentEngine::MakePathFromTemplate($arParams["SEF_FOLDER"] . $arParams["SEF_URL_TEMPLATES"]["meeting"], $arVariables);
$arParams["MEETING_URL_TPL"] = $arParams["SEF_FOLDER"] . $arParams["SEF_URL_TEMPLATES"]["meeting"];
$arParams["MEETING_ADD_URL"] = CComponentEngine::MakePathFromTemplate($arParams["SEF_FOLDER"] . $arParams["SEF_URL_TEMPLATES"]["meeting_edit"], array('MEETING_ID' => 0));
$arParams["MEETING_EDIT_URL"] = CComponentEngine::MakePathFromTemplate($arParams["SEF_FOLDER"] . $arParams["SEF_URL_TEMPLATES"]["meeting_edit"], $arVariables);
$arParams["MEETING_EDIT_URL_TPL"] = $arParams["SEF_FOLDER"] . $arParams["SEF_URL_TEMPLATES"]["meeting_edit"];
$arParams["MEETING_COPY_URL"] = CComponentEngine::MakePathFromTemplate($arParams["SEF_FOLDER"] . $arParams["SEF_URL_TEMPLATES"]["meeting_copy"], $arVariables);
$arParams["ITEM_URL"] = CComponentEngine::MakePathFromTemplate($arParams["SEF_FOLDER"] . $arParams["SEF_URL_TEMPLATES"]["item"], $arVariables);
// echo $componentPage;
// echo '<pre>'; print_r($arParams); echo '</pre>';
// echo '<pre>'; print_r($arResult); echo '</pre>';
if ($componentPage != 'list' && $arParams['SET_NAVCHAIN'] !== 'N') {
    __IncludeLang(dirname(__FILE__) . '/lang/' . LANGUAGE_ID . '/.description.php');
    $APPLICATION->AddChainItem(GetMessage('MEETINGS_NAME'), $arParams['LIST_URL']);
}
$this->IncludeComponentTemplate($componentPage);
예제 #25
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
__IncludeLang(dirname(__FILE__) . "/lang/" . LANGUAGE_ID . "/facebook.php");
$name = "facebook";
$title = GetMessage("BOOKMARK_HANDLER_FACEBOOK");
$icon_url_template = "<script>\n" . "if (__function_exists('fbs_click') == false) \n" . "{\n" . "function fbs_click(url, title) \n" . "{ \n" . "window.open('http://www.facebook.com/share.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(title),'sharer','toolbar=0,status=0,width=626,height=436'); \n" . "return false; \n" . "} \n" . "}\n" . "</script>\n" . "<a href=\"http://www.facebook.com/share.php?u=#PAGE_URL#&t=#PAGE_TITLE#\" onclick=\"return fbs_click('#PAGE_URL#', '#PAGE_TITLE#');\" target=\"_blank\" class=\"facebook\" title=\"" . $title . "\"></a>\n";
$sort = 100;
예제 #26
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
$arCurFileInfo = pathinfo(__FILE__);
$langfile = trim(preg_replace("'[\\\\/]+'", "/", $arCurFileInfo['dirname'] . "/lang/" . LANGUAGE_ID . "/" . $arCurFileInfo['basename']));
__IncludeLang($langfile);
return $APPLICATION->IncludeComponent("bitrix:webdav.element.edit", "view_pro", array("OBJECT" => $arParams["OBJECT"], "IBLOCK_TYPE" => $arParams["FILES_GROUP_IBLOCK_TYPE"], "IBLOCK_ID" => $arParams["FILES_GROUP_IBLOCK_ID"], "ROOT_SECTION_ID" => $arResult["VARIABLES"]["ROOT_SECTION_ID"], "SECTION_ID" => $arResult["VARIABLES"]["SECTION_ID"], "ELEMENT_ID" => $arResult["VARIABLES"]["ELEMENT_ID"], "PERMISSION" => $arResult["VARIABLES"]["PERMISSION"], "CHECK_CREATOR" => $arResult["VARIABLES"]["CHECK_CREATOR"], "NAME_FILE_PROPERTY" => $arParams["NAME_FILE_PROPERTY"], "ACTION" => $arResult["VARIABLES"]["ACTION"], "REPLACE_SYMBOLS" => $arParams["REPLACE_SYMBOLS"], "NAME_TEMPLATE" => $arParams["NAME_TEMPLATE"], "FORM_ID" => $arParams["FORM_ID"], "TAB_ID" => 'tab_main', "SECTIONS_URL" => $arResult["~PATH_TO_GROUP_FILES"], "SECTION_EDIT_URL" => $arResult["~PATH_TO_GROUP_FILES_SECTION_EDIT"], "ELEMENT_URL" => $arResult["~PATH_TO_GROUP_FILES_ELEMENT"], "ELEMENT_EDIT_URL" => $arResult["~PATH_TO_GROUP_FILES_ELEMENT_EDIT"], "ELEMENT_FILE_URL" => $arResult["~PATH_TO_GROUP_FILES_ELEMENT_FILE"], "ELEMENT_HISTORY_URL" => $arResult["~PATH_TO_GROUP_FILES_ELEMENT_HISTORY"], "ELEMENT_HISTORY_GET_URL" => $arResult["~PATH_TO_GROUP_FILES_ELEMENT_HISTORY_GET"], "ELEMENT_VERSION_URL" => $arResult["~PATH_TO_GROUP_FILES_ELEMENT_ELEMENT_VERSION"], "ELEMENT_VERSIONS_URL" => $arResult["~PATH_TO_GROUP_FILES_ELEMENT_VERSIONS"], "ELEMENT_UPLOAD_URL" => $arResult["~PATH_TO_GROUP_FILES_ELEMENT_UPLOAD"], "HELP_URL" => $arResult["~PATH_TO_GROUP_FILES_HELP"], "USER_VIEW_URL" => $arResult["~PATH_TO_USER"], "WEBDAV_BIZPROC_HISTORY_URL" => $arResult["~PATH_TO_GROUP_FILES_WEBDAV_BIZPROC_HISTORY"], "WEBDAV_BIZPROC_HISTORY_GET_URL" => $arResult["~PATH_TO_GROUP_FILES_WEBDAV_BIZPROC_HISTORY_GET"], "WEBDAV_BIZPROC_LOG_URL" => $arResult["~PATH_TO_GROUP_FILES_WEBDAV_BIZPROC_LOG"], "WEBDAV_BIZPROC_VIEW_URL" => $arResult["~PATH_TO_GROUP_FILES_WEBDAV_BIZPROC_VIEW"], "WEBDAV_BIZPROC_WORKFLOW_ADMIN_URL" => $arResult["~PATH_TO_GROUP_FILES_WEBDAV_BIZPROC_WORKFLOW_ADMIN"], "WEBDAV_BIZPROC_WORKFLOW_EDIT_URL" => $arResult["~PATH_TO_GROUP_FILES_WEBDAV_BIZPROC_WORKFLOW_EDIT"], "WEBDAV_START_BIZPROC_URL" => $arResult["~PATH_TO_GROUP_FILES_WEBDAV_START_BIZPROC"], "WEBDAV_TASK_LIST_URL" => $arResult["~PATH_TO_BIZPROC_TASK_LIST"], "WEBDAV_TASK_URL" => $arResult["~PATH_TO_BIZPROC_TASK"], "SHOW_RATING" => $arParams["SHOW_RATING"], "RATING_TYPE" => $arParams["RATING_TYPE"], "BIZPROC" => $arResult["VARIABLES"]["BIZPROC"], "SET_TITLE" => "N", "SET_NAV_CHAIN" => "Y", "STR_TITLE" => $arParams["STR_TITLE"], "MERGE_VIEW" => "Y", "SHOW_WORKFLOW" => "N", "DOCUMENT_LOCK" => "N", "CACHE_TYPE" => $arParams["CACHE_TYPE"], "CACHE_TIME" => $arParams["CACHE_TIME"], "DISPLAY_PANEL" => $arParams["DISPLAY_PANEL"]), $component, array("HIDE_ICONS" => "Y"));
예제 #27
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
CUtil::InitJSCore();
if (is_array($arParams['ALPHABET_LANG'])) {
    TrimArr($arParams['ALPHABET_LANG']);
}
if (!isset($arParams['ALPHABET_LANG']) || !is_array($arParams['ALPHABET_LANG']) || count($arParams['ALPHABET_LANG']) <= 0) {
    $arParams['ALPHABET_LANG'] = array(LANGUAGE_ID);
}
$arResult['ALPHABET'] = array();
foreach ($arParams['ALPHABET_LANG'] as $key => $language_id) {
    $file = dirname(__FILE__) . '/lang/' . $language_id . '/template.php';
    if (file_exists($file)) {
        if ($arMess = __IncludeLang($file, true)) {
        }
        $arResult['ALPHABET'][$language_id] = $arMess;
    }
}
<?php

require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/ws.projectsettings/include.php";
__IncludeLang(dirname(__FILE__) . '/lang/' . LANGUAGE_ID . '.php');
$moduleName = "ws.projectsettings";
define("ADMIN_MODULE_NAME", $moduleName);
define("ADMIN_MODULE_ICON", "");
$pathLang = BX_ROOT . '/modules/' . $moduleName . '/lang/js_' . LANGUAGE_ID;
$pathModuleJsFolder = '/bitrix/js/' . $moduleName . '/';
foreach (array('ws_progectssettings_main' => array('js' => $pathModuleJsFolder . 'main.js', 'lang' => $pathLang . '.php', 'skip_core' => true), 'ws_progectssettings_fields' => array('js' => $pathModuleJsFolder . 'fields.js', 'skip_core' => false, 'css' => $pathModuleJsFolder . 'fields.css', 'rel' => array('ws_progectssettings_main', 'jquery'))) as $ext => $arExt) {
    CJSCore::RegisterExt($ext, $arExt);
}
예제 #29
0
	/**
	* Function includes language files from within the component directory.
	*
	* <p>For example: $this->includeComponentLang("ajax.php") will include "lang/en/ajax.php" file. </p>
	* <p>Note: component must be inited by initComponent method.</p>
	* @param string $relativePath
	* @param string $lang
	* @return void
	*
	*/
	final public function includeComponentLang($relativePath = "", $lang = false)
	{
		if (!$this->__bInited)
			return null;

		if (strlen($relativePath) <= 0)
			$relativePath = "component.php";

		if ($lang === false)
			$lang = LANGUAGE_ID;

		if ($lang != "en" && $lang != "ru")
		{
			$fname = $_SERVER["DOCUMENT_ROOT"].$this->__path."/lang/".LangSubst($lang)."/".$relativePath;
			if (file_exists($fname))
				__IncludeLang($fname, false, true);
		}

		$fname = $_SERVER["DOCUMENT_ROOT"].$this->__path."/lang/".$lang."/".$relativePath;
		if (file_exists($fname))
			__IncludeLang($fname, false, true);
	}
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
$dir = trim(preg_replace("'[\\\\/]+'", "/", dirname(__FILE__) . "/"));
__IncludeLang($dir . "lang/" . LANGUAGE_ID . "/group_bizproc_workflow_admin.php");
$pageId = "group_group_lists";
include $_SERVER["DOCUMENT_ROOT"] . "/bitrix/components/bitrix/socialnetwork_group/templates/.default/util_group_menu.php";
include $_SERVER["DOCUMENT_ROOT"] . "/bitrix/components/bitrix/socialnetwork_group/templates/.default/util_group_profile.php";
$APPLICATION->IncludeComponent("bitrix:lists.element.navchain", ".default", array("IBLOCK_TYPE_ID" => COption::GetOptionString("lists", "socnet_iblock_type_id"), "SOCNET_GROUP_ID" => $arResult["VARIABLES"]["group_id"], "PATH_TO_GROUP" => $arResult["PATH_TO_GROUP"], "ADD_NAVCHAIN_GROUP" => "Y", "LISTS_URL" => $arResult["PATH_TO_GROUP_LISTS"], "IBLOCK_ID" => $arResult["VARIABLES"]["list_id"], "ADD_NAVCHAIN_LIST" => "Y", "LIST_URL" => $arResult["PATH_TO_GROUP_LIST_VIEW"], "ADD_NAVCHAIN_SECTIONS" => "N", "ADD_NAVCHAIN_ELEMENT" => "N"), $component);
$APPLICATION->IncludeComponent("bitrix:main.interface.toolbar", "", array("BUTTONS" => array(array("TEXT" => GetMessage("CT_BL_STATE_BIZPROC"), "TITLE" => GetMessage("CT_BL_STATE_BIZPROC_TITLE"), "LINK" => CHTTP::urlAddParams(str_replace(array("#list_id#", "#group_id#", "#ID#", "#id#"), array($arResult["VARIABLES"]["list_id"], $arResult["VARIABLES"]["group_id"], 0, 0), $arResult["PATH_TO_GROUP_BIZPROC_WORKFLOW_EDIT"]), array("init" => "statemachine")), "ICON" => "btn-new"), array("TEXT" => GetMessage("CT_BL_SEQ_BIZPROC"), "TITLE" => GetMessage("CT_BL_SEQ_BIZPROC_TITLE"), "LINK" => str_replace(array("#list_id#", "#group_id#", "#ID#", "#id#"), array($arResult["VARIABLES"]["list_id"], $arResult["VARIABLES"]["group_id"], 0, 0), $arResult["PATH_TO_GROUP_BIZPROC_WORKFLOW_EDIT"]), "ICON" => "btn-new"), array("SEPARATOR" => "Y"), array("TEXT" => htmlspecialcharsbx(CIBlock::GetArrayByID($arResult["VARIABLES"]["list_id"], "ELEMENTS_NAME")), "TITLE" => GetMessage("CT_BL_ELEMENTS_TITLE"), "LINK" => str_replace(array("#list_id#", "#group_id#", "#section_id#"), array($arResult["VARIABLES"]["list_id"], $arResult["VARIABLES"]["group_id"], 0), $arResult["PATH_TO_GROUP_LIST_VIEW"])))), $component, array("HIDE_ICONS" => "Y"));
$APPLICATION->IncludeComponent("bitrix:bizproc.workflow.list", ".default", array("MODULE_ID" => "iblock", "ENTITY" => "CIBlockDocument", "DOCUMENT_ID" => "iblock_" . $arResult["VARIABLES"]["list_id"], "EDIT_URL" => str_replace(array("#list_id#", "#group_id#"), array($arResult["VARIABLES"]["list_id"], $arResult["VARIABLES"]["group_id"]), $arResult["PATH_TO_GROUP_BIZPROC_WORKFLOW_EDIT"]), "SET_TITLE" => "Y"), $component, array("HIDE_ICONS" => "Y"));