本文整理汇总了PHP中Tracking::show_user_progress方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracking::show_user_progress方法的具体用法?PHP Tracking::show_user_progress怎么用?PHP Tracking::show_user_progress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tracking
的用法示例。
在下文中一共展示了Tracking::show_user_progress方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_lang
if ($count == $last_item) {
$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">
示例2: api_get_course_info_by_id
}
$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>
示例3: array
echo Display::grid_js('courses', '', $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(), '');
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(
示例4: get_lang
if ($count == $last_item) {
$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">