', 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 (!isset($context['disabled_fields']['website'])) echo ' '; // Group and date. echo ' '; if (!isset($context['disabled_fields']['posts'])) { echo ' '; } // Show custom fields marked to be shown here if (!empty($context['custom_profile_fields']['columns'])) { foreach ($context['custom_profile_fields']['columns'] as $key => $column) 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['website']['url'] != '' ? '' : '', '', empty($member['group']) ? $member['post_group'] : $member['group'], ' ', $member['registered_date'], '', $member['posts'], ' '; if (!empty($member['post_percent'])) echo '
'; echo '
', $member['options'][$key], '
', $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, $scripturl, $txt; // Start the submission form for the search! echo '
', template_button_strip($context['memberlist_buttons'], 'right'), '

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

'; } ?>