getJsObject(); $oForm = new BxTemplStudioFormView(array()); $aInputModules = array( 'type' => 'select', 'name' => 'module', 'attrs' => array( 'id' => 'bx-grid-module-' . $this->_sObject, 'onChange' => 'javascript:$(this).off(\'keyup focusout\'); ' . $sJsObject . '.onChangeFilter()', 'onBlur' => 'javascript:' . $sJsObject . '.onChangeFilter()', ), 'value' => '', 'values' => $this->getModules($bShowCustom, $bShowSystem) ); $aCounter = array(); $this->oDb->$sGetItemsMethod(array('type' => 'counter_by_modules'), $aCounter, false); foreach($aInputModules['values'] as $sKey => $sValue) $aInputModules['values'][$sKey] = $aInputModules['values'][$sKey] . " (" . (isset($aCounter[$sKey]) ? $aCounter[$sKey] : "0") . ")"; $aInputModules['values'] = array_merge(array('' => _t('_adm_nav_txt_all_modules')), $aInputModules['values']); return $oForm->genRow($aInputModules); } public function getSearchInput() { $oForm = new BxTemplStudioFormView(array()); $aInputSearch = array( 'type' => 'text', 'name' => 'keyword', 'attrs' => array( 'id' => 'bx-grid-search-' . $this->_sObject, 'onKeyup' => 'javascript:$(this).off(\'keyup\'); ' . $this->getJsObject() . '.onChangeFilter()' ) ); return $oForm->genRow($aInputSearch); } } /** @} */