head = array(" ", $strname, $strattempts, "$strbestgrade /$quiz->grade"); $table->align = array("center", "left", "left", "center"); $table->wrap = array("nowrap", "nowrap", "nowrap", "nowrap"); $table->width = 10; $table->size = array(10, "*", "80%", "*"); foreach ($grades as $grade) { $picture = print_user_picture($grade->userid, $course->id, $grade->picture, false, true); if ($attempts = quiz_get_user_attempts($quiz->id, $grade->userid)) { $userattempts = quiz_get_user_attempts_string($quiz, $attempts, $grade->grade); } $table->data[] = array ($picture, "wwwroot/user/view.php?id=$grade->userid&course=$course->id\">". "$grade->firstname $grade->lastname", "$userattempts", round($grade->grade,0)); } print_table($table); return true; } } ?>