echo "<option value='{$timeCutoffValue}'";
    if ($timeCutoff == $timeCutoffValue) {
        echo "selected";
    }
    echo ">" . sprintf(_("Suggestions in the past %d days"), $timeCutoffOption) . "</option>";
}
echo "</select>";
echo "<input type='submit' value='Submit'>";
echo "</p></form>";
// if there are no suggestions available (probably because they are all already
// on the Good Words List) stop here
if (count($all_suggestions_w_occurrences) == 0) {
    echo "<p>" . _("There are no suggestions in the given time frame that aren't already on the Good Words List.") . "</p>";
    exit;
}
echo_download_text($projectid, $format, "timeCutoff={$timeCutoff}");
echo_cutoff_text($initialFreq, $cutoffOptions);
$submit_label = _("Add selected words to Good Words List");
$checkbox_form["projectid"] = $projectid;
$checkbox_form["freqCutoff"] = $freqCutoff;
$checkbox_form["timeCutoff"] = $timeCutoff;
echo_checkbox_form_start($checkbox_form);
$context_array["[[TITLE]]"] = _("Show Context");
// see how many rounds actually have data in them
$roundsWithData = 0;
foreach ($rounds as $round) {
    if (count($round_suggestions_w_occurrences[$round]) > 0) {
        $roundsWithData++;
    }
}
// print out the complete list first but only if
}
output_header($title, NO_STATSBAR);
echo_page_header($title, $projectid);
// how many instances (ie: frequency sections) are there?
$instances = 1;
// what are the cutoff options?
$cutoffOptions = array(0, 10, 20, 30, 40, 50, 60, 70, 80, 90);
// what is the initial cutoff frequency?
$initialFreq = getInitialCutoff(50, $cutoffOptions, $percent_changed);
// 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("bad", $format);
echo_any_warnings_errors($messages);
echo_download_text($projectid, $format);
// output customized cutoff text
$cutoff_text = sprintf(_("Words with fewer than <b><span id='current_cutoff'>%d</span>%%</b> of the instances changed are not shown. Other cutoff options are available: %s"), $initialFreq, get_cutoff_string($cutoffOptions, "%"));
echo "<p>{$cutoff_text}</p>\n";
$project_good_words = load_project_good_words($projectid);
$word_checkbox = build_checkbox_array($percent_changed);
$context_array = build_context_array_links($instances_left, $projectid);
// build the word_note and the instances_total arrays
$word_notes = array();
$instances_total = array();
foreach ($instances_left as $word => $freq) {
    if (in_array($word, $project_good_words)) {
        $word_notes[$word] = _("On project GWL");
    }
    $instances_total[$word] = $instances_changed[$word] + $instances_left[$word];
}