本文整理汇总了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 = ' - <a href="' . api_get_self() . '?' . api_get_cidreq() . '&num=1#documents_tracking">' . get_lang('SeeDetail') . '</a>';
} else {
$num = 1000;
$link = ' - <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')) . ' ' . 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;
}
示例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 = ' - <a href="' . api_get_self() . '?' . api_get_cidreq() . '&num=1#documents_tracking">' . get_lang('SeeDetail') . '</a>';
} else {
$num = 1000;
$link = ' - <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')) . ' ' . 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;
}