本文整理匯總了PHP中flexible_table::download_buttons方法的典型用法代碼示例。如果您正苦於以下問題:PHP flexible_table::download_buttons方法的具體用法?PHP flexible_table::download_buttons怎麽用?PHP flexible_table::download_buttons使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類flexible_table
的用法示例。
在下文中一共展示了flexible_table::download_buttons方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: if
$refresh_txt = get_string('refresh_page', 'wiziq');
$statusicon = '<img src="'.$CFG->wwwroot.'/mod/wiziq/pix/refresh.png" alt='.$refresh_txt.'/>';
$stausimage = '<a href="javascript:location.reload(true)"';
$stausimage .= ' title="'.$refresh_txt.'">'.$statusicon.'</a>';
$statusheading = 'Status'." ".$stausimage;
$table->define_columns(array('name', 'date_time', 'presenter',
'status', 'manage', 'dnldrec', 'viewrec', 'attendance_report'));
$table->column_style_all('text-align', 'left');
$table->define_headers(array(get_string('name', 'wiziq'),
get_string('date_time', 'wiziq'), get_string('presenter', 'wiziq'),
$statusheading, get_string('manage', 'wiziq'),
get_string('recording_link', 'wiziq'), get_string('viewrec', 'wiziq'),
get_string('attendance_report', 'wiziq')));
$table->define_baseurl($PAGE->url);
$table->is_downloadable(true);
$table->download_buttons();
$table->show_download_buttons_at(array(TABLE_P_BOTTOM));
$table->sortable(false);
$table->pageable(true);
if (isset($_COOKIE['wiziq_managecookie']) && empty($paging)) {
$wiziq_managecookie = $_COOKIE['wiziq_managecookie'];
$selected = $wiziq_managecookie;
$class_per_page = $wiziq_managecookie;
} else if (!(isset($_COOKIE['wiziq_managecookie'])) && empty($paging)) {
$class_per_page = WIZIQ_MAX_TABLE_SIZE;
$selected = "";
} else {
$class_per_page = $paging;
$selected = $paging;
}
$table->pagesize($class_per_page, $total_wiziq_records);