AddUiBlock($this->GetSearchFormUIBlock($oPage, $oSet, $aExtraParams)); return ''; } public function GetSearchFormUIBlock(WebPage $oPage, DBObjectSet $oSet, $aExtraParams = array()) { $oUiBlock = new UIContentBlock(); $oAppContext = new ApplicationContext(); $sClassName = $oSet->GetFilter()->GetClass(); $aListParams = array(); foreach($aExtraParams as $key => $value) { $aListParams[$key] = $value; } // Simple search form if (isset($aExtraParams['currentId'])) { $sSearchFormId = 'sf_'.$aExtraParams['currentId']; } else { $iSearchFormId = utils::GetUniqueId(); $sSearchFormId = 'SimpleSearchForm'.$iSearchFormId; $oUiBlock->AddHtml("