|
@@ -3935,8 +3935,8 @@ class iassign {
|
|
|
function search_comment_submission ($iassign_submissionid) {
|
|
|
global $USER, $DB, $OUTPUT, $COURSE;
|
|
|
// $context = context_course::instance($COURSE->id);
|
|
|
- $colorEdit1 = "#a7bede"; // "#dce7ec"
|
|
|
- $colorEdit2 = "#b7ceee";
|
|
|
+ $colorEdit1 = "#b7ceee"; // "#dce7ec"
|
|
|
+ $colorEdit2 = "#d2e5fc";
|
|
|
$has_capability = 0;
|
|
|
|
|
|
$comments = $DB->get_records_list('iassign_submission_comment', 'iassign_submissionid', array('iassign_submissionid' => $iassign_submissionid), 'timecreated DESC'); // 'ORDER BY "timecreated" ASC'
|
|
@@ -3951,14 +3951,19 @@ class iassign {
|
|
|
// $text .= $tmp->comment . "</td></tr>";
|
|
|
//} else {
|
|
|
// $text .= "<tr><td bgcolor='#dce7ec'>»<b>" . $user_data->firstname . "</b> (" . userdate($tmp->timecreated) . "</br>\n";
|
|
|
+ $avatar = new user_picture($user_data);
|
|
|
+ $avatar->courseid = $COURSE->id;
|
|
|
+ $avatar->link = true;
|
|
|
+ $user_picture = $OUTPUT->render($avatar);
|
|
|
+
|
|
|
if ($even) {
|
|
|
- $text .= "<tr><td bgcolor='" . $colorEdit1 . "'>»<b>" . $user_data->firstname . "</b> (" . userdate($tmp->timecreated) . ")</br>\n";
|
|
|
+ $text .= "<tr><td style='vertical-align: middle; width: 55px !important;' bgcolor='" . $colorEdit1 . "'>$user_picture</td><td bgcolor='" . $colorEdit1 . "' style='padding-left: 0px !important;'><b style='font-size: 1.1rem;'>" . $user_data->firstname . "</b> <span style='color: #686969; font-size: 90%'><i class='fa fa-clock-o' aria-hidden='true' style='margin-left: 2rem; margin-right: .1rem;'></i> " . userdate($tmp->timecreated) . "</span></br>\n";
|
|
|
$even = 0;
|
|
|
} else {
|
|
|
- $text .= "<tr><td bgcolor='" . $colorEdit2 . "'>»<b>" . $user_data->firstname . "</b> (" . userdate($tmp->timecreated) . ")</br>\n";
|
|
|
+ $text .= "<tr><td style='vertical-align: middle; width: 55px !important;' bgcolor='" . $colorEdit2 . "'>$user_picture</td><td bgcolor='" . $colorEdit2 . "' style='padding-left: 0px !important;'><b style='font-size: 1.1rem;'>" . $user_data->firstname . "</b> <span style='color: #686969; font-size: 90%'><i class='fa fa-clock-o' aria-hidden='true' style='margin-left: 2rem; margin-right: .1rem;'></i> " . userdate($tmp->timecreated) . "</span></br>\n";
|
|
|
$even = 1;
|
|
|
}
|
|
|
- $text .= $tmp->comment . "</td></tr>\n";
|
|
|
+ $text .= "<div style='padding-left: .5rem; padding-top: .2rem;'>" . $tmp->comment . "</div></td></tr>\n";
|
|
|
|
|
|
} // foreach ($comments as $tmp)
|
|
|
}
|