.
require_once("../inc/util.inc");
require_once("../inc/bossa_db.inc");
require_once("../inc/bolt_db.inc");
function show_app($app) {
global $user;
if ($app->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";
}
$est = number_format($app->time_estimate/60., 2);
$limit = number_format($app->time_limit/60., 2);
row2("$app->name
$app->description
Time: $est min. average, $limit min limit