Display names using fullname function

This commit is contained in:
moodler
2003-11-28 15:41:18 +00:00
parent 7cc9a05edf
commit b3679ca436
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -94,7 +94,7 @@
echo "<tr><td width=\"10\" nowrap>";
print_user_picture($user->id, $course->id, $user->picture);
echo "</td><td width=\"100%\" nowrap>";
echo "<p>$user->firstname $user->lastname</p>";
echo "<p>".fullname($user, true)."</p>";
echo "</td></tr>";
}
echo "</table>";
+3 -1
View File
@@ -137,6 +137,8 @@
switch ($choice->publish) {
case CHOICE_PUBLISH_NAMES:
$isteacher = isteacher($course->id);
$tablewidth = (int) (100.0 / count($useranswer));
echo "<table cellpadding=5 cellspacing=10 align=center>";
@@ -164,7 +166,7 @@
echo "<tr><td width=10 nowrap>";
print_user_picture($user->id, $course->id, $user->picture);
echo "</td><td width=100% nowrap>";
echo "<p>$user->firstname $user->lastname</p>";
echo "<p>".fullname($user, $isteacher)."</p>";
echo "</td></tr>";
}
echo "</table>";