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

'; if (!empty($context['search_errors'])) echo '

', implode('
', $context['search_errors']['messages']), '

'; if (!empty($context['search_ignored'])) echo '

', $txt['search_warning_ignored_word' . (count($context['search_ignored']) == 1 ? '' : 's')], ': ', implode(', ', $context['search_ignored']), '

'; // Simple Search? if ($context['simple_search']) { echo ' '; } // Advanced search! else { echo ' '; if (empty($context['search_params']['topic'])) { echo '

'; echo '
'; } echo ' '; } echo ' '; } function template_results() { global $context, $settings, $options, $txt, $scripturl, $message; if (isset($context['did_you_mean']) || empty($context['topics']) || !empty($context['search_ignored'])) { echo '

', $txt['search_adjust_query'], '

'; // Did they make any typos or mistakes, perhaps? if (isset($context['did_you_mean'])) echo '

', $txt['search_did_you_mean'], ' ', $context['did_you_mean'], '.

'; if (!empty($context['search_ignored'])) echo '

', $txt['search_warning_ignored_word' . (count($context['search_ignored']) == 1 ? '' : 's')], ': ', implode(', ', $context['search_ignored']), '

'; echo '
', $txt['search_for'], ':
'; if (!empty($context['search_params']['brd'])) foreach ($context['search_params']['brd'] as $board_id) echo ' '; echo '

'; } if ($context['compact']) { // Quick moderation set to checkboxes? Oh, how fun :/. if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) echo '
'; echo '

'; if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) echo ' '; echo ' ? ', $txt['mlist_search_results'],': ',$context['search_params']['search'],'

'; // was anything even found? if (!empty($context['topics'])) echo'
', $context['page_index'], '
'; else echo '
', $txt['find_no_results'], '
'; // while we have results to show ... while ($topic = $context['get_topics']()) { $color_class = ''; if ($topic['is_sticky']) $color_class = 'stickybg'; if ($topic['is_locked']) $color_class .= 'lockedbg'; echo '
'; foreach ($topic['matches'] as $message) { echo '
', $message['counter'], '
', $topic['board']['link'], ' / ', $message['subject_highlighted'], '
« ',$txt['by'],' ', $message['member']['link'], ' ',$txt['on'],' ', $message['time'], ' »
'; if (!empty($options['display_quick_mod'])) { echo '
'; if ($options['display_quick_mod'] == 1) { echo ' '; } else { if ($topic['quick_mod']['remove']) echo ' '; if ($topic['quick_mod']['lock']) echo ' '; if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove']) echo '
'; if ($topic['quick_mod']['sticky']) echo ' '; if ($topic['quick_mod']['move']) echo ' '; } echo '
'; } if ($message['body_highlighted'] != '') echo '
', $message['body_highlighted'], '
'; } echo '
'; } if (!empty($context['topics'])) echo '
', $context['page_index'], '
'; if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics'])) { echo '
'; if ($context['can_move']) echo '  '; echo '
'; } if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics'])) echo '
'; } else { echo '

? ', $txt['mlist_search_results'],': ',$context['search_params']['search'],'

', $context['page_index'], '
'; if (empty($context['topics'])) echo '
(', $txt['search_no_results'], ')
'; while ($topic = $context['get_topics']()) { foreach ($topic['matches'] as $message) { echo '
', $message['counter'], '
', $topic['board']['link'], ' / ', $message['subject_highlighted'], '
« ', $txt['message'], ' ', $txt['by'], ' ', $message['member']['link'], ' ', $txt['on'], ' ', $message['time'], ' »
', $message['body_highlighted'], '
'; if ($topic['can_reply'] || $topic['can_mark_notify']) echo '
    '; // If they *can* reply? if ($topic['can_reply']) echo '
  • ', $txt['reply'], '
  • '; // If they *can* quote? if ($topic['can_quote']) echo '
  • ', $txt['quote_action'], '
  • '; // Can we request notification of topics? if ($topic['can_mark_notify']) echo '
  • ', $txt['notify'], '
  • '; if ($topic['can_reply'] || $topic['can_mark_notify']) echo '
'; echo '
'; } } echo '
', $context['page_index'], '
'; } // Show a jump to box for easy navigation. echo '
 
'; } ?>