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


PHP CAdminList::InitFilter方法代码示例

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


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

示例1: GetAdminFilterHTML

 function GetAdminFilterHTML($arProperty, $strHTMLControlName)
 {
     $from_name = $strHTMLControlName["VALUE"] . '_from';
     $to_name = $strHTMLControlName["VALUE"] . '_to';
     $lAdmin = new CAdminList($strHTMLControlName["TABLE_ID"]);
     $lAdmin->InitFilter(array($from_name, $to_name));
     $from = isset($GLOBALS[$from_name]) ? $GLOBALS[$from_name] : "";
     $to = isset($GLOBALS[$to_name]) ? $GLOBALS[$to_name] : "";
     return CAdminCalendar::CalendarPeriod($from_name, $to_name, $from, $to);
 }
开发者ID:spas-viktor,项目名称:books,代码行数:10,代码来源:prop_datetime.php

示例2: GetAdminFilterHTML

 public static function GetAdminFilterHTML($arProperty, $strHTMLControlName)
 {
     $lAdmin = new CAdminList($strHTMLControlName["TABLE_ID"]);
     $lAdmin->InitFilter(array($strHTMLControlName["VALUE"]));
     $filterValue = $GLOBALS[$strHTMLControlName["VALUE"]];
     if (isset($filterValue) && is_array($filterValue)) {
         $values = $filterValue;
     } else {
         $values = array();
     }
     $settings = CIBlockPropertyElementList::PrepareSettings($arProperty);
     if ($settings["size"] > 1) {
         $size = ' size="' . $settings["size"] . '"';
     } else {
         $size = '';
     }
     if ($settings["width"] > 0) {
         $width = ' style="width:' . $settings["width"] . 'px"';
     } else {
         $width = '';
     }
     $bWasSelect = false;
     $options = CIBlockPropertyElementList::GetOptionsHtml($arProperty, $values, $bWasSelect);
     $html = '<select multiple name="' . $strHTMLControlName["VALUE"] . '[]"' . $size . $width . '>';
     $html .= '<option value=""' . (!$bWasSelect ? ' selected' : '') . '>' . GetMessage("IBLOCK_PROP_ELEMENT_LIST_ANY_VALUE") . '</option>';
     $html .= $options;
     $html .= '</select>';
     return $html;
 }
开发者ID:rasuldev,项目名称:torino,代码行数:29,代码来源:prop_element_list.php

示例3: array

$arr = array();
$arr["reference_id"][] = "";
$arr["reference"][] = "";
$arrForum = array();
$arrSelect = "";
while ($dbForum = $db_Forum->Fetch()) {
    $arrForum[$dbForum["ID"]] = htmlspecialcharsex($dbForum["NAME"]);
    $arrSelect .= "<option value='" . $dbForum["ID"] . "'>" . htmlspecialcharsex($dbForum["NAME"]) . "</option>";
    $arr["reference_id"][] = $dbForum["ID"];
    $arr["reference"][] = htmlspecialcharsex($dbForum["NAME"]);
}
//************************************ Filter *****************8***************************************************
$sTableID = "tbl_topic";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter(array("FORUM_ID", "DATE_FROM", "DATE_TO", "CREATE_DATE_FROM", "CREATE_DATE_TO"));
//************************************ Check filter ***************************************************************
$arMsg = array();
$err = false;
$date1_create_stm = "";
$date1_create_stm = "";
$date1_stm = "";
$date2_stm = "";
$CREATE_DATE_FROM = trim($CREATE_DATE_FROM);
$CREATE_DATE_TO = trim($CREATE_DATE_TO);
$CREATE_DATE_FROM_DAYS_TO_BACK = intval($CREATE_DATE_FROM_DAYS_TO_BACK);
if (strlen($CREATE_DATE_FROM) > 0 || strlen($CREATE_DATE_TO) > 0 || $CREATE_DATE_FROM_DAYS_TO_BACK > 0) {
    $date1_create_stm = MkDateTime(ConvertDateTime($CREATE_DATE_FROM, "D.M.Y"), "d.m.Y");
    $date2_create_stm = MkDateTime(ConvertDateTime($CREATE_DATE_TO, "D.M.Y") . " 23:59", "d.m.Y H:i");
    if ($CREATE_DATE_FROM_DAYS_TO_BACK > 0) {
        $date1_create_stm = time() - 86400 * $CREATE_DATE_FROM_DAYS_TO_BACK;
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:forum_topics_search.php

示例4: CAdminList

			}
			else
			{
				$arInitFilter[$id] = "find_" . $id;
				$arFilterFields["find_" . $id] = $id;
			}
		}
	}
}

