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


PHP CAdminFilter::SetDefaultRows方法代码示例

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


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

示例1: CAdminFilter

        ?>
" id="<?php 
        echo $tableId;
        ?>
_iblock">
				<input type="hidden" name="subscribe" value="<?php 
        echo $arResult['SUBSCRIPTION'] ? 'Y' : 'N';
        ?>
">
				<input type="hidden" name="allow_select_parent" value="<?php 
        echo $arResult['ALLOW_SELECT_PARENT'];
        ?>
">
				<?php 
        $oFilter = new CAdminFilter($arResult['TABLE_ID'] . '_iblock_' . (int) $arResult['IBLOCK_ID'] . "_filter", $arResult['FILTER_LABELS']);
        $oFilter->SetDefaultRows("find_code");
        $oFilter->Begin();
        ?>
				<tr>
					<td nowrap><?php 
        echo GetMessage("SPS_CODE");
        ?>
:</td>
					<td nowrap>
						<input type="text" name="filter_code" size="50" value="<?php 
        echo htmlspecialcharsex($_REQUEST["filter_code"]);
        ?>
">
					</td>
				</tr>
				<tr>
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:template.php

示例2: GetMessage

/****************************************************************************/
$APPLICATION->SetTitle(GetMessage("BPATL_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<form name="find_form" method="GET" action="<?php 
echo $APPLICATION->GetCurPage();
?>
?">

<?php 
$ar = array(GetMessage("BPATL_F_MODIFIED"), GetMessage("BPATL_F_NAME"), GetMessage("BPATL_DESCR"), GetMessage("BPATL_FILTER_STATUS"), GetMessage("BPATL_WORKFLOW_NAME"));
if ($allowAdminAccess) {
    $ar[] = GetMessage("BPATL_USER_ID");
}
$oFilter = new CAdminFilter($sTableID . "_filter", $ar);
$oFilter->SetDefaultRows(array("filter_modified_1", 'filter_name'));
$oFilter->AddPreset(array("ID" => "filter_running", "NAME" => GetMessage("BPATL_FILTER_STATUS_RUNNING"), "FIELDS" => array("filter_status" => 0)));
$oFilter->AddPreset(array("ID" => "filter_complete", "NAME" => GetMessage("BPATL_FILTER_STATUS_COMPLETE"), "FIELDS" => array("filter_status" => 1)));
$oFilter->AddPreset(array("ID" => "filter_all", "NAME" => GetMessage("BPATL_FILTER_STATUS_ALL"), "FIELDS" => array("filter_status" => 2)));
$oFilter->Begin();
?>
	<tr>
		<td><?php 
echo GetMessage("BPATL_F_MODIFIED");
?>
:</td>
		<td><?php 
echo CalendarPeriod("filter_modified_1", htmlspecialcharsbx($filter_modified_1), "filter_modified_2", htmlspecialcharsbx($filter_modified_2), "find_form", "Y");
?>
</td>
	</tr>
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:task_list.php

示例3: array

    $arActions[] = array("SEPARATOR" => true);
    if (is_set($arActions[count($arActions) - 1], "SEPARATOR")) {
        unset($arActions[count($arActions) - 1]);
    }
    $row->AddActions($arActions);
}
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
$lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
$aContext = array(array("TEXT" => GetMessage("SENDER_CONTACT_LIST_BUTTON_ADD"), "TITLE" => GetMessage("POST_ADD_TITLE"), "ICON" => "btn_new", "MENU" => array(array("TEXT" => GetMessage("SENDER_CONTACT_LIST_BUTTON_ADD_FORM"), "ACTION" => $lAdmin->ActionRedirect("sender_contact_edit.php?lang=" . LANGUAGE_ID)), array("TEXT" => GetMessage("SENDER_CONTACT_LIST_BUTTON_ADD_LIST"), "ACTION" => $lAdmin->ActionRedirect("sender_contact_import.php?lang=" . LANGUAGE_ID)), array("TEXT" => GetMessage("SENDER_CONTACT_LIST_BUTTON_ADD_FILE"), "ACTION" => $lAdmin->ActionRedirect("sender_contact_import.php?lang=" . LANGUAGE_ID)), $POST_RIGHT >= "W" ? array("TEXT" => GetMessage("SENDER_CONTACT_LIST_BUTTON_ADD_PULL1"), "ACTION" => $lAdmin->ActionRedirect("sender_contact_admin.php?action=pull&lang=" . LANGUAGE_ID)) : null)));
$aContext[] = array("TEXT" => GetMessage("SENDER_CONTACT_LIST_EDIT"), "LINK" => "/bitrix/admin/sender_list_admin.php?lang=" . LANG, "TITLE" => GetMessage("SENDER_CONTACT_LIST_EDIT_TITLE"), "ICON" => "");
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("rub_title"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$oFilter = new CAdminFilter($sTableID . "_filter", array(GetMessage("rub_f_name"), GetMessage("rub_f_email"), GetMessage("rub_f_subscribed"), GetMessage("rub_f_unsubscribed"), GetMessage("rub_f_list")));
$oFilter->SetDefaultRows(array("find_email", "find_list"));
$oFilter->AddPreset(array("ID" => "subscribed_list", "NAME" => GetMessage('SENDER_CONTACT_LIST_PRESET_SUB'), "FIELDS" => array("find_email" => "", "find_subscribed" => "ALL")));
$oFilter->AddPreset(array("ID" => "unsubscribed_list", "NAME" => GetMessage('SENDER_CONTACT_LIST_PRESET_UN_SUB'), "FIELDS" => array("find_email" => "", "find_unsubscribed" => "ALL")));
$filterMailingSubList = array('reference' => array(GetMessage('rub_f_yes')), 'reference_id' => array('ALL'));
$filterMailingUnSubList = array('reference' => array(GetMessage('rub_f_yes')), 'reference_id' => array('ALL'));
$mailingDb = \Bitrix\Sender\MailingTable::getList(array('select' => array('IS_TRIGGER', 'REFERENCE' => 'NAME', 'REFERENCE_ID' => 'ID')));
while ($arMailing = $mailingDb->fetch()) {
    if ($arMailing['IS_TRIGGER'] != 'Y') {
        $filterMailingSubList['reference'][] = $arMailing['REFERENCE'];
        $filterMailingSubList['reference_id'][] = $arMailing['REFERENCE_ID'];
    }
    $filterMailingUnSubList['reference'][] = $arMailing['REFERENCE'];
    $filterMailingUnSubList['reference_id'][] = $arMailing['REFERENCE_ID'];
}
?>
<form name="find_form" method="get" action="<?php 
开发者ID:Hawkart,项目名称:megatv,代码行数:31,代码来源:contact_admin.php

示例4: GetMessage

		"filter_user" => GetMessage("SOA_ROW_BUYER"),
		"filter_date_history" => GetMessage("SALE_F_DATE"),
		"filter_status_id" => GetMessage("SALE_F_DATE_UPDATE"),
		"filter_payed" => GetMessage("SALE_F_ID"),
		"filter_allow_delivery" => GetMessage("SALE_F_LANG_CUR"),
		"filter_canceled" => GetMessage("SOA_F_PRICE"),
		"filter_deducted" => GetMessage("SOA_F_PRICE"),
		"filter_marked" => GetMessage("SOA_F_PRICE")
	);

	$oFilter = new CAdminFilter(
		$sTableID_tab5."_filters",
		$arFilterFieldsTmp
	);

	$oFilter->SetDefaultRows(array("filter_user"));

	$oFilter->Begin();
	?>
	<tr>
		<td><?php 
echo GetMessage('SOD_HIST_H_USER');
?>
:</td>
		<td>
			<?echo FindUserID("filter_user", $filter_user, "", "find_form5");?>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage('SOD_HIST_H_DATE');
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:order_detail.php

示例5: GetMessage

$arFindFields["find_name"] = GetMessage("SPS_NAME");
$arFindFields["find_descr"] = GetMessage("SPS_DESCR");
if (!empty($arProps)) {
    foreach ($arProps as $arProp) {
        $arFindFields["find_prop_" . $arProp["ID"]] = $arProp["NAME"];
    }
}
if (!empty($arSKUProps)) {
    foreach ($arSKUProps as $arProp) {
        if ($arProp["FILTRABLE"] == "Y" && $arProp["PROPERTY_TYPE"] != "F") {
            $arFindFields["IBLIST_A_SUB_PROP_" . $arProp["ID"]] = $arProp["NAME"];
        }
    }
}
$oFilter = new CAdminFilter($sTableID . "_filter", $arFindFields);
$oFilter->SetDefaultRows("find_iblock_id", "find_name");
$oFilter->Begin();
?>
<tr>
	<td><?php 
echo GetMessage("SPS_CATALOG");
?>
:</td>
	<td>
		<select name="IBLOCK_ID" onchange="BX('LID').value = BX('LID_'+this.value).value">
		<?php 
$strShowOffersIBlock = COption::GetOptionString('catalog', 'product_form_show_offers_iblock');
$catalogID = $arLid = array();
$arCatalogFilter = array();
if ($boolSubscribe) {
    $arCatalogFilter['SUBSCRIPTION'] = 'Y';
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:31,代码来源:cat_store_product_search.php

示例6: GetMessage

$arFooterArray = array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()));
$lAdmin->AddFooter($arFooterArray);
$aContext = array();
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/prolog.php";
$APPLICATION->SetTitle(GetMessage("SB_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<form name="find_form" method="GET" action="<?php 
echo $APPLICATION->GetCurPage();
?>
?">
<?php 
$oFilter = new CAdminFilter($sTableID . "_filter", array("find_universal" => GetMessage("SB_UNIVERSAL"), "find_user" => GetMessage("SB_FUSER_ID"), "find_user_login" => GetMessage("SB_USER_LOGIN"), "find_price" => GetMessage("SB_PRICE_ALL"), "find_quantity" => GetMessage("SB_QUANTITY_ALL"), "find_cnt" => GetMessage("SB_CNT"), "find_bt" => GetMessage("SB_BASKET_TYPE"), "find_di" => GetMessage("SB_DATE_INSERT"), "find_du" => GetMessage("SB_DATE_UPDATE"), "find_pi" => GetMessage("SB_PRODUCT_ID"), "find_cur" => GetMessage("SB_CURRENCY"), "find_ug" => GetMessage("SB_USER_GROUP_ID"), "find_lid" => GetMessage("SB_LID")));
$oFilter->SetDefaultRows(array("find_universal", "find_price", "find_ug", "find_quantity"));
$oFilter->AddPreset(array("ID" => "find_1", "NAME" => GetMessage("SB_FILTER_WEEK"), "FIELDS" => array("filter_date_update_from_FILTER_PERIOD" => "week", "filter_date_update_from_FILTER_DIRECTION" => "previous", "filter_date_update_from" => ConvertTimeStamp(AddToTimeStamp(array("DD" => -7)))), "SORT_FIELD" => array("PRICE_ALL" => "DESC")));
$oFilter->AddPreset(array("ID" => "find_2", "NAME" => GetMessage("SB_FILTER_ALL"), "FIELDS" => array("find_user" => ""), "SORT_FIELD" => array("PRICE_ALL" => "DESC")));
$oFilter->AddPreset(array("ID" => "find_3", "NAME" => GetMessage("SB_FILTER_PRD"), "FIELDS" => array("find_user" => ""), "SORT_FIELD" => array("PR_COUNT" => "DESC")));
$oFilter->Begin();
?>
	<tr>
		<td><?php 
echo GetMessage("SB_UNIVERSAL");
?>
:</td>
		<td>
			<input type="text" name="filter_universal" value="<?php 
echo htmlspecialcharsbx($filter_universal);
?>
" size="40">
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:basket_admin.php

示例7: GetMessage

	if ($value["IS_FILTERED"] == "Y" && $value["TYPE"] != "MULTISELECT")
		$arFilterFieldsTmp[] = $value["NAME"];

foreach ($arOrderPropsCode as $key => $value)
	if ($value["IS_FILTERED"] == "Y" && $value["TYPE"] != "MULTISELECT")
		$arFilterFieldsTmp[] = $value["NAME"];

//"filter_delivery_request_sent" => GetMessage("SALE_F_DELIVERY_DATE_REQUEST")
$arFilterFieldsTmp[] = GetMessage("SALE_F_DELIVERY_REQUEST_SENT");

$oFilter = new CAdminFilter(
	$sTableID."_filter",
	$arFilterFieldsTmp
);

$oFilter->SetDefaultRows(array("filter_universal", "filter_status", "filter_canceled"));

$oFilter->AddPreset(array(
		"ID" => "find_prioritet",
		"NAME" => GetMessage("SOA_PRESET_PRIORITET"),
		"FIELDS" => array(
			"filter_status" => "N",
			"filter_price_from" => "10000",
			"filter_price_to" => ""
			),
		//"SORT_FIELD" => array("DATE_INSERT" => "DESC"),
	));

$oFilter->AddPreset(array(
		"ID" => "find_allow_delivery",
		"NAME" => GetMessage("SOA_PRESET_ALLOW_DWLIVERY"),
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:order.php


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