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


PHP CHTTP::urlAddParams方法代码示例

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


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

示例1: getRightsLinks

 static function getRightsLinks($arPage)
 {
     global $arParams, $APPLICATION;
     if (!is_array($arPage)) {
         $arPage = array($arPage);
     }
     $arLinks = array();
     $arParams['ELEMENT_NAME'] = htmlspecialcharsback($arParams['ELEMENT_NAME']);
     $arParams['ELEMENT_NAME'] = urlencode($arParams['ELEMENT_NAME']);
     if (in_array('categories', $arPage)) {
         return array();
     }
     if (in_array('article', $arPage) && !in_array('add', $arPage)) {
         $arLinks['article'] = array('NAME' => GetMessage('PAGE_ARTICLE'), 'TITLE' => GetMessage('PAGE_ARTICLE_TITLE'), 'CURRENT' => in_array('article', $arPage), 'LINK' => CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_POST'], array('wiki_name' => $arParams['ELEMENT_NAME'], 'group_id' => CWikiSocnet::$iSocNetId)), 'ID' => 'article', 'TYPE' => 'page', 'IS_RED' => in_array('add', $arPage) ? 'Y' : 'N');
     }
     if (self::IsWriteable() && ((!in_array('history', $arPage) || in_array('history_diff', $arPage)) && (!in_array('add', $arPage) && !in_array('edit', $arPage) && !in_array('delete', $arPage) && !in_array('rename', $arPage)))) {
         if (IsModuleInstalled('bizproc')) {
             $arLinks['history'] = array('NAME' => GetMessage('PAGE_HISTORY'), 'TITLE' => GetMessage('PAGE_HISTORY_TITLE'), 'CURRENT' => in_array('history', $arPage), 'LINK' => CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_HISTORY'], array('wiki_name' => $arParams['ELEMENT_NAME'], 'group_id' => CWikiSocnet::$iSocNetId)), $arParams['IN_COMPLEX'] == 'Y' && $arParams['SEF_MODE'] == 'N' ? array($arParams['OPER_VAR'] => 'history') : array()), 'ID' => 'history', 'TYPE' => 'page', 'IS_RED' => 'N');
         }
     }
     if ($arParams['USE_REVIEW'] == 'Y') {
         $arLinks['discussion'] = array('NAME' => GetMessage('PAGE_DISCUSSION'), 'TITLE' => GetMessage('PAGE_DISCUSSION_TITLE'), 'CURRENT' => in_array('discussion', $arPage), 'LINK' => CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_DISCUSSION'], array('wiki_name' => $arParams['ELEMENT_NAME'], 'group_id' => CWikiSocnet::$iSocNetId)), $arParams['IN_COMPLEX'] == 'Y' && $arParams['SEF_MODE'] == 'N' ? array($arParams['OPER_VAR'] => 'discussion') : array()), 'ID' => 'discussion', 'TYPE' => 'page', 'IS_RED' => 'N');
     }
     if (self::IsWriteable() && (!in_array('history', $arPage) && !in_array('history_diff', $arPage))) {
         $arLinks['add'] = array('NAME' => GetMessage('PAGE_ADD'), 'TITLE' => GetMessage('PAGE_ADD_TITLE'), 'CURRENT' => in_array('add', $arPage), 'LINK' => CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_POST_EDIT'], array('wiki_name' => GetMessage('WIKI_NEW_PAGE_TITLE'), 'group_id' => CWikiSocnet::$iSocNetId)), array($arParams['OPER_VAR'] => 'add')), 'ID' => 'add', 'TYPE' => 'edit', 'IS_RED' => in_array('add', $arPage) ? 'Y' : 'N');
         if (!in_array('add', $arPage)) {
             $arLinks['edit'] = array('NAME' => GetMessage('PAGE_EDIT'), 'TITLE' => GetMessage('PAGE_EDIT_TITLE'), 'CURRENT' => in_array('edit', $arPage), 'LINK' => CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_POST_EDIT'], array('wiki_name' => $arParams['ELEMENT_NAME'], 'group_id' => CWikiSocnet::$iSocNetId)), $arParams['IN_COMPLEX'] == 'Y' && $arParams['SEF_MODE'] == 'N' ? array($arParams['OPER_VAR'] => 'edit') : array()), 'ID' => 'edit', 'TYPE' => 'edit', 'IS_RED' => in_array('add', $arPage) ? 'Y' : 'N');
             $url = $APPLICATION->GetPopupLink(array('URL' => CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_POST_EDIT'], array('wiki_name' => urlencode($arParams['ELEMENT_NAME']), 'group_id' => CWikiSocnet::$iSocNetId)), array($arParams['OPER_VAR'] => 'rename')), 'PARAMS' => array('width' => 400, 'height' => 150, 'resizable' => false)));
             $arLinks['rename'] = array('NAME' => GetMessage('WIKI_PAGE_RENAME'), 'TITLE' => GetMessage('WIKI_PAGE_RENAME_TITLE'), 'CURRENT' => in_array('rename', $arPage), 'LINK' => 'javascript:' . $url, 'ID' => 'rename', 'TYPE' => 'page');
             if (self::IsDeleteable()) {
                 $url = $APPLICATION->GetPopupLink(array('URL' => CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_POST_EDIT'], array('wiki_name' => $arParams['ELEMENT_ID'], 'group_id' => CWikiSocnet::$iSocNetId)), array($arParams['OPER_VAR'] => 'delete')), 'PARAMS' => array('width' => 400, 'height' => 150, 'resizable' => false)));
                 $arLinks['delete'] = array('NAME' => GetMessage('PAGE_DELETE'), 'TITLE' => GetMessage('PAGE_DELETE_TITLE'), 'CURRENT' => in_array('delete', $arPage), 'LINK' => 'javascript:' . $url, 'ID' => 'delete', 'TYPE' => 'edit', 'IS_RED' => 'N');
             }
         }
         /**	$arLinks['access'] = array(
         				'NAME' => GetMessage('PAGE_ACCESS'),
         				'TITLE' => GetMessage('PAGE_ACCESS_TITLE'),
         				'CURRENT' => in_array('access', $arPage),
         				'LINK' => CHTTP::urlAddParams(
         					CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_POST_EDIT'],
         						array(
         							'wiki_name' => $arParams['ELEMENT_NAME'],
         							'group_id' => CWikiSocnet::$iSocNetId
         						)
         					),
         					array($arParams['OPER_VAR'] => 'access')
         				),
         				'ID' => 'access',
         				'TYPE' => 'edit',
         				'IS_RED' => 'N'
         			); **/
     }
     return $arLinks;
 }
开发者ID:rasuldev,项目名称:torino,代码行数:54,代码来源:wiki_utils.php

示例2: getActionURL

 /**
  * Returns URL to backup webservice
  *
  * @param array[string]string $arParams
  * @return string
  *
  */
 protected function getActionURL($arParams = array())
 {
     $arParams["license"] = md5(LICENSE_KEY);
     $arParams["lang"] = LANGUAGE_ID;
     foreach ($this->addParams as $key => $value) {
         $arParams[$key] = $value;
     }
     $url = COption::GetOptionString("bitrixcloud", "backup_policy_url");
     $url = CHTTP::urlAddParams($url, $arParams, array("encode" => true)) . $this->addStr;
     return $url;
 }
开发者ID:spas-viktor,项目名称:books,代码行数:18,代码来源:backup_webservice.php

示例3: getActionURL

 /**
  * Returns URL to backup webservice
  *
  * @param array[string]string $arParams
  * @return string
  *
  */
 protected function getActionURL($arParams = array())
 {
     $arParams["license"] = md5(LICENSE_KEY);
     $arParams["spd"] = $this->spd;
     $arParams["lang"] = LANGUAGE_ID;
     $arParams["file_name"] = $this->file_name;
     $arParams["check_word"] = $this->check_word;
     $url = COption::GetOptionString("bitrixcloud", "backup_policy_url");
     $url = CHTTP::urlAddParams($url, $arParams, array("encode" => true));
     return $url;
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:18,代码来源:backup_webservice.php

示例4: getActionURL

 /**
  * Returns URL to backup webservice
  *
  * @param array[string]string $arParams
  * @return string
  *
  */
 protected function getActionURL($arParams = array())
 {
     $arParams["license"] = md5(LICENSE_KEY);
     $arParams["spd"] = CUpdateClient::getSpd();
     foreach ($this->addParams as $key => $value) {
         $arParams[$key] = $value;
     }
     $url = COption::GetOptionString("bitrixcloud", "monitoring_policy_url");
     $url = CHTTP::urlAddParams($url, $arParams, array("encode" => true)) . $this->addStr;
     return $url;
 }
开发者ID:spas-viktor,项目名称:books,代码行数:18,代码来源:monitoring_webservice.php

示例5: getActionURL

 /**
  * Returns URL to update policy
  *
  * @param array[string]string $arParams
  * @return string
  *
  */
 protected function getActionURL($arParams = array())
 {
     $arErrors = array();
     $domainTmp = CBXPunycode::ToASCII($this->domain, $arErrors);
     if (strlen($domainTmp) > 0) {
         $domain = $domainTmp;
     } else {
         $domain = $this->domain;
     }
     $arParams["license"] = md5(LICENSE_KEY);
     $arParams["domain"] = $domain;
     $url = COption::GetOptionString("bitrixcloud", "cdn_policy_url");
     $url = CHTTP::urlAddParams($url, $arParams, array("encode" => true));
     return $url;
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:22,代码来源:cdn_webservice.php

示例6: hrefHtml

function hrefHtml()
{
    $result = '';
    $params = array();
    $key = '';
    $argNum = func_num_args();
    for ($i = 0; $i < $argNum; $i++) {
        if ($i == 0) {
            $result = func_get_arg($i);
        } elseif ($i % 2) {
            $key = func_get_arg($i);
        } else {
            $params[$key] = func_get_arg($i);
        }
    }
    $result = CHTTP::urlAddParams($result, $params, array("encode" => true));
    return htmlspecialcharsbx($result);
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:18,代码来源:stat_list.php

示例7: foreach

    foreach ($arItem["VALUES"] as $key => $ar) {
        $arInputNames[$ar["CONTROL_NAME"]] = true;
    }
}
$arInputNames["set_filter"] = true;
$arInputNames["del_filter"] = true;
$arSkip = array("AUTH_FORM" => true, "TYPE" => true, "USER_LOGIN" => true, "USER_CHECKWORD" => true, "USER_PASSWORD" => true, "USER_CONFIRM_PASSWORD" => true, "USER_EMAIL" => true, "captcha_word" => true, "captcha_sid" => true, "login" => true, "Login" => true, "backurl" => true, "ajax" => true, "mode" => true, "bxajaxid" => true, "AJAX_CALL" => true);
$arResult["FORM_ACTION"] = $clearURL;
$arResult["HIDDEN"] = array();
foreach (array_merge($_GET, $_POST) as $key => $value) {
    if (!isset($arInputNames[$key]) && !isset($arSkip[$key]) && !is_array($value)) {
        $arResult["HIDDEN"][] = array("CONTROL_ID" => htmlspecialcharsbx($key), "CONTROL_NAME" => htmlspecialcharsbx($key), "HTML_VALUE" => htmlspecialcharsbx($value));
    }
}
if ($arParams["XML_EXPORT"] === "Y" && $arResult["SECTION"] && $arResult["SECTION"]["RIGHT_MARGIN"] - $arResult["SECTION"]["LEFT_MARGIN"] === 1) {
    $exportUrl = CHTTP::urlAddParams($clearURL, array("mode" => "xml"));
    $APPLICATION->AddHeadString('<meta property="ya:interaction" content="XML_FORM" />');
    $APPLICATION->AddHeadString('<meta property="ya:interaction:url" content="' . CHTTP::urn2uri($exportUrl) . '" />');
}
if ($arParams["XML_EXPORT"] === "Y" && $_REQUEST["mode"] === "xml") {
    $this->setFrameMode(false);
    ob_start();
    $this->IncludeComponentTemplate("xml");
    $xml = ob_get_contents();
    $APPLICATION->RestartBuffer();
    while (ob_end_clean()) {
    }
    header("Content-Type: text/xml; charset=utf-8");
    echo $APPLICATION->convertCharset($xml, LANG_CHARSET, "utf-8");
    require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_after.php";
    die;
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php

示例8: BeginNote

    ?>
">
		<?php 
    $tabControl->End();
    ?>

	</div>

	<?php 
    echo BeginNote();
    ?>
		<?php 
    echo Loc::getMessage('SALE_SLI_HEAVY_DUTY_NOTICE');
    ?>
		<br /><br />
		<?php 
    echo Loc::getMessage('SALE_SLI_HEAVY_DUTY_HOST_NOTICE');
    ?>
	<?php 
    echo EndNote();
    ?>

	<script>
		BX.locationImport = new BX.Sale.component.location.import(<?php 
    echo CUtil::PhpToJSObject(array('url' => CHTTP::urlAddParams($arResult['URLS']['IMPORT_AJAX'], array('lang' => LANGUAGE_ID)), 'pageUrl' => $arResult['URLS']['IMPORT'], 'scope' => 'location-import', 'ajaxFlag' => 'AJAX_CALL', 'importId' => rand(99, 999), 'firstImport' => !!$arResult['FIRST_IMPORT'], 'statistics' => array('TOTAL' => array('CNT' => isset($arResult['STATISTICS']['TOTAL']) ? intval($arResult['STATISTICS']['TOTAL']['CNT']) : 0)), 'messages' => array('start' => Loc::getMessage('SALE_SLI_START'), 'stop' => Loc::getMessage('SALE_SLI_STOP'), 'stopping' => Loc::getMessage('SALE_SLI_STOPPING'), 'selectItems' => Loc::getMessage('SALE_SLI_CHECK_ITEMS_AND_PROCEED', array('#START#' => Loc::getMessage('SALE_SLI_START'))), 'uploadFile' => Loc::getMessage('SALE_SLI_UPLOAD_FILE_AND_PROCEED', array('#START#' => Loc::getMessage('SALE_SLI_START'))), 'error_occured' => Loc::getMessage('SALE_SLI_ERROR'), 'confirm_delete' => Loc::getMessage('SALE_SLI_DELETE_ALL_CONFIRM'), 'confirm_delete_relic' => Loc::getMessage('SALE_SLI_DELETE_ALL_CONFIRM_RELIC'), 'stage_DOWNLOAD_FILES' => Loc::getMessage('SALE_SLI_STAGE_DOWNLOAD_FILES'), 'stage_REBALANCE_WALK_TREE' => Loc::getMessage('SALE_SLI_STAGE_REBALANCE'), 'stage_REBALANCE_CLEANUP_TEMP_TABLE' => Loc::getMessage('SALE_SLI_STAGE_CLEANUP_TEMP_TABLE'), 'stage_RESTORE_INDEXES' => Loc::getMessage('SALE_SLI_STAGE_RESTORE_INDEXES'), 'stage_DELETE_ALL' => Loc::getMessage('SALE_SLI_STAGE_DELETE_ALL'), 'stage_PROCESS_FILES' => Loc::getMessage('SALE_SLI_STAGE_PROCESS_FILES'), 'stage_INTEGRITY_PRESERVE' => Loc::getMessage('SALE_SLI_STAGE_INTEGRITY_PRESERVE'), 'stage_COMPLETE' => Loc::getMessage('SALE_SLI_STAGE_COMPLETE'), 'stage_INTERRUPTED' => Loc::getMessage('SALE_SLI_STAGE_INTERRUPTED'), 'stage_INTERRUPTING' => Loc::getMessage('SALE_SLI_STAGE_INTERRUPTING'), 'stage_COMPLETE_REMOVE_ALL' => Loc::getMessage('SALE_SLI_COMPLETE_REMOVE_ALL'), 'stage_DROP_INDEXES' => Loc::getMessage('SALE_SLI_DROP_INDEXES'))), false, false, true);
    ?>
);
	</script>

<?php 
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php

示例9: array

     $arResult["ELEMENTS"][$intKey] = $arItem["ID"];
     $arElementLink[$arItem['ID']] =& $arResult["ITEMS"][$intKey];
     $intKey++;
 }
 $arResult['MODULES'] = $arResultModules;
 $navComponentParameters = array();
 if ($arParams["PAGER_BASE_LINK_ENABLE"] === "Y") {
     $pagerBaseLink = trim($arParams["PAGER_BASE_LINK"]);
     if ($pagerBaseLink === "") {
         $pagerBaseLink = $arResult["SECTION_PAGE_URL"];
     }
     if ($pagerParameters && isset($pagerParameters["BASE_LINK"])) {
         $pagerBaseLink = $pagerParameters["BASE_LINK"];
         unset($pagerParameters["BASE_LINK"]);
     }
     $navComponentParameters["BASE_LINK"] = CHTTP::urlAddParams($pagerBaseLink, $pagerParameters, array("encode" => true));
 }
 $arResult["NAV_STRING"] = $rsElements->GetPageNavStringEx($navComponentObject, $arParams["PAGER_TITLE"], $arParams["PAGER_TEMPLATE"], $arParams["PAGER_SHOW_ALWAYS"], $this, $navComponentParameters);
 $arResult["NAV_CACHED_DATA"] = null;
 $arResult["NAV_RESULT"] = $rsElements;
 if (isset($arItem)) {
     unset($arItem);
 }
 if (!empty($arResult["ELEMENTS"]) && ($bGetProperties || $bCatalog && $boolNeedCatalogCache)) {
     $arPropFilter = array('ID' => $arResult["ELEMENTS"], 'IBLOCK_ID' => $arParams['IBLOCK_ID']);
     CIBlockElement::GetPropertyValuesArray($arElementLink, $arParams["IBLOCK_ID"], $arPropFilter);
     foreach ($arResult["ITEMS"] as &$arItem) {
         if ($bCatalog && $boolNeedCatalogCache) {
             CCatalogDiscount::SetProductPropertiesCache($arItem['ID'], $arItem["PROPERTIES"]);
         }
         if ($bGetProperties) {
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:component.php

示例10: foreach

    foreach ($arFmList as $elementId => $arFM) {
        foreach ($arFM as $complexId => $arComplexName) {
            $arResult['CONTACT'][$elementId][$complexId] = implode(', ', $arComplexName);
        }
    }
    // checkig access for operation
    $arContactAttr = CCrmPerms::GetEntityAttr('CONTACT', $arResult['CONTACT_ID']);
    foreach ($arResult['CONTACT_ID'] as $iContactId) {
        $arResult['CONTACT'][$iContactId]['EDIT'] = $CCrmPerms->CheckEnityAccess('CONTACT', 'WRITE', $arContactAttr[$iContactId]);
        $arResult['CONTACT'][$iContactId]['DELETE'] = $CCrmPerms->CheckEnityAccess('CONTACT', 'DELETE', $arContactAttr[$iContactId]);
        $arResult['CONTACT'][$iContactId]['BIZPROC_LIST'] = array();
        foreach ($arBPData as $arBP) {
            if (!CBPDocument::CanUserOperateDocument(CBPCanUserOperateOperation::StartWorkflow, $userID, array('crm', 'CCrmDocumentContact', 'CONTACT_' . $arResult['CONTACT'][$iContactId]['ID']), array('UserGroups' => $CCrmBizProc->arCurrentUserGroups, 'DocumentStates' => $arDocumentStates, 'WorkflowTemplateId' => $arBP['ID'], 'CreatedBy' => $arResult['CONTACT'][$iContactId]['ASSIGNED_BY'], 'UserIsAdmin' => $isAdmin, 'CRMEntityAttr' => $arContactAttr[$iContactId]))) {
                continue;
            }
            $arBP['PATH_TO_BIZPROC_START'] = CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_CONTACT_SHOW'], array('contact_id' => $arResult['CONTACT'][$iContactId]['ID'])), array('workflow_template_id' => $arBP['ID'], 'bizproc_start' => 1, 'sessid' => $arResult['SESSION_ID'], 'CRM_CONTACT_SHOW_V12_active_tab' => 'tab_bizproc', 'back_url' => $arParams['PATH_TO_CONTACT_LIST']));
            $arResult['CONTACT'][$iContactId]['BIZPROC_LIST'][] = $arBP;
        }
    }
}
if (!$isInExportMode) {
    $arResult['NEED_FOR_REBUILD_DUP_INDEX'] = false;
    $arResult['NEED_FOR_REBUILD_CONTACT_ATTRS'] = false;
    if (!$bInternal && CCrmPerms::IsAdmin()) {
        if (COption::GetOptionString('crm', '~CRM_REBUILD_CONTACT_DUP_INDEX', 'N') === 'Y') {
            $arResult['NEED_FOR_REBUILD_DUP_INDEX'] = true;
        }
        if (COption::GetOptionString('crm', '~CRM_REBUILD_CONTACT_ATTR', 'N') === 'Y') {
            $arResult['PATH_TO_PRM_LIST'] = CComponentEngine::MakePathFromTemplate(COption::GetOptionString('crm', 'path_to_perm_list'));
            $arResult['NEED_FOR_REBUILD_CONTACT_ATTRS'] = true;
        }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php

示例11: array_merge

",
					className : (window.bRefreshed !== undefined && window.bRefreshed ? "lenta-sort-item lenta-sort-item-selected" : "lenta-sort-item<?php 
    echo !$arResult["PresetFilterActive"] ? " lenta-sort-item-selected" : "";
    ?>
"), 
					href : "<?php 
    echo CUtil::JSEscape($GLOBALS["APPLICATION"]->GetCurPageParam("preset_filter_id=clearall", array_merge($arResult["PageParamsToClear"], array("preset_filter_id"))));
    ?>
" 
				},
				<?php 
    $buttonName = false;
    if (is_array($arResult["PresetFilters"])) {
        foreach ($arResult["PresetFilters"] as $preset_filter_id => $arPresetFilter) {
            $href = $actionUrl !== "" ? $actionUrl : $GLOBALS["APPLICATION"]->GetCurPage();
            $href = CHTTP::urlAddParams(CHTTP::urlDeleteParams($href, array_merge($arResult["PageParamsToClear"], array("preset_filter_id"))), array("preset_filter_id" => $preset_filter_id));
            if ($arResult["PresetFilterActive"] == $preset_filter_id) {
                $buttonName = $arPresetFilter["NAME"];
            }
            ?>
{ 
							text : "<?php 
            echo $arPresetFilter["NAME"];
            ?>
", 
							className : (window.bRefreshed !== undefined && window.bRefreshed ? "lenta-sort-item" : "lenta-sort-item<?php 
            echo $arResult["PresetFilterActive"] == $preset_filter_id ? " lenta-sort-item-selected" : "";
            ?>
"), 
							href : "<?php 
            echo CUtil::JSEscape($href);
开发者ID:webgksupport,项目名称:alpina,代码行数:31,代码来源:template.php

示例12: isset

$entityTypeName = isset($params['ENTITY_TYPE_NAME']) ? strtoupper($params['ENTITY_TYPE_NAME']) : '';
if ($entityTypeName === '') {
    die;
}
$entityTypeID = CCrmOwnerType::ResolveID($entityTypeName);
if ($entityTypeID === CCrmOwnerType::Undefined) {
    die;
}
$entityID = isset($params['ENTITY_ID']) ? $params['ENTITY_ID'] : 0;
if ($entityID <= 0) {
    die;
}
$userPermissions = CCrmPerms::GetCurrentUserPermissions();
if (!CCrmAuthorizationHelper::CheckReadPermission($entityTypeName, $entityID, $userPermissions)) {
    die;
}
$formID = isset($params['FORM_ID']) ? $params['FORM_ID'] : '';
$pathToUserProfile = isset($params['PATH_TO_USER_PROFILE']) ? $params['PATH_TO_USER_PROFILE'] : '';
$postFormUri = isset($params['POST_FORM_URI']) ? $params['POST_FORM_URI'] : '';
if ($postFormUri !== '') {
    $tabKey = $formID !== '' ? "{$formID}_active_tab" : 'active_tab';
    $tabID = isset($params['TAB_ID']) ? $params['TAB_ID'] : '';
    $postFormUri = CHTTP::urlAddParams($postFormUri, array($tabKey => $tabID));
}
$actionUri = isset($params['ACTION_URI']) ? $params['ACTION_URI'] : '';
global $APPLICATION;
Header('Content-Type: text/html; charset=' . LANG_CHARSET);
$APPLICATION->ShowAjaxHead();
$APPLICATION->IncludeComponent('bitrix:crm.entity.livefeed', '', array('DATE_TIME_FORMAT' => LANGUAGE_ID == 'en' ? "j F Y g:i a" : (LANGUAGE_ID == 'de' ? "j. F Y, G:i" : "j F Y G:i"), 'CAN_EDIT' => CCrmAuthorizationHelper::CheckUpdatePermission($entityTypeName, $entityID, $userPermissions), 'ENTITY_TYPE_ID' => $entityTypeID, 'ENTITY_ID' => $entityID, 'POST_FORM_URI' => $postFormUri, 'ACTION_URI' => $actionUri, 'FORM_ID' => $formID, 'PATH_TO_USER_PROFILE' => $pathToUserProfile), null, array('HIDE_ICONS' => 'Y'));
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_after.php';
die;
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:lazyload.ajax.php

示例13: array

if ($arParams['TYPE'] == 'edit' && $bRead && !empty($arParams['ELEMENT_ID'])) {
    $arResult['BUTTONS'][] = array('TEXT' => GetMessage('INVOICE_SHOW'), 'TITLE' => GetMessage('INVOICE_SHOW_TITLE'), 'LINK' => CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_INVOICE_SHOW'], array('invoice_id' => $arParams['ELEMENT_ID'])), 'ICON' => 'btn-view');
}
if (($arParams['TYPE'] == 'edit' || $arParams['TYPE'] == 'show') && $bAdd && !empty($arParams['ELEMENT_ID']) && !isset($_REQUEST['copy'])) {
    $arResult['BUTTONS'][] = array('TEXT' => GetMessage('INVOICE_COPY'), 'TITLE' => GetMessage('INVOICE_COPY_TITLE'), 'LINK' => CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_INVOICE_EDIT'], array('invoice_id' => $arParams['ELEMENT_ID'])), array('copy' => 1)), 'ICON' => 'btn-copy');
}
$qty = count($arResult['BUTTONS']);
if (!empty($arResult['BUTTONS']) && $arParams['TYPE'] == 'edit' && empty($arParams['ELEMENT_ID'])) {
    $arResult['BUTTONS'][] = array('SEPARATOR' => true);
} elseif ($arParams['TYPE'] == 'show' && $qty > 1) {
    $arResult['BUTTONS'][] = array('NEWBAR' => true);
} elseif ($qty >= 3) {
    $arResult['BUTTONS'][] = array('NEWBAR' => true);
}
if (($arParams['TYPE'] == 'edit' || $arParams['TYPE'] == 'show') && $bDelete && !empty($arParams['ELEMENT_ID'])) {
    $arResult['BUTTONS'][] = array('TEXT' => GetMessage('INVOICE_DELETE'), 'TITLE' => GetMessage('INVOICE_DELETE_TITLE'), 'LINK' => "javascript:invoice_delete('" . GetMessage('INVOICE_DELETE_DLG_TITLE') . "', '" . GetMessage('INVOICE_DELETE_DLG_MESSAGE') . "', '" . GetMessage('INVOICE_DELETE_DLG_BTNTITLE') . "', '" . CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_INVOICE_EDIT'], array('invoice_id' => $arParams['ELEMENT_ID'])), array('delete' => '', 'sessid' => bitrix_sessid())) . "')", 'ICON' => 'btn-delete');
}
//	if ($bAdd)
//	{
//		$arResult['BUTTONS'][] = array(
//			'TEXT' => GetMessage('INVOICE_ADD'),
//			'TITLE' => GetMessage('INVOICE_ADD_TITLE'),
//			'LINK' => CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_INVOICE_EDIT'],
//				array(
//					'invoice_id' => 0
//				)
//			),
//			'ICON' => 'btn-new'
//		);
//	}
$this->IncludeComponentTemplate();
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php

示例14: trim

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
$dir = trim(preg_replace("'[\\\\/]+'", "/", dirname(__FILE__) . "/"));
__IncludeLang($dir . "lang/" . LANGUAGE_ID . "/bizproc_workflow_admin.php");
$APPLICATION->IncludeComponent("bitrix:lists.element.navchain", ".default", array("IBLOCK_TYPE_ID" => $arParams["IBLOCK_TYPE_ID"], "IBLOCK_ID" => $arResult["VARIABLES"]["list_id"], "LISTS_URL" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["lists"], "LIST_URL" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["list"], "ADD_NAVCHAIN_SECTIONS" => "N", "ADD_NAVCHAIN_ELEMENT" => "N", "CACHE_TYPE" => $arParams["CACHE_TYPE"], "CACHE_TIME" => $arParams["CACHE_TIME"]), $component, array("HIDE_ICONS" => "Y"));
$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#", "#ID#"), array($arResult["VARIABLES"]["list_id"], 0), $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["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#", "#ID#"), array($arResult["VARIABLES"]["list_id"], 0), $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["bizproc_workflow_edit"]), "ICON" => "btn-new"))), $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#"), array($arResult["VARIABLES"]["list_id"]), $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["bizproc_workflow_edit"]), "SET_TITLE" => "Y", "EDIT_VARS_URL" => str_replace(array("#list_id#"), array($arResult["VARIABLES"]["list_id"]), $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["bizproc_workflow_vars"]), "TARGET_MODULE_ID" => "lists"), $component, array("HIDE_ICONS" => "Y"));
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:10,代码来源:bizproc_workflow_admin.php

示例15: LocalRedirect

                }
                $arDocumentStates = null;
                CBPDocument::AddDocumentToHistory(BizProcDocument::getDocumentComplexId($arParams["IBLOCK_TYPE_ID"], $arResult["ELEMENT_ID"]), $arElement["NAME"], $GLOBALS["USER"]->GetID());
            }
        }
        if (!$strError) {
            //Successfull update
            //And go to proper page
            if (isset($_POST["save"])) {
                LocalRedirect($arResult["~LIST_SECTION_URL"]);
            } elseif ($lists_perm < CListPermissions::CAN_READ && !CIBlockElementRights::UserHasRightTo($arResult["IBLOCK_ID"], $arResult["ELEMENT_ID"], "element_read")) {
                LocalRedirect($arResult["~LIST_SECTION_URL"]);
            } else {
                $url = CHTTP::urlAddParams(str_replace(array("#list_id#", "#section_id#", "#element_id#", "#group_id#"), array($arResult["IBLOCK_ID"], intval($_POST["IBLOCK_SECTION_ID"]), $arResult["ELEMENT_ID"], $arParams["SOCNET_GROUP_ID"]), $arParams["~LIST_ELEMENT_URL"]), array($tab_name => $_POST[$tab_name]), array("skip_empty" => true, "encode" => true));
                if (isset($_GET["list_section_id"]) && strlen($_GET["list_section_id"]) == 0) {
                    $url = CHTTP::urlAddParams($url, array("list_section_id" => ""));
                }
                LocalRedirect($url);
            }
        } else {
            ShowError($strError);
            $bVarsFromForm = true;
        }
    } else {
        //Go to list section page
        LocalRedirect($arResult["~LIST_SECTION_URL"]);
    }
}
$arResult["ELEMENT_URL"] = str_replace(array("#list_id#", "#section_id#", "#element_id#", "#group_id#"), array($arResult["IBLOCK_ID"], intval($arParams["~SECTION_ID"]), $arResult["ELEMENT_ID"], $arParams["SOCNET_GROUP_ID"]), $arParams["LIST_ELEMENT_URL"]);
$data = array();
if ($bVarsFromForm) {
开发者ID:webgksupport,项目名称:alpina,代码行数:31,代码来源:component.php


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