From 8799e4e388727e045ecf0ebf5f5507badcdfc6c9 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sat, 6 Dec 2025 17:35:48 +0000 Subject: [PATCH] teacher timetable now showing , --- timetable.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/timetable.php b/timetable.php index eba4d74..94b6e41 100644 --- a/timetable.php +++ b/timetable.php @@ -455,11 +455,21 @@ $class_timetables = get_timetable_from_db($pdoconn, $classes, $timeslots); Break - + 0) ? ($class_timetables[$class['id']][$day_idx][$period_idx - 1] ?? null) : null; + if ($lesson_above && !empty($lesson_above['is_double']) && ($lesson_above['id'] ?? 'a') === ($lesson['id'] ?? 'b')) { + continue; // This cell is covered by a rowspan from the lesson above. + } + + $rowspan = ($lesson && !empty($lesson['is_double'])) ? 2 : 1; + ?> +