Пример #1
0
            $last = '<a href="#' . $login . '">' . get_lang('Last') . '</a>';
        }
        $course_info = api_get_course_info_by_id($result['c_id']);
        $course_image = '<img src="' . $course_info['course_image'] . '">';
        $dates .= '<li><a href="#' . $login . '">' . api_get_utc_datetime($login) . '</a></li>';
        $issues .= '<li id ="' . $login . '">
                        <div class="row">
                            <div class="col-md-12"><div class="thumbnail">' . $course_image . '</div>
                        </div>
                        <div class="col-md-3">' . sprintf(get_lang('YouHaveEnteredTheCourseXInY'), $courseInfo['code'], api_convert_and_format_date($login, DATE_FORMAT_LONG)) . '</div>
                    </li>';
        $count++;
    }
}
$content = Tracking::show_user_progress(api_get_user_id(), $sessionId);
$content .= Tracking::show_course_detail(api_get_user_id(), $courseCode, $sessionId);
if (!empty($dates)) {
    if (!empty($content)) {
        $content .= '<br /><br />';
    }
    $content .= '<div class="row"><div class="col-md-12">' . Display::page_subheader(get_lang('Timeline')) . '</div>';
    $content .= '<div id="my_timeline">
        <div class="actions">
            <a href="#" id="prev"></a> <!-- optional -->
            <a href="#" id="next"></a> <!-- optional -->
        </div>
    <ul id="dates">
        ' . $dates . '
    </ul>
    <ul id="issues">
        ' . $issues . '
Пример #2
0
echo Display::grid_js('list_course', $url_by_course, $columns, $column_model, $extra_params_course, array(), '');
echo Display::grid_js('list_week', $url_week, $column_week, $column_week_model, $extra_params_week, array(), '');
if (!api_is_anonymous()) {
    echo Display::grid_js('exercises', '', $column_exercise, $column_exercise_model, $extra_params_exercise, $my_real_array);
}
?>
});
</script>

