assert(false);
}
output_header($title, NO_STATSBAR);
echo_page_header($title, $projectid);
// how many instances (ie: frequency sections) are there?
$instances = count($rounds) + 1;
// what are the cutoff options?
$cutoffOptions = array(1, 2, 3, 4, 5, 10, 25, 50);
// what is the initial cutoff frequency?
$initialFreq = getInitialCutoff($freqCutoff, $cutoffOptions, $all_suggestions_w_freq);
// echo page support text, like JS and stylesheets
echo_cutoff_script($cutoffOptions, $instances);
echo_word_freq_style();
echo "<p>{$page_text}</p>";
echo_page_instruction_text("good", $format);
echo_any_warnings_errors($messages);
echo "<form action='show_good_word_suggestions.php' method='get'>";
echo "<p>{$time_cutoff_text} ";
echo _("This setting also controls the words that will be included in the downloaded file.");
echo " ";
echo "<input type='hidden' name='freqCutoff' value='{$initialFreq}' id='freqCutoffValue'>";
echo "<input type='hidden' name='projectid' value='{$projectid}'>";
echo "<input type='hidden' name='format' value='{$format}'>";
echo _("Change the results to show:") . " ";
echo "<select name='timeCutoff'>";
echo "<option value='0'";
if ($timeCutoff == 0) {
    echo "selected";
}
echo ">" . _("All suggestions") . "</option>";
echo "<option value='{$fileObject->mod_time}'";
$context_array = build_context_array_links($bad_words_w_freq, $projectid);
// load site bad words
$site_bad_words = load_site_bad_words_given_project($projectid);
// load project bad words
$project_bad_words = load_project_bad_words($projectid);
$word_notes = array();
foreach ($site_bad_words as $word) {
    $word_notes[$word] = _("On site BWL");
}
foreach ($project_bad_words as $word) {
    $word_notes[$word] = _("On project BWL");
}
$context_array["[[TITLE]]"] = _("Show Context");
$word_notes["[[TITLE]]"] = _("Notes");
if (isset($update_status) && $update_status !== "Success") {
    echo_any_warnings_errors(array($update_status));
}
$word_checkbox = build_checkbox_array($bad_words_w_freq);
echo_checkbox_selects(count($bad_words_w_freq));
$checkbox_form["projectid"] = $projectid;
$checkbox_form["freqCutoff"] = $freqCutoff;
echo_checkbox_form_start($checkbox_form);
echo_checkbox_form_submit(_("Add selected words to Good Words List"));
printTableFrequencies($initialFreq, $cutoffOptions, $bad_words_w_freq, $instances--, array($context_array, $word_notes), $word_checkbox);
echo_checkbox_form_submit(_("Add selected words to Good Words List"));
echo_checkbox_form_end();
//---------------------------------------------------------------------------
// supporting page functions
function _get_word_list($projectid)
{
    $messages = array();