本文整理汇总了PHP中CHTTP::urlDeleteParams方法的典型用法代码示例。如果您正苦于以下问题:PHP CHTTP::urlDeleteParams方法的具体用法?PHP CHTTP::urlDeleteParams怎么用?PHP CHTTP::urlDeleteParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CHTTP
的用法示例。
在下文中一共展示了CHTTP::urlDeleteParams方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$element['SUBJECT'] = '';
$element['BODY'] = $mailTemplate;
$entityTypes = array(CCrmOwnerType::Lead, CCrmOwnerType::Deal, CCrmOwnerType::Contact, CCrmOwnerType::Company);
foreach ($entityTypes as $entityTypeID) {
$element['ENTITY_TYPE_ID'] = $entityTypeID;
CCrmMailTemplate::Add($element);
}
}
COption::SetOptionString('crm', '~CRM_MAIL_TEMPLATE_LIST_CONVERTING', 'Y');
} elseif ($conv === 'SKIP') {
COption::SetOptionString('crm', '~CRM_MAIL_TEMPLATE_LIST_CONVERTING', 'Y');
} elseif ($conv === 'RESET') {
COption::RemoveOption('crm', '~CRM_MAIL_TEMPLATE_LIST_CONVERTING');
}
}
LocalRedirect(CHTTP::urlDeleteParams($curPageUrl, array('conv')));
}
}
$gridOptions = new CCrmGridOptions($arResult['GRID_ID']);
$gridSorting = $gridOptions->GetSorting(array('sort' => array('SORT' => 'asc'), 'vars' => array('by' => 'by', 'order' => 'order')));
$sort = $arResult['SORT'] = $gridSorting['sort'];
$arResult['SORT_VARS'] = $gridSorting['vars'];
$items = array();
$dbResult = CAllCrmMailTemplate::GetList($sort, array('LOGIC' => 'OR', '=OWNER_ID' => $userID, 'SCOPE' => CCrmMailTemplateScope::Common));
$count = 0;
while ($fields = $dbResult->GetNext()) {
$ID = intval($fields['~ID']);
$fields['~OWNER_FORMATTED_NAME'] = CUser::FormatName($arParams['NAME_TEMPLATE'], array('LOGIN' => $fields['~OWNER_LOGIN'], 'NAME' => $fields['~OWNER_NAME'], 'SECOND_NAME' => $fields['~OWNER_SECOND_NAME'], 'LAST_NAME' => $fields['~OWNER_LAST_NAME']), true, false);
$fields['OWNER_FORMATTED_NAME'] = htmlspecialcharsbx($fields['~OWNER_FORMATTED_NAME']);
$fields['~ENTITY_TYPE_NAME'] = isset($fields['~ENTITY_TYPE_ID']) ? CCrmOwnerType::GetDescription($fields['~ENTITY_TYPE_ID']) : '';
$fields['ENTITY_TYPE_NAME'] = htmlspecialcharsbx($fields['~ENTITY_TYPE_NAME']);
示例2: End
public function End()
{
echo '
</div>
</div>
</td>
</tr>
</table>
</div>';
$sRowIds = $sVisRowsIds = "";
if(is_array($this->popup))
{
foreach($this->popup as $key=>$item)
if($item !== null)
$sRowIds .= ($sRowIds <> ""? ",":"").'"'.CUtil::JSEscape($key).'"';
$aRows = explode(",", $this->arOptFlt["rows"]);
if(is_array($aRows))
foreach($aRows as $row)
if(trim($row) <> "")
$sVisRowsIds .= ($sVisRowsIds <> ""? ",":"").'"'.CUtil::JSEscape(trim($row)).'":true';
}
$this->PrintSaveOptionsDIV();
$this->GetParamsFromCookie();
$openedTabUri = false;
$openedTabSes = $filteredTab = null;
if(isset($_REQUEST["adm_filter_applied"]) && !empty($_REQUEST["adm_filter_applied"]))
{
$openedTabUri = $_REQUEST["adm_filter_applied"];
}
else
{
$openedTabSes = $_SESSION[self::SESS_PARAMS_NAME][$this->id]["activeTabId"];
$filteredTab = $_SESSION[self::SESS_PARAMS_NAME][$this->id]["filteredId"];
}
echo '
<script type="text/javascript">
var '.$this->id.' = {};
BX.ready(function(){
'.$this->id.' = new BX.AdminFilter("'.$this->id.'", ['.$sRowIds.']);
'.$this->id.'.state.init = true;
'.$this->id.'.state.folded = '.($this->arOptFlt["styleFolded"] == "Y" ? "true" : "false").';
'.$this->id.'.InitFilter({'.$sVisRowsIds.'});
'.$this->id.'.oOptions = '.CUtil::PhpToJsObject($this->arItems).';
'.$this->id.'.popupItems = '.CUtil::PhpToJsObject($this->popup).';
'.$this->id.'.InitFirst();
'.$this->id.'.url = "'.CUtil::AddSlashes($this->url).'";
'.$this->id.'.table_id = "'.CUtil::AddSlashes($this->tableId).'";
'.$this->id.'.presetsDeleted = ['.$this->arOptFlt["presetsDeletedJS"].'];';
if($filteredTab != null || $openedTabUri != false)
{
$tabToInit = ($openedTabUri ? $openedTabUri : $filteredTab);
echo '
'.$this->id.'.InitFilteredTab("'.CUtil::JSEscape(htmlspecialcharsbx($tabToInit)).'");';
}
if($openedTabSes != null || $openedTabUri != false)
echo '
var openedFTab = '.$this->id.'.InitOpenedTab("'.CUtil::JSEscape(htmlspecialcharsbx($openedTabUri)).'", "'.CUtil::JSEscape(htmlspecialcharsbx($openedTabSes)).'");';
echo '
'.$this->id.'.state.init = false;
BX("adm-filter-tab-wrap-'.$this->id.'").style.display = "block";';
//making filter tabs draggable
if($this->url)
{
$registerUrl = CHTTP::urlDeleteParams($this->url, array("adm_filter_applied", "adm_filter_preset"));
foreach($this->arItems as $filter_id => $filter)
{
$arParamsAdd = array("adm_filter_applied"=>$filter_id);
if(isset($filter["PRESET_ID"]))
$arParamsAdd["adm_filter_preset"] = $filter["PRESET_ID"];
$filterUrl = CHTTP::urlAddParams($registerUrl, $arParamsAdd, array("encode","skip_empty"));
echo "
BX.adminMenu.registerItem('adm-filter-tab-".$this->id.'-'.$filter_id."', {URL:'".$filterUrl."', TITLE: true});";
}
}
echo '
}
);
</script>';
$hkInst = CHotKeys::getInstance();
//.........这里部分代码省略.........
示例3: array
$sectionList->SetUrlTemplates($arParams["SEF_RULE"]);
$section = $sectionList->GetNext();
if ($section) {
$arResult["JS_FILTER_PARAMS"]["SEF_SET_FILTER_URL"] = $this->makeSmartUrl($section["DETAIL_PAGE_URL"], true);
$arResult["JS_FILTER_PARAMS"]["SEF_DEL_FILTER_URL"] = $this->makeSmartUrl($section["DETAIL_PAGE_URL"], false);
}
}
$pageURL = $APPLICATION->GetCurPageParam();
$paramsToDelete = array("set_filter", "del_filter", "ajax", "bxajaxid", "AJAX_CALL", "mode");
foreach ($arResult["ITEMS"] as $PID => $arItem) {
foreach ($arItem["VALUES"] as $key => $ar) {
$paramsToDelete[] = $ar["CONTROL_NAME"];
$paramsToDelete[] = $ar["CONTROL_NAME_ALT"];
}
}
$clearURL = CHTTP::urlDeleteParams($pageURL, $paramsToDelete, array("delete_system_params" => true));
if (isset($_REQUEST["ajax"]) && $_REQUEST["ajax"] === "y") {
$arFilter = $this->makeFilter($FILTER_NAME);
$arResult["ELEMENT_COUNT"] = CIBlockElement::GetList(array(), $arFilter, array(), false);
$arResult["FILTER_URL"] = "";
if ($arResult["JS_FILTER_PARAMS"]["SEF_SET_FILTER_URL"]) {
$arResult["FILTER_URL"] = $arResult["JS_FILTER_PARAMS"]["SEF_SET_FILTER_URL"];
$arResult["SEF_SET_FILTER_URL"] = $arResult["JS_FILTER_PARAMS"]["SEF_SET_FILTER_URL"];
$arResult["SEF_DEL_FILTER_URL"] = $arResult["JS_FILTER_PARAMS"]["SEF_DEL_FILTER_URL"];
}
$paramsToAdd = array("set_filter" => "y");
foreach ($arResult["ITEMS"] as $PID => $arItem) {
foreach ($arItem["VALUES"] as $key => $ar) {
if (isset($_CHECK[$ar["CONTROL_NAME"]])) {
if ($arItem["PROPERTY_TYPE"] == "N" || isset($arItem["PRICE"])) {
$paramsToAdd[$ar["CONTROL_NAME"]] = $_CHECK[$ar["CONTROL_NAME"]];
示例4: ltrim
}
}
if (!$arTask) {
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$APPLICATION->SetTitle(GetMessage("BPAT_NO_TASK"));
CAdminMessage::ShowMessage(GetMessage("BPAT_NO_TASK") . ". ");
} else {
$arTask["PARAMETERS"]["DOCUMENT_ID"] = CBPStateService::GetStateDocumentId($arTask['WORKFLOW_ID']);
$backUrl = "/" . ltrim(trim($_REQUEST["back_url"]), "\\/");
if (strlen($backUrl) <= 0) {
$backUrl = "/bitrix/admin/bizproc_task_list.php?lang=" . LANGUAGE_ID;
}
if (strlen($backUrl) <= 0 && !empty($arTask["PARAMETERS"]["DOCUMENT_ID"])) {
$backUrl = CBPDocument::GetDocumentAdminPage($arTask["PARAMETERS"]["DOCUMENT_ID"]);
}
$backUrl = CHTTP::urlDeleteParams($backUrl, array('mode'));
$showType = "Form";
if ($arTask['STATUS'] > CBPTaskStatus::Running || $arTask['USER_STATUS'] > CBPTaskUserStatus::Waiting) {
$showType = "Success";
}
if ($_SERVER["REQUEST_METHOD"] == "POST" && check_bitrix_sessid()) {
if ($_POST["action"] == "doTask") {
$arErrorsTmp = array();
if (CBPDocument::PostTaskForm($arTask, $userId, $_REQUEST + $_FILES, $arErrorsTmp, $USER->GetFormattedName(false))) {
$showType = "Success";
if (strlen($backUrl) > 0) {
LocalRedirect($backUrl);
die;
}
} else {
foreach ($arErrorsTmp as $e) {
示例5: fReplaceUrl
function fReplaceUrl($arCatalog, $urlCurrent)
{
$urlCurrentDefault = $urlCurrent;
foreach ($arCatalog as $key => $submenu) {
$arUrlAdd = array("set_filter" => "Y");
$url = $submenu["url"];
$urlParse = parse_url($url);
$arUrlTag = explode("&", $urlParse["query"]);
foreach ($arUrlTag as $tag) {
$tmp = explode("=", $tag);
if ($tmp[0] == "IBLOCK_ID" || $tmp[0] == "find_section_section") {
if ($tmp[0] == "find_section_section") {
$tmp[0] = "filter_section";
}
$urlCurrent = CHTTP::urlDeleteParams($urlCurrent, array($tmp[0]));
$arUrlAdd[$tmp[0]] = $tmp[1];
}
}
$url = CHTTP::urlAddParams($urlCurrent, $arUrlAdd, array("encode", "skip_empty"));
$arCatalog[$key]["url"] = $url;
if (isset($submenu["items"]) && count($submenu["items"]) > 0) {
$subCatal = fReplaceUrl($submenu["items"], $urlCurrentDefault);
$arCatalog[$key]["items"] = $subCatal;
}
}
return $arCatalog;
}
示例6: 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);
示例7: fillUrlTemplates
protected function fillUrlTemplates()
{
global $APPLICATION;
$currentPath = CHTTP::urlDeleteParams($APPLICATION->GetCurPageParam(), array($this->arParams['PRODUCT_ID_VARIABLE'], $this->arParams['ACTION_VARIABLE'], ''), array('delete_system_params' => true));
$currentPath .= stripos($currentPath, '?') === false ? '?' : '&';
if ($this->arParams['COMPARE_PATH'] == '') {
$comparePath = $currentPath;
} else {
$comparePath = CHTTP::urlDeleteParams($this->arParams['COMPARE_PATH'], array($this->arParams['PRODUCT_ID_VARIABLE'], $this->arParams['ACTION_VARIABLE'], ''), array('delete_system_params' => true));
$comparePath .= stripos($comparePath, '?') === false ? '?' : '&';
}
$this->arParams['COMPARE_PATH'] = $comparePath . $this->arParams['ACTION_VARIABLE'] . '=COMPARE';
$this->urlTemplates['~BUY_URL_TEMPLATE'] = $currentPath . $this->arParams['ACTION_VARIABLE'] . '=' . self::ACTION_BUY . '&' . $this->arParams['PRODUCT_ID_VARIABLE'] . '=';
$this->urlTemplates['BUY_URL_TEMPLATE'] = htmlspecialcharsbx($this->urlTemplates['~BUY_URL_TEMPLATE']);
$this->urlTemplates['~ADD_URL_TEMPLATE'] = $currentPath . $this->arParams['ACTION_VARIABLE'] . '=' . self::ACTION_ADD_TO_BASKET . '&' . $this->arParams['PRODUCT_ID_VARIABLE'] . '=';
$this->urlTemplates['ADD_URL_TEMPLATE'] = htmlspecialcharsbx($this->urlTemplates['~ADD_URL_TEMPLATE']);
$this->urlTemplates['~SUBSCRIBE_URL_TEMPLATE'] = $currentPath . $this->arParams['ACTION_VARIABLE'] . '=' . self::ACTION_SUBSCRIBE . '&' . $this->arParams["PRODUCT_ID_VARIABLE"] . '=';
$this->urlTemplates['SUBSCRIBE_URL_TEMPLATE'] = htmlspecialcharsbx($this->urlTemplates['~SUBSCRIBE_URL_TEMPLATE']);
$this->urlTemplates['~COMPARE_URL_TEMPLATE'] = $comparePath . $this->arParams['ACTION_VARIABLE'] . '=' . self::ACTION_ADD_TO_COMPARE_LIST . '&' . $this->arParams['PRODUCT_ID_VARIABLE'] . '=';
$this->urlTemplates['COMPARE_URL_TEMPLATE'] = htmlspecialcharsbx($this->urlTemplates['~COMPARE_URL_TEMPLATE']);
unset($comparePath, $currentPath);
}
示例8: trim
}
if (strLen($arParams["PAGE_VAR"]) <= 0) {
$arParams["PAGE_VAR"] = "page";
}
if (strLen($arParams["USER_VAR"]) <= 0) {
$arParams["USER_VAR"] = "id";
}
if (strLen($arParams["POST_VAR"]) <= 0) {
$arParams["POST_VAR"] = "id";
}
$applicationCurPage = $APPLICATION->GetCurPage();
$arParams["PATH_TO_BLOG"] = trim($arParams["PATH_TO_BLOG"]);
if (strlen($arParams["PATH_TO_BLOG"]) <= 0) {
$arParams["PATH_TO_BLOG"] = htmlspecialcharsbx($applicationCurPage . "?" . $arParams["PAGE_VAR"] . "=blog&" . $arParams["BLOG_VAR"] . "=#blog#");
}
$arParams["PATH_TO_BLOG"] = CHTTP::urlDeleteParams($arParams["PATH_TO_BLOG"], array("WFILES"));
$arParams["PATH_TO_POST"] = trim($arParams["PATH_TO_POST"]);
if (strlen($arParams["PATH_TO_POST"]) <= 0) {
$arParams["PATH_TO_POST"] = htmlspecialcharsbx($applicationCurPage . "?" . $arParams["PAGE_VAR"] . "=post&" . $arParams["BLOG_VAR"] . "=#blog#&" . $arParams["POST_VAR"] . "=#post_id#");
}
$arParams["PATH_TO_POST_EDIT"] = trim($arParams["PATH_TO_POST_EDIT"]);
if (strlen($arParams["PATH_TO_POST_EDIT"]) <= 0) {
$arParams["PATH_TO_POST_EDIT"] = htmlspecialcharsbx($applicationCurPage . "?" . $arParams["PAGE_VAR"] . "=post_edit&" . $arParams["BLOG_VAR"] . "=#blog#&" . $arParams["POST_VAR"] . "=#post_id#");
}
$arParams["PATH_TO_USER"] = trim($arParams["PATH_TO_USER"]);
if (strlen($arParams["PATH_TO_USER"]) <= 0) {
$arParams["PATH_TO_USER"] = htmlspecialcharsbx($applicationCurPage . "?" . $arParams["PAGE_VAR"] . "=user&" . $arParams["USER_VAR"] . "=#user_id#");
}
$arParams["PATH_TO_DRAFT"] = trim($arParams["PATH_TO_DRAFT"]);
if (strlen($arParams["PATH_TO_DRAFT"]) <= 0) {
$arParams["PATH_TO_DRAFT"] = htmlspecialcharsbx($applicationCurPage . "?" . $arParams["PAGE_VAR"] . "=draft&" . $arParams["BLOG_VAR"] . "=#blog#");
示例9: UpdateReminders
function UpdateReminders($Params = array())
{
$eventId = intVal($Params['id']);
$reminders = $Params['reminders'];
$arFields = $Params['arFields'];
$userId = $Params['userId'];
$bNew = $Params['bNew'];
$path = $Params['path'];
$path = CHTTP::urlDeleteParams($path, array("action", "sessid", "bx_event_calendar_request", "EVENT_ID"));
$viewPath = CHTTP::urlAddParams($path, array('EVENT_ID' => $eventId));
$remAgentParams = array('eventId' => $eventId, 'userId' => $arFields["CREATED_BY"], 'viewPath' => $viewPath, 'calendarType' => $arFields["CAL_TYPE"], 'ownerId' => $arFields["OWNER_ID"]);
// 1. clean reminders
if (!$bNew) {
// if we edit event here can be "old" reminders
CCalendar::RemoveAgent($remAgentParams);
}
// 2. Set new reminders
$startTs = $arFields['DATE_FROM_TS_UTC'];
// Start of the event in UTC
$agentTime = 0;
foreach ($reminders as $reminder) {
$delta = intVal($reminder['count']) * 60;
//Minute
if ($reminder['type'] == 'hour') {
$delta = $delta * 60;
} elseif ($reminder['type'] == 'day') {
$delta = $delta * 60 * 24;
}
//Day
// $startTs - UTC timestamp; date('Z', $startTs) - offset of the server
$agentTime = $startTs + date('Z', $startTs);
if ($agentTime - $delta >= time() - 60 * 5) {
CCalendar::AddAgent(CCalendar::Date($agentTime - $delta), $remAgentParams);
} elseif ($arFields['RRULE'] != '') {
$arEvents = CCalendarEvent::GetList(array('arFilter' => array("ID" => $eventId, "DELETED" => "N", "FROM_LIMIT" => CCalendar::Date(time() - 3600, false), "TO_LIMIT" => CCalendar::GetMaxDate()), 'userId' => $userId, 'parseRecursion' => true, 'maxInstanceCount' => 2, 'preciseLimits' => true, 'fetchAttendees' => true, 'checkPermissions' => false, 'setDefaultLimit' => false));
if ($arEvents && is_array($arEvents[0])) {
$nextEvent = $arEvents[0];
$startTs = CCalendar::Timestamp($nextEvent['DATE_FROM'], false, $arEvents[0]["DT_SKIP_TIME"] !== 'Y');
if ($nextEvent["DT_SKIP_TIME"] == 'N' && $nextEvent["TZ_FROM"]) {
$startTs = $startTs - CCalendar::GetTimezoneOffset($nextEvent["TZ_FROM"], $startTs);
// UTC timestamp
}
if ($startTs + date("Z", $startTs) < time() - 60 * 5 && $arEvents[1]) {
$nextEvent = $arEvents[1];
}
$startTs = CCalendar::Timestamp($nextEvent['DATE_FROM'], false, $arEvents[0]["DT_SKIP_TIME"] !== 'Y');
if ($nextEvent["DT_SKIP_TIME"] == 'N' && $nextEvent["TZ_FROM"]) {
$startTs = $startTs - CCalendar::GetTimezoneOffset($nextEvent["TZ_FROM"], $startTs);
// UTC timestamp
}
$reminder = $nextEvent['REMIND'][0];
if ($reminder) {
$delta = intVal($reminder['count']) * 60;
//Minute
if ($reminder['type'] == 'hour') {
$delta = $delta * 60;
} elseif ($reminder['type'] == 'day') {
$delta = $delta * 60 * 24;
}
//Day
// $startTs - UTC timestamp; date("Z", $startTs) - offset of the server
$agentTime = $startTs + date("Z", $startTs);
if ($agentTime - $delta >= time() - 60 * 5) {
// Inaccuracy - 5 min
CCalendar::AddAgent(CCalendar::Date($agentTime - $delta), $remAgentParams);
}
}
}
}
}
}
示例10: PClearComponentCacheEx
$sectionsIds[] = $arResult['SECTION']['IBLOCK_SECTION_ID'];
}
if (isset($arResult['GALLERY']['CODE'])) {
$sectionsIds[] = $arResult['GALLERY']['ID'];
$arGalleriesIds[] = $arResult["GALLERY"]["CODE"];
if ($arResult["GALLERY"]["CREATED_BY"]) {
$arUsers[] = $arResult["GALLERY"]["CREATED_BY"];
}
}
PClearComponentCacheEx($iblockId, $sectionsIds, $arGalleriesIds, $arUsers);
if ($arParams["AJAX_CALL"] == "Y") {
$APPLICATION->RestartBuffer();
echo CUtil::PhpToJSObject($arResultFields);
die;
} else {
LocalRedirect(CHTTP::urlDeleteParams($arResult["URL"], array("sessid", "edit"), true));
}
}
$arResult["ERROR_MESSAGE"] = $strWarning;
}
/********************************************************************
/Actions
********************************************************************/
if ($arParams["AJAX_CALL"] == "Y" || $arParams["BX_PHOTO_AJAX"]) {
$GLOBALS['APPLICATION']->RestartBuffer();
}
if ($arParams["BX_PHOTO_AJAX"]) {
$ajaxAction = $_REQUEST['bx_photo_action'];
} else {
$ajaxAction = false;
}
示例11: array
if (isset($_REQUEST["flt_comments"])) {
$ajaxUrlParams["flt_comments"] = $_REQUEST["flt_comments"];
}
if (isset($_REQUEST["flt_date_datesel"])) {
$ajaxUrlParams["flt_date_datesel"] = $_REQUEST["flt_date_datesel"];
}
if (isset($_REQUEST["flt_date_days"])) {
$ajaxUrlParams["flt_date_days"] = $_REQUEST["flt_date_days"];
}
if (isset($_REQUEST["flt_date_from"])) {
$ajaxUrlParams["flt_date_from"] = $_REQUEST["flt_date_from"];
}
if (isset($_REQUEST["flt_date_to"])) {
$ajaxUrlParams["flt_date_to"] = $_REQUEST["flt_date_to"];
}
$arResult["AjaxURL"] = CHTTP::urlAddParams(CHTTP::urlDeleteParams($arResult["ActionUrl"], array("SONET_FILTER_MODE", "flt_created_by_id", "flt_comments", "flt-date-datesel", "flt_date_days", "flt_date_from", "flt_date_to")), $ajaxUrlParams);
}
$arResult["MODE"] = isset($_REQUEST["SONET_FILTER_MODE"]) && $_REQUEST["SONET_FILTER_MODE"] == "AJAX" ? "AJAX" : false;
if ($GLOBALS["USER"]->IsAuthorized() || $arParams["AUTH"] == "Y" || $arParams["SUBSCRIBE_ONLY"] != "Y") {
$arResult["DATE_FILTER"] = array("" => GetMessage("SONET_C30_DATE_FILTER_NO_NO_NO_1"), "today" => GetMessage("SONET_C30_DATE_FILTER_TODAY"), "yesterday" => GetMessage("SONET_C30_DATE_FILTER_YESTERDAY"), "week" => GetMessage("SONET_C30_DATE_FILTER_WEEK"), "week_ago" => GetMessage("SONET_C30_DATE_FILTER_WEEK_AGO"), "month" => GetMessage("SONET_C30_DATE_FILTER_MONTH"), "month_ago" => GetMessage("SONET_C30_DATE_FILTER_MONTH_AGO"), "days" => GetMessage("SONET_C30_DATE_FILTER_LAST"), "exact" => GetMessage("SONET_C30_DATE_FILTER_EXACT"), "after" => GetMessage("SONET_C30_DATE_FILTER_LATER"), "before" => GetMessage("SONET_C30_DATE_FILTER_EARLIER"), "interval" => GetMessage("SONET_C30_DATE_FILTER_INTERVAL"));
}
$arResult["FOLLOW_TYPE"] = "";
if ($GLOBALS["USER"]->IsAuthorized()) {
$arParams["SHOW_SMART_FILTER_MYGROUPS"] = $arParams["USE_SMART_FILTER"];
if (array_key_exists("set_follow_type", $_GET)) {
CSocNetLogFollow::Set($GLOBALS["USER"]->GetID(), "**", $_GET["set_follow_type"] == "Y" ? "Y" : "N", false);
if ($_GET["set_follow_type"] != "Y") {
$_SESSION["SL_SHOW_FOLLOW_HINT"] = "Y";
}
LocalRedirect("");
} elseif ($arParams["USE_SMART_FILTER"] == "Y" && array_key_exists("set_smart_filter_mygroups", $_GET)) {
示例12: isset
$APPLICATION->AddHeadScript('/bitrix/js/crm/interface_grid.js');
//color schemes
$arThemes = CGridOptions::GetThemes($this->GetFolder());
if (!empty($arParams["FILTER"])) {
$APPLICATION->IncludeComponent("bitrix:crm.interface.filter", isset($arParams['~FILTER_TEMPLATE']) ? $arParams['~FILTER_TEMPLATE'] : '', array("GRID_ID" => $arParams["~GRID_ID"], "FILTER" => $arParams["~FILTER"], "FILTER_PRESETS" => $arParams["~FILTER_PRESETS"], "FILTER_ROWS" => $arResult["FILTER_ROWS"], "FILTER_FIELDS" => $arResult["FILTER"], "RENDER_FILTER_INTO_VIEW" => isset($arParams['~RENDER_FILTER_INTO_VIEW']) ? $arParams['~RENDER_FILTER_INTO_VIEW'] : '', "HIDE_FILTER" => isset($arParams["~HIDE_FILTER"]) ? $arParams["~HIDE_FILTER"] : false, "OPTIONS" => $arResult["OPTIONS"]), $component, array("HIDE_ICONS" => true));
}
?>
<?php
if ($arParams["SHOW_FORM_TAG"]) {
?>
<form name="form_<?php
echo $arParams["GRID_ID"];
?>
" action="<?php
echo htmlspecialcharsbx(CHTTP::urlDeleteParams(htmlspecialcharsback(POST_FORM_ACTION_URI), array('bxajaxid')));
?>
" target="_self" method="POST">
<?php
echo bitrix_sessid_post();
}
?>
<div class="bx-crm-interface-list">
<table cellspacing="0" class="bx-crm-interface-grid<?php
if ($arResult["OPTIONS"]["theme"] != '') {
echo " bx-crm-interface-grid-theme-" . $arResult["OPTIONS"]["theme"];
}
?>
" id="<?php
echo $arParams["GRID_ID"];
?>
示例13: onPanelCreate
/**
* Adds A/B-test related buttons to Control Panel
*
* @return void
*/
public static function onPanelCreate()
{
global $USER, $APPLICATION;
if ($USER->canDoOperation('view_other_settings')) {
if ($context = Helper::getContext()) {
$baseUri = \CHTTP::urlDeleteParams($APPLICATION->getCurPage(), array('abtest_mode'));
$groupAUri = \CHTTP::urlAddParams($baseUri, array('abtest_mode' => intval($context['abtest']) . '|A'));
$groupBUri = \CHTTP::urlAddParams($baseUri, array('abtest_mode' => intval($context['abtest']) . '|B'));
$resetUri = \CHTTP::urlAddParams($baseUri, array('abtest_mode' => 'reset'));
$APPLICATION->addPanelButton(array('ID' => 'abtest_options', 'SRC' => $context['section'] == 'B' ? '/bitrix/images/abtest/ab-icon-b.png' : '/bitrix/images/abtest/ab-icon-a.png', 'TEXT' => str_replace('#ID#', intval($context['abtest']), Localization\Loc::getMessage('ABTEST_PANEL_MENU_BTN')), 'TYPE' => 'BIG', 'MAIN_SORT' => 900, 'SORT' => 10, 'MENU' => array(array('ACTION' => "jsUtils.Redirect([], '" . \CUtil::jsEscape($groupAUri) . "'); ", 'TEXT' => Localization\Loc::getMessage('ABTEST_PANEL_MENU_MODE_A'), 'CHECKED' => $context['section'] == 'A' ? true : false), array('ACTION' => "jsUtils.Redirect([], '" . \CUtil::jsEscape($groupBUri) . "'); ", 'TEXT' => Localization\Loc::getMessage('ABTEST_PANEL_MENU_MODE_B'), 'CHECKED' => $context['section'] == 'B' ? true : false), array('ACTION' => "jsUtils.Redirect([], '" . \CUtil::jsEscape($resetUri) . "'); ", 'TEXT' => Localization\Loc::getMessage('ABTEST_PANEL_MENU_RESET')))));
}
}
}
示例14: processActionStart
protected function processActionStart()
{
$this->checkRequiredGetParams(array('primaryAction'));
if ($this->errorCollection->hasErrors()) {
$this->sendJsonErrorResponse();
}
$currentUrl = $this->getApplication()->getCurUri();
$currentUrl = \CHTTP::urlDeleteParams($currentUrl, array('document_action'));
$currentUrl = \CHTTP::urlAddParams($currentUrl, array('document_action' => $this->request->getQuery('primaryAction')), array('encode' => true));
$this->renderStartPage(array('action' => $this->request->getQuery('primaryAction'), 'url' => $currentUrl));
}
示例15: unset
}
$arPriceTypeID[] = $value["ID"];
}
if (isset($value)) {
unset($value);
}
}
if (!empty($arParams["FIELD_CODE"])) {
$arSelect = array_merge($arSelect, $arParams["FIELD_CODE"]);
}
if (!empty($arParams['OFFERS_FIELD_CODE'])) {
$arSelect = array_merge($arSelect, $arParams["OFFERS_FIELD_CODE"]);
}
$arSelect = array_unique($arSelect);
$arSort = array($arParams["ELEMENT_SORT_FIELD"] => $arParams["ELEMENT_SORT_ORDER"], "ID" => "DESC");
$currentPath = CHTTP::urlDeleteParams($APPLICATION->GetCurPageParam(), array($arParams['PRODUCT_ID_VARIABLE'], $arParams['ACTION_VARIABLE'], 'DIFFERENT', 'ID', 'op_code', 'of_code', 'pr_code', 'pf_code', 'ajax_action'), array("delete_system_params" => true));
$arResult['~COMPARE_URL_TEMPLATE'] = $currentPath . (stripos($currentPath, '?') === false ? '?' : '&') . $arParams['ACTION_VARIABLE'];
$arResult['COMPARE_URL_TEMPLATE'] = htmlspecialcharsbx($arResult['~COMPARE_URL_TEMPLATE']);
$arResult['~DELETE_FROM_COMPARE_URL_TEMPLATE'] = $arResult['~COMPARE_URL_TEMPLATE'] . '=DELETE_FROM_COMPARE_RESULT&ID=#ID#';
$arResult['BUY_URL_TEMPLATE'] = $arResult['COMPARE_URL_TEMPLATE'] . '=COMPARE_BUY&' . $arParams['PRODUCT_ID_VARIABLE'] . '=#ID#';
$arResult['ADD_URL_TEMPLATE'] = $arResult['COMPARE_URL_TEMPLATE'] . '=COMPARE_ADD2BASKET&' . $arParams['PRODUCT_ID_VARIABLE'] . '=#ID#';
$arResult['~DELETE_FEATURE_FIELD_TEMPLATE'] = $arResult['~COMPARE_URL_TEMPLATE'] . '=DELETE_FEATURE&pf_code=#CODE#';
$arResult['~ADD_FEATURE_FIELD_TEMPLATE'] = $arResult['~COMPARE_URL_TEMPLATE'] . '=ADD_FEATURE&pf_code=#CODE#';
$arResult['~DELETE_FEATURE_PROPERTY_TEMPLATE'] = $arResult['~COMPARE_URL_TEMPLATE'] . '=DELETE_FEATURE&pr_code=#CODE#';
$arResult['~ADD_FEATURE_PROPERTY_TEMPLATE'] = $arResult['~COMPARE_URL_TEMPLATE'] . '=ADD_FEATURE&pr_code=#CODE#';
$arResult['~DELETE_FEATURE_OF_FIELD_TEMPLATE'] = $arResult['~COMPARE_URL_TEMPLATE'] . '=DELETE_FEATURE&of_code=#CODE#';
$arResult['~ADD_FEATURE_OF_FIELD_TEMPLATE'] = $arResult['~COMPARE_URL_TEMPLATE'] . '=ADD_FEATURE&of_code=#CODE#';
$arResult['~DELETE_FEATURE_OF_PROPERTY_TEMPLATE'] = $arResult['~COMPARE_URL_TEMPLATE'] . '=DELETE_FEATURE&op_code=#CODE#';
$arResult['~ADD_FEATURE_OF_PROPERTY_TEMPLATE'] = $arResult['~COMPARE_URL_TEMPLATE'] . '=ADD_FEATURE&op_code=#CODE#';
unset($currentPath);
$arResult['DELETED_FIELDS'] = array();