<?php 
$courseCode = isset($_GET['course']) ? $_GET['course'] : null;
$reportingTab = '';
if (!api_is_anonymous()) {
    $reportingTab = Tracking::show_user_progress(api_get_user_id(), $session_id, '#tabs-4', false, false);
    if (!empty($reportingTab)) {
        $reportingTab .= '<br />' . Tracking::show_course_detail(api_get_user_id(), $courseCode, $session_id);
    }
    if (empty($reportingTab)) {
        $reportingTab = Display::return_message(get_lang('NoDataAvailable'), 'warning');
    }
}
// Main headers
$headers = array(Display::return_icon('moderator_star.png'), get_lang('Courses'), get_lang('LearningPaths'));
if (!api_is_anonymous()) {
    $headers[] = get_lang('MyQCM');
    $headers[] = get_lang('MyStatistics');
}
// Sub headers
/*$sub_header = array(
    get_lang('AllLearningPaths'),
    get_lang('PerWeek'),
Пример #3
0
//Displays js code to use a jqgrid
echo Display::grid_js('courses', false, $columns_courses, $column_model_courses, $extra_params_courses, $new_course_list);
echo Display::grid_js('list_default', $url, $columns, $column_model, $extra_params, array(), '');
echo Display::grid_js('list_course', $url_by_course, $columns, $column_model, $extra_params_course, array(), '');
echo Display::grid_js('list_week', $url_week, $column_week, $column_week_model, $extra_params_week, array(), '');
echo Display::grid_js('exercises', '', $column_exercise, $column_exercise_model, $extra_params_exercise, $my_real_array);
?>
    // Generate tabs with jquery-ui
    $('#tabs').tabs();
    $( "#sub_tab" ).tabs();
});
</script>

<?php 
$my_reporting = Tracking::show_user_progress(api_get_user_id(), $session_id, '#tabs-4', false);
if (!empty($my_reporting)) {
    $my_reporting .= '<br />' . Tracking::show_course_detail(api_get_user_id(), $_GET['course'], $session_id);
}
if (empty($my_reporting)) {
    $my_reporting = Display::return_message(get_lang('NoDataAvailable'), 'warning');
}
// Main headers
$headers = array(get_lang('Courses'), get_lang('LearningPaths'), get_lang('MyQCM'), get_lang('MyStatistics'));
// Subheaders
$sub_header = array(get_lang('AllLearningPaths'), get_lang('PerWeek'), get_lang('ByCourse'));
//Sub headers data
$lp_tabs = Display::tabs($sub_header, array(Display::grid_html('list_default'), Display::grid_html('list_week'), Display::grid_html('list_course')), 'sub_tab');
$courses_tab = Display::grid_html('courses');
//Main headers data
echo Display::tabs($headers, array($courses_tab, $lp_tabs, Display::grid_html('exercises'), $my_reporting));
Display::display_footer();
Пример #4
0
        $course_info = api_get_course_info_by_id($result['real_id']);
        $course_image = '<img src="' . $course_info['course_image'] . '">';
        $dates .= '<li><a href="#' . $login . '">' . api_get_utc_datetime($login) . '</a></li>';
        $issues .= '<li id ="' . $login . '">
                        <div class="row">
                            <div class="span2"><div class="thumbnail">' . $course_image . '</div>
                        </div>
                        <div class="span3">' . sprintf(get_lang('YouHaveEnteredTheCourseXInY'), $course_info['code'], api_convert_and_format_date($login, DATE_FORMAT_LONG)) . '</div>
                    </li>';
        $count++;
    }
}
$selectedCourse = isset($_GET['course']) ? $_GET['course'] : null;
$selectedSession = isset($_GET['session_id']) ? $_GET['session_id'] : null;
$content = Tracking::show_user_progress(api_get_user_id());
$content .= Tracking::show_course_detail(api_get_user_id(), $selectedCourse, $selectedSession);
if (!empty($dates)) {
    if (!empty($content)) {
        $content .= '<br /><br />';
    }
    $content .= '<div class="row"><div class="span12">' . Display::page_subheader(get_lang('Timeline')) . '</div>';
    $content .= '<div id="my_timeline">
        <div class="actions">
            <a href="#" id="prev"></a> <!-- optional -->
            <a href="#" id="next"></a> <!-- optional -->
        </div>

    <ul id="dates">
        ' . $dates . '
    </ul>
    <ul id="issues">
Пример #5
0
            $last = '<a href="#' . $login . '">' . get_lang('Last') . '</a>';
        }
        $course_info = api_get_course_info($result['course_code']);
        $course_image = '<img src="' . $course_info['course_image'] . '">';
        $dates .= '<li><a href="#' . $login . '">' . api_get_utc_datetime($login) . '</a></li>';
        $issues .= '<li id ="' . $login . '">
                        <div class="row">
                            <div class="span2"><div class="thumbnail">' . $course_image . '</div>
                        </div>
                        <div class="span3">' . sprintf(get_lang('YouHaveEnteredTheCourseXInY'), $result['course_code'], api_convert_and_format_date($login, DATE_FORMAT_LONG)) . '</div>
                    </li>';
        $count++;
    }
}
$content .= Tracking::show_user_progress(api_get_user_id(), $_GET['session_id']);
$content .= Tracking::show_course_detail(api_get_user_id(), $_GET['course'], $_GET['session_id']);
if (!empty($dates)) {
    if (!empty($content)) {
        $content .= '<br /><br />';
    }
    $content .= '<div class="row"><div class="span12">' . Display::page_subheader(get_lang('Timeline')) . '</div>';
    $content .= '<div id="my_timeline">
        <div class="actions">
            <a href="#" id="prev"></a> <!-- optional -->
            <a href="#" id="next"></a> <!-- optional -->
        </div>
    <ul id="dates">
        ' . $dates . '
    </ul>
    <ul id="issues">
        ' . $issues . '