当前位置: 首页>>代码示例>>PHP>>正文


PHP Tracking::show_course_detail方法代码示例

本文整理汇总了PHP中Tracking::show_course_detail方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracking::show_course_detail方法的具体用法?PHP Tracking::show_course_detail怎么用?PHP Tracking::show_course_detail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tracking的用法示例。


在下文中一共展示了Tracking::show_course_detail方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_lang

            $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 . '
开发者ID:KRCM13,项目名称:chamilo-lms,代码行数:31,代码来源:my_progress.php

示例2: 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(
    get_lang('AllLearningPaths'),
    get_lang('PerWeek'),
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:31,代码来源:index.php

示例3: array

//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();
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:index.php

示例4: 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>
    <ul id="issues">
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:my_progress.php

示例5: get_lang

            $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 . '
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:31,代码来源:my_progress.php


注:本文中的Tracking::show_course_detail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。