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


PHP BxTemplSearchResult::showAdminFilterPanel方法代码示例

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


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

示例1: displayHistoryBlock

 function displayHistoryBlock($iUserId, $iVendorId)
 {
     $sJsObject = $this->_oConfig->getJsObject('orders');
     //--- Get Filter Panel ---//
     $sFilterPanel = BxTemplSearchResult::showAdminFilterPanel('', 'pmt-filter-text-history', 'pmt-filter-enable-history', 'filter', $sJsObject . ".applyFilter('history', this)");
     return $this->parseHtmlByName('history_orders_block.html', array('txt_date' => _t($this->_sLangsPrefix . 'txt_date'), 'txt_seller' => _t($this->_sLangsPrefix . 'txt_seller'), 'txt_order' => _t($this->_sLangsPrefix . 'txt_order'), 'txt_amount' => _t($this->_sLangsPrefix . 'txt_amount'), 'txt_license' => _t($this->_sLangsPrefix . 'txt_license'), 'txt_action' => _t($this->_sLangsPrefix . 'txt_action'), 'orders' => $this->displayOrders('history', array('user_id' => $iUserId, 'seller_id' => $iVendorId, 'start' => 0)), 'filter_panel' => $sFilterPanel, 'loading' => LoadingBox('pmt-orders-history-loading')));
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:7,代码来源:BxPmtTemplate.php

示例2: _getKeysList

function _getKeysList($mixedResult, $bActive = false)
{
    $sFilterName = 'filter';
    $sFilter = '';
    $aItems = array();
    if (isset($_GET[$sFilterName])) {
        $sFilter = process_db_input($_GET[$sFilterName], BX_TAGS_STRIP);
        $aKeys = $GLOBALS['MySQL']->getAll("SELECT `tk`.`ID` AS `id`, `tk`.`Key` AS `key`, `tc`.`Name` AS `category` FROM `sys_localization_keys` AS `tk` \n                 LEFT JOIN `sys_localization_strings` AS `ts` ON `tk`.`ID`=`ts`.`IDKey` LEFT JOIN `sys_localization_categories` AS `tc` ON `tk`.`IDCategory`=`tc`.`ID` \n                 WHERE `tk`.`Key` LIKE ? COLLATE utf8_general_ci OR `ts`.`String` LIKE ? GROUP BY `tk`.`ID`", ["%{$sFilter}%", "%{$sFilter}%"]);
        foreach ($aKeys as $aKey) {
            $aItems[] = array('id' => $aKey['id'], 'key' => $aKey['key'], 'category' => $aKey['category'], 'admin_url' => $GLOBALS['site']['url_admin']);
        }
    }
    //--- Get Controls ---//
    $aButtons = array('adm-lang-key-delete' => _t('_adm_txt_langs_delete'));
    $sControls = BxTemplSearchResult::showAdminActionsPanel('adm-keys-form', $aButtons, 'keys');
    $sFilter = BxTemplSearchResult::showAdminFilterPanel(false !== bx_get($sFilterName) ? bx_get($sFilterName) : '', 'adm-langs-look-for', 'adm-langs-apply', $sFilterName);
    if ($mixedResult !== true && !empty($mixedResult)) {
        $sFilter .= MsgBox(_t($mixedResult), 3);
    }
    return $GLOBALS['oAdmTemplate']->parseHtmlByName('langs_keys.html', array('display' => $bActive ? 'block' : 'none', 'filter_panel' => $sFilter, 'bx_repeat:items' => !empty($aItems) ? $aItems : MsgBox(_t('_Empty')), 'control' => $sControls, 'url_admin' => $GLOBALS['site']['url_admin']));
}
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:21,代码来源:lang_file.php


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