echo $timeCutoff; ?> &frame=right"> </frameset> <noframes> <?php echo _("Your browser currently does not display frames!"); ?> </noframes> <?php exit; } // now load data in the left frame if ($frame == "left") { // load the suggestions $suggestions = load_wordcheck_events($projectid, $timeCutoff); if (!is_array($suggestions)) { $messages[] = sprintf(_("Unable to load suggestions: %s"), $suggestions); } // parse the suggestions complex array // it was pulled in the raw format $word_suggestions = array(); foreach ($suggestions as $suggestion) { list($time, $round, $page, $proofer, $words) = $suggestion; if (in_array($word, $words)) { array_push($word_suggestions, $suggestion); } } slim_header(_("Suggestion Detail")); $project_name = get_project_name($projectid); echo "<h2>", sprintf(_("Suggestion context for '%1\$s' in %2\$s"), $word, $project_name), "</h2>";
include_once $relPath . 'theme.inc'; include_once $relPath . 'links.inc'; include_once "./word_freq_table.inc"; require_login(); set_time_limit(0); // no time limit $projectid = validate_projectID('projectid', @$_GET['projectid']); enforce_edit_authorization($projectid); $title = _("WordCheck Project Usage"); output_header($title, NO_STATSBAR); echo_word_freq_style(); echo_stylesheet(); echo "<h1>{$title}</h1>"; echo "<h2>" . get_project_name($projectid) . "</h2>"; // load the events $events = load_wordcheck_events($projectid); if (is_array($events)) { // parse the events complex array foreach ($events as $event) { list($time, $roundID, $page, $proofer, $words, $corrections) = $event; @$wordcheck_usage[$page][$roundID]++; } } echo "<p>" . _("The following table lists the number of times WordCheck was run against a page in each round and the last user to work on the page. Click the proofreader's username to compose a private message to them.") . "</p>"; echo "<p><b>" . _("Legend") . "</b></p>"; echo "<ul>"; echo "<li>" . _("Page has not been saved in the given round.") . "</li>"; echo "<li><span class='WC'>" . _("Page has had WordCheck run on it and is saved in the given round.") . "</span></li>"; echo "<li><span class='noWC'>" . _("Page has not had WordCheck run on it and is saved in the given round.") . "</span></li>"; echo "<li><span class='preWC'>" . _("Page was saved in the given round before WordCheck was rolled out on this site.") . "</span></li>"; echo "</ul>";