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


PHP Tracking::get_documents_most_downloaded_by_course方法代码示例

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


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

示例1: api_get_self

}
echo '</table></div>';
echo '<div class="clear"></div>';
// Documents tracking.
if (!isset($_GET['num']) || empty($_GET['num'])) {
    $num = 3;
    $link = '&nbsp;-&nbsp;<a href="' . api_get_self() . '?' . api_get_cidreq() . '&num=1#documents_tracking">' . get_lang('SeeDetail') . '</a>';
} else {
    $num = 1000;
    $link = '&nbsp;-&nbsp;<a href="' . api_get_self() . '?' . api_get_cidreq() . '&num=0#documents_tracking">' . get_lang('ViewMinus') . '</a>';
}
echo '<a name="documents_tracking" id="a"></a><div class="report_section">
            ' . Display::page_subheader2(Display::return_icon('documents.gif', get_lang('DocumentsMostDownloaded')) . '&nbsp;' . get_lang('DocumentsMostDownloaded') . $link) . '
        <table class="data_table">';
//No group id
$documents_most_downloaded = Tracking::get_documents_most_downloaded_by_course($courseId, $session_id, $num, $filter_by_users);
if ($export_csv) {
    $temp = array(get_lang('DocumentsMostDownloaded', ''), '');
    $csv_content[] = array('', '');
    $csv_content[] = $temp;
}
if (!empty($documents_most_downloaded)) {
    foreach ($documents_most_downloaded as $row) {
        echo '<tr>
                <td>' . Display::url($row['down_doc_path'], api_get_path(WEB_CODE_PATH) . 'document/show_content.php?file=' . $row['down_doc_path'] . $course_path_params) . '</td>
                <td align="right">' . $row['count_down'] . ' ' . get_lang('Clicks') . '</td>
              </tr>';
        if ($export_csv) {
            $temp = array($row['down_doc_path'], $row['count_down'] . ' ' . get_lang('Clicks', ''));
            $csv_content[] = $temp;
        }
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:course_log_tools.php

示例2: api_get_self

    echo '</table></div>';
    echo '<div class="clear"></div>';
}
if ($documentReporting) {
    // Documents tracking.
    if (!isset($_GET['num']) || empty($_GET['num'])) {
        $num = 3;
        $link = '&nbsp;-&nbsp;<a href="' . api_get_self() . '?' . api_get_cidreq() . '&num=1#documents_tracking">' . get_lang('SeeDetail') . '</a>';
    } else {
        $num = 1000;
        $link = '&nbsp;-&nbsp;<a href="' . api_get_self() . '?' . api_get_cidreq() . '&num=0#documents_tracking">' . get_lang('ViewMinus') . '</a>';
    }
    echo '<a name="documents_tracking" id="a"></a><div class="report_section">
                ' . Display::page_subheader(Display::return_icon('documents.gif', get_lang('DocumentsMostDownloaded')) . '&nbsp;' . get_lang('DocumentsMostDownloaded') . $link) . '
            <table class="data_table">';
    $documents_most_downloaded = Tracking::get_documents_most_downloaded_by_course($course_code, $session_id, $num);
    if ($export_csv) {
        $temp = array(get_lang('DocumentsMostDownloaded', ''), '');
        $csv_content[] = array('', '');
        $csv_content[] = $temp;
    }
    if (!empty($documents_most_downloaded)) {
        foreach ($documents_most_downloaded as $row) {
            echo '<tr>
                    <td>' . Display::url($row['down_doc_path'], api_get_path(WEB_CODE_PATH) . 'document/show_content.php?file=' . $row['down_doc_path'] . $course_path_params) . '</td>
                    <td align="right">' . $row['count_down'] . ' ' . get_lang('Clicks') . '</td>
                  </tr>';
            if ($export_csv) {
                $temp = array($row['down_doc_path'], $row['count_down'] . ' ' . get_lang('Clicks', ''));
                $csv_content[] = $temp;
            }
开发者ID:KRCM13,项目名称:chamilo-lms,代码行数:31,代码来源:course_log_tools.php


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