本文整理匯總了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;
}