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


PHP InitFilterEx函数代码示例

本文整理汇总了PHP中InitFilterEx函数的典型用法代码示例。如果您正苦于以下问题:PHP InitFilterEx函数的具体用法?PHP InitFilterEx怎么用?PHP InitFilterEx使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: __prepareFilter

 function __prepareFilter()
 {
     $FilterArr = array("find_id", "find_id_exact_match", "find_status", "find_status_id", "find_status_id_exact_match", "find_timestamp_1", "find_timestamp_2", "find_date_create_2", "find_date_create_1", "find_date_create_2", "find_registered", "find_user_auth", "find_user_id", "find_user_id_exact_match", "find_guest_id", "find_guest_id_exact_match", "find_session_id", "find_session_id_exact_match");
     $z = CFormField::GetFilterList($this->WEB_FORM_ID, array("ACTIVE" => "Y"));
     while ($zr = $z->Fetch()) {
         $FID = $this->WEB_FORM_NAME . "_" . $zr["SID"] . "_" . $zr["PARAMETER_NAME"] . "_" . $zr["FILTER_TYPE"];
         $zr["FID"] = $FID;
         $arrFORM_FILTER[$zr["SID"]][] = $zr;
         $fname = "find_" . $FID;
         if ($zr["FILTER_TYPE"] == "date" || $zr["FILTER_TYPE"] == "integer") {
             $FilterArr[] = $fname . "_1";
             $FilterArr[] = $fname . "_2";
             $FilterArr[] = $fname . "_0";
         } elseif ($zr["FILTER_TYPE"] == "text") {
             $FilterArr[] = $fname;
             $FilterArr[] = $fname . "_exact_match";
         } else {
             $FilterArr[] = $fname;
         }
     }
     $sess_filter = "FORM_RESULT_LIST_" . $this->WEB_FORM_NAME;
     if (strlen($_REQUEST["set_filter"]) > 0) {
         InitFilterEx($FilterArr, $sess_filter, "set");
     } else {
         InitFilterEx($FilterArr, $sess_filter, "get");
     }
     if (strlen($_REQUEST["del_filter"]) > 0) {
         DelFilterEx($FilterArr, $sess_filter);
     } else {
         InitBVar($find_id_exact_match);
         InitBVar($find_status_id_exact_match);
         InitBVar($find_user_id_exact_match);
         InitBVar($find_guest_id_exact_match);
         InitBVar($find_session_id_exact_match);
         $str_error = "";
         if ($this->__checkFilter($str_error)) {
             $arFilter = array("ID" => $find_id, "ID_EXACT_MATCH" => $find_id_exact_match, "STATUS" => $find_status, "STATUS_ID" => $find_status_id, "STATUS_ID_EXACT_MATCH" => $find_status_id_exact_match, "TIMESTAMP_1" => $find_timestamp_1, "TIMESTAMP_2" => $find_timestamp_2, "DATE_CREATE_1" => $find_date_create_1, "DATE_CREATE_2" => $find_date_create_2, "REGISTERED" => $find_registered, "USER_AUTH" => $find_user_auth, "USER_ID" => $find_user_id, "USER_ID_EXACT_MATCH" => $find_user_id_exact_match, "GUEST_ID" => $find_guest_id, "GUEST_ID_EXACT_MATCH" => $find_guest_id_exact_match, "SESSION_ID" => $find_session_id, "SESSION_ID_EXACT_MATCH" => $find_session_id_exact_match);
             if (is_array($arrFORM_FILTER)) {
                 foreach ($arrFORM_FILTER as $arrF) {
                     foreach ($arrF as $arr) {
                         if ($arr["FILTER_TYPE"] == "date" || $arr["FILTER_TYPE"] == "integer") {
                             $arFilter[$arr["FID"] . "_1"] = ${"find_" . $arr["FID"] . "_1"};
                             $arFilter[$arr["FID"] . "_2"] = ${"find_" . $arr["FID"] . "_2"};
                             $arFilter[$arr["FID"] . "_0"] = ${"find_" . $arr["FID"] . "_0"};
                         } elseif ($arr["FILTER_TYPE"] == "text") {
                             $arFilter[$arr["FID"]] = ${"find_" . $arr["FID"]};
                             $exact_match = ${"find_" . $arr["FID"] . "_exact_match"} == "Y" ? "Y" : "N";
                             $arFilter[$arr["FID"] . "_exact_match"] = $exact_match;
                         } else {
                             $arFilter[$arr["FID"]] = ${"find_" . $arr["FID"]};
                         }
                     }
                 }
             }
         }
     }
     return $arFilter;
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:58,代码来源:form_cformoutput_old.php

示例2: array

    $find_events_names[] = $arrEVENTS[$value];
}
//Restore & Save settings
$arSettings = array("saved_show_money", "saved_summa");
InitFilterEx($arSettings, $sTableID . "_settings", "get");
if ($show_money === false) {
    //Restore saved setting
    $show_money = $saved_show_money;
}
$saved_show_money = $show_money;
if ($summa === false) {
    //Restore saved setting
    $summa = $saved_summa;
}
$saved_summa = $summa;
InitFilterEx($arSettings, $sTableID . "_settings", "set");
//Compatibility only TODO:remove this code
$FilterArr[] = "find_show_money";
$find_show_money = $show_money;
$FilterArr[] = "find_summa";
$find_summa = $summa;
$strError = "";
AdminListCheckDate($strError, array("find_date1" => $find_date1, "find_date2" => $find_date2));
$str = is_array($find_events) ? implode(" | ", $find_events) : "";
$arFilter = array("EVENT_ID" => $str, "DATE1" => $find_date1, "DATE2" => $find_date2, "SUMMA" => $find_summa);
$lAdmin->BeginCustomContent();
if (is_array($find_events) && count($find_events) > 0) {
    $arrDays = CStatEventType::GetGraphArray($arFilter, $arrLegend);
    if (function_exists("ImageCreate")) {
        if (strlen($strError) <= 0 && count($arrLegend) > 0 && count($arrDays) > 1) {
            $width = COption::GetOptionString("statistic", "GRAPH_WEIGHT");
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:event_graph_list.php

示例3: InitFilter

	function InitFilter($arFilterFields)
	{
		$sTableID = $this->table_id;
		global $del_filter, $set_filter, $save_filter;
		if($del_filter <> "")
			DelFilterEx($arFilterFields, $sTableID);
		elseif($set_filter <> "")
		{
			CAdminFilter::UnEscape($arFilterFields);
			InitFilterEx($arFilterFields, $sTableID, "set");
		}
		elseif($save_filter <> "")
		{
			CAdminFilter::UnEscape($arFilterFields);
		}
		else
			InitFilterEx($arFilterFields, $sTableID, "get");

		foreach ($arFilterFields as $f)
		{
			$fperiod = $f."_FILTER_PERIOD";
			$fdirection = $f."_FILTER_DIRECTION";
			$fbdays = $f."_DAYS_TO_BACK";

			global $$f, $$fperiod, $$fdirection, $$fbdays;
			if (isset($$f))
				$this->filter[$f] = $$f;
			if (isset($$fperiod))
				$this->filter[$fperiod] = $$fperiod;
			if (isset($$fdirection))
				$this->filter[$fdirection] = $$fdirection;
			if (isset($$fbdays))
				$this->filter[$fbdays] = $$fbdays;
		}

		return $this->filter;
	}
开发者ID:ASDAFF,项目名称:open_bx,代码行数:37,代码来源:admin_lib.php

示例4: strlen

}
if (!CModule::IncludeModule('intranet')) {
    return;
}
$arParams['FILTER_NAME'] = strlen($arParams["FILTER_NAME"]) <= 0 || !preg_match("/^[A-Za-z_][A-Za-z0-9_]*\$/", $arParams["FILTER_NAME"]) ? 'find_' : $arParams['FILTER_NAME'];
InitBVar($arParams['FILTER_DEPARTMENT_SINGLE']);
InitBVar($arParams['FILTER_SESSION']);
$arParams['LIST_PAGE'] = strlen($arParams['LIST_PAGE']) > 0 ? $arParams['LIST_PAGE'] : $APPLICATION->GetCurPage();
$arUserFields = $GLOBALS['USER_FIELD_MANAGER']->GetUserFields('USER', 0, LANGUAGE_ID);
$arResult['UF_DEPARTMENT_field'] = $arUserFields['UF_DEPARTMENT'];
$arResult['UF_DEPARTMENT_field']['FIELD_NAME'] = $arParams['FILTER_NAME'] . '_UF_DEPARTMENT';
if ($arParams['FILTER_DEPARTMENT_SINGLE'] == 'Y') {
    $arResult['UF_DEPARTMENT_field']['MULTIPLE'] = 'N';
    $arResult['UF_DEPARTMENT_field']['SETTINGS']['LIST_HEIGHT'] = 1;
}
$arResult['FILTER_PARAMS'] = array($arParams['FILTER_NAME'] . '_UF_DEPARTMENT', $arParams['FILTER_NAME'] . '_UF_PHONE_INNER', $arParams['FILTER_NAME'] . '_LAST_NAME', $arParams['FILTER_NAME'] . '_LAST_NAME_RANGE', $arParams['FILTER_NAME'] . '_POST', $arParams['FILTER_NAME'] . '_COMPANY', $arParams['FILTER_NAME'] . '_FIO', $arParams['FILTER_NAME'] . '_EMAIL', $arParams['FILTER_NAME'] . '_PHONE', $arParams['FILTER_NAME'] . '_KEYWORDS', $arParams['FILTER_NAME'] . '_IS_ONLINE');
$filter_action = strlen($_REQUEST['set_filter_' . $arParams['FILTER_NAME']]) > 0 ? 'set' : 'get';
InitFilterEx($arResult['FILTER_PARAMS'], $arParams['FILTER_NAME'], $filter_action, $arParams['FILTER_SESSION'] == 'Y');
$arResult['bVarsFromForm'] = true;
$arResult['FILTER_VALUES'] = array();
if (strlen($_REQUEST['del_filter_' . $arParams['FILTER_NAME']]) > 0) {
    $arResult['bVarsFromForm'] = false;
    DelFilterEx($arResult['FILTER_PARAMS'], $arParams['FILTER_NAME'], $arParams['FILTER_SESSION'] == 'Y');
} else {
    foreach ($arResult['FILTER_PARAMS'] as $var) {
        $arResult['FILTER_VALUES'][$var] = htmlspecialcharsex($GLOBALS[$var]);
    }
    //$GLOBALS['UF_DEPARTMENT'] = $GLOBALS[$arParams['FILTER_NAME'].'_UF_DEPARTMENT'] = $arResult['FILTER_VALUES']['UF_DEPARTMENT'];
}
$this->IncludeComponentTemplate();
return $arResult['FILTER_VALUES'];
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php

示例5: InitFilterEx

	if ($zr["FILTER_TYPE"]=="date" || $zr["FILTER_TYPE"]=="integer")
	{
		$FilterArr[] = $fname."_1";
		$FilterArr[] = $fname."_2";
		$FilterArr[] = $fname."_0";
	}
	elseif ($zr["FILTER_TYPE"]=="text")
	{
		$FilterArr[] = $fname;
		$FilterArr[] = $fname."_exact_match";
	}
	else $FilterArr[] = $fname;
}
$sess_filter = "FORM_RESULT_LIST_".$WEB_FORM_NAME;
if (strlen($set_filter)>0) InitFilterEx($FilterArr,$sess_filter,"set"); 
else InitFilterEx($FilterArr,$sess_filter,"get");
if (strlen($del_filter)>0) DelFilterEx($FilterArr,$sess_filter);

InitBVar($find_id_exact_match);
InitBVar($find_status_id_exact_match);
InitBVar($find_user_id_exact_match);
InitBVar($find_guest_id_exact_match);
InitBVar($find_session_id_exact_match);
if (CheckFilter())
{
	$arFilter = Array(
		"ID"						=> $find_id,
		"ID_EXACT_MATCH"			=> $find_id_exact_match,
		"STATUS"					=> $find_status,
		"STATUS_ID"					=> $find_status_id,
		"STATUS_ID_EXACT_MATCH"		=> $find_status_id_exact_match,
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:form_result_list_handler.php

示例6: InitFilter

	public function InitFilter($arFilterFields)
	{
		$sTableID = $this->table_id;
		global $del_filter, $set_filter, $save_filter;
		if($del_filter <> "")
			DelFilterEx($arFilterFields, $sTableID);
		elseif($set_filter <> "")
		{
			CAdminFilter::UnEscape($arFilterFields);
			InitFilterEx($arFilterFields, $sTableID, "set");
		}
		elseif($save_filter <> "")
		{
			CAdminFilter::UnEscape($arFilterFields);
		}
		else
			InitFilterEx($arFilterFields, $sTableID, "get");
	}
开发者ID:ASDAFF,项目名称:bxApiDocs,代码行数:18,代码来源:admin_lib.php

示例7: elseif

        $APPLICATION->ThrowException(GetMessage("LU_INCORRECT_LAST_MESSAGE_DATE"), "BAD_DATE_TO");
    }
    if (!empty($_REQUEST["topic"])) {
        $arFilterFromForm["topic"] = $_REQUEST["topic"];
    }
    if (!empty($_REQUEST["message"])) {
        $arFilterFromForm["message"] = $_REQUEST["message"];
    }
    $arFilterFromForm["sort"] = $_REQUEST["sort"] == "topic" ? "topic" : "message";
} elseif (!empty($_REQUEST["del_filter"])) {
    DelFilterEx(array("date_create", "date_create1"), "USER_LIST", false);
    unset($_REQUEST["fid"]);
    unset($_REQUEST["topic"]);
    unset($_REQUEST["message"]);
} else {
    InitFilterEx(array("date_create", "date_create1"), "USER_LIST", "get", false);
}
/*******************************************************************/
$arGroupForum = array();
foreach ($arResult["FORUMS_ALL"] as $res) {
    $arGroupForum[intVal($res["FORUM_GROUP_ID"])]["FORUMS"][] = $res;
}
/*******************************************************************/
$arGroups = array();
foreach ($arGroupForum as $PARENT_ID => $res) {
    $bResult = true;
    $res = array("FORUMS" => $res["FORUMS"]);
    while ($PARENT_ID > 0) {
        if (!array_key_exists($PARENT_ID, $arResult["GROUPS"])) {
            $bResult = false;
            $PARENT_ID = false;
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:component.php

示例8: InitFilterEx

                 $tmp = $arFilterFields[$i];
                 $arFilterFields[$i] = $arFilterFields[$i - 1];
                 $arFilterFields[$i - 1] = $tmp;
                 $change = true;
             }
         }
         if ($change) {
             $arResult["arrFORM_FILTER"][$q_sid] = $arFilterFields;
         }
     }
 }
 $arParams["sess_filter"] = "FORM_RESULT_LIST_" . $arParams["WEB_FORM_NAME"];
 if (strlen($_REQUEST["set_filter"]) > 0) {
     InitFilterEx($FilterArr, $arParams["sess_filter"], "set");
 } else {
     InitFilterEx($FilterArr, $arParams["sess_filter"], "get");
 }
 if (strlen($_REQUEST["del_filter"]) > 0) {
     DelFilterEx($FilterArr, $arParams["sess_filter"]);
 } else {
     InitBVar($GLOBALS["find_id_exact_match"]);
     InitBVar($GLOBALS["find_status_id_exact_match"]);
     InitBVar($GLOBALS["find_user_id_exact_match"]);
     InitBVar($GLOBALS["find_guest_id_exact_match"]);
     InitBVar($GLOBALS["find_session_id_exact_match"]);
     $arResult["ERROR_MESSAGE"] = "";
     if (__FormResultListCheckFilter($arResult["ERROR_MESSAGE"], $arResult["arrFORM_FILTER"])) {
         $arFilter = array("ID" => $GLOBALS["find_id"], "ID_EXACT_MATCH" => $GLOBALS["find_id_exact_match"], "STATUS" => $GLOBALS["find_status"], "STATUS_ID" => $GLOBALS["find_status_id"], "STATUS_ID_EXACT_MATCH" => $GLOBALS["find_status_id_exact_match"], "TIMESTAMP_1" => $GLOBALS["find_timestamp_1"], "TIMESTAMP_2" => $GLOBALS["find_timestamp_2"], "DATE_CREATE_1" => $GLOBALS["find_date_create_1"], "DATE_CREATE_2" => $GLOBALS["find_date_create_2"], "REGISTERED" => $GLOBALS["find_registered"], "USER_AUTH" => $GLOBALS["find_user_auth"], "USER_ID" => $GLOBALS["find_user_id"], "USER_ID_EXACT_MATCH" => $GLOBALS["find_user_id_exact_match"], "GUEST_ID" => $GLOBALS["find_guest_id"], "GUEST_ID_EXACT_MATCH" => $GLOBALS["find_guest_id_exact_match"], "SESSION_ID" => $GLOBALS["find_session_id"], "SESSION_ID_EXACT_MATCH" => $GLOBALS["find_session_id_exact_match"]);
         if (is_array($arResult["arrFORM_FILTER"])) {
             foreach ($arResult["arrFORM_FILTER"] as $arrF) {
                 foreach ($arrF as $arr) {
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例9: CPHPCache

$parser->userNameTemplate = $arParams["NAME_TEMPLATE"];
$cache = new CPHPCache();
$cache_path_main = str_replace(array(":", "//"), "/", "/" . SITE_ID . "/" . $componentName . "/");
$arFilter = array();
$arForums = array();
$by = is_set($arResult["SortingEx"], $by) ? $by : "LAST_POST_DATE";
$order = $order != "asc" ? "desc" : "asc";
/************** Filter *********************************************/
$FilterArr = array("find_date1", "find_date2", "find_forum");
$set_default = !is_set($_REQUEST, "find_forum") ? empty($_SESSION["SESS_ADMIN"]["LAST_TOPICS_LIST"]) ? "Y" : "N" : "N";
$set_filter = is_set($_REQUEST, "set_filter") || $set_default == "Y" ? "set" : "get";
$find_date1 = $_REQUEST["find_date1"];
$find_date2 = $_REQUEST["find_date2"];
$find_forum = intVal($_REQUEST["find_forum"]);
$find_date1_DAYS_TO_BACK = intVal($set_default == "Y" ? 2 : $find_date1_DAYS_TO_BACK);
InitFilterEx($FilterArr, "LAST_TOPICS_LIST", $set_filter, true);
if (!empty($_REQUEST["del_filter"])) {
    DelFilterEx($FilterArr, "LAST_TOPICS_LIST", true);
}
$find_date1 = $GLOBALS["find_date1"];
$find_date2 = $GLOBALS["find_date2"];
$find_forum = $GLOBALS["find_forum"] = intVal($GLOBALS["find_forum"]);
$find_date1_DAYS_TO_BACK = $GLOBALS["find_date1_DAYS_TO_BACK"];
/********************************************************************
				/Default values
********************************************************************/
/********************************************************************
				Data
********************************************************************/
$arResult["index"] = CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_INDEX"], array());
/************** Forums *********************************************/
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例10: GetMessage

}
if (empty($banner_ref)) {
    $strError = GetMessage("ADV_NO_BANNERS_FOR_DIAGRAM");
}
$man = false;
if ((!isset($_SESSION["SESS_ADMIN"]["AD_STAT_BANNER_DIAGRAM"]) || empty($_SESSION["SESS_ADMIN"]["AD_STAT_BANNER_DIAGRAM"])) && strlen($find_date1) <= 0 && strlen($find_date2) <= 0 && !is_array($find_banner_id) && !is_array($find_what_show)) {
    $find_banner_id = $banner_ref_id;
    $find_what_show = array("ctr");
    $man = true;
    $set_filter = "Y";
}
$FilterArr = array("find_date1", "find_date2", "find_group_sid", "find_banner_id", "find_what_show");
if (strlen($set_filter) > 0 || $man) {
    InitFilterEx($FilterArr, "AD_STAT_BANNER_DIAGRAM", "set", true);
} else {
    InitFilterEx($FilterArr, "AD_STAT_BANNER_DIAGRAM", "get", true);
}
if (strlen($del_filter) > 0) {
    DelFilterEx($FilterArr, "AD_STAT_LIST", true);
}
if ((count($find_banner_id) < 1 || !is_set($find_what_show)) && strlen($strError) < 0) {
    $strError = GetMessage("ADV_F_NO_FIELDS");
}
$arFilter = array("DATE_1" => $find_date1, "DATE_2" => $find_date2, "GROUP_SID" => $find_group_sid, "BANNER_ID" => $find_banner_id, "WHAT_SHOW" => $find_what_show);
$arrDays = CAdvBanner::GetDynamicList($arFilter, $arrLegend, $is_filtered);
$arShow = $find_what_show;
$filter_selected = 0;
if (is_array($find_group_sid) && count($find_group_sid) > 0) {
    $filter_selected++;
}
if (is_array($find_banner_id) && count($find_banner_id) > 0) {
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:adv_banner_diagram.php

示例11: GetMessage

    }
}
if (empty($contract_ref)) {
    $strError = GetMessage("ADV_NO_CONTRACTS_FOR_DIAGRAM");
}
$man = false;
if ((!isset($_SESSION["SESS_ADMIN"]["AD_STAT_CONTRACT_DIAGRAM"]) || empty($_SESSION["SESS_ADMIN"]["AD_STAT_CONTRACT_DIAGRAM"])) && strlen($find_date1) <= 0 && strlen($find_date2) <= 0 && !is_array($find_contract_id) && !is_array($find_what_show)) {
    $find_contract_id = $contract_ref_id;
    $find_what_show = array("ctr");
    $man = true;
}
$FilterArr = array("find_date1", "find_date2", "find_contract_id", "find_what_show");
if (strlen($set_filter) > 0 || $man) {
    InitFilterEx($FilterArr, "AD_STAT_CONTRACT_DIAGRAM", "set", true);
} else {
    InitFilterEx($FilterArr, "AD_STAT_CONTRACT_DIAGRAM", "get", true);
}
if (strlen($del_filter) > 0) {
    DelFilterEx($FilterArr, "AD_STAT_LIST", true);
}
if (!is_set($find_contract_id) && !is_set($find_what_show) || !is_set($find_what_show) && is_set($find_contract_id) || is_set($find_what_show) && !is_set($find_contract_id)) {
    $strError = GetMessage("ADV_F_NO_FIELDS");
}
$arFilter = array("DATE_1" => $find_date1, "DATE_2" => $find_date2, "CONTRACT_ID" => $find_contract_id, "WHAT_SHOW" => $find_what_show);
$arrDays = CAdvBanner::GetDynamicList($arFilter, $arrLegend, $is_filtered);
$arShow = $find_what_show;
$filter_selected = 0;
if (is_array($find_contract_id) && count($find_contract_id) > 0) {
    $filter_selected++;
}
if ($filter_selected > 0) {
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:adv_contract_diagram.php

示例12: array

$FilterArr = array("find_date1", "find_date2", "find_contract_id", "find_contract_summa", "find_what_show");
$sTableID = "adv_contract_list";
$oSort = new CAdminSorting($sTableID);
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter($FilterArr);
$man = false;
if (!isset($_SESSION["SESS_ADMIN"]["AD_STAT_CONTRACT_GRAPH"]) || empty($_SESSION["SESS_ADMIN"]["AD_STAT_CONTRACT_GRAPH"])) {
    $find_contract_id = $contract_ref_id;
    $find_contract_summa = "Y";
    $find_what_show = array("ctr");
    $man = true;
}
if (strlen($set_filter) > 0 || $man) {
    InitFilterEx($FilterArr, "AD_STAT_CONTRACT_GRAPH", "set", true);
} else {
    InitFilterEx($FilterArr, "AD_STAT_CONTRACT_GRAPH", "get", true);
}
if (strlen($del_filter) > 0) {
    DelFilterEx($FilterArr, "AD_STAT_LIST", true);
}
//if((!is_set($find_contract_id) && !is_set($find_what_show)) || (!is_set($find_what_show) && is_set($find_contract_id)) || (is_set($find_what_show) && !is_set($find_contract_id)))
//	$strError = GetMessage("ADV_F_NO_FIELDS");
if (!is_array($find_contract_id) || count($find_contract_id) == 0) {
    $find_contract_id = array(0);
}
if (empty($find_contract_summa)) {
    $find_contract_summa = 'Y';
}
if (empty($find_what_show)) {
    $find_what_show = array("visitor", "show", "click", "ctr");
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:adv_contract_graph.php

示例13: IncludeModuleLangFile

# http://www.bitrix.ru                       #
# mailto:admin@bitrix.ru                     #
##############################################
*/
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$STAT_RIGHT = $APPLICATION->GetGroupRight("statistic");
if ($STAT_RIGHT == "D") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
$ID = intval($ID);
$FilterArr = array("find_id", "find_event1", "find_event2", "find_keywords", "find_date1", "find_date2", "find_group");
if (strlen($set_filter) > 0) {
    InitFilterEx($FilterArr, "ADV_EVENTS", "set");
} else {
    InitFilterEx($FilterArr, "ADV_EVENTS", "get");
}
if (strlen($del_filter) > 0) {
    DelFilterEx($FilterArr, "ADV_EVENTS");
}
if (strlen($find_id) > 0 || strlen($find_event1) > 0 || strlen($find_event2) > 0 || strlen($find_keywords) > 0 || strlen($find_date1) > 0 || strlen($find_date2) > 0 || $find_group != "NOT_REF") {
    if (AdminListCheckDate($strError, array("find_date1" => $find_date1, "find_date2" => $find_date2))) {
        $arFilter = array("ID" => $find_id, "EVENT1" => $find_event1, "EVENT2" => $find_event2, "KEYWORDS" => $find_keywords, "DATE1_PERIOD" => $find_date1, "DATE2_PERIOD" => $find_date2, "GROUP" => $find_group);
    }
}
$events = CAdv::GetEventList($ID, $by, $order, $arFilter, $is_filtered);
$find_group = strlen($find_group) <= 0 ? "NOT_REF" : $find_group;
/***************************************************************************
				HTML form
****************************************************************************/
$APPLICATION->SetTitle(str_replace("#ID#", "{$ID}", GetMessage("STAT_TITLE")));
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:adv_events.php

示例14: array

if ((!isset($_SESSION["SESS_ADMIN"]["AD_STAT_BANNER_GRAPH"]) || empty($_SESSION["SESS_ADMIN"]["AD_STAT_BANNER_GRAPH"])) && strlen($find_date1) <= 0 && strlen($find_date2) <= 0 && !is_array($find_banner_id) && strlen($find_banner_summa) <= 0 && !is_array($find_what_show)) {
    $find_banner_id = $banner_ref_id;
    $find_banner_summa = "Y";
    $find_what_show = array("ctr");
    $man = true;
    $set_filter = "Y";
}
$FilterArr = array("find_date1", "find_date2", "find_banner_id", "find_banner_summa", "find_what_show", "find_group_sid", "find_group_summa", "find_type_sid");
$sTableID = "adv_banner_list";
$oSort = new CAdminSorting($sTableID);
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter($FilterArr);
if (strlen($set_filter) > 0 || $man) {
    InitFilterEx($FilterArr, "AD_STAT_BANNER_GRAPH", "set", true);
} else {
    InitFilterEx($FilterArr, "AD_STAT_BANNER_GRAPH", "get", true);
}
if (strlen($del_filter) > 0) {
    DelFilterEx($FilterArr, "AD_STAT_LIST", true);
}
//if((!is_set($find_banner_id) && !is_set($find_what_show)) || (!is_set($find_what_show) && is_set($find_banner_id)) || (is_set($find_what_show) && !is_set($find_banner_id)))
//	$strError = GetMessage("ADV_F_NO_FIELDS");
if (!is_array($find_banner_id) || count($find_banner_id) == 0) {
    $find_banner_id = array(0);
}
if (empty($find_banner_summa)) {
    $find_banner_summa = 'Y';
}
if (empty($find_what_show)) {
    $find_what_show = array("visitor", "show", "click", "ctr");
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:adv_banner_graph.php

示例15: preg_replace

$field_name = preg_replace("/[^a-z0-9_\\[\\]:]/i", "", $field_name);
$alt_name = preg_replace("/[^a-z0-9_\\[\\]:]/i", "", $alt_name);
if (strlen($form_name) <= 0) {
    $form_name = "form1";
}
if (strlen($field_name) <= 0) {
    $field_name = "USER_ID";
}
if (strlen($alt_name) <= 0) {
    $alt_name = "USER_ID_alt";
}
$FilterArr = array("find_id", "find_timestamp_1", "find_timestamp_2", "find_last_login_1", "find_last_login_2", "find_active", "find_login", "find_name", "find_email", "find_keywords", "find_group_id");
if (strlen($set_filter) > 0) {
    InitFilterEx($FilterArr, "USER_SEARCH", "set");
} else {
    InitFilterEx($FilterArr, "USER_SEARCH", "get");
}
if (strlen($del_filter) > 0) {
    DelFilterEx($FilterArr, "USER_SEARCH");
}
if (CheckFilter()) {
    $arFilter = array("ID" => $find_id, "TIMESTAMP_1" => $find_timestamp_1, "TIMESTAMP_2" => $find_timestamp_2, "LAST_LOGIN_1" => $find_last_login_1, "LAST_LOGIN_2" => $find_last_login_2, "ACTIVE" => $find_active, "LOGIN" => $find_login, "NAME" => $find_name, "EMAIL" => $find_email, "KEYWORDS" => $find_keywords, "GROUPS_ID" => $find_group_id);
}
$rsUsers = CUser::GetList($by, $order, $arFilter);
$is_filtered = $rsUsers->is_filtered;
/***************************************************************************
							HTML
****************************************************************************/
$APPLICATION->SetTitle(GetMessage("SALE_PAGE_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_popup_admin.php";
?>
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:user_search.php


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