recordid)) { error("rating ID was incorrect"); } if (!$data = get_record('data','id',$record->id)) { error("rating ID was incorrect"); } if (!isset($sort)) { $sort = "r.id"; } $scalemenu = make_grades_menu($data->scale); $strratings = get_string("ratings", "forum"); $strrating = get_string("rating", "forum"); $strname = get_string("name"); print_header("$strratings: ".format_string($post->subject)); if (!$ratings = data_get_ratings($record->id, $sort)) { error("No ratings for this record!"); } else { echo ""; echo ""; echo ""; echo "'; } else { echo ''; } echo "\n"; } echo "
 id&sort=u.firstname\">$strname"; echo "id&sort=r.rating\">$strrating"; foreach ($ratings as $rating) { if (isteacher($data->course)) { echo '
"; print_user_picture($rating->id, $data->course, $rating->picture); echo '

'.fullname($rating).'

'; echo '

'.$scalemenu[$rating->rating]."

"; echo "
"; echo "
"; } close_window_button(); ?>