|
@ -234,8 +234,12 @@ class mod_attendance_renderer extends plugin_renderer_base { |
|
|
$dta = $this->construct_date_time_actions($sessdata, $sess); |
|
|
$dta = $this->construct_date_time_actions($sessdata, $sess); |
|
|
|
|
|
|
|
|
$table->data[$sess->id][] = $i; |
|
|
$table->data[$sess->id][] = $i; |
|
|
$table->data[$sess->id][] = $sess->groupid ? get_string('group') . ': ' . $sessdata->groups[$sess->groupid]->name |
|
|
if ($sess->groupid) { |
|
|
: get_string('commonsession', 'attendance'); |
|
|
$table->data[$sess->id][] = get_string('group') . ': ' . $sessdata->groups[$sess->groupid]->name; |
|
|
|
|
|
} else { |
|
|
|
|
|
$table->data[$sess->id][] = get_string('commonsession', 'attendance'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$table->data[$sess->id][] = $dta['date']; |
|
|
$table->data[$sess->id][] = $dta['date']; |
|
|
$table->data[$sess->id][] = $dta['time']; |
|
|
$table->data[$sess->id][] = $dta['time']; |
|
|
$table->data[$sess->id][] = $sess->description; |
|
|
$table->data[$sess->id][] = $sess->description; |
|
@ -770,8 +774,12 @@ class mod_attendance_renderer extends plugin_renderer_base { |
|
|
|
|
|
|
|
|
$row = new html_table_row(); |
|
|
$row = new html_table_row(); |
|
|
$row->cells[] = $i; |
|
|
$row->cells[] = $i; |
|
|
$sessiontypeshort = $sess->groupid ? get_string('group') . ': ' . $userdata->groups[$sess->groupid]->name |
|
|
if ($sess->groupid) { |
|
|
: get_string('commonsession', 'attendance'); |
|
|
$sessiontypeshort = get_string('group') . ': ' . $userdata->groups[$sess->groupid]->name; |
|
|
|
|
|
} else { |
|
|
|
|
|
$sessiontypeshort = get_string('commonsession', 'attendance'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$row->cells[] = html_writer::tag('nobr', $sessiontypeshort); |
|
|
$row->cells[] = html_writer::tag('nobr', $sessiontypeshort); |
|
|
$row->cells[] = userdate($sess->sessdate, get_string('strftimedmyw', 'attendance')); |
|
|
$row->cells[] = userdate($sess->sessdate, get_string('strftimedmyw', 'attendance')); |
|
|
$row->cells[] = $this->construct_time($sess->sessdate, $sess->duration); |
|
|
$row->cells[] = $this->construct_time($sess->sessdate, $sess->duration); |
|
@ -850,8 +858,11 @@ class mod_attendance_renderer extends plugin_renderer_base { |
|
|
$sesstext = html_writer::link($reportdata->url_take($sess->id, $sess->groupid), $sesstext); |
|
|
$sesstext = html_writer::link($reportdata->url_take($sess->id, $sess->groupid), $sesstext); |
|
|
} |
|
|
} |
|
|
$sesstext .= html_writer::empty_tag('br'); |
|
|
$sesstext .= html_writer::empty_tag('br'); |
|
|
$sesstext .= $sess->groupid ? get_string('group') . ': ' . $reportdata->groups[$sess->groupid]->name |
|
|
if ($sess->groupid) { |
|
|
: get_string('commonsession', 'attendance'); |
|
|
$sesstext .= get_string('group') . ': ' . $reportdata->groups[$sess->groupid]->name; |
|
|
|
|
|
} else { |
|
|
|
|
|
$sesstext .= get_string('commonsession', 'attendance'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$table->head[] = $sesstext; |
|
|
$table->head[] = $sesstext; |
|
|
$table->align[] = 'center'; |
|
|
$table->align[] = 'center'; |
|
|