}
$logurl = att_log_convert_url($url);
- add_to_log($this->course->id, 'attforblock', $action, $logurl, $info, $this->cm->id);
+ add_to_log($this->course->id, 'attendance', $action, $logurl, $info, $this->cm->id);
}
}
$table->size[] = '1px';
}
+ if ($reportdata->sessionslog) {
+ $table->head[] = get_string('remarks', 'attendance');
+ $table->align[] = 'center';
+ $table->size[] = '200px';
+ }
+
if ($bulkmessagecapability) { // Display the table header for bulk messaging.
// The checkbox must have an id of cb_selector so that the JavaScript will pick it up.
$table->head[] = html_writer::checkbox('cb_selector', 0, false, '', array('id' => 'cb_selector'));
$table->size[] = '1px';
}
- if ($reportdata->sessionslog) {
- $table->head[] = get_string('remarks', 'attendance');
- $table->align[] = 'center';
- $table->size[] = '200px';
- }
-
foreach ($reportdata->users as $user) {
$row = new html_table_row();
$row->cells[] = $reportdata->grades[$user->id].' / '.$reportdata->maxgrades[$user->id];
}
- if ($bulkmessagecapability) { // Create the checkbox for bulk messaging.
- $row->cells[] = html_writer::checkbox('user'.$user->id, 'on', false);
- }
-
if ($reportdata->sessionslog) {
if (isset($sess) && isset($reportdata->sessionslog[$user->id][$sess->id]->remarks)) {
$row->cells[] = $reportdata->sessionslog[$user->id][$sess->id]->remarks;
$row->cells[] = '';
}
}
+
+ if ($bulkmessagecapability) { // Create the checkbox for bulk messaging.
+ $row->cells[] = html_writer::checkbox('user'.$user->id, 'on', false);
+ }
+
$table->data[] = $row;
}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$plugin->version = 2014022801;
+$plugin->version = 2014060314;
$plugin->requires = 2013040500;
$plugin->release = '2.6.1';
$plugin->maturity = MATURITY_STABLE;