Mercurial > hg > lukkari
comparison index.php @ 141:36fb1ce941d5
Add more information as a title attribute.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 27 Aug 2014 22:37:42 +0300 |
parents | 26d266a685ed |
children | 0e8b8fac920d |
comparison
equal
deleted
inserted
replaced
140:26d266a685ed | 141:36fb1ce941d5 |
---|---|
146 lukGetHourStamp($classHourTimes[$hour]["end"]). | 146 lukGetHourStamp($classHourTimes[$hour]["end"]). |
147 "<br /><br />"; | 147 "<br /><br />"; |
148 } | 148 } |
149 else | 149 else |
150 return "ERROR"; | 150 return "ERROR"; |
151 } | |
152 | |
153 | |
154 function lukClassGetHourStr($start, $end) | |
155 { | |
156 global $classHourTimes; | |
157 return | |
158 lukGetHourStamp($classHourTimes[$start]["start"]). | |
159 " - ". | |
160 lukGetHourStamp($classHourTimes[$end]["end"]); | |
151 } | 161 } |
152 | 162 |
153 | 163 |
154 function lukMatchCourse($id) | 164 function lukMatchCourse($id) |
155 { | 165 { |
352 | 362 |
353 $isActive = $day == $currDay && | 363 $isActive = $day == $currDay && |
354 $currTime >= $classHourTimes[$class["start"]]["start"] && | 364 $currTime >= $classHourTimes[$class["start"]]["start"] && |
355 $currTime < $classHourTimes[$class["start"] + $class["hours"] - 1]["end"]; | 365 $currTime < $classHourTimes[$class["start"] + $class["hours"] - 1]["end"]; |
356 | 366 |
357 $out .= " <td rowspan=\"".$class["hours"]."\" class=\"". | 367 $out .= " <td rowspan=\"".$class["hours"]."\" ". |
368 "title=\"".lukClassGetHourStr($hour, $hour + $class["hours"] - 1)."\" class=\"". | |
358 ($isActive ? "clactive " : ""). | 369 ($isActive ? "clactive " : ""). |
359 (!$isActive && $nextActive ? "clnext " : ""). | 370 (!$isActive && $nextActive ? "clnext " : ""). |
360 ($class["grouped"] ? "clgrouped" : "clnormal")."\">". | 371 ($class["grouped"] ? "clgrouped" : "clnormal")."\">". |
361 lukGetClassInfo($class["grouped"], $class["data"]). | 372 lukGetClassInfo($class["grouped"], $class["data"]). |
362 "<div class=\"nhours\"><span>".$class["hours"]."h</span></div></td>\n"; | 373 "<div class=\"nhours\"><span>".$class["hours"]."h</span></div></td>\n"; |