bolt_course_id) {
if ($user) {
switch (bolt_course_status($app->bolt_course_id, $user->id)) {
case BOLT_COURSE_NOT_STARTED:
$x = "bolt_course_id>Take training course";
break;
case BOLT_COURSE_STARTED:
$x = "bolt_course_id>Finish training course";
break;
case BOLT_COURSE_FINISHED:
$x = "id>Get job";
break;
}
} else {
$x = "bolt_course_id>Take training course";
}
} else {
$x = "id>Get job";
}
row2("$app->name
$app->description", $x);
}
function show_apps() {
$apps = BossaApp::enum();
foreach ($apps as $app) {
if ($app->hidden) continue;
show_app($app);
}
}
function main() {
page_head("Bossa apps");
start_table();
show_apps();
end_table();
page_tail();
}
$user = get_logged_in_user();
main();
?>