本文整理匯總了PHP中SortableTable::setColAttributes方法的典型用法代碼示例。如果您正苦於以下問題:PHP SortableTable::setColAttributes方法的具體用法?PHP SortableTable::setColAttributes怎麽用?PHP SortableTable::setColAttributes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SortableTable
的用法示例。
在下文中一共展示了SortableTable::setColAttributes方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: usort
$row[8] = strip_tags($row[8]);
$csv_content[] = $row;
}
$row[] = '<center><a href="../mySpace/myStudents.php?student=' . $student_id . '&details=true&course=' . $course_code . '&origin=tracking_course"><img src="' . api_get_path(WEB_IMG_PATH) . '2rightarrow.gif" border="0" /></a></center>';
$all_datas[] = $row;
}
usort($all_datas, 'sort_users');
$page = $table->get_pager()->getCurrentPageID();
$all_datas = array_slice($all_datas, ($page - 1) * $table->per_page, $table->per_page);
if ($export_csv) {
usort($csv_content, 'sort_users');
}
foreach ($all_datas as $row) {
$table->addRow($row, 'align="right"');
}
$table->setColAttributes(0, array('align' => 'left'));
$table->setColAttributes(1, array('align' => 'left'));
$table->setColAttributes(2, array('align' => 'left'));
$table->setColAttributes(7, array('align' => 'right'));
$table->setColAttributes(8, array('align' => 'center'));
$table->setColAttributes(9, array('align' => 'center'));
$table->display();
} else {
echo get_lang('NoUsersInCourseTracking');
}
$ScormService = cloud_getScormEngineService();
$rptService = $ScormService->getReportingService();
$reportageAuth = $rptService->GetReportageAuth('NONAV', false);
$tagSettings = new TagSettings();
$tagSettings->addTag("course", $_REQUEST['cidReq']);
$sumWidgetSettings = new WidgetSettings(null, $tagSettings, null);