array('text' => 'view_all_members', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist' . ';sa=all', 'active'=> true), 'mlist_search' => array('text' => 'mlist_search', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist' . ';sa=search'), ); echo '

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

', template_button_strip($memberlist_buttons, 'right'), '
'; echo '
'; // Display each of the column headers of the table. foreach ($context['columns'] as $column) { // We're not able (through the template) to sort the search results right now... if (isset($context['old_search'])) echo ' '; // This is a selected column, so underline it or some such. elseif ($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. if (!empty($context['members'])) { foreach ($context['members'] as $member) { 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 ' '; } } // No members? else echo ' '; // Show the page numbers again. (makes 'em easier to find!) echo '
', $column['label'], ' ' . $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'], '
'; 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 ' '; echo '
'; } // A page allowing people to search the member list. function template_search() { global $context, $settings, $options, $scripturl, $txt; // Build the memberlist button array. $memberlist_buttons = array( 'view_all_members' => array('text' => 'view_all_members', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist' . ';sa=all'), 'mlist_search' => array('text' => 'mlist_search', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist' . ';sa=search', 'active' => true), ); // Start the submission form for the search! echo '

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

', template_button_strip($memberlist_buttons, 'right'), '
'; // Display the input boxes for the form. echo '
'; } ?>