array_push($ignored_folders, $fid); } } } // Append ignored folders onto the end of the folder list. // This will make them appear at the bottom of the thread list. $folder_order = array_merge($folder_order, $ignored_folders); } else { while (list($fid, $folder_data) = each($folder_info)) { if (!in_array($fid, $folder_order)) { $folder_order[] = $fid; } } } // Draw discussion dropdown thread_list_draw_top($mode, $folder); // If no threads are returned, say something to that effect if (isset($_REQUEST['mark_read_success'])) { html_display_success_msg(gettext("Successfully marked selected threads as read"), '100%', 'left'); } else { if (!is_array($thread_info)) { if (is_numeric($folder) && ($folder_title = folder_get_title($folder))) { $all_discussions_link = sprintf("<a href=\"thread_list.php?webtag={$webtag}&folder={$folder}&mode=0\">%s</a>", gettext("click here")); html_display_warning_msg(sprintf(gettext("No "%s" in "%s" folder. Please select another folder, or %s for all threads."), $available_views[$mode], $folder_title, $all_discussions_link), '100%', 'left'); } else { $all_discussions_link = sprintf("<a href=\"thread_list.php?webtag={$webtag}&mode=0\">%s</a>", gettext("click here")); html_display_warning_msg(sprintf(gettext("No "%s" available. Please %s for all threads."), $available_views[$mode], $all_discussions_link), '100%', 'left'); } } else { if (isset($error_msg_array) && sizeof($error_msg_array) > 0) { html_display_error_array($error_msg_array, '100%', 'left');
echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"left\"> </td>\n"; echo " <td align=\"left\" colspan=\"2\">", form_dropdown_array("sort_by", $search_sort_by_array, $sort_by), "</td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"left\"> </td>\n"; echo " <td align=\"left\">", form_dropdown_array("sort_dir", $search_sort_dir_array, $sort_dir), "</td>\n"; echo " <td align=\"left\">", form_submit("go", gettext("Go!")) . "</td>\n"; echo " </tr>\n"; echo " </table>\n"; echo "</form>\n"; echo "<br />\n"; } else { html_draw_top(array('js' => array('js/search.js', 'js/search_popup.js', 'js/thread_list.js'))); thread_list_draw_top(SEARCH_RESULTS); echo "<br />\n"; echo "<h1>", gettext("Error"), "</h1>\n"; echo "", html_style_image('search'), " ", gettext("Found"), ": 0 ", gettext("matches"), "<br /><br />\n"; } echo "<table cellpadding=\"2\" cellspacing=\"0\">\n"; echo " <tr>\n"; echo " <td align=\"left\" colspan=\"2\">", gettext("Navigate"), ":</td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"left\"> </td>\n"; echo " <td align=\"left\">\n"; echo " <form accept-charset=\"utf-8\" name=\"f_nav\" method=\"get\" action=\"messages.php\" target=\"", html_get_frame_name('right'), "\">\n"; echo " ", form_input_hidden("webtag", htmlentities_array($webtag)), "\n"; echo " ", form_input_text('msg', '1.1', 10) . "\n"; echo " ", form_submit("go", gettext("Go!")) . "\n";