{$herinfo['period_deadline']} JOIN $kldv.grp2subj ON grp2subj.grp_id = ppl2grp.grp_id JOIN $kldv.year2grp2subj ON year2grp2subj.grp2subj_id = grp2subj.grp2subj_id AND year2grp2subj.year_id = {$herinfo['year_id']} JOIN rex ON rex.ppl_id = ppl2grp.ppl_id AND period_id = {$herinfo['period_id']} AND rex.subj_id = grp2subj.subj_id GROUP BY grp_id, pta_id ) AS bla USING (grp_id, pta_id) WHERE rooster_id = $rooster_id EOQ ); $rooster2 = mdb2_all_ordered($db, << $columns) $columns = count($line); $row = array(); foreach ($line as $cell) { $row[] = 1; } $layout[] = $row; } //$last_same = array_fill(0, $columns, 0); $last_same = array(); foreach ($rooster2 as $row_idx => $row) { if ($row_idx == 0) { foreach ($row as $cell_idx => $hdr) { $last_same[$cell_idx] = 0; } } else foreach ($row as $cell_idx => $cell) { if ($cell === $rooster2[$row_idx-1][$cell_idx]) { $layout[$row_idx][$cell_idx] = 0; $layout[$last_same[$cell_idx]][$cell_idx]++; } else { $last_same[$cell_idx] = $row_idx; } } } html_start(); ?>

Rooster versie ()

Leerlingroosters per leerjaar/team: '); ?>
Allen lj 4 lj 5 lj 6
HAVO lj 4 lj 5
VWO lj 4 lj 5 lj 6

Rooster per toets

$row_layout) { ?> $cell_layout) { if ($cell_layout == 1) { ?> 1) { ?>
datum/tijdactiviteit