Click to start, resume, or review ", "Status" ); foreach ($courses as $course) { $e = $user?BoltEnrollment::lookup($user->id, $course->id):null; $start = date_str($e->create_time); $ago = time_diff(time() - $e->last_view); if ($e) { $pct = number_format($e->fraction_done*100, 0); $status = "Started $start; last visit $ago ago; $pct% done"; } else { $status = "Not started"; } row2("id&action=start>$course->name
$course->description", $status ); } end_table(); page_tail(); ?>