} // we're done here, exit exit; } elseif ($format == "html") { // fall-through } else { 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'>";
} // we're done here, exit exit; } elseif ($format == "html") { // fall-through } else { assert(false); } 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(1, 2, 3, 4, 5, 10, 25, 50); // what is the intial cutoff frequecny? $initialFreq = getInitialCutoff($freqCutoff, $cutoffOptions, $bad_words_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 "<p>{$page_text2}</p>"; echo_page_instruction_text("bad", $format); echo_download_text($projectid, $format); echo_any_warnings_errors($messages); echo_cutoff_text($initialFreq, $cutoffOptions); $context_array = build_context_array_links($bad_words_w_freq, $projectid); $context_array["[[TITLE]]"] = _("Show Context"); $word_checkbox = build_checkbox_array($bad_words_w_freq); $checkbox_form["projectid"] = $projectid; $checkbox_form["freqCutoff"] = $freqCutoff; echo_checkbox_selects(count($bad_words_w_freq));
$numLeft = @$instances_left[$word]; $total = $numLeft + $numChanged; $corrected = $instances_changed_to[$word]; echo "{$word} - {$percentChanged} - {$corrected} - {$numLeft} - {$numChanged} - {$total}\r\n"; } // we're done here, exit exit; } 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();
</noframes> <?php exit; } // now load data in the left frame if ($frame == "left") { // get all projects for this PM $projects = _get_projects_for_pm($pm); $submitLabel = _("Add selected words to Good Words List"); slim_header(_("Manage Suggestions")); // how many instances (ie: frequency sections) are there? $instances = count($projects) + 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); // echo page support text, like JS and stylesheets echo_cutoff_script($cutoffOptions, $instances); echo_word_freq_style(); echo "<h1>" . _("Manage Suggestions") . "</h1>"; echo "<p><a href='{$code_url}/tools/project_manager/projectmgr.php' target='_TOP'>" . _("Return to the PM page") . "</a></p>"; echo "<form action='" . attr_safe($_SERVER['PHP_SELF']) . "' method='get'>"; echo "<input type='hidden' name='frame' value='left'>"; echo "<p>"; if (user_is_a_sitemanager() || user_is_proj_facilitator()) { echo _("View projects for user:"******" <input type='text' name='pm' value='" . attr_safe($pm) . "' size='10'><br>"; } echo _("Show:") . " "; echo "<select name='timeCutoff'>"; echo "<option value='0'"; if ($timeCutoff == 0) {