comparison index.php @ 144:f64a46fa7961

Rename some CSS elements.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 09 Sep 2014 11:21:32 +0300
parents d70c899b0571
children c028506aa9cc
comparison
equal deleted inserted replaced
143:d70c899b0571 144:f64a46fa7961
311 311
312 // Create the timetable table 312 // Create the timetable table
313 if ($mini) 313 if ($mini)
314 { 314 {
315 $out = 315 $out =
316 "<table class=\"timetable\">". 316 "<table id=\"timeTable\">\n".
317 " <tr>\n <th></th>". 317 " <tr>\n".
318 " <th class=\"days\">".lukGetDayName($currDay)."</th>\n </tr>\n"; 318 " <th></th>".
319 " <th class=\"days\">".lukGetDayName($currDay)."</th>\n".
320 " </tr>\n";
319 321
320 $startDay = $currDay; 322 $startDay = $currDay;
321 $lastDay = $currDay + 1; 323 $lastDay = $currDay + 1;
322 } 324 }
323 else 325 else
324 { 326 {
325 $out = 327 $out =
326 "<p>".join("; ", $classInfo["general"]). 328 "<p>".join("; ", $classInfo["general"]).
327 //" [".cmQM("viikossa", $classInfo["totalHours"])."]". 329 //" [".cmQM("viikossa", $classInfo["totalHours"])."]".
328 "</p>\n". 330 "</p>\n".
329 "<table class=\"timetable\">". 331 "<table id=\"timeTable\">\n".
330 " <tr>\n <th></th>\n"; 332 " <tr>\n".
333 " <th></th>\n";
331 334
332 $cellWidth = $classInfo["maxDays"] > 0 ? 100 / $classInfo["maxDays"] : 15; 335 $cellWidth = $classInfo["maxDays"] > 0 ? 100 / $classInfo["maxDays"] : 15;
333 if ($cellWidth > 25) $cellWidth = 25; 336 if ($cellWidth > 25) $cellWidth = 25;
334 337
335 for ($day = 0; $day < $classInfo["maxDays"]; $day++) 338 for ($day = 0; $day < $classInfo["maxDays"]; $day++)