array( 'id' => 'searchForm', 'action' => BX_DOL_URL_ROOT . 'searchKeyword.php', 'method' => 'get', ), 'inputs' => array( 'keyword' => array( 'type' => 'text', 'name' => 'keyword', 'caption' => _t('_Keyword'), ), 'search' => array( 'type' => 'submit', 'name' => 'search', 'value' => _t('_Search'), ), ), ); $oForm = new BxTemplFormView($a); return $oForm->getCode(); } function getBlockCode_People() { global $logged; $aProfile = $logged['member'] ? getProfileInfo((int)$_COOKIE['memberID']) : array(); // default params for search form $aDefaultParams = array( 'LookingFor' => $aProfile['Sex'] ? $aProfile['Sex'] : 'male', 'Sex' => $aProfile['LookingFor'] ? $aProfile['LookingFor'] : 'female', 'Country' => $aProfile['Country'] ? $aProfile['Country'] : getParam('default_country'), 'DateOfBirth' => getParam('search_start_age') . '-' . getParam('search_end_age'), ); bx_import('BxDolProfileFields'); $oPF = new BxDolProfileFields(9); $a = array('default_params' => $aDefaultParams); return $oPF->getFormCode($a); } function getBlockCode_History() { return MsgBox('Under Development'); } } $_page['name_index'] = 81; check_logged(); $_page['header'] = _t('_sys_search_main_title'); $_page['header_text'] = _t('_sys_search_main_title'); $_page['css_name'] = 'search.css'; $oPage = new BxDolPageSearchMain(); $_ni = $_page['name_index']; $_page_cont[$_ni]['page_main_code'] = $oPage -> getCode(); PageCode(); ?>