Mercurial > hg > lukkari
comparison beta.php @ 9:fe5b563eaae5
Remove dead code, that is done in parsedata.pl now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 11 Jan 2011 22:24:01 +0200 |
parents | 2bb40c5945bc |
children | 6272ca0cacea |
comparison
equal
deleted
inserted
replaced
8:a52a0bdb5ea1 | 9:fe5b563eaae5 |
---|---|
161 if (!$data["grouped"]) { | 161 if (!$data["grouped"]) { |
162 $totalGrouped += $h; | 162 $totalGrouped += $h; |
163 $dayHours[$data["day"]]["grouped"] += $h; | 163 $dayHours[$data["day"]]["grouped"] += $h; |
164 } | 164 } |
165 } | 165 } |
166 | |
167 for ($day = $classInfo["maxdays"] - 1; $day >= 0; $day--) { | |
168 if ($dayHours[$day]["total"] == 0) | |
169 $classInfo["maxdays"]--; | |
170 else | |
171 break; | |
172 } | |
173 | |
174 | 166 |
175 // Create the timetable table | 167 // Create the timetable table |
176 $out = | 168 $out = |
177 "<p>".join("; ", $classInfo["general"])."</p>\n". | 169 "<p>".join("; ", $classInfo["general"])."</p>\n". |
178 "<table class=\"timetable\">". | 170 "<table class=\"timetable\">". |