function getSearchForm() { require_once 'custom/include/SubPanel/SubPanelSearchForm.php'; $module = 'Meetings'; $seed = new Meeting(); $searchForm = new SubPanelSearchForm($seed, $module, $this); $searchMetaData = $searchForm->retrieveSearchDefs($module); if ($subpanel_searchMetaData = $this->get_searchdefs($module)) { $searchForm->setup($subpanel_searchMetaData, $searchMetaData['searchFields'], 'SubpanelSearchFormGeneric.tpl', 'basic_search'); if (!empty($this->collections)) { $searchForm->searchFields['collection'] = array(); } $searchForm->populateFromRequest(); return $searchForm->display(); } return ''; }
function getSearchForm() { $thisPanel =& $this->subpanel_defs; $subpanel_defs = $thisPanel->_instance_properties; require_once 'include/SubPanel/SubPanelSearchForm.php'; if ($subpanel_defs['type'] == 'collection') { $collection = array_shift(array_values($subpanel_defs['collection_list'])); $module = $collection['module']; } else { $module = $subpanel_defs['module']; } $seed = BeanFactory::getBean($module); $searchForm = new SubPanelSearchForm($seed, $module, $this); $searchMetaData = $searchForm->retrieveSearchDefs($module); if ($subpanel_searchMetaData = $this->get_searchdefs($module)) { $searchForm->setup($subpanel_searchMetaData, $searchMetaData['searchFields'], 'SubpanelSearchFormGeneric.tpl', 'basic_search'); if (!empty($this->collections)) { $searchForm->searchFields['collection'] = array(); } $searchForm->populateFromRequest(); return $searchForm->display(); } return ''; }