', template_button_strip($context['memberlist_buttons'], 'right'), '

', $txt['members_list'], ''; if (!isset($context['old_search'])) echo ' ', $context['letter_links'], ''; echo '

'; echo '
'; // Display each of the column headers of the table. foreach ($context['columns'] as $key => $column) { // @TODO maybe find something nicer? if ($key == 'email_address' && !$context['can_send_email']) continue; // This is a selected column, so underline it or some such. if ($column['selected']) echo ' '; // This is just some column... show the link and be done with it. else echo ' '; } echo ' '; // Assuming there are members loop through each one displaying their data. $alternate = true; if (!empty($context['members'])) { foreach ($context['members'] as $member) { echo ' '; if ($context['can_send_email']) echo ' '; if (!isset($context['disabled_fields']['website'])) echo ' '; // ICQ? if (!isset($context['disabled_fields']['icq'])) echo ' '; // AIM? if (!isset($context['disabled_fields']['aim'])) echo ' '; // YIM? if (!isset($context['disabled_fields']['yim'])) echo ' '; // MSN? if (!isset($context['disabled_fields']['msn'])) echo ' '; // Group and date. echo ' '; if (!isset($context['disabled_fields']['posts'])) { echo ' '; } echo ' '; $alternate = !$alternate; } } // No members? else echo ' '; echo '
' . $column['label'] . ' ', $column['link'], '
', $context['can_send_pm'] ? '' : '', $settings['use_image_buttons'] ? '' . $member['online']['text'] . '' : $member['online']['label'], $context['can_send_pm'] ? '' : '', ' ', $member['link'], '', $member['show_email'] == 'no' ? '' : '' . $txt['email'] . '', '', $member['website']['url'] != '' ? '' . $member['website']['title'] . '' : '', '', $member['icq']['link'], '', $member['aim']['link'], '', $member['yim']['link'], '', $member['msn']['link'], '', empty($member['group']) ? $member['post_group'] : $member['group'], ' ', $member['registered_date'], '', $member['posts'], ' '; if (!empty($member['post_percent'])) echo '
'; echo '
', $txt['search_no_results'], '
'; // Show the page numbers again. (makes 'em easier to find!) echo '
'; // If it is displaying the result of a search show a "search again" link to edit their criteria. if (isset($context['old_search'])) echo ' ', $txt['mlist_search_again'], ''; echo '
'; } // A page allowing people to search the member list. function template_search() { global $context, $settings, $options, $scripturl, $txt; // Start the submission form for the search! echo '
', template_button_strip($context['memberlist_buttons'], 'right'), '

', !empty($settings['use_buttons']) ? '' : '', $txt['mlist_search'], '

'; }