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


PHP CAdminFilter::Begin方法代码示例

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


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

示例1: GetMessage

$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
if ($CURRENCY_RIGHT == "W") {
    $lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
}
$aContext = array(array("ICON" => "btn_new", "TEXT" => GetMessage("CURRENCY_NEW_TITLE"), "LINK" => "/bitrix/admin/currency_rate_edit.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_"), "TITLE" => GetMessage("CURRENCY_NEW_TITLE")));
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$APPLICATION->SetTitle(GetMessage("CURRENCY_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<form method="get" action="<?php 
echo $APPLICATION->GetCurPage();
?>
" name="find_form">
<?php 
$filter->Begin();
?>
	<tr>
		<td><?php 
echo GetMessage("curr_rates_date1");
?>
:</td>
		<td>
			<?php 
echo CalendarPeriod("filter_period_from", $filter_period_from, "filter_period_to", $filter_period_to, "find_form", "Y");
?>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("curr_rates_curr1");
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:currencies_rates.php

示例2: GetMessage

$lAdmin->AddAdminContextMenu($aContext);

$lAdmin->CheckListMode();

$APPLICATION->SetTitle(GetMessage("SUP_TICKETS_TITLE"));


require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
?>


<form name="form1" method="get" action="<?php 
echo $APPLICATION->GetCurPage();
?>
?">
<?$filter->Begin();?>
<tr>
	<td><b><?php 
echo GetMessage("MAIN_FIND");
?>
:</b></td>
	<td>
		<input type="text" size="25" name="find" value="<?echo htmlspecialcharsbx($find)?>" title="<?php 
echo GetMessage("MAIN_FIND_TITLE");
?>
">

		<?
		$arr = array(
			"reference" => array(
				GetMessage("SUP_F_ID"),
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:31,代码来源:ticket_list.php

示例3: GetMessage

<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>
	<tr>
		<td><?php 
echo GetMessage("BPATL_F_NAME");
?>
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:task_list.php

示例4: GetMessage

$adminList->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rateIterator->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
if ($CURRENCY_RIGHT == "W") {
    $adminList->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE")));
}
$aContext = array(array("ICON" => "btn_new", "TEXT" => GetMessage("CURRENCY_NEW_TITLE"), "LINK" => "/bitrix/admin/currency_rate_edit.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_"), "TITLE" => GetMessage("CURRENCY_NEW_TITLE")));
$adminList->AddAdminContextMenu($aContext);
$adminList->CheckListMode();
$APPLICATION->SetTitle(GetMessage("CURRENCY_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<form method="get" action="<?php 
echo $APPLICATION->GetCurPage();
?>
" name="find_form">
<?php 
$adminFilter->Begin();
?>
	<tr>
		<td><?php 
echo GetMessage("curr_rates_date1");
?>
:</td>
		<td>
			<?php 
echo CalendarPeriod("filter_period_from", $filter_period_from, "filter_period_to", $filter_period_to, "find_form", "Y");
?>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("curr_rates_curr1");
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:31,代码来源:currencies_rates.php

示例5: CAdminMessage

    $message = new CAdminMessage(Loc::getMessage('BIZVAL_PAGE_ERRORS'));
    echo $message->Show();
}
// FILTER
$filterControl = new CAdminFilter('bizvalFilterControl', array(Loc::getMessage('BIZVAL_PAGE_PARENT'), Loc::getMessage('BIZVAL_PAGE_CODE'), Loc::getMessage('BIZVAL_PAGE_ENTITY')));
$entityInput = $personEntityInput;
$entityInput['OPTIONS'] = array('' => Loc::getMessage('BIZVAL_PAGE_FILTER_ALL')) + $entityInput['OPTIONS'];
$entityInput['ONCHANGE'] = 'bizvalChangeEntityInput(this)';
$itemInputs['PROPERTY']['OPTIONS'] = $propertyOptionsByName;
?>
<form name="bizvalFilter" method="GET" action="<?php 
echo $APPLICATION->GetCurPage();
?>
?">
	<?php 
$filterControl->Begin();
?>
	<tr>
		<td><?php 
echo Loc::getMessage('BIZVAL_PAGE_PARENT');
?>
:</td>
		<td><?php 
echo Input\Manager::getEditHtml('FILTER_PARENT_ID', $parentInput, $filterParentId);
?>
</td>
	</tr>
	<tr>
		<td><?php 
echo Loc::getMessage('BIZVAL_PAGE_CODE');
?>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:business_value.php

示例6: array

				<form name="find_form5" method="GET" action="<?php 
    echo $APPLICATION->GetCurPage();
    ?>
?">
					<input type="hidden" name="USER_ID" value="<?php 
    echo $ID;
    ?>
">

					<?php 
    $arFilterFieldsTmp = array();
    if (count($arSites) > 1) {
        $arFilterFieldsTmp[] = GetMessage('BUYER_VIEW_F_LID');
    }
    $oFilter5 = new CAdminFilter($sTableID_tab5 . "_filter", $arFilterFieldsTmp);
    $oFilter5->Begin();
    $selectLID = "<select name=\"filter_viewed_lid\">";
    $selectLID .= "<option value=\"\">(" . GetMessage('BUYER_VIEW_F_ALL') . ")</option>";
    foreach ($arSites as $arSite) {
        $selected = "";
        if ($arSite["ID"] == $filter_viewed_lid) {
            $selected = "selected";
        }
        $selectLID .= "<option value=\"" . $arSite["ID"] . "\" " . $selected . " >" . htmlspecialcharsbx("[" . $arSite["ID"] . "]" . $arSite["NAME"]) . "</option>";
    }
    $selectLID .= "</select>";
    ?>
					<tr>
						<td><?php 
    echo GetMessage('BUYER_VIEW_F_DATE');
    ?>
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:31,代码来源:buyers_profile.php

示例7: createFilterForm

 /**
  * Выводит форму фильтрации списка
  */
 public function createFilterForm()
 {
     $this->setContext(AdminListHelper::OP_CREATE_FILTER_FORM);
     print ' <form name="find_form" method="GET" action="' . static::getUrl($this->additionalUrlParams) . '?">';
     $sectionHelper = $this->getHelperClass(AdminSectionEditHelper::className());
     if ($sectionHelper) {
         $sectionsInterfaceSettings = static::getInterfaceSettings($sectionHelper::getViewName());
         foreach ($this->arFilterOpts as $code => &$name) {
             if (!empty($this->tableColumnsMap[$code])) {
                 $name = $sectionsInterfaceSettings['FIELDS'][$this->tableColumnsMap[$code]]['WIDGET']->getSettings('TITLE');
             }
         }
     }
     $oFilter = new \CAdminFilter($this->getListTableID() . '_filter', $this->arFilterOpts);
     $oFilter->Begin();
     foreach ($this->arFilterOpts as $code => $name) {
         $widget = $this->createWidgetForField($code);
         if ($widget->getSettings('TITLE') != $this->arFilterOpts[$code]) {
             $widget->setSetting('TITLE', $this->arFilterOpts[$code]);
         }
         $widget->showFilterHtml();
     }
     $oFilter->Buttons(array("table_id" => $this->getListTableID(), "url" => static::getUrl($this->additionalUrlParams), "form" => "find_form"));
     $oFilter->End();
     print '</form>';
 }
开发者ID:vadim-ontech,项目名称:digitalwand.admin_helper,代码行数:29,代码来源:AdminListHelper.php

示例8: createFilterForm

 /**
  * Выводит форму фильтрации списка
  */
 public function createFilterForm()
 {
     $this->setContext(AdminListHelper::OP_CREATE_FILTER_FORM);
     print ' <form name="find_form" method="GET" action="' . static::getUrl($this->additionalUrlParams) . '?">';
     $oFilter = new \CAdminFilter($this->getListTableID() . '_filter', $this->arFilterOpts);
     $oFilter->Begin();
     foreach ($this->arFilterOpts as $code => $name) {
         $widget = $this->createWidgetForField($code);
         $widget->showFilterHtml();
     }
     $oFilter->Buttons(array("table_id" => $this->getListTableID(), "url" => static::getUrl($this->additionalUrlParams), "form" => "find_form"));
     $oFilter->End();
     print '</form>';
 }
开发者ID:lithium-li,项目名称:digitalwand.admin_helper,代码行数:17,代码来源:AdminListHelper.php


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