Mercurial > hg > lukkari
changeset 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 |
files | index.php |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/index.php Wed Aug 27 21:31:29 2014 +0300 +++ b/index.php Wed Aug 27 22:37:42 2014 +0300 @@ -151,6 +151,16 @@ } +function lukClassGetHourStr($start, $end) +{ + global $classHourTimes; + return + lukGetHourStamp($classHourTimes[$start]["start"]). + " - ". + lukGetHourStamp($classHourTimes[$end]["end"]); +} + + function lukMatchCourse($id) { global $cache, $cacheDirty, $pageCharset, $pageLang, $mobileMode; @@ -354,7 +364,8 @@ $currTime >= $classHourTimes[$class["start"]]["start"] && $currTime < $classHourTimes[$class["start"] + $class["hours"] - 1]["end"]; - $out .= " <td rowspan=\"".$class["hours"]."\" class=\"". + $out .= " <td rowspan=\"".$class["hours"]."\" ". + "title=\"".lukClassGetHourStr($hour, $hour + $class["hours"] - 1)."\" class=\"". ($isActive ? "clactive " : ""). (!$isActive && $nextActive ? "clnext " : ""). ($class["grouped"] ? "clgrouped" : "clnormal")."\">".