當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。