change reading group csv output to use team colours for heading
This commit is contained in:
@@ -68,7 +68,12 @@ function booking_studygroups_csv_report($group_id) {
|
|||||||
foreach ($header_array as $column) {
|
foreach ($header_array as $column) {
|
||||||
$maximums[] = count($data[$column]);
|
$maximums[] = count($data[$column]);
|
||||||
//make the column headings a bit more user friendly
|
//make the column headings a bit more user friendly
|
||||||
$column_headings[] = "Session " . $column;
|
if ($group->booking_is_readinggroup == 'Y') {
|
||||||
|
$column_headings[] = _booking_readinggroup_colour_lookup($column);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$column_headings[] = "Session " . $column;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//add the column headings to the CSV
|
//add the column headings to the CSV
|
||||||
|
Reference in New Issue
Block a user