$pages ) $page = $pages; $sqlLimitFrom = ( $page - 1 ) * $max_num; $sqlLimit = " LIMIT $sqlLimitFrom, $max_num"; $max_thumb_width = (int)getParam( 'max_thumb_width' ); $max_thumb_height = (int)getParam( 'max_thumb_height' ); $ret = '
'; $result = db_res( $sqlSelect.$sqlFrom.$sqlWhere.$sqlOrder.$sqlLimit ); while ( $ph_arr = mysql_fetch_assoc( $result ) ) { $urlImg = "{$site['profileImage']}{$ph_arr['med_prof_id']}/thumb_{$ph_arr['med_file']}"; $urlSpacer = getTemplateIcon( 'spacer.gif' ); $ph_arr['med_title'] = htmlspecialchars_adv( $ph_arr['med_title'] ); //$memNickName = getNickName( $ph_arr['med_prof_id'] ); $ret .= <<
$memNickName
EOJ; } $ret .= '
'; if( $pages > 1 ) { $pagination = '
'. genPagination( $pages, $page, $_SERVER['PHP_SELF']."?mode=$mode&page={page}" ). '
'; $ret = $pagination . $ret . $pagination; } } else { $ret .= '
'; $ret .= '
'; $ret .= _t("_No results found"); $ret .= '
'; $ret .= '
'; } return $ret; }