$user_stats['head'][0] = Lang::t('_PARTIAL_TIME', 'course'); $user_stats['body'][0] = '<span id="partial_time">' . $partial_time . '</span>'; $user_stats['head'][1] = Lang::t('_TOTAL_TIME', 'course'); $user_stats['body'][1] = '<span id="total_time">' . $tot_time . '</span>'; } } if (Docebo::course()->getValue('show_who_online') == _SHOW_INSTMSG) { addCss('instmsg'); addJs('addons/yui/my_window/', 'windows.js'); addJs($GLOBALS['where_lms_relative'] . '/modules/instmsg/', 'instmsg.js'); $GLOBALS['page']->add('<script type="text/javascript">' . " setup_instmsg( '" . Docebo::user()->getIdSt() . "', " . "'" . $userid . "', " . "'" . getPathImage('fw') . "' ); " . '</script>' . "\n", 'page_head'); $user_stats['head'][2] = Lang::t('_WHOIS_ONLINE', 'course'); $user_stats['body'][2] = '<b id="user_online_n">' . '<a id="open_users_list" href="javascript:void(0)">' . TrackUser::getWhoIsOnline($_SESSION['idCourse']) . '</a></b>'; } elseif (Docebo::course()->getValue('show_who_online') == _SHOW_COUNT) { $user_stats['head'][2] = Lang::t('_WHOIS_ONLINE', 'course'); $user_stats['body'][2] = '<b id="user_online_n">' . TrackUser::getWhoIsOnline($_SESSION['idCourse']) . '</b>'; } $all_stats = '<div id="accordion"><h3>'; $all_stats .= '<span class="tempo">' . Lang::t('_TOTAL_TIME', 'course') . ': ' . $tot_time . ' '; // get status count value if (Docebo::course()->getValue('show_progress') == 1) { require_once $GLOBALS['where_lms'] . '/lib/lib.stats.php'; $total = getNumCourseItems($_SESSION['idCourse'], FALSE, getLogUserId(), FALSE); $tot_complete = getStatStatusCount(getLogUserId(), $_SESSION['idCourse'], array('completed', 'passed')); $tot_incomplete = $total - $tot_complete; $tot_passed = getStatStatusCount(getLogUserId(), $_SESSION['idCourse'], array('passed')); $tot_failed = getStatStatusCount(getLogUserId(), $_SESSION['idCourse'], array('failed')); } // print progress bar ------------------------------------------------- $user_stats_table = ""; if (Docebo::course()->getValue('show_progress') == 1 && true) {