id, $course->id):null;
if ($e) {
$start = date_str($e->create_time);
$view = BoltView::lookup_id($e->last_view_id);
$ago = time_diff(time() - $view->start_time);
$pct = number_format($view->fraction_done*100, 0);
$status = "Started $start
Last visit: $ago ago
$pct% done
id>Resume
id>History
id&action=start>Restart
";
} else {
$status = "
id&action=start>Start
";
}
row2("$course->name
$course->description",
$status
);
}
end_table();
page_tail();
?>