User Pictures to dialogue headers.

This commit is contained in:
rkingdon
2004-11-21 15:30:14 +00:00
parent 706552f038
commit 5c2b2dd83a
2 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -268,9 +268,9 @@
/****************** print dialogue (allowing new entry)********************/
elseif ($action == 'printdialogue') {
if (!$conversation = get_record("dialogue_conversations", "id", $_GET['cid'])) {
error("Print Dialogue: can not get conversation record");
}
// if (!$conversation = get_record("dialogue_conversations", "id", $_GET['cid'])) {
// error("Print Dialogue: can not get conversation record");
// }
print_simple_box( text_to_html($dialogue->intro) , "center");
echo "<br />";
+6 -6
View File
@@ -455,8 +455,8 @@ function dialogue_list_conversations_self($dialogue) {
error("User not found");
}
}
// print_user_picture($user->id, $course->id, $user->picture);
echo "<b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
$picture = print_user_picture($otheruser->id, $course->id, $otheruser->picture, false, true);
echo $picture." <b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
"</b></td>";
echo "<td bgcolor=\"$THEME->cellheading2\"><i>".clean_text($conversation->subject)."&nbsp;</i><br />\n";
echo "<div align=\"right\">\n";
@@ -560,8 +560,8 @@ function dialogue_print_conversation($dialogue, $conversation) {
error("User not found");
}
}
// print_user_picture($user->id, $course->id, $user->picture);
echo "<b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
$picture = print_user_picture($otheruser->id, $course->id, $otheruser->picture, false, true);
echo $picture." <b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
"</b></td>";
echo "<td bgcolor=\"$THEME->cellheading2\"><i>".clean_text($conversation->subject)."&nbsp;</i><br />\n";
echo "<div align=\"right\">\n";
@@ -728,8 +728,8 @@ function dialogue_show_conversation($dialogue, $conversation) {
error("User not found");
}
}
// print_user_picture($user->id, $course->id, $user->picture);
echo "<b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
$picture = print_user_picture($otheruser->id, $course->id, $otheruser->picture, false, true);
echo $picture." <b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
"</b></td>";
echo "<td bgcolor=\"$THEME->cellheading2\" valign=\"top\"><i>".clean_text($conversation->subject)."&nbsp;</i></td></tr>";