"._t('_close window').""; if( $_REQUEST['do_submit'] and $_REQUEST['keyword'] ) { $_page['header_text'] = _t('_Quick search results'); $_page['extra_js'] = << hMemberAction = window.opener.{$_REQUEST['handler']}; //Member Action Handler EOJ; $_page_cont[$_ni]['page_main_code'] = PageCompSearchResults(); } else { $_page['header_text'] = _t('_Enter search parameters'); $_page_cont[$_ni]['page_main_code'] = PageCompSearchForm(); } // --------------- [END] page components PageCode(); // --------------- page components functions /** * page code function */ function PageCompSearchForm() { ob_start(); ?>
:
'._t('_Sorry, no members found').''; $sRowTmpl = file_get_contents( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_$tmpl/qsearch_row.html" ); $ret = ''; while( $aMember = mysql_fetch_assoc( $rMembers ) ) { $aRowTmpl = array(); $aRowTmpl['thumbnail'] = get_member_thumbnail( $aMember['ID'], 'none' ); $aRowTmpl['NickName'] = "".htmlspecialchars_adv( $aMember['NickName'] ).""; $aRowTmpl['actions'] = ""._t('_Add member').""; $sRow = $sRowTmpl; foreach( $aRowTmpl as $what => $to ) $sRow = str_replace( "__{$what}__", $to, $sRow ); $ret .= $sRow; } return $ret; } ?>