$i1=$ii ; $i2= min($ii + $width,$maxpos); $add = (($curpos>=$i1) and ($curpos<$i2)) ? 'current' : ''; $string .= "<li class=\"$add\"><a href=\"javascript: page_navigate($i1);\" class=\"off\">".$rr."</a></li> " ; } $string .= "</ul></div>" ; */ $pagination = $pagination_attr = ''; if (count($TList)) { $start = isset($vars['start_rec']) ? $vars['start_rec'] : 0; $params->strategy = new HalfPagePager('left'); $params->items_per_page = $vars['limitcount']; $params->items = $maxpos; $params->active_page = floor($start / $vars['limitcount']) + 1; $pager = new PagerWidget($params); $pagination = str_replace(' ', ' ', $pager->getHtml()); $pagination_attr = htmlspecialchars($pager->getHtml(), ENT_QUOTES); } echo <<<XML <pager per_page='{$vars['limitcount']}' paging='{$pagination_attr}'>{$pagination}</pager> XML; if ($ShowMemberFunction == 'ShowMembersAjaxShort') { echo "<header header='" . "'/>"; } else { if (sizeof($TList) > 0) { echo "<header header='" . htmlspecialchars("<table class=\"full\">\n <tr>\n <th colspan=\"2\">" . $words->getFormatted('Member') . "</th>\n <th>" . $words->getFormatted('ProfileSummary') . "</th>\n <th>" . $words->getFormatted('Host') . "</th>\n <th>" . $words->getFormatted('MemberSince') . "</th>\n <th>" . $words->getFormatted('LastLogin') . "</th>\n <th>" . $words->getFormatted('Comments') . "</th>\n <th align=\"right\">" . $words->getFormatted('Age') . "<br />" . $words->getFormatted('Gender') . "</th>\n </tr>", ENT_QUOTES) . "'/>"; } else { echo "<header header='" . htmlspecialchars($words->getFormatted("searchmembersNoSearchResults"), ENT_QUOTES) . "'/>"; } } echo "<footer footer='" . htmlspecialchars("" . $words->flushBuffer() . "</table>", ENT_QUOTES) . "'/>";