Mercurial > hg > lukkari
changeset 71:0329105ddedc
Fix grouped + active state display.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 24 Oct 2012 04:30:36 +0300 |
parents | 8109809f67cb |
children | 6fd715063abc |
files | index.php |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/index.php Wed Oct 24 04:28:25 2012 +0300 +++ b/index.php Wed Oct 24 04:30:36 2012 +0300 @@ -352,7 +352,7 @@ { global $classInfo, $classHourDefs, $classHourTimes; -// $currStamp = time() + 9 * 60 * 60 + 18 * 60; +// $currStamp = time() + ((3 * 60) + 45) * 60; $currStamp = time(); $currTime = $currStamp - mktime(0, 0, 0); $currDay = lukGetWeekdayFromTimestamp($currStamp); @@ -392,7 +392,7 @@ $currTime < $classHourTimes[$class["start"] + $class["hours"] - 1]["end"]; $out .= " <td rowspan=\"".$class["hours"]. - "\" class=\"".($class["grouped"] ? "clgrouped" : ($isActive ? "clactive" : "clnormal"))."\">". + "\" class=\"".($isActive ? "clactive " : "").($class["grouped"] ? "clgrouped" : "clnormal")."\">". lukGetClassInfo($isSplit, $class["data"]). "<div class=\"nhours\"><span>".$class["hours"]."h</span></div></td>\n"; }