$lAdmin = new CAdminList(
	$sTableID,
	new CAdminSorting($sTableID, $sPrimaryKey, "asc")
);
// FILTER
$lAdmin->InitFilter($arInitFilter);

$arFilter = array();
foreach($sDataClassName::getEntity()->getFields() as $field)
{
	if($field instanceof Bitrix\Main\Entity\ScalarField)
	{
		$id = $field->getColumnName();
		$fieldName = "find_" . $id;

		if($field instanceof Bitrix\Main\Entity\DatetimeField)
		{
			if(!empty(${$fieldName . "_from"}))
				$arFilter[">=" . $id] = ${$fieldName . "_from"};
			if(!empty(${$fieldName . "_to"}))
				$arFilter["<=" . $id] = ${$fieldName . "_to"};
开发者ID:alexshipil,项目名称:bitrix.simple.module,代码行数:31,代码来源:settings_list.php

示例5: renderTree

     $res = preg_replace('!<script[^>]*>.*</script>!isU', '', $res);
     return $res;
 }
 if (!empty($arResult['OPEN_SECTION_MODE'])) {
     echo renderTree($arResult['SECTIONS'], $arResult['LEVEL'], $arResult['TABLE_ID']);
 } else {
     $arProps = $arResult['PROPS'];
     $arSKUProps = $arResult['SKU_PROPS'];
     $arFilter = $arResult['FILTER'];
     $arHeaders = $arResult['HEADERS'];
     $arPrices = $arResult['PRICES'];
     $tableId = CUtil::JSEscape($arResult['TABLE_ID']);
     // START TEMPLATE
     $APPLICATION->SetAdditionalCSS('/bitrix/panel/main/admin.css');
     $lAdmin = new CAdminList($arResult['TABLE_ID'], new CAdminSorting($arResult['TABLE_ID'], "ID", "ASC"));
     $lAdmin->InitFilter($arResult['FILTER_FIELDS']);
     // fix
     $_REQUEST['admin_history'] = 1;
     $lAdmin->NavText($arResult['DB_RESULT_LIST']->GetNavPrint(GetMessage("SPS_NAV_LABEL")));
     $lAdmin->AddHeaders($arHeaders);
     $arSelectedFields = $lAdmin->GetVisibleHeaderColumns();
     $arSelectedProps = array();
     $allProps = array_merge($arProps, $arSKUProps);
     foreach ($allProps as $prop) {
         if ($key = array_search("PROPERTY_" . $prop['ID'], $arSelectedFields)) {
             $arSelectedProps[] = $prop;
             unset($arSelectedFields[$key]);
         }
     }
     $allProps = null;
     $arSelectedFields = null;
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:template.php

示例6: CAdminSorting

//*****************************************************************************************************************
//	Topic manage
//************************************!****************************************************************************
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/forum/include.php";
$forumModulePermissions = $APPLICATION->GetGroupRight("forum");
if ($forumModulePermissions == "D") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/forum/prolog.php";
//************************************!Filter *********************************************************************
$sTableID = "tbl_subscribe_edit";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter(array("FilterType_S", "Filter_S", "FORUM_ID_S", "DATE_FROM_S", "DATE_TO_S", "SUBSCR_TYPE_S"));
//************************************!Check filter ***************************************************************
$USER_ID = intVal($USER_ID);
$arFilter = array("USER_ID" => $USER_ID);
$arMsg = array();
$err = false;
if ($USER_ID <= 0) {
    $arMsg[] = array("id" => "USER_ID", "text" => GetMessage("FM_WRONG_USER_ID"));
}
$date1_stm = "";
$date2_stm = "";
$DATE_FROM_S = trim($DATE_FROM_S);
$DATE_TO_S = trim($DATE_TO_S);
$DATE_FROM_S_DAYS_TO_BACK = intval($DATE_FROM_S_DAYS_TO_BACK);
if (strlen($DATE_FROM_S) > 0 || strlen($DATE_TO_S) > 0 || $DATE_FROM_S_DAYS_TO_BACK > 0) {
    $date1_stm = MkDateTime(ConvertDateTime($DATE_FROM_S, "D.M.Y"), "d.m.Y");
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:forum_subscribe_edit.php

示例7: array

        }
        break;
}
$aTabs = array();
if (!empty($aCatalog['CATALOG'])) {
    foreach ($aCatalog['CATALOG'] as $sKey => $aSection) {
        $aTabs[] = array('DIV' => $sKey, 'TAB' => $aSection['NAME'], 'ICON' => 'main_channel_edit', 'TITLE' => $aSection['NAME']);
    }
}
$tabControl = new CAdminTabControl("tabControl", $aTabs, false);
$aTables = array();
foreach ($aTabs as $aTab) {
    $sTableID = "tbl_bitrixGems_" . $aTab['DIV'];
    $oSort = new CAdminSorting($sTableID, "LIKES", "asc");
    $lAdmin = new CAdminList($sTableID, $oSort);
    $lAdmin->InitFilter(array('filter_by_gem'));
    $headers = array(array("id" => "PICTURE", "content" => GetMessage('TH_PICTURE'), "default" => true), array("id" => "NAME", "content" => GetMessage('TH_NAME'), "sort" => "s_NAME", "default" => true), array("id" => "TYPE", "content" => GetMessage('TH_TYPE'), "sort" => "s_TYPE", "default" => true), array("id" => "DESCRIPTION", "content" => GetMessage('TH_DESCRIPTION'), "sort" => "s_DESCRIPTION", "default" => true), array("id" => "REQUIREMENTS", "content" => GetMessage('TH_REQUIREMENTS'), "sort" => "s_REQUIREMENTS", "default" => true), array("id" => "AUTHOR", "content" => GetMessage('TH_AUTHOR'), "sort" => "s_AUTHOR", "default" => true), array("id" => "LIKES", "content" => GetMessage('TH_LIKES'), "sort" => "s_LIKES", "default" => true), array("id" => "DOWNLOADS", "content" => GetMessage('TH_DOWNLOADS'), "sort" => "s_DOWNLOADS", "default" => true));
    $lAdmin->AddHeaders($headers);
    $rsData = new CDBResult();
    /**
     * ������. �� ������� ������� ���� �����. ���� ����� �������� ������ ��������. �� �� ��� �������.
     */
    $aFilteredCat = array();
    if ($filter_by_gem) {
        foreach ($aCatalog['CATALOG'][$aTab['DIV']]['ITEMS'] as $aGem) {
            if (stripos($aGem['GEM'], $filter_by_gem) !== false) {
                $aFilteredCat[$aGem['GEM']] = $aGem;
            }
        }
    } else {
        $aFilteredCat = $aCatalog['CATALOG'][$aTab['DIV']]['ITEMS'];
开发者ID:ASDAFF,项目名称:BitrixGems,代码行数:31,代码来源:bitrixgems_manager.php

示例8: array

$arr = array();
$arr["reference_id"][] = "";
$arr["reference"][] = "";
$arrForum = array();
$arrSelect = "";
while ($dbForum = $db_Forum->Fetch()) {
    $arrForum[$dbForum["ID"]] = $dbForum["NAME"];
    $arrSelect .= "<option value='" . $dbForum["ID"] . "'>" . htmlspecialcharsex($dbForum["NAME"]) . "</option>";
    $arr["reference_id"][] = $dbForum["ID"];
    $arr["reference"][] = $dbForum["NAME"];
}
/*******************************************************************/
$sTableID = "tbl_topic";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter(array("FORUM_ID", "TITLE", "DESCRIPTION", "USER_START_ID", "ACTIVE", "PINNED", "OPENED", "DATE_FROM", "DATE_TO", "CREATE_DATE_FROM", "CREATE_DATE_TO"));
/*******************************************************************/
$arMsg = array();
$err = false;
$date1_create_stm = 0;
$date2_create_stm = 0;
$date1_stm = "";
$date2_stm = "";
$CREATE_DATE_FROM = trim($CREATE_DATE_FROM);
$CREATE_DATE_TO = trim($CREATE_DATE_TO);
$CREATE_DATE_FROM_DAYS_TO_BACK = intval($CREATE_DATE_FROM_DAYS_TO_BACK);
if (!empty($CREATE_DATE_FROM) || !empty($CREATE_DATE_TO) || $CREATE_DATE_FROM_DAYS_TO_BACK > 0) {
    $date1_create_stm = MkDateTime(ConvertDateTime($CREATE_DATE_FROM, "D.M.Y"), "d.m.Y");
    $date2_create_stm = MkDateTime(ConvertDateTime($CREATE_DATE_TO, "D.M.Y"), "d.m.Y");
    if (!empty($CREATE_DATE_FROM)) {
        if (!empty($CREATE_DATE_TO)) {
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:forum_topics.php

示例9: CAdminSorting

IncludeModuleLangFile(__FILE__);
$tableId = "tbl_model_admin";
$adminSorting = new CAdminSorting($tableId, "TIMESTAMP_X", "desc");
$context = \Bitrix\Main\Application::getInstance()->getContext();
/** @var \Bitrix\Main\HttpRequest $request */
$request = $context->getRequest();
$orderBy = array();
if ($request->get("by") !== null) {
    $orderBy[$request->get("by")] = $request->get("order");
}
if ($request->get("by") === null || $request->get("by") !== "ID") {
    $orderBy["ID"] = "ASC";
}
$adminList = new CAdminList($tableId, $adminSorting);
$filterFields = array("ID" => "find_id", "?NAME" => "find_name", "LID" => "find_lang", "ACTIVE" => "find_active", "?CODE" => "find_code");
$filterValues = $adminList->InitFilter(array_values($filterFields));
$filter = array();
foreach ($filterFields as $fld => $var) {
    if (isset($filterValues[$var])) {
        $filter[$fld] = $filterValues[$var];
    }
}
if ($adminList->EditAction()) {
    foreach ($FIELDS as $ID => $arFields) {
        $DB->StartTransaction();
        $ID = IntVal($ID);
        if (!$adminList->IsUpdated($ID)) {
            continue;
        }
        if (!CIBlockRights::UserHasRightTo($ID, $ID, "iblock_edit")) {
            continue;
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:model_admin.php

示例10: CAdminSorting

/********************************************************************
	Profanity dictionary.
********************************************************************/
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/forum/include.php";
$forumModulePermissions = $APPLICATION->GetGroupRight("forum");
if ($forumModulePermissions == "D") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/forum/prolog.php";
$sTableID = "tbl_filter_dictionary_letter";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter(array("DICTIONARY_ID", "find_type", "find"));
/*******************************************************************/
$arFilter = array();
$find = trim($find);
if (strLen($find) > 0) {
    $arFilter["%" . htmlspecialcharsEx($find_type)] = "%" . $find . "%";
}
$DICTIONARY_ID = intVal($_REQUEST["DICTIONARY_ID"]);
if ($DICTIONARY_ID <= 0) {
    $lAdmin->AddFilterError(GetMessage("FLT_NOT_DICT"));
}
$arFilter["DICTIONARY_ID"] = $DICTIONARY_ID;
/*******************************************************************/
if ($lAdmin->EditAction()) {
    foreach ($FIELDS as $ID => $arFields) {
        $arFields = array_merge($arFields, array("DICTIONARY_ID" => $DICTIONARY_ID));
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:30,代码来源:forum_letter.php

示例11: array

IncludeModuleLangFile(__FILE__);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/forum/prolog.php";
/*******************************************************************/
$arForum = array("" => GetMessage('FM_SPACE'));
$db_res = CForumNew::GetListEx(array("SORT" => "ASC", "NAME" => "ASC"));
if ($db_res && ($res = $db_res->Fetch())) {
    do {
        $arForum[$res["ID"]] = $res["NAME"];
    } while ($res = $db_res->Fetch());
}
asort($arForum);
/*******************************************************************/
$sTableID = "tbl_subscribe";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter(array("FilterType", "Filter", "FORUM_ID", "DATE_FROM", "DATE_TO", "SUBSCR_TYPE"));
global $order, $by, $SUBSCR_TYPE;
/*******************************************************************/
$arFilter = array("SUBSC" => true);
$arMsg = array();
$err = false;
$date1_stm = "";
$date2_stm = "";
$DATE_FROM = trim($DATE_FROM);
$DATE_TO = trim($DATE_TO);
$DATE_FROM_DAYS_TO_BACK = intval($DATE_FROM_DAYS_TO_BACK);
if (strlen($DATE_FROM) > 0 || strlen($DATE_TO) > 0 || $DATE_FROM_DAYS_TO_BACK > 0) {
    $date1_stm = MkDateTime(ConvertDateTime($DATE_FROM, "D.M.Y"), "d.m.Y");
    $date2_stm = MkDateTime(ConvertDateTime($DATE_TO, "D.M.Y") . " 23:59", "d.m.Y H:i");
    if ($DATE_FROM_DAYS_TO_BACK > 0) {
        $date1_stm = time() - 86400 * $DATE_FROM_DAYS_TO_BACK;
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:forum_subscribe.php

示例12: CAdminSorting

/********************************************************************
	Profanity dictionary.
********************************************************************/
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/forum/include.php";
$forumModulePermissions = $APPLICATION->GetGroupRight("forum");
if ($forumModulePermissions == "D") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/forum/prolog.php";
$sTableID = "tbl_filter_dictionary";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter(array("TITLE"));
/*******************************************************************/
$arFilter = array();
$ID = intVal($ID);
$TITLE = trim($TITLE);
$TYPE = strtoupper(trim($_REQUEST["TYPE"]));
$arFilter = array("TYPE" => $TYPE);
if (strLen($TITLE) > 0) {
    $arFilter = array_merge($arFilter, array("%TITLE" => "%" . $TITLE . "%"));
}
/*******************************************************************/
if ($lAdmin->EditAction() && $forumModulePermissions >= "W") {
    foreach ($FIELDS as $ID => $arFields) {
        $DB->StartTransaction();
        $ID = IntVal($ID);
        if (!$lAdmin->IsUpdated($ID)) {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:30,代码来源:forum_dictionary.php

示例13: CAdminSorting

/********************************************************************
	Profanity dictionary.
********************************************************************/
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/forum/include.php";
$forumModulePermissions = $APPLICATION->GetGroupRight("forum");
if ($forumModulePermissions == "D") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/forum/prolog.php";
$sTableID = "tbl_filter";
$oSort = new CAdminSorting($sTableID, "ID", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter(array("ID", "find_pattern", "find_type", "USE_IT", "PATTERN_CREATE"));
/*******************************************************************/
$arFilter = array();
$DICTIONARY_ID = intVal($_REQUEST["DICTIONARY_ID"]);
if ($DICTIONARY_ID <= 0) {
    $DICTIONARY_ID = 0;
    $lAdmin->AddFilterError(GetMessage("FLT_NOT_DICTIONARY"));
}
$arFilter = array("DICTIONARY_ID" => $DICTIONARY_ID);
$find_pattern = trim($find_pattern);
if (strLen($find_pattern) > 0) {
    $arFilter = array_merge($arFilter, array("%" . htmlspecialcharsEx(strToUpper($find_type)) => "%" . $find_pattern . "%"));
}
if ($USE_IT && $USE_IT != "all") {
    $arFilter = array_merge($arFilter, array("USE_IT" => trim($USE_IT) == "Y" ? "Y" : "N"));
}
开发者ID:Satariall,项目名称:izurit,代码行数:30,代码来源:forum_words.php

示例14: __construct

 /**
  * Производится инициализация переменных, обработка запросов на редактирование
  *
  * @param array $fields
  * @param bool $isPopup
  * @throws \Bitrix\Main\ArgumentException
  */
 public function __construct(array $fields, $isPopup = false)
 {
     $this->isPopup = $isPopup;
     if ($this->isPopup) {
         $this->fieldPopupResultName = preg_replace("/[^a-zA-Z0-9_:\\[\\]]/", "", $_REQUEST['n']);
         $this->fieldPopupResultIndex = preg_replace("/[^a-zA-Z0-9_:]/", "", $_REQUEST['k']);
         $this->fieldPopupResultElTitle = $_REQUEST['eltitle'];
     }
     parent::__construct($fields);
     $this->restoreLastGetQuery();
     $this->prepareAdminVariables();
     $className = static::getModel();
     $oSort = new \CAdminSorting($this->getListTableID(), static::pk(), "desc");
     $this->list = new \CAdminList($this->getListTableID(), $oSort);
     $this->list->InitFilter($this->arFilterFields);
     if ($this->list->EditAction() and $this->hasWriteRights()) {
         global $FIELDS;
         foreach ($FIELDS as $id => $fields) {
             if (!$this->list->IsUpdated($id)) {
                 continue;
             }
             $this->editAction($id, $fields);
         }
     }
     if ($IDs = $this->list->GroupAction() and $this->hasWriteRights()) {
         if ($_REQUEST['action_target'] == 'selected') {
             $this->setContext(AdminListHelper::OP_GROUP_ACTION);
             $IDs = array();
             //Текущий фильтр должен быть модифицирован виждтами
             //для соответствия результатов фильтрации тому, что видит пользователь в интерфейсе.
             $raw = array('SELECT' => $this->pk(), 'FILTER' => $this->arFilter, 'SORT' => array());
             foreach ($this->fields as $code => $settings) {
                 $widget = $this->createWidgetForField($code);
                 $widget->changeGetListOptions($this->arFilter, $raw['SELECT'], $raw['SORT'], $raw);
             }
             $res = $className::getList(array('filter' => $this->arFilter, 'select' => array($this->pk())));
             while ($el = $res->Fetch()) {
                 $IDs[] = $el[$this->pk()];
             }
         }
         $filteredIDs = array();
         foreach ($IDs as $id) {
             if (strlen($id) <= 0) {
                 continue;
             }
             $filteredIDs[] = IntVal($id);
         }
         $this->groupActions($IDs, $_REQUEST['action']);
     }
     if (isset($_REQUEST['action']) || isset($_REQUEST['action_button']) && count($this->getErrors()) == 0) {
         $listHelperClass = $this->getHelperClass(AdminListHelper::className());
         $className = $listHelperClass::getModel();
         $id = isset($_GET['ID']) ? $_GET['ID'] : null;
         $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : $_REQUEST['action_button'];
         if ($action != 'edit' && $_REQUEST['cancel'] != 'Y') {
             $params = $_GET;
             unset($params['action']);
             unset($params['action_button']);
             $this->customActions($action, $id);
             $sectionEditHelperClass = $this->getHelperClass(AdminSectionEditHelper::className());
             if ($sectionEditHelperClass) {
                 $element = $className::getById($id)->Fetch();
                 $sectionField = $listHelperClass::getSectionField();
                 if ($element[$sectionField]) {
                     $params['ID'] = $element[$sectionField];
                 }
             }
             LocalRedirect($listHelperClass::getUrl($params));
         }
     }
     if ($this->isPopup()) {
         $this->genPopupActionJS();
     }
     // Получаем параметры навигации
     $navUniqSettings = array('sNavID' => $this->getListTableID());
     $this->navParams = array('nPageSize' => \CAdminResult::GetNavSize($navUniqSettings), 'navParams' => \CAdminResult::GetNavParams($navUniqSettings));
 }
开发者ID:vadim-ontech,项目名称:digitalwand.admin_helper,代码行数:84,代码来源:AdminListHelper.php

示例15:

	"find_source_id",
	"find_modified_by",
	"find_modified_by_exact_match",
	"find_message",
	"find_is_spam",
	"find_is_spam_maybe",
	"find_hold_on",
	"find_supportteam_group_id",
	"find_supportteam_group_id",
	"find_client_group_id",
	'find_coupon',
	'find_coupon_exact_match',
);

$USER_FIELD_MANAGER->AdminListAddFilterFields( $entity_id, $arFilterFields );
$lAdmin->InitFilter($arFilterFields);//инициализация фильтра




InitBVar($find_id_exact_match);
InitBVar($find_title_exact_match);
InitBVar($find_support_comments_exact_match);
InitBVar($find_owner_exact_match);
InitBVar($find_created_by_exact_match);
InitBVar($find_responsible_exact_match);
InitBVar($find_modified_by_exact_match);
InitBVar($find_message_exact_match);

if (CheckFilter())
{
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:31,代码来源:ticket_list.php


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