glossaryid)) { error("Glossary ID was incorrect"); } if (! $course = get_record("course", "id", $glossary->course)) { error("Course ID was incorrect"); } if (!isteacher($course->id) and $USER->id != $entry->userid) { error("You can only look at results for your own entries"); } if (!isset($sort)) { $sort = "r.time"; } $scalemenu = make_grades_menu($glossary->scale); $strratings = get_string("ratings", "glossary"); $strrating = get_string("rating", "glossary"); $strname = get_string("name"); $strtime = get_string("time"); print_header("$strratings: $entry->concept"); if (!$ratings = glossary_get_ratings($entry->id, $sort)) { error("No ratings for this entry: \"$entry->concept\""); } else { echo "
"; echo " | id&sort=u.firstname\">$strname"; echo " | id&sort=r.rating\">$strrating"; echo " | id&sort=r.time\">$strtime"; foreach ($ratings as $rating) { if (isteacher($glossary->course, $rating->id)) { echo " |
---|---|---|---|
"; print_user_picture($rating->id, $glossary->course, $rating->picture); echo ' | '.fullname($rating).' '; echo ' | '.$scalemenu[$rating->rating]." "; echo ' | '.userdate($rating->time)." "; echo " |